Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #60

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ Pipfile.lock
Pipfile
templates/_original
media
.DS_Store
.DS_Store
postdeploy-django.sh
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,32 @@ heroku logs --tail -a YOUR_APP_NAME
- It might be you! Feel free to contribute.

[11]: https://hvitis.com


#### Troubleshooting

Setup on Hetzner Cloud. Simple Install:



Fresh server? Just run it.
```
sudo apt install libpq-dev python3-setuptools python3 git python3-dev python3-venv
git clone https://github.com/pafend/Podcaster.git
cd Podcaster
python3 -m venv Podcaster
source Podcaster/bin/activate
pip install -r requirements.txt
python3 -m pip install --upgrade Pillow
python3 -m pip install --upgrade Django
python3 -m pip install --upgrade django-summernote
pip3 install djangorestframework
```


To run the localization (in case you need another language)

```
pip3 install python-gettext
django-admin makemessages -l de
```
8 changes: 4 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "Podcaster",
"description": "Set-up FREE Django Podcasts & Blog page in seconds.",
"website": "http://hvitis.com",
"success_url": "https://hvitis.com/free-podcasts-blog-template-based-on-django",
"website": "http://pascalfend.de",
"success_url": "https://pascalfend.de/free-podcasts-blog-template-based-on-django",
"addons": ["heroku-postgresql:hobby-dev",
"bucketeer:hobbyist"
],
"repository": "https://github.com/hvitis/podcaster",
"repository": "https://github.com/pafend/podcaster",
"logo": "https://i.ibb.co/QQNtj9j/Podcaster-Logo-Medium.png",
"buildpacks": [{
"url": "heroku/python"
Expand All @@ -31,4 +31,4 @@
"scripts": {
"postdeploy": "chmod +x postdeploy-django.sh && ./postdeploy-django.sh"
}
}
}
122 changes: 122 additions & 0 deletions locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-04-24 02:30+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: podcasts/sub_settings/internationalization.py:12 templates/header.html:43
msgid "German"
msgstr "Deutsch"

#: podcasts/sub_settings/internationalization.py:13 templates/header.html:42
msgid "English"
msgstr "Englisch"

#: templates/about/about.html:21
msgid "about"
msgstr "Über"

#: templates/about/about.html:35
msgid "About my"
msgstr "Über mein"

#: templates/about/about.html:56
msgid "Facts about the page"
msgstr "Dinge über diese Seite"

#: templates/about/about.html:82
msgid "Podcast episodes"
msgstr "Podcast Episoden"

#: templates/about/about.html:93
msgid "Blog Posts"
msgstr "Blog Beiträge"

#: templates/about/about.html:104
msgid "Approx hours I've spent on mastering"
msgstr "Geschätzte Anzahl an Stunden die ich benötigte es zu meistern"

#: templates/about/about.html:122
msgid "About Me"
msgstr "Über mich"

#: templates/about/about.html:149
msgid "Support Me"
msgstr "Unterstütze mich"

#: templates/blog/blog_list.html:71
msgid "By"
msgstr "Durch"

#: templates/blog/blog_list.html:75
msgid "Read More"
msgstr "Weiterlesen"

#: templates/episodes/episode_list.html:15
msgid "episodes"
msgstr "Episoden"

#: templates/footer.html:15
msgid "Join my Newsletter"
msgstr "Tritt meiner Newsletter bei"

#: templates/footer.html:18
msgid "Get latest posts, podcasts and giveaways informations."
msgstr "Erhalte die neusten Posts, Podcasts und Informationen."

#: templates/footer.html:32
msgid "subscribe"
msgstr "Subscribe"

#: templates/footer.html:54
msgid "Latest Podcasts"
msgstr "Letzte Podcasts"

#: templates/footer.html:89
msgid "Latest Posts"
msgstr "Letzte Beiträge"

#: templates/footer.html:123 templates/tags_categories.html:18
msgid "Tags"
msgstr "Tags"

#: templates/footer.html:132 templates/tags_categories.html:8
msgid "Categories"
msgstr "Kategorien"

#: templates/header.html:35
msgid "Podcasts"
msgstr "Podcasts"

#: templates/header.html:36
msgid "Blog"
msgstr "Blog"

#: templates/header.html:37
msgid "About"
msgstr "Über"

#: templates/home/home.html:50
msgid "Transcription"
msgstr "Mitschrift"

#: templates/home/home.html:93
msgid "Share"
msgstr "Teile"

#: templates/home/home.html:113
msgid "browse shows"
msgstr "durchsuche Shows"
4 changes: 2 additions & 2 deletions podcasts/sub_settings/internationalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
# Internationalization
# https://docs.djangoproject.com/en/3.0/topics/i18n/

LANGUAGE_CODE = 'es-ES'
LANGUAGE_CODE = 'de-DE'
# List of activated
DEFAULT_LANGUAGE = 1 # the first one in the list
LANGUAGES = (
('es-ES', _('Spanish')),
('de-DE', _('German')),
('en-US', _('English')),
)

Expand Down
4 changes: 2 additions & 2 deletions podcasts/sub_settings/text_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'height': '820',

# Use proper language setting automatically (default)
'lang': "es-ES",
'lang': "de-DE",

# Or, set editor language/locale forcely
# 'lang': 'ko-KR',
Expand Down Expand Up @@ -94,4 +94,4 @@
# },
}
# Django summernote default theme for text editor
SUMMERNOTE_THEME = 'bs4'
SUMMERNOTE_THEME = 'bs4'
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ python-dateutil==2.8.1
pytz==2019.2
s3transfer==0.2.1
six==1.14.0
sorl-thumbnail==12.6.3
sqlparse==0.3.0
urllib3==1.25.8
whitenoise==4.1.3
sorl-thumbnail==12.8.0
djangorestframework==3.13.1
Binary file added static/icons/800px-Flag_de.svg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions static/icons/de.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<nav class="main_nav">
<ul class="d-flex flex-row align-items-end justify-content-end">
<li><a class="lang_icon" href="/en-us/home"><img src="{% static 'icons/en.svg' %}" width="20px" /> {% trans "English" %}</a></li>
<li><a class="lang_icon" href="/es-es/home"><img src="{% static 'icons/es.svg' %}" width="20px" /> {% trans "Spanish" %}</a></li>
<li><a class="lang_icon" href="/de-de/home"><img src="{% static 'icons/de.svg' %}" width="20px" /> {% trans "German" %}</a></li>
</ul>
</nav>
</div>
Expand All @@ -64,4 +64,4 @@
<div class="hamburger"><i class="fa fa-bars" aria-hidden="true"></i></div>

</div>
</header>
</header>