More language code fixes
I commit in several commits to check autobuild
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
if tup.getconfig('NO_JWASM') ~= "" or tup.getconfig("NO_GCC") ~= "" then return end
|
||||
|
||||
if tup.getconfig("LANG") == "it" then
|
||||
if tup.getconfig("LANG") == "it_IT" then
|
||||
tup.definerule{command = "echo LANG_IT = 1 > %o", outputs = {"lang.inc"}}
|
||||
elseif tup.getconfig("LANG") == "sp" then
|
||||
elseif tup.getconfig("LANG") == "es_ES" then
|
||||
tup.definerule{command = "echo LANG_SP = 1 > %o", outputs = {"lang.inc"}}
|
||||
elseif tup.getconfig("LANG") == "ru" then
|
||||
elseif tup.getconfig("LANG") == "ru_RU" then
|
||||
tup.definerule{command = "echo LANG_RU = 1 > %o", outputs = {"lang.inc"}}
|
||||
elseif tup.getconfig("LANG") == "en" then
|
||||
elseif tup.getconfig("LANG") == "en_US" then
|
||||
tup.definerule{command = "echo LANG_EN = 1 > %o", outputs = {"lang.inc"}}
|
||||
else
|
||||
tup.definerule{command = "echo LANG_EN = 1 > %o", outputs = {"lang.inc"}}
|
||||
|
||||
@@ -3,5 +3,5 @@ HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HEL
|
||||
tup.include(HELPERDIR .. "/use_fasm.lua")
|
||||
add_include(tup.getvariantdir())
|
||||
|
||||
tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "ru" or tup.getconfig("LANG")) .. " > %o", {"lang.inc"})
|
||||
tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "ru_RU" or tup.getconfig("LANG")) .. " > %o", {"lang.inc"})
|
||||
tup.rule({"format.asm", extra_inputs = {"lang.inc"}}, FASM .. " %f %o " .. tup.getconfig("KPACK_CMD"), "FORMAT")
|
||||
|
||||
@@ -346,7 +346,7 @@ ch2 check_box2 Otstup shl 16 + 12, (190+dy) shl 16 + 12, 6, 0xFFFFFFFF, 0xAABBCC
|
||||
|
||||
browse db '...', 0
|
||||
|
||||
if lang eq ru ;RU language
|
||||
if lang eq ru_RU ;RU language
|
||||
|
||||
title db "Formatting Disk Utility", 0
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HEL
|
||||
tup.include(HELPERDIR .. "/use_tcc.lua")
|
||||
CFLAGS += " -I" .. tup.getvariantdir()
|
||||
|
||||
if tup.getconfig("LANG") == "ru"
|
||||
if tup.getconfig("LANG") == "ru_RU"
|
||||
then C_LANG = "LANG_RUS"
|
||||
else C_LANG = "LANG_ENG" -- this includes default case without config
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user