forked from VFPLegacy/MagicMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
addlang.PRG
46 lines (34 loc) · 885 Bytes
/
addlang.PRG
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
LPARAMETERS tcCaptionES, tcCaptionEN, tcCaptionCN, tcHintES, tcHintEN, tcHintCN
IF EMPTY(tcCaptionES)
tcCaptionES = ""
ENDIF
IF EMPTY(tcCaptionEN)
tcCaptionEN = ""
ENDIF
*!* add by xinjie 2024.01.28
IF EMPTY(tcCaptionCN)
tcCaptionCN = ""
EndIf
IF EMPTY(tcHintES)
tcHintES = ""
ENDIF
IF EMPTY(tcHintEN)
tcHintEN = ""
EndIf
*!* add by xinjie 2024.01.28
IF EMPTY(tcHintCN)
tcHintCN = ""
EndIf
lcUnique = SYS(2015)
USE f:\desarrollo\github\vfplegacy\magicmenu\lang\languages.dbf AGAIN IN 0 ALIAS Languages
APPEND BLANK
REPLACE control_id WITH lcUnique
replace caption_es WITH tcCaptionES
replace caption_en WITH tcCaptionEN
replace hint_es WITH tcHintES
replace hint_en WITH tcHintEN
*!* add by xinjie 2024.01.28
replace caption_cn WITH tcCaptionCN
replace hint_cn WITH tcHintCN
USE IN languages
RETURN '_screen.oHelper.oLanguage.Translate("' + lcUnique + '")'