Projet

Général

Profil

0004-misc-add-workalendar-translations-18904.patch

Valentin Deniaud, 31 août 2020 18:08

Télécharger (2,38 ko)

Voir les différences:

Subject: [PATCH 4/4] misc: add workalendar translations (#18904)

 chrono/agendas/models.py                      |  3 +-
 chrono/settings.py                            |  5 ++-
 .../fr/LC_MESSAGES/django.po                  | 40 +++++++++++++++++++
 3 files changed, 46 insertions(+), 2 deletions(-)
 create mode 100644 chrono/workalendar_locale/fr/LC_MESSAGES/django.po
chrono/agendas/models.py
1462 1462
                )
1463 1463

  
1464 1464
        if self.label:
1465
            exc_repr = u'%s (%s)' % (self.label, exc_repr)
1465
            label = _(self.label) if self.external else self.label
1466
            exc_repr = u'%s (%s)' % (label, exc_repr)
1466 1467

  
1467 1468
        return exc_repr
1468 1469

  
chrono/settings.py
95 95

  
96 96
USE_TZ = True
97 97

  
98
LOCALE_PATHS = (os.path.join(BASE_DIR, 'chrono', 'locale'),)
98
LOCALE_PATHS = (
99
    os.path.join(BASE_DIR, 'chrono', 'locale'),
100
    os.path.join(BASE_DIR, 'chrono', 'workalendar_locale'),
101
)
99 102

  
100 103
FORMAT_MODULE_PATH = 'chrono.formats'
101 104

  
chrono/workalendar_locale/fr/LC_MESSAGES/django.po
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: workalendar\n"
4
"Language: French\n"
5
"MIME-Version: 1.0\n"
6
"Content-Type: text/plain; charset=UTF-8\n"
7
"Content-Transfer-Encoding: 8bit\n"
8

  
9
msgid "New year"
10
msgstr "Jour de l'An"
11

  
12
msgid "Easter Monday"
13
msgstr "Lundi de Pâques"
14

  
15
msgid "Labour Day"
16
msgstr "Fête du travail"
17

  
18
msgid "Victory in Europe Day"
19
msgstr "Armistice 1945"
20

  
21
msgid "Ascension Thursday"
22
msgstr "Ascension"
23

  
24
msgid "Whit Monday"
25
msgstr "Lundi de Pentecôte"
26

  
27
msgid "Bastille Day"
28
msgstr "Fête Nationale"
29

  
30
msgid "Assumption of Mary to Heaven"
31
msgstr "Assomption"
32

  
33
msgid "All Saints Day"
34
msgstr "Toussaint"
35

  
36
msgid "Armistice Day"
37
msgstr "Armistice 1918"
38

  
39
msgid "Christmas Day"
40
msgstr "Noël"
0
-