diff --git a/.gitignore b/.gitignore index d974279..165b849 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ Pipfile.lock Pipfile templates/_original media -.DS_Store \ No newline at end of file +.DS_Store +postdeploy-django.sh diff --git a/README.md b/README.md index cfedb48..9abfefe 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/app.json b/app.json index 31e5518..d130048 100644 --- a/app.json +++ b/app.json @@ -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" @@ -31,4 +31,4 @@ "scripts": { "postdeploy": "chmod +x postdeploy-django.sh && ./postdeploy-django.sh" } -} \ No newline at end of file +} diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po new file mode 100644 index 0000000..3c8cfa0 --- /dev/null +++ b/locale/de/LC_MESSAGES/django.po @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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" diff --git a/podcasts/sub_settings/internationalization.py b/podcasts/sub_settings/internationalization.py index 82415f8..ed7deac 100644 --- a/podcasts/sub_settings/internationalization.py +++ b/podcasts/sub_settings/internationalization.py @@ -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')), ) diff --git a/podcasts/sub_settings/text_editor.py b/podcasts/sub_settings/text_editor.py index 65e7dd6..9b12bcf 100644 --- a/podcasts/sub_settings/text_editor.py +++ b/podcasts/sub_settings/text_editor.py @@ -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', @@ -94,4 +94,4 @@ # }, } # Django summernote default theme for text editor -SUMMERNOTE_THEME = 'bs4' \ No newline at end of file +SUMMERNOTE_THEME = 'bs4' diff --git a/requirements.txt b/requirements.txt index 72d2274..b836478 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/static/icons/800px-Flag_de.svg.png b/static/icons/800px-Flag_de.svg.png new file mode 100644 index 0000000..523884d Binary files /dev/null and b/static/icons/800px-Flag_de.svg.png differ diff --git a/static/icons/de.svg b/static/icons/de.svg new file mode 100644 index 0000000..65c00ec --- /dev/null +++ b/static/icons/de.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/templates/header.html b/templates/header.html index ed74b51..aa7e49d 100644 --- a/templates/header.html +++ b/templates/header.html @@ -40,7 +40,7 @@ @@ -64,4 +64,4 @@
- \ No newline at end of file +