From 065d90cea7e452580cb9594c2f220bc1d1ca6ec6 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Mon, 18 Apr 2022 23:52:32 +0200 Subject: [PATCH 01/18] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index cfedb48..97b39c4 100644 --- a/README.md +++ b/README.md @@ -110,3 +110,11 @@ heroku logs --tail -a YOUR_APP_NAME - It might be you! Feel free to contribute. [11]: https://hvitis.com + + +#### Troubleshooting + +Running into pg_config executable not found on a fresh server? Check if you ran +``` +sudo apt install libpq-dev +``` From 36ce61b1911e26e18804b9416446e3ee4d011baf Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Tue, 19 Apr 2022 23:06:20 +0200 Subject: [PATCH 02/18] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 97b39c4..179d426 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,10 @@ heroku logs --tail -a YOUR_APP_NAME #### Troubleshooting +Setup on Hetzner Cloud. Simple Install: + + + Running into pg_config executable not found on a fresh server? Check if you ran ``` sudo apt install libpq-dev From 79e9d569a1a44a301b966f1738d86862488d5029 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Tue, 19 Apr 2022 23:08:48 +0200 Subject: [PATCH 03/18] Update requirements.txt --- requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements.txt b/requirements.txt index 72d2274..bb709d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,3 +18,5 @@ 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 From c3246b6d80526b96b51251df4d249b1116276a02 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Tue, 19 Apr 2022 23:10:36 +0200 Subject: [PATCH 04/18] Update requirements.txt --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index bb709d0..b836478 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,7 +14,6 @@ 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 From b94092c31b3db9c94fdbfe3e3071e62f8318d823 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Tue, 19 Apr 2022 23:12:35 +0200 Subject: [PATCH 05/18] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 179d426..c77e809 100644 --- a/README.md +++ b/README.md @@ -121,4 +121,5 @@ Setup on Hetzner Cloud. Simple Install: Running into pg_config executable not found on a fresh server? Check if you ran ``` sudo apt install libpq-dev +python3 -m pip install --upgrade Pillow ``` From c885d9b44ad5606ab3cb3d1555c90019a76af245 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Tue, 19 Apr 2022 23:33:47 +0200 Subject: [PATCH 06/18] Update app.json --- app.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 +} From 4a9b74974ab2fd924604cbf39264e21d72da3f4d Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Fri, 22 Apr 2022 22:15:58 +0200 Subject: [PATCH 07/18] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c77e809..dc5dde0 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ Setup on Hetzner Cloud. Simple Install: Running into pg_config executable not found on a fresh server? Check if you ran ``` -sudo apt install libpq-dev +sudo apt install libpq-dev python3-setuptools python3.10 git +python3 -m pip install django==4.0.4 python3 -m pip install --upgrade Pillow ``` From 870a44e5988452234a10a6bdb5420f39390e27c7 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Sun, 24 Apr 2022 01:30:39 +0200 Subject: [PATCH 08/18] Update README.md --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc5dde0..56504db 100644 --- a/README.md +++ b/README.md @@ -118,9 +118,15 @@ Setup on Hetzner Cloud. Simple Install: -Running into pg_config executable not found on a fresh server? Check if you ran +Fresh server? Just run it. ``` -sudo apt install libpq-dev python3-setuptools python3.10 git -python3 -m pip install django==4.0.4 +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 +pip3 install djangorestframework ``` From 1fa9f6b99c3e731a22ab2b2e591830c49432e8a5 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Sun, 24 Apr 2022 01:36:07 +0200 Subject: [PATCH 09/18] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 56504db..d08405a 100644 --- a/README.md +++ b/README.md @@ -128,5 +128,6 @@ 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 ``` From b96324bcb70d526e1ed0e5b9edbd12a80c9538c8 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Sun, 24 Apr 2022 01:55:22 +0200 Subject: [PATCH 10/18] Update internationalization.py Change to german --- podcasts/sub_settings/internationalization.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')), ) From 84c272c580e8fe24a819a8b61cef1548f218da90 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Sun, 24 Apr 2022 02:01:50 +0200 Subject: [PATCH 11/18] Update text_editor.py --- podcasts/sub_settings/text_editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' From 5175979fbee6557325408dea5eb10dd58910ef88 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Sun, 24 Apr 2022 02:02:40 +0200 Subject: [PATCH 12/18] Update header.html --- templates/header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 + From 5fd0dc11ba3fca01c399a4aa058f2bd4107ea319 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Sun, 24 Apr 2022 02:04:19 +0200 Subject: [PATCH 13/18] Add files via upload --- static/icons/800px-Flag_de.svg.png | Bin 0 -> 4301 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 static/icons/800px-Flag_de.svg.png diff --git a/static/icons/800px-Flag_de.svg.png b/static/icons/800px-Flag_de.svg.png new file mode 100644 index 0000000000000000000000000000000000000000..523884db5541b4b2abd1693ac6194027c4f9f8b8 GIT binary patch literal 4301 zcmeAS@N?(olHy`uVBq!ia0y~yU{+vYV0<9J1`?TmbsLakOY(Mi`40x15#R3sMK}vQ zB8!2v2N=7Z%(epwmK8Xr!}K%MXjxY>FbG6=x;TbZ+qXLCbJ)&);CRYNo#$YO$&%M+9v xAR?Bd0-%5x4Uf^}01ScA+yG7nqqzZ^8~*? Date: Sun, 24 Apr 2022 02:07:23 +0200 Subject: [PATCH 14/18] Add files via upload --- static/icons/de.svg | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 static/icons/de.svg 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 @@ + + + + + From 7dc275eb01aea8464631ba1e1f7a019938bdccac Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Sun, 24 Apr 2022 02:25:50 +0200 Subject: [PATCH 15/18] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d08405a..9abfefe 100644 --- a/README.md +++ b/README.md @@ -131,3 +131,11 @@ 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 +``` From f1dd9c5c6d83b673e8f4c7e6029f742c96860833 Mon Sep 17 00:00:00 2001 From: Pascal Fend Date: Sun, 24 Apr 2022 22:32:48 +0200 Subject: [PATCH 16/18] localization --- locale/de/LC_MESSAGES/django.po | 122 ++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 locale/de/LC_MESSAGES/django.po diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po new file mode 100644 index 0000000..17641e7 --- /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 "" + +#: podcasts/sub_settings/internationalization.py:13 templates/header.html:42 +msgid "English" +msgstr "" + +#: templates/about/about.html:21 +msgid "about" +msgstr "" + +#: templates/about/about.html:35 +msgid "About my" +msgstr "" + +#: templates/about/about.html:56 +msgid "Facts about the page" +msgstr "" + +#: templates/about/about.html:82 +msgid "Podcast episodes" +msgstr "" + +#: templates/about/about.html:93 +msgid "Blog Posts" +msgstr "" + +#: templates/about/about.html:104 +msgid "Approx hours I've spent on mastering" +msgstr "" + +#: templates/about/about.html:122 +msgid "About Me" +msgstr "" + +#: templates/about/about.html:149 +msgid "Support Me" +msgstr "" + +#: templates/blog/blog_list.html:71 +msgid "By" +msgstr "" + +#: templates/blog/blog_list.html:75 +msgid "Read More" +msgstr "" + +#: templates/episodes/episode_list.html:15 +msgid "episodes" +msgstr "" + +#: templates/footer.html:15 +msgid "Join my Newsletter" +msgstr "" + +#: templates/footer.html:18 +msgid "Get latest posts, podcasts and giveaways informations." +msgstr "" + +#: templates/footer.html:32 +msgid "subscribe" +msgstr "" + +#: templates/footer.html:54 +msgid "Latest Podcasts" +msgstr "" + +#: templates/footer.html:89 +msgid "Latest Posts" +msgstr "" + +#: templates/footer.html:123 templates/tags_categories.html:18 +msgid "Tags" +msgstr "" + +#: templates/footer.html:132 templates/tags_categories.html:8 +msgid "Categories" +msgstr "" + +#: templates/header.html:35 +msgid "Podcasts" +msgstr "" + +#: templates/header.html:36 +msgid "Blog" +msgstr "" + +#: templates/header.html:37 +msgid "About" +msgstr "" + +#: templates/home/home.html:50 +msgid "Transcription" +msgstr "" + +#: templates/home/home.html:93 +msgid "Share" +msgstr "" + +#: templates/home/home.html:113 +msgid "browse shows" +msgstr "" From 4912299c2f128b804a9255527b11463001c891f2 Mon Sep 17 00:00:00 2001 From: pafend <103966297+pafend@users.noreply.github.com> Date: Sun, 24 Apr 2022 22:44:42 +0200 Subject: [PATCH 17/18] Update django.po --- locale/de/LC_MESSAGES/django.po | 52 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 17641e7..3c8cfa0 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -19,104 +19,104 @@ msgstr "" #: podcasts/sub_settings/internationalization.py:12 templates/header.html:43 msgid "German" -msgstr "" +msgstr "Deutsch" #: podcasts/sub_settings/internationalization.py:13 templates/header.html:42 msgid "English" -msgstr "" +msgstr "Englisch" #: templates/about/about.html:21 msgid "about" -msgstr "" +msgstr "Über" #: templates/about/about.html:35 msgid "About my" -msgstr "" +msgstr "Über mein" #: templates/about/about.html:56 msgid "Facts about the page" -msgstr "" +msgstr "Dinge über diese Seite" #: templates/about/about.html:82 msgid "Podcast episodes" -msgstr "" +msgstr "Podcast Episoden" #: templates/about/about.html:93 msgid "Blog Posts" -msgstr "" +msgstr "Blog Beiträge" #: templates/about/about.html:104 msgid "Approx hours I've spent on mastering" -msgstr "" +msgstr "Geschätzte Anzahl an Stunden die ich benötigte es zu meistern" #: templates/about/about.html:122 msgid "About Me" -msgstr "" +msgstr "Über mich" #: templates/about/about.html:149 msgid "Support Me" -msgstr "" +msgstr "Unterstütze mich" #: templates/blog/blog_list.html:71 msgid "By" -msgstr "" +msgstr "Durch" #: templates/blog/blog_list.html:75 msgid "Read More" -msgstr "" +msgstr "Weiterlesen" #: templates/episodes/episode_list.html:15 msgid "episodes" -msgstr "" +msgstr "Episoden" #: templates/footer.html:15 msgid "Join my Newsletter" -msgstr "" +msgstr "Tritt meiner Newsletter bei" #: templates/footer.html:18 msgid "Get latest posts, podcasts and giveaways informations." -msgstr "" +msgstr "Erhalte die neusten Posts, Podcasts und Informationen." #: templates/footer.html:32 msgid "subscribe" -msgstr "" +msgstr "Subscribe" #: templates/footer.html:54 msgid "Latest Podcasts" -msgstr "" +msgstr "Letzte Podcasts" #: templates/footer.html:89 msgid "Latest Posts" -msgstr "" +msgstr "Letzte Beiträge" #: templates/footer.html:123 templates/tags_categories.html:18 msgid "Tags" -msgstr "" +msgstr "Tags" #: templates/footer.html:132 templates/tags_categories.html:8 msgid "Categories" -msgstr "" +msgstr "Kategorien" #: templates/header.html:35 msgid "Podcasts" -msgstr "" +msgstr "Podcasts" #: templates/header.html:36 msgid "Blog" -msgstr "" +msgstr "Blog" #: templates/header.html:37 msgid "About" -msgstr "" +msgstr "Über" #: templates/home/home.html:50 msgid "Transcription" -msgstr "" +msgstr "Mitschrift" #: templates/home/home.html:93 msgid "Share" -msgstr "" +msgstr "Teile" #: templates/home/home.html:113 msgid "browse shows" -msgstr "" +msgstr "durchsuche Shows" From 8c0e0dd0c457c06345870860edf9648d7e549f8a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 24 Apr 2022 22:36:59 +0000 Subject: [PATCH 18/18] .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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