Grammalecte  Diff

Differences From Artifact [c192c50bdb]:

To Artifact [599146a562]:


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

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
46
47




48
49
50
51
52


53
54
55
-
+

+
+
+
+
-
+
+

+
+
+
+
+
-
-
+
+
+

+


-
-
-
-
-
+
+
+
+
+

-
-
+
+

-
-
-
-
+
+
+
+

-
-
+
+

-
-
-
-
-
+
+
+
+
+

-
-
+
+

-
-
-
-
+
+
+
+

-
-
+
+

# About strings
# strings for About


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": {
            "windowtitle": "À propos…",
            "title": "Grammalecte",
            "version": "Version : ${version}",
            "license": "Licence : GPL 3",
            "website": "Site web",
        "windowtitle": "À propos…",
        "title": "Grammalecte",
        "version": "Version : ${version}",
        "license": "Licence : GPL 3",
        "website": "Site web",

            "pythonver": "Python v",
            "console": "Console",
        "pythonver": "Python v",
        "console": "Console",

            "message": "Avec le soutien de",
            "sponsor": "La Mouette…",
            "sponsor2": "Algoo…",
            "link": "… et de nombreux contributeurs.",
        "message": "Avec le soutien de",
        "sponsor": "La Mouette…",
        "sponsor2": "Algoo…",
        "link": "… et de nombreux contributeurs.",

            "close": "~OK"
          },
        "close": "~OK"
    },
    "en": {
            "windowtitle": "About…",
            "title": "Grammalecte",
            "version": "Version: ${version}",
            "license": "License: GPL 3",
            "website": "Web site",
        "windowtitle": "About…",
        "title": "Grammalecte",
        "version": "Version: ${version}",
        "license": "License: GPL 3",
        "website": "Web site",

            "pythonver": "Python v",
            "console": "Console",
        "pythonver": "Python v",
        "console": "Console",

            "message": "With the support of",
            "sponsor": "La Mouette…",
            "sponsor2": "Algoo…",
            "link": "… and many contributors.",
        "message": "With the support of",
        "sponsor": "La Mouette…",
        "sponsor2": "Algoo…",
        "link": "… and many contributors.",

            "close": "~OK"
          }
        "close": "~OK"
    }
}