Add a language zh_code & Adjust languages (#725)
* Add language zh_code & Adjust some language * Update lang_pt.lua
This commit is contained in:
1
main.lua
1
main.lua
@@ -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;
|
||||
|
||||
@@ -23,6 +23,7 @@ return{
|
||||
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 ",
|
||||
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",
|
||||
|
||||
@@ -22,6 +22,7 @@ return{
|
||||
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 ",
|
||||
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",
|
||||
|
||||
@@ -12,6 +12,7 @@ return{
|
||||
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 ",
|
||||
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",
|
||||
|
||||
@@ -24,6 +24,7 @@ return{
|
||||
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 ",
|
||||
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",
|
||||
|
||||
@@ -24,6 +24,7 @@ return{
|
||||
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 ",
|
||||
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="設定",
|
||||
|
||||
@@ -13,6 +13,7 @@ return{
|
||||
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 ",
|
||||
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.",
|
||||
|
||||
@@ -22,6 +22,7 @@ return{
|
||||
atkModeName={"?","( )","!","←→"},
|
||||
royale_remain="$1 ~",
|
||||
cmb={nil,"!","!!","!!!","!!!!","!!!!!","!!!!!!","!!!!!!!","!!!!!!!!","!!!!!!!!!","!!!!!!!!!!","!!!!!!!!!!!","!!!!!!!!!!!!","!!!!!!!!!!!!!","!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!!!!","!!!!!!!!!!!!!!!!!!!!",},
|
||||
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="",
|
||||
@@ -135,7 +136,7 @@ return{
|
||||
WidgetText={
|
||||
main={
|
||||
offline="!",
|
||||
qplay="(!)",
|
||||
qplay="(!): ",
|
||||
online="!!!",
|
||||
custom="_?!",
|
||||
setting="_?_",
|
||||
|
||||
@@ -23,6 +23,7 @@ return{
|
||||
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 ",
|
||||
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="设置",
|
||||
|
||||
1303
parts/language/lang_zh_code.lua
Normal file
1303
parts/language/lang_zh_code.lua
Normal file
File diff suppressed because it is too large
Load Diff
@@ -23,6 +23,7 @@ return{
|
||||
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 ",
|
||||
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="設置",
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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},
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user