Grammalecte  Diff

Differences From Artifact [b67a9eb4f9]:

To Artifact [249ebc6d98]:



1

2



3


4





5
6



7

8
9
10

11
12
13


14
15

16
17
18
19



20
21

22
23
24


25
26

27
28
29
30



31
32
33
1

2
3
4
5
6

7
8
9
10
11
12
13
14


15
16
17
18
19
20
21

22
23


24
25
26

27
28



29
30
31
32

33
34


35
36
37

38
39



40
41
42
43
44
45
+
-
+

+
+
+
-
+
+

+
+
+
+
+
-
-
+
+
+

+


-
+

-
-
+
+

-
+

-
-
-
+
+
+

-
+

-
-
+
+

-
+

-
-
-
+
+
+



# strings for change author
# -*- encoding: UTF-8 -*-


sUI = "fr"


def getUI (sLang):
def selectLang (sLang):
    global sUI
    if sLang in dStrings:
        sUI = sLang


def get (sMsgCode):
    try:
        return dStrings[sLang]
    return dStrings["fr"]
        return dStrings[sUI].get(sMsgCode, sMsgCode)
    except:
        return "#error"


dStrings = {
    "fr": {
            "title": "Grammalecte · Édition du champ “Auteur”",
        "title": "Grammalecte · Édition du champ “Auteur”",

            "state": "Valeur actuelle du champ “Auteur” :",
            "empty": "[vide]",
        "state": "Valeur actuelle du champ “Auteur” :",
        "empty": "[vide]",

            "newvalue": "Entrez la nouvelle valeur :",
        "newvalue": "Entrez la nouvelle valeur :",

            "modify": "Modifier",
            "cancel": "Annuler"
          },
        "modify": "Modifier",
        "cancel": "Annuler"
    },
    "en": {
            "title": "Grammalecte · Edition of field “Author”",
        "title": "Grammalecte · Edition of field “Author”",

            "state": "Current value of field “Author”:",
            "empty": "[empty]",
        "state": "Current value of field “Author”:",
        "empty": "[empty]",

            "newvalue": "Enter the new value:",
        "newvalue": "Enter the new value:",

            "modify": "Modify",
            "cancel": "Cancel"
          }
        "modify": "Modify",
        "cancel": "Cancel"
    }
}