1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
def getUI (sLang):
if sLang in dStrings:
return dStrings[sLang]
return dStrings["fr"]
dStrings = {
"fr": {
"title": "Grammalecte · Recenseur",
"list_section": "Calcul des occurrences des mots",
"count_button": "Compter tout",
"count2_button": "Compter par lemme",
"unknown_button": "Mots inconnus",
"num_of_entries": "Nombre d’entrées :",
"tot_of_entries": "Total des entrées :",
"words": "Mots",
|
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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",
"count2_button": "Compter par lemme",
"unknown_button": "Mots inconnus",
"num_of_entries": "Nombre d’entrées :",
"tot_of_entries": "Total des entrées :",
"words": "Mots",
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
"accentuation": "Accentuation",
"noaccentuation": "Aucun",
"tag_button": "Taguer",
"close_button": "Fermer",
},
"en": {
"title": "Grammalecte · Enumerator",
"list_section": "Words",
"count_button": "Count all",
"count2_button": "Count by lemma",
"unknown_button": "Unknown words",
"num_of_entries": "Number of entries:",
"tot_of_entries": "Total of words:",
"words": "Words",
|
|
|
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
"accentuation": "Accentuation",
"noaccentuation": "Aucun",
"tag_button": "Taguer",
"close_button": "Fermer",
},
"en": {
"title": "Grammalecte · Enumerator of words",
"list_section": "Occurrences enumeration",
"count_button": "Count all",
"count2_button": "Count by lemma",
"unknown_button": "Unknown words",
"num_of_entries": "Number of entries:",
"tot_of_entries": "Total of words:",
"words": "Words",
|