1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| PUBLIC SUB langues() 'contrôle de la langue système au démarrage
DIM cLangues AS String[] = ["en", "fr", "es", "it", "pt", "de", "ru"]
IF NOT cLangues.Exist(Left(System.Language, 2)) THEN 'si la langue n'existe pas dans les traductions fournies Settings["General/LangInit"] = "en" 'alors c'est l'anglais qui est choisi pour peu que la traduction existe. ELSE IF Settings["General/LangInit"] = "en" THEN System.Language = "en_US.UTF-8" ELSE IF Settings["General/LangInit"] = "fr" THEN System.Language = "fr_FR.UTF-8" ELSE IF Settings["General/LangInit"] = "es" THEN System.Language = "es_ES.UTF-8" ELSE IF Settings["General/LangInit"] = "it" THEN System.Language = "it_IT.UTF-8" ELSE IF Settings["General/LangInit"] = "pt" THEN System.Language = "pt_PT.UTF-8" ELSE IF Settings["General/LangInit"] = "ru" THEN System.Language = "ru_RU.UTF-8" ELSE IF Settings["General/LangInit"] = "de" THEN System.Language = "de_DE.UTF-8" ENDIF
END
|