Grammalecte  Diff

Differences From Artifact [17e244691b]:

To Artifact [bda797a9d2]:


1
2
3
4
5
6
7
8
9


10
11
12
13
14
15
16
1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16
17








-
+
+







# Strings for Text Formatter Editor


sUI = "fr"


def selectLang (sLang):
    global sUI
    sUI = sLang  if sLang in dStrings  else "fr"
    if sLang in dStrings:
        sUI = sLang


def get (sMsgCode):
    try:
        return dStrings[sUI].get(sMsgCode, sMsgCode)
    except:
        return "#error"
52
53
54
55
56
57
58






59

60
61
62
63
64
65
66
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74







+
+
+
+
+
+

+







        "add_name_error_title": "Nom déjà utilisé",

        "delete_name_error": "Vous avez modifié le nom de la règle. Veuillez resélectionner la règle que vous voulez supprimer, et cliquez sur ‹Supprimer›.",
        "delete_name_error_title": "Nom de la règle à supprimer douteux",

        "modify_name_error": "Une autre règle porte déjà ce nom. Veuillez modifier le nom de la règle.",
        "modify_name_error_title": "Nouveau nom déjà utilisé par une autre règle",

        "import_question": "Voulez-vous que les règles importées écrasent celles existantes si elles possèdent un nom identique ?",
        "import_title": "Importation d’un fichier de règles de transformation",

        "error": "Erreur",
        "file_not_found": "Fichier introuvable : ",
    },

    "en": {
        "title": "Grammalecte · Editor for custom transformations",

        "name": "Rule name",
        "replace": "Replace",
        "by": "by",
        "regex": "Regex",
92
93
94
95
96
97
98






99
100
101
102
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116







+
+
+
+
+
+




        "add_name_error_title": "Rule name already used",

        "delete_name_error": "You have modified the name of the rule. Please, select again the rule you want to delete and click on ‹Delete›.",
        "delete_name_error_title": "Dubious rule name to delete",

        "modify_name_error": "This rule name is already used by another rule. Please, modify the rule name.",
        "modify_name_error_title": "New rule name already used by another rule",

        "import_question": "Do you want that imported rules replace existing ones if they have the same name?",
        "import_title": "Importation of a transformation rules file",

        "error": "Error",
        "file_not_found": "File not found: ",
    }
}