Add a language zh_code & Adjust languages (#725)

* Add language zh_code & Adjust some language

* Update lang_pt.lua
This commit is contained in:
XMiao
2022-07-17 23:20:41 +08:00
committed by GitHub
parent 8d61759d4c
commit e161e39b66
14 changed files with 1346 additions and 32 deletions

View File

@@ -389,6 +389,7 @@ LANG.init('zh',
id=require'parts.language.lang_id',
ja=require'parts.language.lang_ja',
symbol=require'parts.language.lang_symbol',
zh_code=require'parts.language.lang_zh_code',
--1. Add language file to LANG folder;
--2. Require it;
--3. Add a button in parts/scenes/lang.lua;

View File

@@ -22,7 +22,8 @@ return{
royale_remain="$1 Players Left",
powerUp={[0]="+000%","+025%","+050%","+075%","+100%"},
cmb={nil,"1 Combo","2 Combo","3 Combo","4 Combo","5 Combo","6 Combo","7 Combo","8 Combo","9 Combo","10 Combo!","11 Combo!","12 Combo!","13 Combo!","14 Combo!!","15 Combo!!","16 Combo!!","17 Combo!!!","18 Combo!!!","19 Combo!!!","MEGACMB"},
spin="-spin",
spin="-spin ",
spinNC="-spin",
clear={"Single","Double","Triple","Techrash","Pentacrash","Hexacrash","Heptacrash","Octacrash","Nonacrash","Decacrash","Undecacrash","Dodecacrash","Tridecacrash","Tetradecacrash","Pentadecacrash","Hexadecacrash","Heptadecacrash","Octadecacrash","Nonadecacrash","Ultracrash","Impossicrash"},
cleared="$1 lines",
mini="Mini",b2b="B2B ",b3b="B2B2B ",
@@ -326,7 +327,7 @@ return{
WidgetText={
main={
offline="Single Player",
qplay="Last Played",
qplay="Last Played: ",
online="Multiplayer",
custom="Custom Game",
setting="Settings",
@@ -555,11 +556,11 @@ return{
shape="Shape",
},
setting_touchSwitch={
b1= "Move Left:", b2="Move Right:", b3="Rotate Right:", b4="Rotate Left:",
b5= "Rotate 180°:", b6="Hard Drop:", b7="Soft Drop:", b8="Hold:",
b9= "Function 1:", b10="Function 2:", b11="Instant Left:", b12="Instant Right:",
b13="Sonic Drop:", b14="Down 1:", b15="Down 4:", b16="Down 10:",
b17="Left Drop:", b18="Right Drop:",b19="Left Zangi:", b20="Right Zangi:",
b1= "Move Left:", b2="Move Right:", b3="Rotate Right:", b4="Rotate Left:",
b5= "Rotate 180°:", b6="Hard Drop:", b7="Soft Drop:", b8="Hold:",
b9= "Function 1:", b10="Function 2:", b11="Instant Left:", b12="Instant Right:",
b13="Sonic Drop:", b14="Down 1:", b15="Down 4:", b16="Down 10:",
b17="Left Drop:", b18="Right Drop:", b19="Left Zangi:", b20="Right Zangi:",
norm="Normal",
pro="Advanced",

View File

@@ -21,7 +21,8 @@ return{
atkModeName={"Al azar","Medallas","KOs","Atacantes"},
royale_remain="$1 Jugadores Restantes",
cmb={nil,"Combo de 1","Combo de 2","Combo de 3","Combo de 4","Combo de 5","Combo de 6","Combo de 7","Combo de 8","Combo de 9","¡Combo de 10!","¡Combo de 11!","¡Combo de 12!","¡Combo de 13!","¡Combo de 14!","¡Combo de 15!","¡Combo de 16!","¡Combo de 17!","¡Combo de 18!","¡Combo de 19!","MEGACOMBO"},
spin="-spin",
spin="-spin ",
spinNC="-spin",
clear={"Single","Doble","Triple","Techrash","Pentacrash","Hexacrash","Heptacrash","Octacrash","Nonacrash","Decacrash","Undecacrash","Dodecacrash","Tridecacrash","Tetradecacrash","Pentadecacrash","Hexadecacrash","Heptadecacrash","Octadecacrash","Nonadecacrash","Ultracrash","Impossicrash"},
cleared="$1 líneas",
mini="Mini",b2b="B2B ",b3b="B2B2B ",
@@ -326,7 +327,7 @@ return{
WidgetText={
main={
offline="Mapa de Modos",
qplay="Reciente",
qplay="Reciente: ",
online="Multijugador",
custom="Personalizado",
setting="Opciones",

View File

@@ -11,7 +11,8 @@ return{
atkModeName={"Aléatoire","Badges","K.O.s faciles","Attaquants"},
royale_remain="$1 Joueurs restants",
cmb={nil,"1 Combo","2 Combo","3 Combo","4 Combo","5 Combo","6 Combo","7 Combo","8 Combo","9 Combo","10 Combo!","11 Combo!","12 Combo!","13 Combo!","14 Combo!!","15 Combo!!","16 Combo!!","17 Combo!!!","18 Combo!!!","19 Combo!!!","MEGACMB"},
spin="-spin",
spin="-spin ",
spinNC="-spin",
clear={"Simple","Double","Triple","Techrash","Pentacrash","Hexacrash","Heptacrash","Octacrash","Nonacrash","Decacrash","Undecacrash","Dodecacrash","Tridecacrash","Tetradecacrash","Pentadecacrash","Hexadecacrash","Heptadecacrash","Octadecacrash","Nonadecacrash","Ultracrash","Impossicrash"},
-- cleared="$1 lines",
mini="Mini",b2b="B2B ",b3b="B2B2B ",
@@ -293,7 +294,7 @@ return{
WidgetText={
main={
-- offline="Solo",
-- qplay="Last Play",
-- qplay="Last Play: ",
-- online="Multi",
-- custom="Mode perso.",
setting="Paramètres",

View File

@@ -23,7 +23,8 @@ return{
royale_remain="$1 Pemain Tersisa",
powerUp={[0]="+000%","+025%","+050%","+075%","+100%"},
cmb={nil,"1 Kombo","2 Kombo","3 Kombo","4 Kombo","5 Kombo","6 Kombo","7 Kombo","8 Kombo","9 Kombo","10 Kombo!","11 Kombo!","12 Kombo!","13 Kombo!","14 Kombo!!","15 Kombo!!","16 Kombo!!","17 Kombo!!!","18 Kombo!!!","19 Kombo!!!","MEGA KOMBO"},
spin=" spin",
spin=" spin ",
spinNC=" spin",
clear={"Single","Double","Triple","Techrash","Pentacrash","Hexacrash","Heptacrash","Oktacrash","Nonacrash","Decacrash","Undecacrash","Dodecacrash","Tridecacrash","Tetradecacrash","Pentadecacrash","Hexadecacrash","Heptadecacrash","Octadecacrash","Nonadecacrash","Ultracrash","Impossicrash"},
cleared="$1 baris",
mini="Mini",b2b="B2B ",b3b="B2B2B ",
@@ -327,7 +328,7 @@ return{
WidgetText={
main={
offline="Main Sendiri",
qplay="Terakhir Dimain",
qplay="Terakhir Dimain: ",
online="Multipemain",
custom="Permainan Tersesuai",
setting="Pengaturan",

View File

@@ -23,7 +23,8 @@ return{
royale_remain="残り $1 人",
powerUp={[0]="+000%","+025%","+050%","+075%","+100%"},
cmb={nil,"1 REN","2 REN","3 REN","4 REN","5 REN","6 REN","7 REN","8 REN","9 REN","10 REN!","11 REN!","12 REN!","13 REN!","14 REN!!","15 REN!!","16 REN!!","17 REN!!!","18 REN!!!","19 REN!!!","MEGAREN"},
spin="-spin",
spin="-spin ",
spinNC="-spin",
clear={"Single","Double","Triple","Techrash","Pentacrash","Hexacrash","Heptacrash","Octacrash","Nonacrash","Decacrash","Undecacrash","Dodecacrash","Tridecacrash","Tetradecacrash","Pentadecacrash","Hexadecacrash","Heptadecacrash","Octadecacrash","Nonadecacrash","Ultracrash","Impossicrash"},
cleared="$1 Lines",
mini="Mini",b2b="B2B ",b3b="B2B2B ",
@@ -328,7 +329,7 @@ return{
WidgetText={
main={
offline="ソロプレイ",
qplay="続きから",
qplay="続きから: ",
online="マルチプレイ",
custom="カスタムプレイ",
setting="設定",

View File

@@ -12,7 +12,8 @@ return{
atkModeName={"Aleatório","Emblemas","K.O.s","Atacantes"},
royale_remain="$1 Jogadores restantes",
cmb={nil,"1 Combo","2 Combo","3 Combo","4 Combo","5 Combo","6 Combo","7 Combo","8 Combo","9 Combo","10 Combo!","11 Combo!","12 Combo!","13 Combo!","14 Combo!!","15 Combo!!","16 Combo!!","17 Combo!!!","18 Combo!!!","19 Combo!!!","MEGACMB"},
spin="-spin",
spin="-spin ",
spinNC="-spin",
clear={"Single","Double","Triple","Techrash","Pentacrash","Hexacrash","Heptacrash","Octacrash","Nonacrash","Decacrash","Undecacrash","Dodecacrash","Tridecacrash","Tetradecacrash","Pentadecacrash","Hexadecacrash","Heptadecacrash","Octadecacrash","Nonadecacrash","Ultracrash","Impossicrash"},
-- cleared="$1 lines",
mini="Mini",b2b="B2B ",b3b="B2B2B ",
@@ -315,7 +316,7 @@ return{
WidgetText={
main={
offline="Solo",
-- qplay="Last Play",
-- qplay="Last Play: ",
online="Multi",
custom="Custom",
setting="Config.",

View File

@@ -22,7 +22,8 @@ return{
atkModeName={"?","( )","!","←→"},
royale_remain="$1 ~",
cmb={nil,"!","!!","!!!","!!!!","!!!!!","!!!!!!","!!!!!!!","!!!!!!!!","!!!!!!!!!","!!!!!!!!!!","!!!!!!!!!!!","!!!!!!!!!!!!","!!!!!!!!!!!!!","!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!!!!!",},
spin=" ~",
spinNC=" ~",
spin=" ~ ",
clear={"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","20+"},
cleared="",
mini="v",b2b="^ ",b3b="^^ ",
@@ -135,7 +136,7 @@ return{
WidgetText={
main={
offline="!",
qplay="(!)",
qplay="(!): ",
online="!!!",
custom="_?!",
setting="_?_",

View File

@@ -22,7 +22,8 @@ return{
royale_remain="剩余 $1 名玩家",
powerUp={[0]="000%UP","025%UP","050%UP","075%UP","100%UP"},
cmb={nil,"1 Combo","2 Combo","3 Combo","4 Combo","5 Combo","6 Combo","7 Combo","8 Combo","9 Combo","10 Combo","11 Combo","12 Combo","13 Combo","14 Combo","15 Combo","16 Combo","17 Combo","18 Combo","19 Combo","MEGACMB"},
spin="-spin",
spin="-spin ",
spinNC="-spin",
clear={"Single","Double","Triple","Techrash","Pentacrash","Hexacrash","Heptacrash","Octacrash","Nonacrash","Decacrash","Undecacrash","Dodecacrash","Tridecacrash","Tetradecacrash","Pentadecacrash","Hexadecacrash","Heptadecacrash","Octadecacrash","Nonadecacrash","Ultracrash","Impossicrash"},
cleared="$1 lines",
mini="Mini",b2b="B2B ",b3b="B2B2B ",
@@ -327,7 +328,7 @@ return{
WidgetText={
main={
offline="单机游戏",
qplay="快速开始",
qplay="快速开始: ",
online="联网游戏",
custom="自定义",
setting="设置",

File diff suppressed because it is too large Load Diff

View File

@@ -22,7 +22,8 @@ return{
royale_remain="剩下 $1 名玩家",
powerUp={[0]="000%UP","025%UP","050%UP","075%UP","100%UP"},
cmb={nil,"1 Combo","2 Combo","3 Combo","4 Combo","5 Combo","6 Combo","7 Combo","8 Combo","9 Combo","10 Combo","11 Combo","12 Combo","13 Combo","14 Combo","15 Combo","16 Combo","17 Combo","18 Combo","19 Combo","MEGACMB"},
spin="-spin",
spin="-spin ",
spinNC="-spin",
clear={"Single","Double","Triple","Techrash","Pentacrash","Hexacrash","Heptacrash","Octacrash","Nonacrash","Decacrash","Undecacrash","Dodecacrash","Tridecacrash","Tetradecacrash","Pentadecacrash","Hexadecacrash","Heptadecacrash","Octadecacrash","Nonadecacrash","Ultracrash","Impossicrash"},
cleared="$1 lines",
mini="Mini",b2b="B2B ",b3b="B2B2B ",
@@ -327,7 +328,7 @@ return{
WidgetText={
main={
offline="單人遊戲",
qplay="快速開始",
qplay="快速開始: ",
online="網路遊戲",
custom="自定義",
setting="設置",

View File

@@ -1732,8 +1732,8 @@ do
if dospin then
cscore=(spinSCR[C.name]or spinSCR[8])[cc]
if self.b2b>800 then
self:showText(text.b3b..text.block[C.name]..text.spin.." "..text.clear[cc],0,-30,35,'stretch')
yomi = yomi..text.b3b..text.block[C.name]..text.spin.." "..text.clear[cc]
self:showText(text.b3b..text.block[C.name]..text.spin..text.clear[cc],0,-30,35,'stretch')
yomi = yomi..text.b3b..text.block[C.name]..text.spin..text.clear[cc]
atk=b2bATK[cc]+cc*.5
exblock=exblock+1
cscore=cscore*2
@@ -1742,8 +1742,8 @@ do
VOC.play('b3b',CHN)
end
elseif self.b2b>=50 then
self:showText(text.b2b..text.block[C.name]..text.spin.." "..text.clear[cc],0,-30,35,'spin')
yomi = yomi..text.b2b..text.block[C.name]..text.spin.." "..text.clear[cc]
self:showText(text.b2b..text.block[C.name]..text.spin..text.clear[cc],0,-30,35,'spin')
yomi = yomi..text.b2b..text.block[C.name]..text.spin..text.clear[cc]
atk=b2bATK[cc]
cscore=cscore*1.2
Stat.b2b=Stat.b2b+1
@@ -1751,8 +1751,8 @@ do
VOC.play('b2b',CHN)
end
else
self:showText(text.block[C.name]..text.spin.." "..text.clear[cc],0,-30,45,'spin')
yomi = yomi..text.block[C.name]..text.spin.." "..text.clear[cc]
self:showText(text.block[C.name]..text.spin..text.clear[cc],0,-30,45,'spin')
yomi = yomi..text.block[C.name]..text.spin..text.clear[cc]
atk=2*cc
end
sendTime=20+atk*20
@@ -1942,7 +1942,7 @@ do
--Spin bonus
if dospin then
self:showText(text.block[C.name]..text.spin,0,-30,45,'appear')
self:showText(text.block[C.name]..text.spinNC,0,-30,45,'appear')
self.b2b=self.b2b+20
if self.sound then
SFX.play('spin_0')

View File

@@ -8,6 +8,7 @@ local langList={
id="Bahasa Indonesia",
ja="日本語",
symbol="?????",
zh_code="Code(zh);"
}
local languages={
"Language Langue Lingua",
@@ -60,7 +61,7 @@ scene.widgetList={
WIDGET.newButton{x=1000,y=210,w=330,h=100,font=40,fText=langList.zh, color='C',sound='click',code=function()_setLang('zh')end},
WIDGET.newButton{x=1000,y=330,w=330,h=100,font=40,fText=langList.zh_trad, color='S',sound='click',code=function()_setLang('zh_trad')end},
WIDGET.newKey {x=1000,y=450,w=330,h=100,font=40,fText='', color='P'},
WIDGET.newButton{x=1000,y=450,w=330,h=100,font=40,fText=langList.zh_code, color='P',sound='click',code=function()_setLang('zh_code')end},
WIDGET.newButton{name='back',x=1000,y=570,w=330,h=100,sound='back',font=60,fText=CHAR.icon.back,code=backScene},
}

View File

@@ -39,7 +39,7 @@ end
function scene.resize()
local qpModeName=text.modes[STAT.lastPlay]and text.modes[STAT.lastPlay][1]or"["..STAT.lastPlay.."]"
scene.widgetList[2]:setObject(text.WidgetText.main.qplay..": "..qpModeName)
scene.widgetList[2]:setObject(text.WidgetText.main.qplay..qpModeName)
end
function scene.mouseDown(x,y)