Skip to content

Commit

Permalink
Add missing translation blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
j-bernard committed Dec 4, 2020
1 parent 98d5b1c commit d98be1f
Show file tree
Hide file tree
Showing 18 changed files with 179 additions and 145 deletions.
16 changes: 8 additions & 8 deletions src/lgr_basic/locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-01 15:59+0000\n"
"POT-Creation-Date: 2020-12-02 03:08+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -19,33 +19,33 @@ msgstr ""
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#: forms.py:18
#: forms.py:21
msgid "Label"
msgstr ""

#: forms.py:19
#: forms.py:22
msgid "File must be encoded in UTF-8 and using UNIX line ending."
msgstr ""

#: forms.py:23
#: forms.py:26
msgid "Email address for tasks results"
msgstr ""

#: forms.py:24
#: forms.py:27
msgid ""
"As the computing may be very long, we will warn by e-mail once the result "
"can be downloaded."
msgstr ""

#: forms.py:34
#: forms.py:37
msgid "E-mail is mandatory to get the tasks results"
msgstr ""

#: forms.py:37 forms.py:38
#: forms.py:40 forms.py:41
msgid "Required"
msgstr ""

#: forms.py:42 forms.py:43
#: forms.py:45 forms.py:46
msgid "Unknown error, please report"
msgstr ""

Expand Down
16 changes: 8 additions & 8 deletions src/lgr_basic/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-01 15:59+0000\n"
"POT-Creation-Date: 2020-12-02 03:08+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -17,33 +17,33 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: forms.py:18
#: forms.py:21
msgid "Label"
msgstr ""

#: forms.py:19
#: forms.py:22
msgid "File must be encoded in UTF-8 and using UNIX line ending."
msgstr ""

#: forms.py:23
#: forms.py:26
msgid "Email address for tasks results"
msgstr ""

#: forms.py:24
#: forms.py:27
msgid ""
"As the computing may be very long, we will warn by e-mail once the result "
"can be downloaded."
msgstr ""

#: forms.py:34
#: forms.py:37
msgid "E-mail is mandatory to get the tasks results"
msgstr ""

#: forms.py:37 forms.py:38
#: forms.py:40 forms.py:41
msgid "Required"
msgstr ""

#: forms.py:42 forms.py:43
#: forms.py:45 forms.py:46
msgid "Unknown error, please report"
msgstr ""

Expand Down
16 changes: 8 additions & 8 deletions src/lgr_basic/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-01 15:59+0000\n"
"POT-Creation-Date: 2020-12-02 03:08+0000\n"
"PO-Revision-Date: 2020-06-04 13:41-0400\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -18,21 +18,21 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 2.3\n"

#: forms.py:18
#: forms.py:21
msgid "Label"
msgstr "Label"

#: forms.py:19
#: forms.py:22
msgid "File must be encoded in UTF-8 and using UNIX line ending."
msgstr ""
"Le fichier doit être encodé en UTF-8, et utiliser des retours à la ligne "
"UNIX."

#: forms.py:23
#: forms.py:26
msgid "Email address for tasks results"
msgstr "Adresse e-mail utilisée pour recevoir le résultats des tâches"

#: forms.py:24
#: forms.py:27
msgid ""
"As the computing may be very long, we will warn by e-mail once the result "
"can be downloaded."
Expand All @@ -41,16 +41,16 @@ msgstr ""
"le résultat pourra être téléchargé. Fournissez une adresse e-mail valide "
"s'il vous plaît."

#: forms.py:34
#: forms.py:37
msgid "E-mail is mandatory to get the tasks results"
msgstr ""
"L'adresse e-mail est obligatoire pour recevoir les résultats des tâches"

#: forms.py:37 forms.py:38
#: forms.py:40 forms.py:41
msgid "Required"
msgstr "Requis"

#: forms.py:42 forms.py:43
#: forms.py:45 forms.py:46
msgid "Unknown error, please report"
msgstr "Erreur inconnue, reportez l'erreur s'il vous plait"

Expand Down
10 changes: 5 additions & 5 deletions src/lgr_editor/forms/codepoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ def clean(self):
cleaned_data = super(EditCodepointsForm, self).clean()
if self.post and 'add-rules' in self.post:
if cleaned_data['when'] and cleaned_data['not_when']:
self.add_error('when', 'Cannot add when and not-when rules simultaneously')
self.add_error('not_when', 'Cannot add when and not-when rules simultaneously')
self.add_error('when', _('Cannot add when and not-when rules simultaneously'))
self.add_error('not_when', _('Cannot add when and not-when rules simultaneously'))
elif not cleaned_data.get('when') and not cleaned_data.get('not_when'):
self.add_error('when', 'Please provide at least one value')
self.add_error('not_when', 'Please provide at least one value')
self.add_error('when', _('Please provide at least one value'))
self.add_error('not_when', _('Please provide at least one value'))

if self.post and 'add-tags' in self.post and not cleaned_data.get('tags'):
self.add_error('tags', 'Please provide at least one value')
self.add_error('tags', _('Please provide at least one value'))

return cleaned_data
3 changes: 2 additions & 1 deletion src/lgr_editor/forms/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from django import forms
from django.forms.formsets import formset_factory
from django.utils.translation import ugettext_lazy as _

