blog

Update translations

Author
Maarten Vangeneugden
Date
Dec. 28, 2023, 11:37 p.m.
Hash
a5715db91849f93b23fa9cada1b12e40ad832d7e
Parent
95d6fa21f26e861a9f9458212349e807ba114d51
Modified files
TODO.org
locale/af/LC_MESSAGES/django.po
locale/de/LC_MESSAGES/django.po
locale/eo/LC_MESSAGES/django.po
locale/es/LC_MESSAGES/django.po
locale/fr/LC_MESSAGES/django.po
locale/fr-be/LC_MESSAGES/django.po → locale/fr_BE/LC_MESSAGES/django.po
locale/nl/LC_MESSAGES/django.po
locale/nl-be/LC_MESSAGES/django.po → locale/nl_BE/LC_MESSAGES/django.po
migrations/0013_alter_comment_from_myself_alter_comment_reaction_to.py
models.py
templates/blog/comment.djhtml
templates/blog/locale/af/LC_MESSAGES/django.po
templates/blog/locale/de/LC_MESSAGES/django.po
templates/blog/locale/eo/LC_MESSAGES/django.po
templates/blog/locale/es/LC_MESSAGES/django.po
templates/blog/locale/fr-be/LC_MESSAGES/django.po
templates/blog/locale/fr/LC_MESSAGES/django.po
templates/blog/locale/fr_BE/LC_MESSAGES/django.po
templates/blog/locale/nl-be/LC_MESSAGES/django.po
templates/blog/locale/nl/LC_MESSAGES/django.po
templates/blog/locale/nl_BE/LC_MESSAGES/django.po
views.py

TODO.org

20 additions and 0 deletions.

View changes Hide changes
1
1
  annoying bug where the layout of the input fields cannot be reverted to the
2
2
  browser default, despite using a class for *exactly that fucking reason*. I'm
3
3
  currently too fed up to care about fixing that shit right now.
4
4
  *NOTE*: This will have to wait until Material3 is in a finished state. With
5
5
     that, the input fields will also be fixed properly, and maybe even
6
6
     automatically.
7
7
- Add notification regarding identities :: Remember to put up a notification
8
8
     that comments are not checked for identity, and, unless verified by a
9
9
     trustworthy source, cannot be seen as being an actual statement from the commenter.
10
10
- Notification regarding languages :: Add a warning that comments show up in all
11
11
     language versions, regardless of the active language during submission.
12
12
13
13
* Weekly-archive
14
14
- Date ranges :: Write a tiny function in the backend that reformats the dates
15
15
in the headers to a "more human readable" format.
16
16
- IDs :: Make the IDs of the elements better, and more descriptive.
17
17
- Hardcoding :: Currently the files are hardcoded, but that's not really
18
18
good. Put the files in a hardcoded list, then iterate over that.
19
19
+
20
+
21
* Spreekwoorden
+
22
Iets doen met spreekwoorden en idiomen in het Frans en Nederlands die fel op elkaar
+
23
trekken? Hier een lijstje dat ik doorlopend zal proberen aan te vullen:
+
24
+
25
- Nood breekt wet | Nécessité fait loi :: "breken" wordt "maken" in het Frans, interessant!
+
26
- In alle staten zijn | Être en tous étàts
+
27
+
28
+
29
* VB-analyse
+
30
- Bij "sibbeling"; toevoegen dat in Europa dit zo is, maar in België lijkt het
+
31
  erop dat de vreemdelingenwet wel degelijk kleinkinderen en grootouders ook als
+
32
  familie beschouwt, alsook niet-gehuwden partners.
