Projet

Général

Profil

0001-change-workalendar-translations-setup-48028.patch

Valentin Deniaud, 26 octobre 2020 15:51

Télécharger (2,96 ko)

Voir les différences:

Subject: [PATCH] change workalendar translations setup (#48028)

 MANIFEST.in                                   |  1 -
 .../agendas/templates/workalendar_locale.html | 14 +++++++
 chrono/settings.py                            |  5 +--
 .../fr/LC_MESSAGES/django.po                  | 40 -------------------
 4 files changed, 15 insertions(+), 45 deletions(-)
 create mode 100644 chrono/agendas/templates/workalendar_locale.html
 delete mode 100644 chrono/workalendar_locale/fr/LC_MESSAGES/django.po
MANIFEST.in
1 1
# locales
2 2
recursive-include chrono/locale *.po *.mo
3
recursive-include chrono/workalendar_locale *.po *.mo
4 3

  
5 4
# static
6 5
recursive-include chrono/manager/static *.css *.scss *.js
chrono/agendas/templates/workalendar_locale.html
1
{% load i18n %}
2

  
3
{# Translations of holidays names #}
4
{% trans "All Saints Day" %}
5
{% trans "Armistice Day" %}
6
{% trans "Ascension Thursday" %}
7
{% trans "Assumption of Mary to Heaven" %}
8
{% trans "Bastille Day" %}
9
{% trans "Christmas Day" %}
10
{% trans "Easter Monday" %}
11
{% trans "Labour Day" %}
12
{% trans "New year" %}
13
{% trans "Victory in Europe Day" %}
14
{% trans "Whit Monday" %}
chrono/settings.py
95 95

  
96 96
USE_TZ = True
97 97

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

  
103 100
FORMAT_MODULE_PATH = 'chrono.formats'
104 101

  
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"
41
-