Grammalecte  Diff

Differences From Artifact [566a315685]:

To Artifact [2ba14d763e]:







1

2





3

4

5
6
7
8
9
10
11





def getUI (sLang):

    if sLang in dStrings:





        return dStrings[sLang]

    return dStrings["fr"]


dStrings = {
    "fr": {
        "title": "Grammalecte · Recenseur de mots",

        "list_section": "Énumération des occurrences",
        "count_button": "Compter tout",
>
>
>
>
>
|
>

>
>
>
>
>
|
>
|
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# strings for Enumerator

sUI = "fr"


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


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


dStrings = {
    "fr": {
        "title": "Grammalecte · Recenseur de mots",

        "list_section": "Énumération des occurrences",
        "count_button": "Compter tout",