+
33
  (https://www.dekamer.be/kvvcr/showpage.cfm?section=/flwb&language=nl&cfm=/site/wwwcfm/flwb/flwbn.cfm?lang=N&legislat=55&dossierID=3451)
+
34
  Dus da's op zijn minst een voetnoot waard, dat het in België wel wat breder
+
35
  is, ook al verplicht de EU dat niet (want daar gaat het in dat stuk wel om).
+
36
- In sé -> in se
+
37
- Wiens -> wier indien meervoud
+
38
- Diens -> hun indien meervoud
+
39
- Diens -> hun indien meervoud

locale/af/LC_MESSAGES/django.po

2 additions and 2 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
20
20
#: blog/views.py:31
21
21
msgid "Notepad from a student"
22
22
msgstr ""
23
23
24
24
#: blog/views.py:48
25
25
msgid "Comment succesfully submitted!"
26
26
msgstr ""
27
27
28
28
#: blog/views.py:52
29
29
msgid ""
30
30
"An error occured while trying to submit your comment. Please try again later."
31
31
msgstr ""
32
32
33
33
#: blog/views.py:95
34
-
msgid "Weekly-archief"
+
34
msgid "Weekly-archief"
35
35
msgstr ""
36
36

locale/de/LC_MESSAGES/django.po

4 additions and 3 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
20
20
#: blog/views.py:31
21
21
msgid "Notepad from a student"
22
22
msgstr "Notizblock eines Schülers"
23
23
24
24
#: blog/views.py:48
25
25
msgid "Comment succesfully submitted!"
26
26
msgstr "Kommentar erfolgreich eingereicht!"
27
27
28
28
#: blog/views.py:52
29
29
msgid ""
30
30
"An error occured while trying to submit your comment. Please try again later."
31
31
msgstr ""
32
32
"Beim Versuch, Ihren Kommentar zu übermitteln, ist ein Fehler aufgetreten. Bitte versuchen Sie es später noch einmal."
33
-
+
33
"Bitte versuchen Sie es später noch einmal."
+
34
34
35
#: blog/views.py:95
35
-
msgid "Weekly-archief"
+
36
msgid "Weekly-archief"
36
37
msgstr "Reden ist Silber, schreiben ist Gold | Archiv"
37
38

locale/eo/LC_MESSAGES/django.po

2 additions and 2 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
20
20
#: blog/views.py:31
21
21
msgid "Notepad from a student"
22
22
msgstr ""
23
23
24
24
#: blog/views.py:48
25
25
msgid "Comment succesfully submitted!"
26
26
msgstr ""
27
27
28
28
#: blog/views.py:52
29
29
msgid ""
30
30
"An error occured while trying to submit your comment. Please try again later."
31
31
msgstr ""
32
32
33
33
#: blog/views.py:95
34
-
msgid "Weekly-archief"
+
34
msgid "Weekly-archief"
35
35
msgstr ""
36
36

locale/es/LC_MESSAGES/django.po

2 additions and 2 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
20
20
#: blog/views.py:31
21
21
msgid "Notepad from a student"
22
22
msgstr ""
23
23
24
24
#: blog/views.py:48
25
25
msgid "Comment succesfully submitted!"
26
26
msgstr ""
27
27
28
28
#: blog/views.py:52
29
29
msgid ""
30
30
"An error occured while trying to submit your comment. Please try again later."
31
31
msgstr ""
32
32
33
33
#: blog/views.py:95
34
-
msgid "Weekly-archief"
+
34
msgid "Weekly-archief"
35
35
msgstr ""
36
36

locale/fr/LC_MESSAGES/django.po

5 additions and 4 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
19
19
20
20
#: blog/views.py:31
21
21
msgid "Notepad from a student"
22
22
msgstr "Bloc-notes d'un étudiant"
23
23
24
24
#: blog/views.py:48
25
25
msgid "Comment succesfully submitted!"
26
26
msgstr "Commentaire réussi à soumettre!"
27
27
28
28
#: blog/views.py:52
29
29
msgid ""
30
30
"An error occured while trying to submit your comment. Please try again later."
31
31
msgstr "Une erreur s’est produite en essayant de soumettre votre commentaire. S’il vous plaît réessayez plus tard."
32
-
+
32
"Une erreur s’est produite en essayant de soumettre votre commentaire. S’il "
+
33
"vous plaît réessayez plus tard."
+
34
33
35
#: blog/views.py:95
34
-
msgid "Weekly-archief"
+
36
msgid "Weekly-archief"
35
37
msgstr "Parler c’est de l’argent, l’écriture c’est de l’or | Archive"
36
38
37
-

locale/fr-be/LC_MESSAGES/django.po → locale/fr_BE/LC_MESSAGES/django.po

9 additions and 12 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2021-11-24 14:00+0100\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
19
19
#: blog/views.py:23
20
-
msgid "Back to main page"
21
-
msgstr ""
22
-
23
-
#: blog/views.py:24
24
-
msgid "Contact"
25
-
msgstr ""
+
20
msgid "Notepad from a student"
+
21
msgstr ""
26
22
27
23
#: blog/views.py:26
28
-
msgid "Maarten's personal blog, with sprinkles and a dollop of healthy bugs."
29
-
msgstr ""
+
24
msgid "Comment succesfully submitted!"
+
25
msgstr ""
30
26
31
27
#: blog/views.py:87
32
-
msgid "Notepad from a student"
33
-
msgstr ""
+
28
msgid ""
+
29
"An error occured while trying to submit your comment. Please try again later."
+
30
msgstr ""
34
31
35
32
#: blog/views.py:186
36
-
msgid "Weekly-archief"
+
33
msgid "Weekly-archief"
37
34
msgstr ""
38
35

locale/nl/LC_MESSAGES/django.po

4 additions and 3 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
msgid ""
6
6
msgstr ""
7
7
"Project-Id-Version: \n"
8
8
"Report-Msgid-Bugs-To: \n"
9
9
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
10
-
"PO-Revision-Date: 2021-10-30 16:10+0200\n"
+
10
"PO-Revision-Date: 2021-10-30 16:10+0200\n"
11
11
"Last-Translator: \n"
12
12
"Language-Team: \n"
13
13
"Language: nl\n"
14
14
"MIME-Version: 1.0\n"
15
15
"Content-Type: text/plain; charset=UTF-8\n"
16
16
"Content-Transfer-Encoding: 8bit\n"
17
17
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
18
"X-Generator: Poedit 3.0\n"
19
19
20
20
#: blog/views.py:31
21
21
msgid "Notepad from a student"
22
22
msgstr "Studentikoos kladblok"
23
23
24
24
#: blog/views.py:48
25
25
msgid "Comment succesfully submitted!"
26
26
msgstr "Reactie met succes geplaatst!"
27
27
28
28
#: blog/views.py:52
29
29
msgid ""
30
30
"An error occured while trying to submit your comment. Please try again later."
31
31
msgstr ""
32
32
"Er is een fout opgetreden tijdens het plaatsen van uw reactie. Probeer het later opnieuw."
33
-
+
33
"later opnieuw."
+
34
34
35
#: blog/views.py:95
35
-
msgid "Weekly-archief"
+
36
msgid "Weekly-archief"
36
37
msgstr "Weekly-archief"
37
38
38
39
#, fuzzy
39
40
#~| msgid "Blog main page"
40
41
#~ msgid "Back to main page"
41
42
#~ msgstr "Blog // Hoofdpagina"
42
43
43
44
#~ msgid "Contact"
44
45
#~ msgstr "Contact"
45
46
46
47
#~ msgid ""
47
48
#~ "Maarten's personal blog, with sprinkles and a dollop of healthy bugs."
48
49
#~ msgstr ""
49
50
#~ "Maartens persoonlijke blog, met sprinkeltjes en een doperwtje aan gezonde "
50
51
#~ "bugs."
51
52

locale/nl-be/LC_MESSAGES/django.po → locale/nl_BE/LC_MESSAGES/django.po

10 additions and 13 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2021-11-24 14:00+0100\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
19
-
#: blog/views.py:23
20
-
msgid "Back to main page"
21
-
msgstr ""
22
-
23
-
#: blog/views.py:24
24
-
msgid "Contact"
25
-
msgstr ""
+
19
#: blog/views.py:31
+
20
msgid "Notepad from a student"
+
21
msgstr ""
26
22
27
23
#: blog/views.py:26
28
-
msgid "Maarten's personal blog, with sprinkles and a dollop of healthy bugs."
29
-
msgstr ""
+
24
msgid "Comment succesfully submitted!"
+
25
msgstr ""
30
26
31
27
#: blog/views.py:87
32
-
msgid "Notepad from a student"
33
-
msgstr ""
+
28
msgid ""
+
29
"An error occured while trying to submit your comment. Please try again later."
+
30
msgstr ""
34
31
35
32
#: blog/views.py:186
36
-
msgid "Weekly-archief"
+
33
msgid "Weekly-archief"
37
34
msgstr ""
38
35

migrations/0013_alter_comment_from_myself_alter_comment_reaction_to.py

24 additions and 0 deletions.

View changes Hide changes
+
1
+
2
from django.db import migrations, models
+
3
import django.db.models.deletion
+
4
+
5
+
6
class Migration(migrations.Migration):
+
7
+
8
    dependencies = [
+
9
        ('blog', '0012_auto_20220403_1326'),
+
10
    ]
+
11
+
12
    operations = [
+
13
        migrations.AlterField(
+
14
            model_name='comment',
+
15
            name='from_myself',
+
16
            field=models.BooleanField(default=False, help_text='I trust myself, so if I write a comment, I should be able\n        to use the entire HTML5 suite. Ticking this box activates the DTL "safe"\n        tag, instead of the "urlize" tag used for normal comments.'),
+
17
        ),
+
18
        migrations.AlterField(
+
19
            model_name='comment',
+
20
            name='reaction_to',
+
21
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.comment'),
+
22
        ),
+
23
    ]
+
24

models.py

12 additions and 3 deletions.

View changes Hide changes
1
1
from django.utils import translation
2
2
from django.template.defaultfilters import slugify
3
3
from django.db import models
4
4
from django.conf import settings  # Necessary to get the link to the media root folder
5
5
import pytz
6
6
import datetime
7
7
import os
8
8
import subprocess
9
9
10
10
from django.shortcuts import render as render_shortcut
11
11
12
12
""" New version:
13
13
- For each post, there's no longer a mandatory Dutch and English
14
14
  version. Instead, only the title needs to be in multiple languages.
15
15
- There's a new table for the links to the articles themselves. These include a
16
16
  language code and a foreign key to the post they belong to.
17
17
- If an article is available in the active language, but not tagged for the same
18
18
  dialect, then it should just show up without any warnings.
19
19
- If an article is not available in the active language, only the title should
20
20
  show up, but where the short intro text would normally be, there should be an
21
21
  explanation that it's only available in other languages, and provide links to
22
22
  those versions.
23
23
"""
24
24
25
25
# Look, you think this function is worthless, it's not. It's required to make
26
26
# migrations with manage.py, so here it stays, being empty and hollow like the
27
27
# piece of shit it is.
28
28
def post_title_directory():
29
29
    pass
30
30
        
31
31
32
32
class Post(models.Model):
33
33
    """ Represents a blog post."""
34
34
    published = models.DateTimeField(auto_now_add=True)
35
35
    visible = models.BooleanField(default=True, 
36
36
            help_text="Whether this post is shown in the index. If False, it's \
37
37
            only accessible by direct link.")
38
38
    # TODO: The titles should all be changed to 'unique=True' to avoid slug
39
39
    # collisions. But at this moment, there are still some posts that don't have
40
40
    # a title in all these languages (and "" collides with ""), so until that's
41
41
    # fixed, they're set to False.
42
42
    title_en = models.CharField(max_length=64, unique=False, blank=False)
43
43
    title_nl = models.CharField(max_length=64, unique=False, blank=False)
44
44
    title_fr = models.CharField(max_length=64, unique=False, blank=True)
45
45
    title_de = models.CharField(max_length=64, unique=False, blank=True)
46
46
    title_es = models.CharField(max_length=64, unique=False, blank=True)
47
47
    title_eo = models.CharField(max_length=64, unique=False, blank=True)
48
48
    title_af = models.CharField(max_length=64, unique=False, blank=True)
49
49
    title_nl_be=models.CharField(max_length=64, unique=False, blank=True)
50
50
    title_fr_be=models.CharField(max_length=64, unique=False, blank=True)
51
51
52
52
53
53
    def __str__(self):
54
54
        return self.title()
55
55
56
56
57
57
    def articles(self):
58
58
        #print(len(Article.objects.filter(post=self)))
59
59
        return Article.objects.filter(post=self)
60
60
        
61
61
    def article(self):
62
62
        language_code = translation.get_language()
63
63
        print(language_code)
64
-
        # Retrieves all articles that have this post as their foreign key
+
64
        # Retrieves all articles that have this post as their foreign key
65
65
        articles = Article.objects.filter(post=self)
66
66
        for a in articles:
67
67
            if a.language_code == language_code:
68
68
                return a
69
69
        # If no exact match was found, try again, but now accept other dialects
70
70
        # as well:
71
71
        for a in articles:
72
72
            if a.language_code.startswith(language_code):
73
73
                return a
74
74
        
75
75
        # If still no article was found, return None
76
76
        return None
77
77
78
78
    def title(self):
79
79
        language_code = translation.get_language()
80
80
        options = {'af': self.title_af,
81
81
                   'de': self.title_de,
82
82
                   'es': self.title_es,
83
83
                   'en': self.title_en,
84
84
                   'eo': self.title_eo,
85
85
                   'fr': self.title_fr,
86
86
                   'nl-be': self.title_nl_be,
87
87
                   'fr-be': self.title_fr_be,
88
88
                   'nl': self.title_nl}
89
89
        for code, translated_title in options.items():
90
90
            if language_code.startswith(code):
91
91
                return translated_title
92
92
        # If no return has happened, default to English
93
93
        return self.title_en
94
94
95
95
def org_to_html(file_path, slug, return_djhtml_path=False):
96
96
    """ Converts the given org formatted file to HTML.
97
97
    This function directly returns the resulting HTML code. This function uses
98
98
    the amazing Haskell library Pandoc to convert the file (and takes care
99
99
    of header id's and all that stuff).
100
100
    """
101
101
    # FIXME: Remove hardcoded link to media. Replace with media tag!
102
102
    # XXX: The reason I'm first converting all occurences of .jpg][ and .png][
103
103
    # to .jpgPANDOCBUG][ and .pngPANDOCBUG][, is because of a Pandoc bug that
104
104
    # removes the text links for images. It is afterwards converted back, no
105
105
    # worries.
106
106
    file = open(file_path, "r", encoding="utf-8")
107
107
    text = file.read()
108
108
    file.close()
109
109
    text = text.replace(".jpg][", ".jpgPANDOCBUG][")
110
110
    text = text.replace(".png][", ".pngPANDOCBUG][")
111
111
    file = open("/tmp/blog-file-"+slug+".org", "w", encoding="utf-8")
112
112
    file.write(text)
113
113
    file.close()
114
114
    # --wrap=none is necessary for the Article.headings method to function
115
115
    # properly, otherwise the heuristic fails on a regular basis
116
116
    html_text = subprocess.check_output(["pandoc", "--from=org", "--to=html", "--wrap=none", "/tmp/blog-file-"+slug+".org"])
117
117
    html_text = html_text.decode("utf-8").replace(".jpgPANDOCBUG", ".jpg")
118
118
    html_text = html_text.replace(".pngPANDOCBUG", ".png")
119
119
    # Detecting where the footnote section starts, and removing that tag
120
120
    html_text = html_text.replace('<section class="footnotes footnotes-end-of-document" role="doc-endnotes">', "")
121
121
    #rendered_file_path = "file_path.rpartition('.')[0] + ".djhtml"
122
122
    rendered_file_path = "/tmp/blog-file-"+slug+".djhtml"
123
123
    rendered_file = open(rendered_file_path, "w", encoding="utf-8")
124
124
    rendered_file.write(html_text)
125
125
    rendered_file.close()
126
126
    if return_djhtml_path:
127
127
        return rendered_file_path
128
128
    else:
129
129
        return html_text
130
130
131
131
class Article(models.Model):
132
132
    AFRIKAANS = 'af'
133
133
    BELGIAN_FRENCH = 'fr-be'
134
134
    DUTCH = 'nl'
135
135
    ESPERANTO = 'eo'
136
136
    ENGLISH = 'en'
137
137
    FLEMISH = 'nl-be'
138
138
    FRENCH = 'fr'
139
139
    GERMAN = 'de'
140
140
    SPANISH = 'es'
141
141
142
142
    LANGUAGE_CODES = [
143
143
        (AFRIKAANS, 'Afrikaans'),
144
144
        (BELGIAN_FRENCH, 'Français (Belgique)'),
145
145
        (DUTCH, 'Nederlands'),
146
146
        (ESPERANTO, 'Esperanto'),
147
147
        (ENGLISH, 'English'),
148
148
        (FLEMISH, 'Vlaams'),
149
149
        (FRENCH, 'Français'),
150
150
        (GERMAN, 'Deutsch'),
151
151
        (SPANISH, 'Español')]
152
152
153
153
    visible = models.BooleanField(default=True)
154
154
    post = models.ForeignKey(Post, on_delete=models.CASCADE)
155
155
    language_code = models.CharField(max_length=16,
156
156
                                      choices = LANGUAGE_CODES,
157
157
                                      blank=False)
158
158
    # file_path shouldn't be unique, because the same article file could be used
159
159
    # for multiple dialects of the same language.
160
160
    file_path = models.FilePathField(path=settings.MEDIA_ROOT + "blog/articles/",
161
161
                                     blank=False)
162
162
    # Same reason, slug shouldn't be unique
163
163
    slug = models.SlugField(unique=False, blank=False, allow_unicode=True)
164
164
    title = models.CharField(max_length=64, unique=False, blank=True)
165
165
166
166
    def text(self):
167
167
        return org_to_html(self.file_path, self.slug)
168
168
    def djhtml_file(self):
169
169
        return org_to_html(self.file_path, self.slug, return_djhtml_path=True)
170
170
    def headings(self):
171
171
        """ Returns the headings and their slugs present in this article. Useful
172
172
        for building the navigation drawer. """
173
173
        text = self.text()
174
174
        headers = list()
175
175
        lines = text.splitlines()
176
176
177
177
        for line in lines:
178
178
            # Heuristic approach to collecting headers
179
179
            if "<h" in line and "id=" in line and "</h" in line:
180
180
                first_part, second_part = line.split(">", maxsplit=1)
181
181
                slug = first_part.split('"')[-2]
182
182
                header = second_part.split("<", maxsplit=1)[0]
183
183
                headers.append((header, slug))
184
184
        return headers
185
185
186
186
187
187
188
188
189
189
class Comment(models.Model):
190
190
    """ Represents a comment on a blog post.
191
191
    Comments are not filtered by language; a
192
192
    comment made by someone reading the article in Dutch, that's written in
193
193
    Dutch, will show up (unedited) for somebody whom's reading the Spanish
194
194
    version.
195
195
    """
196
196
    # Allows me to manually hide certain messages if need be
197
197
    visible = models.BooleanField(default=True)
198
198
    date = models.DateTimeField(auto_now_add=True)
199
199
    name = models.CharField(max_length=64, blank=True)
200
200
    text = models.TextField(max_length=10000, blank=False)  # Should be more than enough
201
201
    # reaction_to is null if it's not a reaction to an existing comment
202
202
    reaction_to = models.ForeignKey('Comment', on_delete=models.CASCADE, null=True)
203
-
    from_myself = models.BooleanField(default=False)
204
-
    post = models.ForeignKey(
+
203
            null=True, blank=True)
+
204
    # blank=True is also needed per the Django documentation:
+
205
    # For both string-based and non-string-based fields, you will also need to
+
206
    # set blank=True if you wish to permit empty values in forms, as the null
+
207
    # parameter only affects database storage.
+
208
    from_myself = models.BooleanField(
+
209
        help_text="""I trust myself, so if I write a comment, I should be able
+
210
        to use the entire HTML5 suite. Ticking this box activates the DTL "safe"
+
211
        tag, instead of the "urlize" tag used for normal comments.""",
+
212
        default=False)
+
213
    post = models.ForeignKey(
205
214
        Post,
206
215
        on_delete=models.CASCADE,
207
216
        null=False,
208
217
        )
209
218
    class meta:
210
219
        ordering = ['date']  # When printed, prints the oldest comment first.
211
220
212
221
    def reactions(self):
213
222
        # Should return the comments that are a reaction to this comment
214
223
        return Comment.objects.filter(reaction_to=self).order_by('-date')
215
224
    def __str__(self):
216
225
        return str(self.id) +" | "+ self.name
217
226
    def is_new(self):
218
227
        # True if this comment was created less than one minute ago.
219
228
        now = datetime.datetime.utcnow().replace(tzinfo=pytz.UTC)
220
229
        delta = now-self.date
221
230
        return delta.seconds < 60
222
231
223
232
224
233
class FeedItem(models.Model):
225
234
    """ An item that shows up in the RSS feed."""
226
235
    title = models.CharField(max_length=64)
227
236
    added = models.DateTimeField(auto_now_add=True)
228
237
    description = models.CharField(max_length=400)
229
238
    link = models.URLField()
230
239

templates/blog/comment.djhtml

5 additions and 1 deletion.

View changes Hide changes
1
1
{% load humanize %}
2
2
3
3
    
4
4
{# Check if this comment was added just now #}
5
5
{% if comment.is_new %}
6
6
<div class="comment recently-posted" id="reago-{{ comment.id }}">
7
7
{% else %}
8
8
<div class="comment" id="reago-{{ comment.id }}">
9
9
{% endif %}
10
10
11
11
12
12
<!--<div class="comment recently-posted" id="reago-{{ comment.id }}">-->
13
13
    <p><a href="#reago-{{ comment.id }}">#{{ comment.id }}</a>
14
14
        {{ comment.name }} |
15
15
        {{ comment.date|naturaltime }} 
16
16
       <span class="small-detail">({{ comment.date|date:"DATETIME_FORMAT" }})</span>
17
17
    </p>
18
18
    <p>{{ comment.text|urlize }}</p>
19
-
    <details>
+
19
        <p>{{ comment.text|safe }}</p>
+
20
    {% else %}
+
21
        <p>{{ comment.text|urlize }}</p>
+
22
    {% endif %}
+
23
    <details>
20
24
        <summary class="ripple"> {% translate "Respond" %}</summary>
21
25
        {# Doing action="#reago-{{ comment.id }}" is a clever hack if I say so #}
22
26
        {# myself; it makes sure that, after submission, the user is immediately #}
23
27
        {# redirected to the comment he responded to, instead of going to the #}
24
28
        {# top again. Pretty neat huh? =D #}
25
29
        <form method="POST" action="#reago-{{ comment.id }}">
26
30
            {% csrf_token %}
27
31
            <input type="hidden" name="reaction_to" value="{{ comment.id }}">
28
32
            <input type="hidden" name="post" value="{{ article.post.id }}">
29
33
            <input type="text" id="name-{{ comment.id }}" name="name" maxlength="64" required>
30
34
            <label for="name-{{ comment.id }}">{% translate "Your name" %}</label><br>
31
35
            <textarea placeholder="{% translate "Your response" %}" rows="2" cols="30" name="text" id="text-{{ comment.id }}" maxlength="10000" required></textarea><br>
32
36
            <input type="submit" value="{% translate "Submit" %}">
33
37
        </form>
34
38
    </details>
35
39
    {% for subcomment in comment.reactions %}
36
40
        {% include "blog/comment.djhtml" with comment=subcomment %}
37
41
    {% endfor %}
38
42
</div>
39
43

templates/blog/locale/af/LC_MESSAGES/django.po

7 additions and 7 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
20
20
#: blog/templates/blog/comment.djhtml:21
21
-
msgid "Respond"
+
21
msgid "Respond"
22
22
msgstr ""
23
23
24
24
#: blog/templates/blog/comment.djhtml:31 blog/templates/blog/post.djhtml:142
25
-
msgid "Your name"
+
25
msgid "Your name"
26
26
msgstr ""
27
27
28
28
#: blog/templates/blog/comment.djhtml:32
29
-
msgid "Your response"
+
29
msgid "Your response"
30
30
msgstr ""
31
31
32
32
#: blog/templates/blog/comment.djhtml:33 blog/templates/blog/post.djhtml:144
33
-
msgid "Submit"
+
33
msgid "Submit"
34
34
msgstr ""
35
35
36
36
#: blog/templates/blog/index.djhtml:20
37
37
msgid "Maarten's blog"
38
38
msgstr ""
39
39
40
40
#: blog/templates/blog/index.djhtml:22
41
41
msgid ""
42
42
"The always coherently put together, yet\n"
43
43
"fuzzy blog of whatever sprouts in my mind."
44
44
msgstr ""
45
45
46
46
#: blog/templates/blog/index.djhtml:29
47
47
msgid "Notepad of a student"
48
48
msgstr ""
49
49
50
50
#: blog/templates/blog/index.djhtml:37
51
51
msgid "Navigation"
52
52
msgstr ""
53
53
54
54
#: blog/templates/blog/index.djhtml:38
55
55
msgid "Front page"
56
56
msgstr ""
57
57
58
58
#: blog/templates/blog/index.djhtml:49 blog/templates/blog/index.djhtml:114
59
59
msgid "Flemish"
60
60
msgstr ""
61
61
62
62
#: blog/templates/blog/index.djhtml:51 blog/templates/blog/index.djhtml:116
63
63
msgid "Belgian French"
64
64
msgstr ""
65
65
66
66
#: blog/templates/blog/index.djhtml:65
67
67
msgid "Blog"
68
68
msgstr ""
69
69
70
70
#: blog/templates/blog/index.djhtml:67
71
71
msgid ""
72
72
"Welcome to my blog. Here, I write\n"
73
73
"        about things that interest me. Politics, coding,\n"
74
74
"        studying, life, or anything else I fancy rambling\n"
75
75
"        about. If you're in luck, I may've written it in a\n"
76
76
"        language that you understand better than English.\n"
77
77
"        "
78
78
msgstr ""
79
79
80
80
#: blog/templates/blog/index.djhtml:85
81
81
msgid "Open archive"
82
82
msgstr ""
83
83
84
84
#: blog/templates/blog/index.djhtml:99
85
85
msgid "Read on"
86
86
msgstr ""
87
87
88
88
#: blog/templates/blog/index.djhtml:104
89
89
#, python-format
90
90
msgid ""
91
91
"This blog\n"
92
92
"               post is not available in %(cur_lang)s."
93
93
msgstr ""
94
94
95
95
#: blog/templates/blog/index.djhtml:106
96
96
msgid ""
97
97
"\n"
98
98
"                    However, it is available in \n"
99
99
"                    "
100
100
msgid_plural ""
101
101
"\n"
102
102
"                    If you want, you can choose to read it in one of these\n"
103
103
"                    languages: <br>\n"
104
104
"                    "
105
105
msgstr[0] ""
106
106
msgstr[1] ""
107
107
108
108
#: blog/templates/blog/monthly_archive.djhtml:31
109
109
msgid "Weekly | Archief"
110
110
msgstr ""
111
111
112
112
#: blog/templates/blog/monthly_archive.djhtml:34
113
113
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
114
114
msgstr ""
115
115
116
116
#: blog/templates/blog/post.djhtml:110
117
117
msgid "Table of contents"
118
118
msgstr ""
119
119
120
120
#: blog/templates/blog/post.djhtml:111
121
121
msgid "Blog index"
122
122
msgstr ""
123
123
124
124
#: blog/templates/blog/post.djhtml:112
125
125
msgid "Main page"
126
126
msgstr ""
127
127
128
128
#: blog/templates/blog/post.djhtml:136
129
-
msgid "Comments"
+
129
msgid "Comments"
130
130
msgstr ""
131
131
132
132
#: blog/templates/blog/post.djhtml:143
133
-
msgid "Your comment"
+
133
msgid "Your comment"
134
134
msgstr ""
135
135

templates/blog/locale/de/LC_MESSAGES/django.po

14 additions and 13 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
20
20
#: blog/templates/blog/comment.djhtml:21
21
-
msgid "Respond"
+
21
msgid "Respond"
22
22
msgstr "Antworten"
23
23
24
24
#: blog/templates/blog/comment.djhtml:31 blog/templates/blog/post.djhtml:142
25
-
msgid "Your name"
+
25
msgid "Your name"
26
26
msgstr "Ihr Name"
27
27
28
28
#: blog/templates/blog/comment.djhtml:32
29
-
msgid "Your response"
+
29
msgid "Your response"
30
30
msgstr "Ihre Antwort"
31
31
32
32
#: blog/templates/blog/comment.djhtml:33 blog/templates/blog/post.djhtml:144
33
-
msgid "Submit"
+
33
msgid "Submit"
34
34
msgstr "Abschicken"
35
35
36
36
#: blog/templates/blog/index.djhtml:20
37
37
msgid "Maarten's blog"
38
38
msgstr "Blog von Maarten"
39
39
40
40
#: blog/templates/blog/index.djhtml:22
41
41
msgid ""
42
42
"The always coherently put together, yet\n"
43
43
"fuzzy blog of whatever sprouts in my mind."
44
44
msgstr ""
45
45
"Das immer kohärent zusammengestellte, aber verschwommene Blog von allem, was in "
46
-
"meinem Kopf sprießt."
47
-
+
46
"in meinem Kopf sprießt."
+
47
48
48
#: blog/templates/blog/index.djhtml:29
49
49
msgid "Notepad of a student"
50
50
msgstr "Notizblock eines Schülers"
51
51
52
52
#: blog/templates/blog/index.djhtml:37
53
53
msgid "Navigation"
54
54
msgstr "Navigation"
55
55
56
56
#: blog/templates/blog/index.djhtml:38
57
57
msgid "Front page"
58
58
msgstr "Hauptseite"
59
59
60
60
#: blog/templates/blog/index.djhtml:49 blog/templates/blog/index.djhtml:114
61
61
msgid "Flemish"
62
62
msgstr "Flämisch"
63
63
64
64
#: blog/templates/blog/index.djhtml:51 blog/templates/blog/index.djhtml:116
65
65
msgid "Belgian French"
66
66
msgstr "Belgisches Französisch"
67
67
68
68
#: blog/templates/blog/index.djhtml:65
69
69
msgid "Blog"
70
70
msgstr "Blog"
71
71
72
72
#: blog/templates/blog/index.djhtml:67
73
73
msgid ""
74
74
"Welcome to my blog. Here, I write\n"
75
75
"        about things that interest me. Politics, coding,\n"
76
76
"        studying, life, or anything else I fancy rambling\n"
77
77
"        about. If you're in luck, I may've written it in a\n"
78
78
"        language that you understand better than English.\n"
79
79
"        "
80
80
msgstr ""
81
81
"Willkommen auf meinem Blog. Hier schreibe ich über Dinge, die mich "
82
82
"interessieren. Politik, Codierung, Studium, Leben oder alles andere, worüber ich "
83
-
"mich ausbreiten möchte. Wenn Sie Glück haben, habe ich es vielleicht in einer "
84
-
"Sprache geschrieben, die Sie besser verstehen als Englisch."
85
-
+
83
"ich mich ausbreiten möchte. Wenn Sie Glück haben, habe ich es vielleicht in "
+
84
"einer Sprache geschrieben, die Sie besser verstehen als Englisch."
+
85
86
86
#: blog/templates/blog/index.djhtml:85
87
87
msgid "Open archive"
88
88
msgstr "Archiv öffnen"
89
89
90
90
#: blog/templates/blog/index.djhtml:99
91
91
msgid "Read on"
92
92
msgstr "Mehr lesen"
93
93
94
94
#: blog/templates/blog/index.djhtml:104
95
95
#, python-format
96
96
msgid ""
97
97
"This blog\n"
98
98
"               post is not available in %(cur_lang)s."
99
99
msgstr "Dieser Blogbeitrag ist auf %(cur_lang)s nicht verfügbar."
100
100
101
101
#: blog/templates/blog/index.djhtml:106
102
102
msgid ""
103
103
"\n"
104
104
"                    However, it is available in \n"
105
105
"                    "
106
106
msgid_plural ""
107
107
"\n"
108
108
"                    If you want, you can choose to read it in one of these\n"
109
109
"                    languages: <br>\n"
110
110
"                    "
111
111
msgstr[0] "Es ist jedoch auf verfügbar auf "
112
112
msgstr[1] "Wenn Sie möchten, können Sie es in einer dieser Sprachen lesen: <br>"
113
-
+
113
"Wenn Sie möchten, können Sie es in einer dieser Sprachen lesen: <br>"
+
114
114
115
#: blog/templates/blog/monthly_archive.djhtml:31
115
116
msgid "Weekly | Archief"
116
117
msgstr "Reden ist Silber, schreiben ist Gold | Archiv"
117
118
118
119
#: blog/templates/blog/monthly_archive.djhtml:34
119
120
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
120
121
msgstr ""
121
122
122
123
#: blog/templates/blog/post.djhtml:110
123
124
msgid "Table of contents"
124
125
msgstr "Inhaltsverzeichnis"
125
126
126
127
#: blog/templates/blog/post.djhtml:111
127
128
msgid "Blog index"
128
129
msgstr "Blog | Index"
129
130
130
131
#: blog/templates/blog/post.djhtml:112
131
132
msgid "Main page"
132
133
msgstr "Hauptseite"
133
134
134
135
#: blog/templates/blog/post.djhtml:136
135
-
msgid "Comments"
+
136
msgid "Comments"
136
137
msgstr "Kommentare"
137
138
138
139
#: blog/templates/blog/post.djhtml:143
139
-
msgid "Your comment"
+
140
msgid "Your comment"
140
141
msgstr "Ihr Kommentar"
141
142
142
143
#~ msgid "This article in other languages"
143
144
#~ msgstr "Dieser Artikel in anderen Sprachen"
144
145

templates/blog/locale/eo/LC_MESSAGES/django.po

7 additions and 7 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
20
20
#: blog/templates/blog/comment.djhtml:21
21
-
msgid "Respond"
+
21
msgid "Respond"
22
22
msgstr ""
23
23
24
24
#: blog/templates/blog/comment.djhtml:31 blog/templates/blog/post.djhtml:142
25
-
msgid "Your name"
+
25
msgid "Your name"
26
26
msgstr ""
27
27
28
28
#: blog/templates/blog/comment.djhtml:32
29
-
msgid "Your response"
+
29
msgid "Your response"
30
30
msgstr ""
31
31
32
32
#: blog/templates/blog/comment.djhtml:33 blog/templates/blog/post.djhtml:144
33
-
msgid "Submit"
+
33
msgid "Submit"
34
34
msgstr ""
35
35
36
36
#: blog/templates/blog/index.djhtml:20
37
37
msgid "Maarten's blog"
38
38
msgstr ""
39
39
40
40
#: blog/templates/blog/index.djhtml:22
41
41
msgid ""
42
42
"The always coherently put together, yet\n"
43
43
"fuzzy blog of whatever sprouts in my mind."
44
44
msgstr ""
45
45
46
46
#: blog/templates/blog/index.djhtml:29
47
47
msgid "Notepad of a student"
48
48
msgstr ""
49
49
50
50
#: blog/templates/blog/index.djhtml:37
51
51
msgid "Navigation"
52
52
msgstr ""
53
53
54
54
#: blog/templates/blog/index.djhtml:38
55
55
msgid "Front page"
56
56
msgstr ""
57
57
58
58
#: blog/templates/blog/index.djhtml:49 blog/templates/blog/index.djhtml:114
59
59
msgid "Flemish"
60
60
msgstr ""
61
61
62
62
#: blog/templates/blog/index.djhtml:51 blog/templates/blog/index.djhtml:116
63
63
msgid "Belgian French"
64
64
msgstr ""
65
65
66
66
#: blog/templates/blog/index.djhtml:65
67
67
msgid "Blog"
68
68
msgstr ""
69
69
70
70
#: blog/templates/blog/index.djhtml:67
71
71
msgid ""
72
72
"Welcome to my blog. Here, I write\n"
73
73
"        about things that interest me. Politics, coding,\n"
74
74
"        studying, life, or anything else I fancy rambling\n"
75
75
"        about. If you're in luck, I may've written it in a\n"
76
76
"        language that you understand better than English.\n"
77
77
"        "
78
78
msgstr ""
79
79
80
80
#: blog/templates/blog/index.djhtml:85
81
81
msgid "Open archive"
82
82
msgstr ""
83
83
84
84
#: blog/templates/blog/index.djhtml:99
85
85
msgid "Read on"
86
86
msgstr ""
87
87
88
88
#: blog/templates/blog/index.djhtml:104
89
89
#, python-format
90
90
msgid ""
91
91
"This blog\n"
92
92
"               post is not available in %(cur_lang)s."
93
93
msgstr ""
94
94
95
95
#: blog/templates/blog/index.djhtml:106
96
96
msgid ""
97
97
"\n"
98
98
"                    However, it is available in \n"
99
99
"                    "
100
100
msgid_plural ""
101
101
"\n"
102
102
"                    If you want, you can choose to read it in one of these\n"
103
103
"                    languages: <br>\n"
104
104
"                    "
105
105
msgstr[0] ""
106
106
msgstr[1] ""
107
107
108
108
#: blog/templates/blog/monthly_archive.djhtml:31
109
109
msgid "Weekly | Archief"
110
110
msgstr ""
111
111
112
112
#: blog/templates/blog/monthly_archive.djhtml:34
113
113
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
114
114
msgstr ""
115
115
116
116
#: blog/templates/blog/post.djhtml:110
117
117
msgid "Table of contents"
118
118
msgstr ""
119
119
120
120
#: blog/templates/blog/post.djhtml:111
121
121
msgid "Blog index"
122
122
msgstr ""
123
123
124
124
#: blog/templates/blog/post.djhtml:112
125
125
msgid "Main page"
126
126
msgstr ""
127
127
128
128
#: blog/templates/blog/post.djhtml:136
129
-
msgid "Comments"
+
129
msgid "Comments"
130
130
msgstr ""
131
131
132
132
#: blog/templates/blog/post.djhtml:143
133
-
msgid "Your comment"
+
133
msgid "Your comment"
134
134
msgstr ""
135
135

templates/blog/locale/es/LC_MESSAGES/django.po

7 additions and 7 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
#, fuzzy
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
9
"Report-Msgid-Bugs-To: \n"
10
10
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
14
"Language: \n"
15
15
"MIME-Version: 1.0\n"
16
16
"Content-Type: text/plain; charset=UTF-8\n"
17
17
"Content-Transfer-Encoding: 8bit\n"
18
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
19
20
20
#: blog/templates/blog/comment.djhtml:21
21
-
msgid "Respond"
+
21
msgid "Respond"
22
22
msgstr ""
23
23
24
24
#: blog/templates/blog/comment.djhtml:31 blog/templates/blog/post.djhtml:142
25
-
msgid "Your name"
+
25
msgid "Your name"
26
26
msgstr ""
27
27
28
28
#: blog/templates/blog/comment.djhtml:32
29
-
msgid "Your response"
+
29
msgid "Your response"
30
30
msgstr ""
31
31
32
32
#: blog/templates/blog/comment.djhtml:33 blog/templates/blog/post.djhtml:144
33
-
msgid "Submit"
+
33
msgid "Submit"
34
34
msgstr ""
35
35
36
36
#: blog/templates/blog/index.djhtml:20
37
37
msgid "Maarten's blog"
38
38
msgstr ""
39
39
40
40
#: blog/templates/blog/index.djhtml:22
41
41
msgid ""
42
42
"The always coherently put together, yet\n"
43
43
"fuzzy blog of whatever sprouts in my mind."
44
44
msgstr ""
45
45
46
46
#: blog/templates/blog/index.djhtml:29
47
47
msgid "Notepad of a student"
48
48
msgstr ""
49
49
50
50
#: blog/templates/blog/index.djhtml:37
51
51
msgid "Navigation"
52
52
msgstr ""
53
53
54
54
#: blog/templates/blog/index.djhtml:38
55
55
msgid "Front page"
56
56
msgstr ""
57
57
58
58
#: blog/templates/blog/index.djhtml:49 blog/templates/blog/index.djhtml:114
59
59
msgid "Flemish"
60
60
msgstr ""
61
61
62
62
#: blog/templates/blog/index.djhtml:51 blog/templates/blog/index.djhtml:116
63
63
msgid "Belgian French"
64
64
msgstr ""
65
65
66
66
#: blog/templates/blog/index.djhtml:65
67
67
msgid "Blog"
68
68
msgstr ""
69
69
70
70
#: blog/templates/blog/index.djhtml:67
71
71
msgid ""
72
72
"Welcome to my blog. Here, I write\n"
73
73
"        about things that interest me. Politics, coding,\n"
74
74
"        studying, life, or anything else I fancy rambling\n"
75
75
"        about. If you're in luck, I may've written it in a\n"
76
76
"        language that you understand better than English.\n"
77
77
"        "
78
78
msgstr ""
79
79
80
80
#: blog/templates/blog/index.djhtml:85
81
81
msgid "Open archive"
82
82
msgstr ""
83
83
84
84
#: blog/templates/blog/index.djhtml:99
85
85
msgid "Read on"
86
86
msgstr ""
87
87
88
88
#: blog/templates/blog/index.djhtml:104
89
89
#, python-format
90
90
msgid ""
91
91
"This blog\n"
92
92
"               post is not available in %(cur_lang)s."
93
93
msgstr ""
94
94
95
95
#: blog/templates/blog/index.djhtml:106
96
96
msgid ""
97
97
"\n"
98
98
"                    However, it is available in \n"
99
99
"                    "
100
100
msgid_plural ""
101
101
"\n"
102
102
"                    If you want, you can choose to read it in one of these\n"
103
103
"                    languages: <br>\n"
104
104
"                    "
105
105
msgstr[0] ""
106
106
msgstr[1] ""
107
107
108
108
#: blog/templates/blog/monthly_archive.djhtml:31
109
109
msgid "Weekly | Archief"
110
110
msgstr ""
111
111
112
112
#: blog/templates/blog/monthly_archive.djhtml:34
113
113
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
114
114
msgstr ""
115
115
116
116
#: blog/templates/blog/post.djhtml:110
117
117
msgid "Table of contents"
118
118
msgstr ""
119
119
120
120
#: blog/templates/blog/post.djhtml:111
121
121
msgid "Blog index"
122
122
msgstr ""
123
123
124
124
#: blog/templates/blog/post.djhtml:112
125
125
msgid "Main page"
126
126
msgstr ""
127
127
128
128
#: blog/templates/blog/post.djhtml:136
129
-
msgid "Comments"
+
129
msgid "Comments"
130
130
msgstr ""
131
131
132
132
#: blog/templates/blog/post.djhtml:143
133
-
msgid "Your comment"
+
133
msgid "Your comment"
134
134
msgstr ""
135
135

templates/blog/locale/fr-be/LC_MESSAGES/django.po

0 additions and 74 deletions.

View changes Hide changes
1
-
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
-
# This file is distributed under the same license as the PACKAGE package.
3
-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
-
#
5
-
#, fuzzy
6
-
msgid ""
7
-
msgstr ""
8
-
"Project-Id-Version: PACKAGE VERSION\n"
9
-
"Report-Msgid-Bugs-To: \n"
10
-
"POT-Creation-Date: 2021-11-24 14:00+0100\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
-
"Language-Team: LANGUAGE <LL@li.org>\n"
14
-
"Language: \n"
15
-
"MIME-Version: 1.0\n"
16
-
"Content-Type: text/plain; charset=UTF-8\n"
17
-
"Content-Transfer-Encoding: 8bit\n"
18
-
19
-
#: blog/templates/blog/index.djhtml:20
20
-
msgid "Maarten's blog"
21
-
msgstr ""
22
-
23
-
#: blog/templates/blog/index.djhtml:22
24
-
msgid ""
25
-
"The always coherently put together, yet\n"
26
-
"fuzzy blog of whatever sprouts in my mind."
27
-
msgstr ""
28
-
29
-
#: blog/templates/blog/index.djhtml:28
30
-
msgid "Notepad of a student"
31
-
msgstr ""
32
-
33
-
#: blog/templates/blog/index.djhtml:37
34
-
msgid "Navigation"
35
-
msgstr ""
36
-
37
-
#: blog/templates/blog/index.djhtml:42
38
-
msgid "Front page"
39
-
msgstr ""
40
-
41
-
#: blog/templates/blog/index.djhtml:49
42
-
msgid "Blog"
43
-
msgstr ""
44
-
45
-
#: blog/templates/blog/index.djhtml:51
46
-
msgid ""
47
-
"Welcome to my blog. Here, I write\n"
48
-
"        about things that interest me. Politics, coding,\n"
49
-
"        studying, life, or anything else I fancy rambling\n"
50
-
"        about. If you're in luck, I may've written it in a\n"
51
-
"        language that you understand better than English.\n"
52
-
"        "
53
-
msgstr ""
54
-
55
-
#: blog/templates/blog/index.djhtml:68
56
-
msgid "Open archive"
57
-
msgstr ""
58
-
59
-
#: blog/templates/blog/index.djhtml:78 blog/templates/blog/post.djhtml:94
60
-
msgid "Read on"
61
-
msgstr ""
62
-
63
-
#: blog/templates/blog/monthly_archive.djhtml:16
64
-
msgid "Weekly | Archief"
65
-
msgstr ""
66
-
67
-
#: blog/templates/blog/monthly_archive.djhtml:19
68
-
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
69
-
msgstr ""
70
-
71
-
#: blog/templates/blog/post.djhtml:24
72
-
msgid "This article in other languages"
73
-
msgstr ""
74
-

templates/blog/locale/fr/LC_MESSAGES/django.po

14 additions and 12 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
msgid ""
6
6
msgstr ""
7
7
"Project-Id-Version: \n"
8
8
"Report-Msgid-Bugs-To: \n"
9
9
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
10
-
"PO-Revision-Date: 2021-10-30 16:01+0200\n"
+
10
"PO-Revision-Date: 2021-10-30 16:01+0200\n"
11
11
"Last-Translator: \n"
12
12
"Language-Team: \n"
13
13
"Language: fr\n"
14
14
"MIME-Version: 1.0\n"
15
15
"Content-Type: text/plain; charset=UTF-8\n"
16
16
"Content-Transfer-Encoding: 8bit\n"
17
17
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
18
"X-Generator: Poedit 3.0\n"
19
19
20
20
#: blog/templates/blog/comment.djhtml:21
21
-
msgid "Respond"
+
21
msgid "Respond"
22
22
msgstr "Répondre"
23
23
24
24
#: blog/templates/blog/comment.djhtml:31 blog/templates/blog/post.djhtml:142
25
-
msgid "Your name"
+
25
msgid "Your name"
26
26
msgstr "Votre nom"
27
27
28
28
#: blog/templates/blog/comment.djhtml:32
29
-
msgid "Your response"
+
29
msgid "Your response"
30
30
msgstr "Votre réponse"
31
31
32
32
#: blog/templates/blog/comment.djhtml:33 blog/templates/blog/post.djhtml:144
33
-
msgid "Submit"
+
33
msgid "Submit"
34
34
msgstr "Envoyer"
35
35
36
36
#: blog/templates/blog/index.djhtml:20
37
37
msgid "Maarten's blog"
38
38
msgstr "Blog de Maarten"
39
39
40
40
#: blog/templates/blog/index.djhtml:22
41
41
msgid ""
42
42
"The always coherently put together, yet\n"
43
43
"fuzzy blog of whatever sprouts in my mind."
44
44
msgstr ""
45
45
"Le toujours mis de façon cohérente ensemble, mais floue de ce que les germes "
46
46
"dans mon esprit."
47
47
48
48
#: blog/templates/blog/index.djhtml:29
49
49
msgid "Notepad of a student"
50
50
msgstr "Bloc-notes d’un étudiant"
51
51
52
52
#: blog/templates/blog/index.djhtml:37
53
53
msgid "Navigation"
54
54
msgstr "Navigation"
55
55
56
56
#: blog/templates/blog/index.djhtml:38
57
57
msgid "Front page"
58
58
msgstr "Page d'acceuil"
59
59
60
60
#: blog/templates/blog/index.djhtml:49 blog/templates/blog/index.djhtml:114
61
61
msgid "Flemish"
62
62
msgstr "Flamand"
63
63
64
64
#: blog/templates/blog/index.djhtml:51 blog/templates/blog/index.djhtml:116
65
65
msgid "Belgian French"
66
66
msgstr "français belge"
67
67
68
68
#: blog/templates/blog/index.djhtml:65
69
69
msgid "Blog"
70
70
msgstr "Blog"
71
71
72
72
#: blog/templates/blog/index.djhtml:67
73
73
msgid ""
74
74
"Welcome to my blog. Here, I write\n"
75
75
"        about things that interest me. Politics, coding,\n"
76
76
"        studying, life, or anything else I fancy rambling\n"
77
77
"        about. If you're in luck, I may've written it in a\n"
78
78
"        language that you understand better than English.\n"
79
79
"        "
80
80
msgstr ""
81
81
"Bienvenue dans mon blog. Ici j'écris des choses qui m'intéressent. La "
82
82
"politique, le codage, l'étude, la vie, ou autre chose dont j'ai envie de me "
83
83
"venger."
84
84
85
85
#: blog/templates/blog/index.djhtml:85
86
86
msgid "Open archive"
87
87
msgstr "Ouvrir l'archive"
88
88
89
89
#: blog/templates/blog/index.djhtml:99
90
90
msgid "Read on"
91
91
msgstr "Lire plus"
92
92
93
93
#: blog/templates/blog/index.djhtml:104
94
94
#, python-format
95
95
msgid ""
96
96
"This blog\n"
97
97
"               post is not available in %(cur_lang)s."
98
98
msgstr ""
99
-
"Cet article de blog n’est pas disponible en %(cur_lang)s."
100
-
+
99
101
100
#: blog/templates/blog/index.djhtml:106
102
101
msgid ""
103
102
"\n"
104
103
"                    However, it is available in \n"
105
104
"                    "
106
105
msgid_plural ""
107
106
"\n"
108
107
"                    If you want, you can choose to read it in one of these\n"
109
108
"                    languages: <br>\n"
110
109
"                    "
111
110
msgstr[0] "\n"
112
-
"Cependant, il est disponible en "
+
111
"\n"
+
112
"Cependant, il est disponible en "
113
113
msgstr[1] "\n"
114
-
"Si vous voulez, vous pouvez choisir de le lire dans l'une des autres langues: <br>"
115
-
+
114
"\n"
+
115
"Si vous voulez, vous pouvez choisir de le lire dans l'une des autres "
+
116
"langues: <br>"
+
117
116
118
#: blog/templates/blog/monthly_archive.djhtml:31
117
119
msgid "Weekly | Archief"
118
120
msgstr "Parler c’est de l’argent, l’écriture c’est de l’or | Archive"
119
121
120
122
#: blog/templates/blog/monthly_archive.djhtml:34
121
123
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
122
124
msgstr ""
123
125
124
126
#: blog/templates/blog/post.djhtml:110
125
127
msgid "Table of contents"
126
128
msgstr "Table des matières"
127
129
128
130
#: blog/templates/blog/post.djhtml:111
129
131
msgid "Blog index"
130
132
msgstr "Blog | Index"
131
133
132
134
#: blog/templates/blog/post.djhtml:112
133
135
msgid "Main page"
134
136
msgstr "Page d'acceuil"
135
137
136
138
#: blog/templates/blog/post.djhtml:136
137
-
msgid "Comments"
+
139
msgid "Comments"
138
140
msgstr "Commentaires"
139
141
140
142
#: blog/templates/blog/post.djhtml:143
141
-
msgid "Your comment"
+
143
msgid "Your comment"
142
144
msgstr "Votre commentaire"
143
145
144
146
#~ msgid "This article in other languages"
145
147
#~ msgstr "Cet article en autres langues"
146
148
147
149
#~ msgid "Never miss an update again."
148
150
#~ msgstr "Ne manquez plus jamais une mise à jour."
149
151
150
152
#~ msgid ""
151
153
#~ "Getting info on updates to blog posts, major website changes, and other "
152
154
#~ "important\n"
153
155
#~ "                news items is now easy and convenient with RSS.\n"
154
156
#~ "                "
155
157
#~ msgstr ""
156
158
#~ "Recevoir des mise à jours du blog, des grands changements du site web et "
157
159
#~ "d'autre information, c'est maitenant facile et pratique avec RSS."
158
160

templates/blog/locale/fr_BE/LC_MESSAGES/django.po

135 additions and 0 deletions.

View changes Hide changes
+
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+
2
# This file is distributed under the same license as the PACKAGE package.
+
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+
4
#
+
5
#, fuzzy
+
6
msgid ""
+
7
msgstr ""
+
8
"Project-Id-Version: PACKAGE VERSION\n"
+
9
"Report-Msgid-Bugs-To: \n"
+
10
"POT-Creation-Date: 2022-11-11 15:28+0000\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+
13
"Language-Team: LANGUAGE <LL@li.org>\n"
+
14
"Language: \n"
+
15
"MIME-Version: 1.0\n"
+
16
"Content-Type: text/plain; charset=UTF-8\n"
+
17
"Content-Transfer-Encoding: 8bit\n"
+
18
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
19
+
20
#: blog/templates/blog/comment.djhtml:25
+
21
msgid "Respond"
+
22
msgstr ""
+
23
+
24
#: blog/templates/blog/comment.djhtml:35 blog/templates/blog/post.djhtml:143
+
25
msgid "Your name"
+
26
msgstr ""
+
27
+
28
#: blog/templates/blog/comment.djhtml:36
+
29
msgid "Your response"
+
30
msgstr ""
+
31
+
32
#: blog/templates/blog/comment.djhtml:37 blog/templates/blog/post.djhtml:145
+
33
msgid "Submit"
+
34
msgstr ""
+
35
+
36
#: blog/templates/blog/index.djhtml:20
+
37
msgid "Maarten's blog"
+
38
msgstr ""
+
39
+
40
#: blog/templates/blog/index.djhtml:22
+
41
msgid ""
+
42
"The always coherently put together, yet\n"
+
43
"fuzzy blog of whatever sprouts in my mind."
+
44
msgstr ""
+
45
+
46
#: blog/templates/blog/index.djhtml:29
+
47
msgid "Notepad of a student"
+
48
msgstr ""
+
49
+
50
#: blog/templates/blog/index.djhtml:37
+
51
msgid "Navigation"
+
52
msgstr ""
+
53
+
54
#: blog/templates/blog/index.djhtml:38
+
55
msgid "Front page"
+
56
msgstr ""
+
57
+
58
#: blog/templates/blog/index.djhtml:49 blog/templates/blog/index.djhtml:114
+
59
msgid "Flemish"
+
60
msgstr ""
+
61
+
62
#: blog/templates/blog/index.djhtml:51 blog/templates/blog/index.djhtml:116
+
63
msgid "Belgian French"
+
64
msgstr ""
+
65
+
66
#: blog/templates/blog/index.djhtml:65
+
67
msgid "Blog"
+
68
msgstr ""
+
69
+
70
#: blog/templates/blog/index.djhtml:67
+
71
msgid ""
+
72
"Welcome to my blog. Here, I write\n"
+
73
"        about things that interest me. Politics, coding,\n"
+
74
"        studying, life, or anything else I fancy rambling\n"
+
75
"        about. If you're in luck, I may've written it in a\n"
+
76
"        language that you understand better than English.\n"
+
77
"        "
+
78
msgstr ""
+
79
+
80
#: blog/templates/blog/index.djhtml:85
+
81
msgid "Open archive"
+
82
msgstr ""
+
83
+
84
#: blog/templates/blog/index.djhtml:99
+
85
msgid "Read on"
+
86
msgstr ""
+
87
+
88
#: blog/templates/blog/index.djhtml:104
+
89
#, python-format
+
90
msgid ""
+
91
"This blog\n"
+
92
"               post is not available in %(cur_lang)s."
+
93
msgstr ""
+
94
+
95
#: blog/templates/blog/index.djhtml:106
+
96
msgid ""
+
97
"\n"
+
98
"                    However, it is available in \n"
+
99
"                    "
+
100
msgid_plural ""
+
101
"\n"
+
102
"                    If you want, you can choose to read it in one of these\n"
+
103
"                    languages: <br>\n"
+
104
"                    "
+
105
msgstr[0] ""
+
106
msgstr[1] ""
+
107
+
108
#: blog/templates/blog/monthly_archive.djhtml:31
+
109
msgid "Weekly | Archief"
+
110
msgstr ""
+
111
+
112
#: blog/templates/blog/monthly_archive.djhtml:34
+
113
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
+
114
msgstr ""
+
115
+
116
#: blog/templates/blog/post.djhtml:110
+
117
msgid "Table of contents"
+
118
msgstr ""
+
119
+
120
#: blog/templates/blog/post.djhtml:111
+
121
msgid "Blog index"
+
122
msgstr ""
+
123
+
124
#: blog/templates/blog/post.djhtml:112
+
125
msgid "Main page"
+
126
msgstr ""
+
127
+
128
#: blog/templates/blog/post.djhtml:137
+
129
msgid "Comments"
+
130
msgstr ""
+
131
+
132
#: blog/templates/blog/post.djhtml:144
+
133
msgid "Your comment"
+
134
msgstr ""
+
135

templates/blog/locale/nl-be/LC_MESSAGES/django.po

0 additions and 74 deletions.

View changes Hide changes
1
-
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
-
# This file is distributed under the same license as the PACKAGE package.
3
-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
-
#
5
-
#, fuzzy
6
-
msgid ""
7
-
msgstr ""
8
-
"Project-Id-Version: PACKAGE VERSION\n"
9
-
"Report-Msgid-Bugs-To: \n"
10
-
"POT-Creation-Date: 2021-11-24 14:00+0100\n"
11
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
-
"Language-Team: LANGUAGE <LL@li.org>\n"
14
-
"Language: \n"
15
-
"MIME-Version: 1.0\n"
16
-
"Content-Type: text/plain; charset=UTF-8\n"
17
-
"Content-Transfer-Encoding: 8bit\n"
18
-
19
-
#: blog/templates/blog/index.djhtml:20
20
-
msgid "Maarten's blog"
21
-
msgstr ""
22
-
23
-
#: blog/templates/blog/index.djhtml:22
24
-
msgid ""
25
-
"The always coherently put together, yet\n"
26
-
"fuzzy blog of whatever sprouts in my mind."
27
-
msgstr ""
28
-
29
-
#: blog/templates/blog/index.djhtml:28
30
-
msgid "Notepad of a student"
31
-
msgstr ""
32
-
33
-
#: blog/templates/blog/index.djhtml:37
34
-
msgid "Navigation"
35
-
msgstr ""
36
-
37
-
#: blog/templates/blog/index.djhtml:42
38
-
msgid "Front page"
39
-
msgstr ""
40
-
41
-
#: blog/templates/blog/index.djhtml:49
42
-
msgid "Blog"
43
-
msgstr ""
44
-
45
-
#: blog/templates/blog/index.djhtml:51
46
-
msgid ""
47
-
"Welcome to my blog. Here, I write\n"
48
-
"        about things that interest me. Politics, coding,\n"
49
-
"        studying, life, or anything else I fancy rambling\n"
50
-
"        about. If you're in luck, I may've written it in a\n"
51
-
"        language that you understand better than English.\n"
52
-
"        "
53
-
msgstr ""
54
-
55
-
#: blog/templates/blog/index.djhtml:68
56
-
msgid "Open archive"
57
-
msgstr ""
58
-
59
-
#: blog/templates/blog/index.djhtml:78 blog/templates/blog/post.djhtml:94
60
-
msgid "Read on"
61
-
msgstr ""
62
-
63
-
#: blog/templates/blog/monthly_archive.djhtml:16
64
-
msgid "Weekly | Archief"
65
-
msgstr ""
66
-
67
-
#: blog/templates/blog/monthly_archive.djhtml:19
68
-
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
69
-
msgstr ""
70
-
71
-
#: blog/templates/blog/post.djhtml:24
72
-
msgid "This article in other languages"
73
-
msgstr ""
74
-

templates/blog/locale/nl/LC_MESSAGES/django.po

8 additions and 9 deletions.

View changes Hide changes
1
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2
2
# This file is distributed under the same license as the PACKAGE package.
3
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
4
#
5
5
msgid ""
6
6
msgstr ""
7
7
"Project-Id-Version: \n"
8
8
"Report-Msgid-Bugs-To: \n"
9
9
"POT-Creation-Date: 2022-05-01 10:02+0000\n"
10
-
"PO-Revision-Date: 2021-10-30 16:11+0200\n"
+
10
"PO-Revision-Date: 2021-10-30 16:11+0200\n"
11
11
"Last-Translator: \n"
12
12
"Language-Team: \n"
13
13
"Language: nl\n"
14
14
"MIME-Version: 1.0\n"
15
15
"Content-Type: text/plain; charset=UTF-8\n"
16
16
"Content-Transfer-Encoding: 8bit\n"
17
17
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
18
"X-Generator: Poedit 3.0\n"
19
19
20
20
#: blog/templates/blog/comment.djhtml:21
21
-
msgid "Respond"
+
21
msgid "Respond"
22
22
msgstr "Antwoorden"
23
23
24
24
#: blog/templates/blog/comment.djhtml:31 blog/templates/blog/post.djhtml:142
25
-
msgid "Your name"
+
25
msgid "Your name"
26
26
msgstr "Uw naam"
27
27
28
28
#: blog/templates/blog/comment.djhtml:32
29
-
msgid "Your response"
+
29
msgid "Your response"
30
30
msgstr "Uw antwoord"
31
31
32
32
#: blog/templates/blog/comment.djhtml:33 blog/templates/blog/post.djhtml:144
33
-
msgid "Submit"
+
33
msgid "Submit"
34
34
msgstr "Reageren"
35
35
36
36
#: blog/templates/blog/index.djhtml:20
37
37
msgid "Maarten's blog"
38
38
msgstr "Maartens blog"
39
39
40
40
#: blog/templates/blog/index.djhtml:22
41
41
msgid ""
42
42
"The always coherently put together, yet\n"
43
43
"fuzzy blog of whatever sprouts in my mind."
44
44
msgstr ""
45
45
"Een zeer weloverwogen geschreven, en toch warrige blog over vanalles wat in "
46
46
"mij opkomt."
47
47
48
48
#: blog/templates/blog/index.djhtml:29
49
49
msgid "Notepad of a student"
50
50
msgstr "Studentikoos kladblok"
51
51
52
52
#: blog/templates/blog/index.djhtml:37
53
53
msgid "Navigation"
54
54
msgstr "Navigatie"
55
55
56
56
#: blog/templates/blog/index.djhtml:38
57
57
msgid "Front page"
58
58
msgstr "Hoofdpagina"
59
59
60
60
#: blog/templates/blog/index.djhtml:49 blog/templates/blog/index.djhtml:114
61
61
msgid "Flemish"
62
62
msgstr "Vlaams"
63
63
64
64
#: blog/templates/blog/index.djhtml:51 blog/templates/blog/index.djhtml:116
65
65
msgid "Belgian French"
66
66
msgstr "Belgisch-Frans"
67
67
68
68
#: blog/templates/blog/index.djhtml:65
69
69
msgid "Blog"
70
70
msgstr "Blog"
71
71
72
72
#: blog/templates/blog/index.djhtml:67
73
73
msgid ""
74
74
"Welcome to my blog. Here, I write\n"
75
75
"        about things that interest me. Politics, coding,\n"
76
76
"        studying, life, or anything else I fancy rambling\n"
77
77
"        about. If you're in luck, I may've written it in a\n"
78
78
"        language that you understand better than English.\n"
79
79
"        "
80
80
msgstr ""
81
81
"Welkom op mijn blog. Hier schrijf ik over onderwerpen die mij interesseren. "
82
82
"Politiek, programmeren, studeren en het leven, plus alles waar ik goesting "
83
83
"in heb om over te schrijven."
84
84
85
85
#: blog/templates/blog/index.djhtml:85
86
86
msgid "Open archive"
87
87
msgstr "Archief openen"
88
88
89
89
#: blog/templates/blog/index.djhtml:99
90
90
msgid "Read on"
91
91
msgstr "Verder lezen"
92
92
93
93
#: blog/templates/blog/index.djhtml:104
94
94
#, python-format
95
95
msgid ""
96
96
"This blog\n"
97
97
"               post is not available in %(cur_lang)s."
98
98
msgstr ""
99
-
"Dit blogartikel is niet beschikbaar in %(cur_lang)s."
100
-
+
99
101
100
#: blog/templates/blog/index.djhtml:106
102
101
msgid ""
103
102
"\n"
104
103
"                    However, it is available in \n"
105
104
"                    "
106
105
msgid_plural ""
107
106
"\n"
108
107
"                    If you want, you can choose to read it in one of these\n"
109
108
"                    languages: <br>\n"
110
109
"                    "
111
110
msgstr[0] "Het is echter wel beschikbaar in het "
112
111
msgstr[1] "Als u wilt kunt u het wel lezen in één van deze talen: <br>"
113
112
114
113
#: blog/templates/blog/monthly_archive.djhtml:31
115
114
msgid "Weekly | Archief"
116
115
msgstr "Spreken is zilver, schrijven is goud | Archief"
117
116
118
117
#: blog/templates/blog/monthly_archive.djhtml:34
119
118
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
120
119
msgstr ""
121
120
122
121
#: blog/templates/blog/post.djhtml:110
123
122
msgid "Table of contents"
124
123
msgstr "Inhoudstafel"
125
124
126
125
#: blog/templates/blog/post.djhtml:111
127
126
msgid "Blog index"
128
127
msgstr "Blog | Index"
129
128
130
129
#: blog/templates/blog/post.djhtml:112
131
130
msgid "Main page"
132
131
msgstr "Hoofdpagina"
133
132
134
133
#: blog/templates/blog/post.djhtml:136
135
-
msgid "Comments"
+
134
msgid "Comments"
136
135
msgstr "Reacties"
137
136
138
137
#: blog/templates/blog/post.djhtml:143
139
-
msgid "Your comment"
+
138
msgid "Your comment"
140
139
msgstr "Uw reactie"
141
140
142
141
#~ msgid "This article in other languages"
143
142
#~ msgstr "Dit artikel in andere talen"
144
143
145
144
#~ msgid "Never miss an update again."
146
145
#~ msgstr "Mis nooit meer een update."
147
146
148
147
#~ msgid ""
149
148
#~ "Getting info on updates to blog posts, major website changes, and other "
150
149
#~ "important\n"
151
150
#~ "                news items is now easy and convenient with RSS.\n"
152
151
#~ "                "
153
152
#~ msgstr ""
154
153
#~ "Updates van blogartikelen, grote veranderingen op de website en andere "
155
154
#~ "belangrijke nieuwtjes zijn nu makkelijk te verkrijgen met RSS."
156
155

templates/blog/locale/nl_BE/LC_MESSAGES/django.po

135 additions and 0 deletions.

View changes Hide changes
+
1
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+
2
# This file is distributed under the same license as the PACKAGE package.
+
3
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+
4
#
+
5
#, fuzzy
+
6
msgid ""
+
7
msgstr ""
+
8
"Project-Id-Version: PACKAGE VERSION\n"
+
9
"Report-Msgid-Bugs-To: \n"
+
10
"POT-Creation-Date: 2022-11-11 15:28+0000\n"
+
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+
13
"Language-Team: LANGUAGE <LL@li.org>\n"
+
14
"Language: \n"
+
15
"MIME-Version: 1.0\n"
+
16
"Content-Type: text/plain; charset=UTF-8\n"
+
17
"Content-Transfer-Encoding: 8bit\n"
+
18
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
19
+
20
#: blog/templates/blog/comment.djhtml:25
+
21
msgid "Respond"
+
22
msgstr ""
+
23
+
24
#: blog/templates/blog/comment.djhtml:35 blog/templates/blog/post.djhtml:143
+
25
msgid "Your name"
+
26
msgstr ""
+
27
+
28
#: blog/templates/blog/comment.djhtml:36
+
29
msgid "Your response"
+
30
msgstr ""
+
31
+
32
#: blog/templates/blog/comment.djhtml:37 blog/templates/blog/post.djhtml:145
+
33
msgid "Submit"
+
34
msgstr ""
+
35
+
36
#: blog/templates/blog/index.djhtml:20
+
37
msgid "Maarten's blog"
+
38
msgstr ""
+
39
+
40
#: blog/templates/blog/index.djhtml:22
+
41
msgid ""
+
42
"The always coherently put together, yet\n"
+
43
"fuzzy blog of whatever sprouts in my mind."
+
44
msgstr ""
+
45
+
46
#: blog/templates/blog/index.djhtml:29
+
47
msgid "Notepad of a student"
+
48
msgstr ""
+
49
+
50
#: blog/templates/blog/index.djhtml:37
+
51
msgid "Navigation"
+
52
msgstr ""
+
53
+
54
#: blog/templates/blog/index.djhtml:38
+
55
msgid "Front page"
+
56
msgstr ""
+
57
+
58
#: blog/templates/blog/index.djhtml:49 blog/templates/blog/index.djhtml:114
+
59
msgid "Flemish"
+
60
msgstr ""
+
61
+
62
#: blog/templates/blog/index.djhtml:51 blog/templates/blog/index.djhtml:116
+
63
msgid "Belgian French"
+
64
msgstr ""
+
65
+
66
#: blog/templates/blog/index.djhtml:65
+
67
msgid "Blog"
+
68
msgstr ""
+
69
+
70
#: blog/templates/blog/index.djhtml:67
+
71
msgid ""
+
72
"Welcome to my blog. Here, I write\n"
+
73
"        about things that interest me. Politics, coding,\n"
+
74
"        studying, life, or anything else I fancy rambling\n"
+
75
"        about. If you're in luck, I may've written it in a\n"
+
76
"        language that you understand better than English.\n"
+
77
"        "
+
78
msgstr ""
+
79
+
80
#: blog/templates/blog/index.djhtml:85
+
81
msgid "Open archive"
+
82
msgstr ""
+
83
+
84
#: blog/templates/blog/index.djhtml:99
+
85
msgid "Read on"
+
86
msgstr ""
+
87
+
88
#: blog/templates/blog/index.djhtml:104
+
89
#, python-format
+
90
msgid ""
+
91
"This blog\n"
+
92
"               post is not available in %(cur_lang)s."
+
93
msgstr ""
+
94
+
95
#: blog/templates/blog/index.djhtml:106
+
96
msgid ""
+
97
"\n"
+
98
"                    However, it is available in \n"
+
99
"                    "
+
100
msgid_plural ""
+
101
"\n"
+
102
"                    If you want, you can choose to read it in one of these\n"
+
103
"                    languages: <br>\n"
+
104
"                    "
+
105
msgstr[0] ""
+
106
msgstr[1] ""
+
107
+
108
#: blog/templates/blog/monthly_archive.djhtml:31
+
109
msgid "Weekly | Archief"
+
110
msgstr ""
+
111
+
112
#: blog/templates/blog/monthly_archive.djhtml:34
+
113
msgid "Voor een duik terug in de geschiedenis van mijn publieke dagboek."
+
114
msgstr ""
+
115
+
116
#: blog/templates/blog/post.djhtml:110
+
117
msgid "Table of contents"
+
118
msgstr ""
+
119
+
120
#: blog/templates/blog/post.djhtml:111
+
121
msgid "Blog index"
+
122
msgstr ""
+
123
+
124
#: blog/templates/blog/post.djhtml:112
+
125
msgid "Main page"
+
126
msgstr ""
+
127
+
128
#: blog/templates/blog/post.djhtml:137
+
129
msgid "Comments"
+
130
msgstr ""
+
131
+
132
#: blog/templates/blog/post.djhtml:144
+
133
msgid "Your comment"
+
134
msgstr ""
+
135

views.py

6 additions and 6 deletions.

View changes Hide changes
1
1
import requests
2
2
3
3
4
4
from django.utils.translation import ugettext as _
5
-
from django.shortcuts import get_object_or_404, render # This allows to render the template with the view here. It's pretty cool and important.
+
5
from django.shortcuts import get_object_or_404, render # This allows to render the template with the view here. It's pretty cool and important.
6
6
from django.http import HttpResponseRedirect, HttpResponse
7
7
from django.urls import reverse
8
8
from django.template import loader # This allows to actually load the template.
9
9
10
10
from django.conf import settings  # For the archive 20XX.org files
11
11
12
12
from .models import *
13
13
from .forms import CommentForm
14
14
from django.core.exceptions import ObjectDoesNotExist
15
15
from django.utils import translation
16
16
17
17
GERMAN = "de"
18
18
SPANISH = "es"
19
19
FRENCH = "fr"
20
20
DUTCH = "nl"
21
21
ENGLISH = "en"
22
22
23
23
def index(request):
24
24
    template = "blog/index.djhtml"
25
25
    posts = Post.objects.exclude(visible=False)
26
26
27
27
28
28
    context = {
29
29
            'posts': posts,
30
30
            'navbar_title': _("Notepad from a student"),
31
31
            'navbar_backArrow': True,
32
32
            'stylesheet_name': "blog",
33
33
            }
34
34
    return render(request, template, context)
35
35
36
36
def post(request, language_code, post_slug):
37
37
    context = dict()
38
38
    if request.method == "POST":  # Handling a reply if one is sent
39
39
        form = CommentForm(request.POST)
40
40
41
41
        form.post = Post.objects.get(id=request.POST['post'])
42
42
        if form.is_valid():
43
43
            new_comment = form.save(commit=False)
44
44
            if request.POST['reaction_to'] != "":
45
45
                new_comment.reaction_to = Comment.objects.get(id=request.POST['reaction_to'])
46
46
            new_comment.save()
47
47
            context["comment_response"] = _("Comment succesfully submitted!")
48
48
        else:
49
49
            print("ERROR")
50
50
            print(form.errors)
51
51
            context["contact_response"] = _("An error occured while trying to submit your comment. Please try again later.")
52
52
53
53
    template = "blog/post.djhtml"
54
54
    article = Article.objects.get(slug=post_slug, language_code=language_code)
55
55
    root_comments = Comment.objects.filter(post=article.post, reaction_to=None).order_by('-date')
56
56
    context = context | {
57
57
            'djhtml_file': "/tmp/blog-file-"+article.slug+".djhtml",
58
58
            'article': article,
59
59
            'root_comments': root_comments,
60
60
            'title': article.post.title(),
61
61
            'navbar_title': article.post.title(),
62
62
            'navbar_backArrow': False,
63
63
            'stylesheet_name': "blog"}
64
64
65
65
    return render(request, template, context)
66
66
67
67
def rss(request):
68
68
    template = "blog/feed.rss"
69
69
    context = {
70
70
        'items': FeedItem.objects.all(),
71
71
        }
72
72
    return render(request, template, context, content_type="application/rss+xml")
73
73
74
74
75
75
def archive(request):
76
76
    template = "blog/monthly_archive.djhtml"
77
77
    language = translation.get_language()
78
78
79
79
    file_2017 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2017.org")
80
-
    file_2018 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2018.org")
81
-
    file_2019 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2019.org")
82
-
    file_2020 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2020.org")
83
-
    file_2021 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2021.org")
84
-
+
80
    file_2018 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2018.org", slug="arkivo-sizsig-2018")
+
81
    file_2019 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2019.org", slug="arkivo-sizsig-2019")
+
82
    file_2020 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2020.org", slug="arkivo-sizsig-2020")
+
83
    file_2021 = org_to_html(settings.MEDIA_ROOT + "blog/weekly/2021.org", slug="arkivo-sizsig-2021")
+
84
85
85
86
86
87
87
88
88
89
89
    context = {
90
90
        't2017': file_2017,
91
91
        't2018': file_2018,
92
92
        't2019': file_2019,
93
93
        't2020': file_2020,
94
94
        't2021': file_2021,
95
95
            'navbar_title': _("Weekly-archief"),
96
96
            'navbar_backArrow': True,
97
97
            'stylesheet_name': "blog",
98
98
            }
99
99
    return render(request, template, context)
100
100