from lgr.metadata import ReferenceManager
from .utils import BaseDisableableFormSet, ReadOnlyTextInput
Expand All @@ -29,7 +30,7 @@ def __init__(self, *args, **kwargs):
def clean(self):
cleaned_data = super(ReferenceForm, self).clean()
if cleaned_data['ref_id'] and not re.match(ReferenceManager.REFERENCE_REGEX, str(cleaned_data['ref_id'])):
self.add_error('ref_id', 'Invalid format')
self.add_error('ref_id', _('Invalid format'))

return cleaned_data

Expand Down
64 changes: 38 additions & 26 deletions src/lgr_editor/locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-01 15:59+0000\n"
"POT-Creation-Date: 2020-12-02 03:08+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -99,6 +99,14 @@ msgstr ""
msgid "File type"
msgstr ""

#: forms/codepoints.py:135 forms/codepoints.py:136
msgid "Cannot add when and not-when rules simultaneously"
msgstr ""

#: forms/codepoints.py:138 forms/codepoints.py:139 forms/codepoints.py:142
msgid "Please provide at least one value"
msgstr ""

#: forms/importer.py:13
msgid "Name"
msgstr ""
Expand All @@ -125,15 +133,15 @@ msgstr ""
msgid "The name of the set"
msgstr ""

#: forms/labels.py:14
#: forms/labels.py:13
msgid "Label"
msgstr ""

#: forms/labels.py:15 forms/metadata.py:50
#: forms/labels.py:14 forms/metadata.py:50
msgid "Unicode version"
msgstr ""

#: forms/labels.py:17
#: forms/labels.py:16
msgid "The unicode version used"
msgstr ""

Expand Down Expand Up @@ -187,6 +195,10 @@ msgstr ""
msgid "Language"
msgstr ""

#: forms/references.py:33
msgid "Invalid format"
msgstr ""

#: lgr_exceptions.py:28
#, python-format
msgid "Input code point %(codepoint)s is not in the LGR"
Expand Down Expand Up @@ -749,19 +761,19 @@ msgstr ""
msgid "Cannot import LGR file(s):"
msgstr ""

#: templates/lgr_editor/label_forms.html:11
#: templates/lgr_editor/label_forms.html:10
msgid "Display forms"
msgstr ""

#: templates/lgr_editor/label_forms.html:18
#: templates/lgr_editor/label_forms.html:16
msgid "Code point sequence"
msgstr ""

#: templates/lgr_editor/label_forms.html:19
#: templates/lgr_editor/label_forms.html:17
msgid "U-label"
msgstr ""

#: templates/lgr_editor/label_forms.html:20
#: templates/lgr_editor/label_forms.html:18
msgid "A-label"
msgstr ""

Expand Down Expand Up @@ -1188,7 +1200,7 @@ msgid ""
"forget to update any WLE that might reference it."
msgstr ""

#: views.py:1210 views.py:1373 views.py:1455
#: views.py:1210 views.py:1372 views.py:1460
msgid "No body specified"
msgstr ""

Expand All @@ -1206,20 +1218,20 @@ msgstr ""
msgid "No class element found"
msgstr ""

#: views.py:1230
#: views.py:1230 views.py:1392
msgid "Name attribute must be present"
msgstr ""

#: views.py:1234 views.py:1251 views.py:1395 views.py:1412 views.py:1479
#: views.py:1492
#: views.py:1234 views.py:1251 views.py:1405 views.py:1417 views.py:1484
#: views.py:1497
#, python-format
msgid ""
"Encountered XML syntax error: %s (line number may be wrong, try subtracting "
"one from the reported line number)"
msgstr ""

#: views.py:1237 views.py:1254 views.py:1398 views.py:1415 views.py:1482
#: views.py:1495
#: views.py:1237 views.py:1254 views.py:1408 views.py:1420 views.py:1487
#: views.py:1500
msgid "Your XML is not valid"
msgstr ""

Expand All @@ -1233,57 +1245,57 @@ msgstr ""
msgid "Class \"%s\" saved."
msgstr ""

#: views.py:1382
#: views.py:1381
#, python-format
msgid "Rule \"%s\" does not exist"
msgstr ""

#: views.py:1386
#: views.py:1385
#, python-format
msgid "Rule \"%s\" deleted."
msgstr ""

#: views.py:1391
#: views.py:1390
msgid "No rule element found"
msgstr ""

#: views.py:1403
#: views.py:1397
#, python-format
msgid "Rule \"%s\" already exists"
msgstr ""

#: views.py:1405
#: views.py:1410
#, python-format
msgid "Rule \"%s\" saved."
msgstr ""

#: views.py:1466
#: views.py:1471
#, python-format
msgid "Action \"%s\" does not exist"
msgstr ""

#: views.py:1470
#: views.py:1475
#, python-format
msgid "Action \"%s\" deleted."
msgstr ""

#: views.py:1475
#: views.py:1480
msgid "No action element found"
msgstr ""

#: views.py:1485
#: views.py:1490
msgid "Action saved."
msgstr ""

#: views.py:1554 views.py:1642
#: views.py:1559 views.py:1647
#, python-format
msgid "%d code points added"
msgstr ""

#: views.py:1611
#: views.py:1616
msgid "No code point in input file"
msgstr ""

#: views.py:1917
#: views.py:1922
msgid "Meta data saved"
msgstr ""
Loading

0 comments on commit d98be1f

Please sign in to comment.