UAE_DUBAI: generated menus & WIP support langs

This commit is contained in:
Pakin 2024-04-02 14:41:43 +07:00
parent 5e24f2918a
commit ba14e8e86c
19 changed files with 24856 additions and 23362 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 947 B

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
ENG,THAI,UAE_DUBAI

View file

@ -203,12 +203,15 @@
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
if verbose == "debug_lang":
print("languageGroup", spl)
out_xml( '\t<LanguageGroup>\r\n')
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot1>\r\n')
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot2>\r\n')
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_name][ idx_lang_eng] + '</LanguageSlot3>\r\n')
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_name][ idx_lang_dubai] + '</LanguageSlot3>\r\n')
out_xml( '\t\t<LanguageSlot4>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot4>\r\n')
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_malay] + '</LanguageSlot5>\r\n')
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_name][ idx_lang_dubai] + '</LanguageSlot5>\r\n')
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_name][ idx_lang_thai] + '</LanguageSlot6>\r\n')
out_xml( '\t</LanguageGroup>\r\n')
@ -225,9 +228,9 @@
out_xml( '\t<LanguageGroup>\r\n')
out_xml( '\t\t<LanguageSlot1>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot1>\r\n')
out_xml( '\t\t<LanguageSlot2>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot2>\r\n')
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_desc][ idx_lang_eng] + '</LanguageSlot3>\r\n')
out_xml( '\t\t<LanguageSlot3>' + spl[ idx_desc][ idx_lang_dubai] + '</LanguageSlot3>\r\n')
out_xml( '\t\t<LanguageSlot4>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot4>\r\n')
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_desc][ idx_lang_malay] + '</LanguageSlot5>\r\n')
out_xml( '\t\t<LanguageSlot5>' + spl[ idx_desc][ idx_lang_dubai] + '</LanguageSlot5>\r\n')
out_xml( '\t\t<LanguageSlot6>' + spl[ idx_desc][ idx_lang_thai] + '</LanguageSlot6>\r\n')
out_xml( '\t</LanguageGroup>\r\n')
@ -455,10 +458,13 @@
def GenMenuBlock( idx_hot_product_code, idx_cold_product_code, idx_blend_product_code):
GenMenuProductCodeBlock( spl[ idx_name][ idx_hot_product_code], spl[ idx_name][ idx_cold_product_code] , spl[ idx_name][ idx_blend_product_code] )
# should not be fixed position
idx_lang_malay = 5
idx_lang_japan = 4
idx_lang_china = 3
idx_lang_dubai = 3
idx_lang_thai = 2
idx_lang_eng = 1

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,5 @@
Var lang_icon_file_name[0] = "bn_eng_lang.png"
Var lang_icon_file_name[1] = "bn_thai_lang.png"
var lang_icon_file_name[2] = "bn_uae_dubai_lang.png"
DEBUGVAR lang_icon_file_name[2]

View file

@ -605,7 +605,7 @@
;inter-xml-open
If CountryName = "UnitedArabEmirates Dubai" Then
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/sgp/video/script_video.ev"
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/uae_dubai/video/script_video.ev"
EndIf
@ -822,10 +822,11 @@
;inter-page-board
; wait
If CountryName = "UnitedArabEmirates Dubai" Then
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/sgp/video/script_video.ev"
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/uae_dubai/video/script_video.ev"
Var WebAppShow = "Invisible"
EnableLanguage "ENG"
EnableLanguage "UAE_DUBAI"
SetLanguage "ENG"
LanguageControl "UpdateList" "-"
@ -835,16 +836,16 @@
Var ShowNetworkProblemText = "Network error. Payment Cash only."
Var CountryRootPath = "ROOT/taobin_project/inter/sgp/"
ar TextPriceMenuSize = 12
Var CountryRootPath = "ROOT/taobin_project/inter/uae_dubai/"
Var TextPriceMenuSize = 12
Var TextPriceMenuY = 264
Var TextPriceMenuBlendX = 180
Var TextPriceMenuHotX = 48
Var ShowButtonClick2 = "Enable"
Var ButtontoTopupMenu = "Invisible"
Var PriceUnitText = "Price in SGD"
Var PriceUnitText = "Price in AED"
Var MemberButtonFileName = "ROOT/taobin_project/image/main_page_en/bp_main_page_member.png"
Var show_eng_button_stage = "Invisible"
@ -855,7 +856,7 @@
Var YButtonMember = 1695
If Not#LanguageLoaded = "" Then
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/inter/sgp/menu/lang.tsv"
LoadLanguage "/mnt/sdcard/coffeevending/taobin_project/inter/uae_dubai/menu/lang.tsv"
EndIf
EndIf
@ -863,6 +864,7 @@
DEBUGVAR InternationalEnable
DEBUGVAR CountryRootPath

View file

@ -1684,7 +1684,7 @@ EndIf
<X> 182 </X>
<Y> 748 </Y>
<State> alphaState2 </State>
<Filename> Var( DirImage2 + "/img_popup11-dubai.png" )</Filename>
<Filename> Var( DirImage2 + "/img_popup11-UAE_DUBAI.png" )</Filename>
</Image>

View file

@ -5,12 +5,36 @@
<EventOpen>
Var Top2Timeout = 0
Var lang_icon_file_name[0] = "bn_eng_lang.png"
Var lang_icon_file_name[1] = "bn_thai_lang.png"
Var lang_icon_file_name[3] = "bn_japan_lang.png"
Var lang_icon_file_name[2] = "bn_china_lang.png"
If InternationalEnable = 1 Then
Var topview2_script = CountryRootPath + "/xml/topview2_script.ev"
Var lang_icon_file_name[4] = "bn_malay_lang.png"
; will apply other countries
If CountryName = "UnitedArabEmirates Dubai" Then
TRY topview2_script
Else
Var lang_icon_file_name[0] = "bn_eng_lang.png"
Var lang_icon_file_name[1] = "bn_thai_lang.png"
Var lang_icon_file_name[3] = "bn_japan_lang.png"
Var lang_icon_file_name[2] = "bn_china_lang.png"
Var lang_icon_file_name[4] = "bn_malay_lang.png"
var lang_icon_file_name[5] = "bn_uae_dubai_lang.png"
EndIf
Else
Var lang_icon_file_name[0] = "bn_eng_lang.png"
Var lang_icon_file_name[1] = "bn_thai_lang.png"
Var lang_icon_file_name[3] = "bn_japan_lang.png"
Var lang_icon_file_name[2] = "bn_china_lang.png"
Var lang_icon_file_name[4] = "bn_malay_lang.png"
var lang_icon_file_name[5] = "bn_uae_dubai_lang.png"
EndIf
Var LanguageButtonListEnable = "Invisible"
@ -249,6 +273,14 @@
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_UAE_DUBAI </State>
<Image>
<Filename> "ROOT/taobin_project/image/lang/lang_bg_center.png" </Filename>
</Image>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 51 </Height>
@ -371,6 +403,27 @@
</EventClick>
</Button>
</Row1>
<Row1>
<Width> 82 </Width>
<Height> 68 </Height>
<State> ENABLE_UAE_DUBAI </State>
<Button>
<X> 0 </X>
<Y> 0 </Y>
<Width> 82 </Width>
<Height> 56 </Height>
<State> ENABLE_UAE_DUBAI </State>
<Filename> "ROOT/taobin_project/image/lang/bn_uae_dubai_lang.png" </Filename>
<EventClick>
SetLanguage "UAE_DUBAI"
Var LanguageButtonListEnable = "Invisible"
Var langFileNameIcon = lang_icon_file_name[LanguageShowByIndex]
Var langfn = "ROOT/taobin_project/image/lang/" + langFileNameIcon
Open "ROOT/taobin_project/xml/topview2.xml"
</EventClick>
</Button>
</Row1>
</ListView1>