修复语言文件系统之前的fallback的问题(fullCopy标签错误使用)

This commit is contained in:
MrZ626
2020-11-02 14:48:54 +08:00
parent b4a103f5f1
commit cea6e2343c
7 changed files with 12 additions and 12 deletions

View File

@@ -535,7 +535,7 @@ return{
reset3="Reset all",
},
},
modes={fullCopy=true,
modes={
["sprint_10"]= {"Sprint", "10L", "Clear 10 lines!"},
["sprint_20"]= {"Sprint", "20L", "Clear 20 lines!"},
["sprint_40"]= {"Sprint", "40L", "Clear 40 lines!"},
@@ -621,7 +621,7 @@ return{
["sprintPenta"]= {"Sprint", "PENTOMINO", "Clear 40 lines with 18 pentominoes."},
["sprintMPH"]= {"Sprint", "MPH", "Memoriyless\nPreviewless\nHoldless"},
},
getTip={fullCopy=true,
getTip={refuseCopy=true,
'Free block game with Battle Royale mode!',
'Have you noticed what "rotating" does do to the block?',
":pog:",

View File

@@ -539,7 +539,7 @@ return{
reset3="Tout réinitialiser",
},
},
modes={fullCopy=true,
modes={
["sprint_10"]= {"Sprint", "10L", "Nettoyez 10 lignes !"},
["sprint_20"]= {"Sprint", "20L", "Nettoyez 20 lignes !"},
["sprint_40"]= {"Sprint", "40L", "Nettoyez 40 lignes !"},

View File

@@ -538,7 +538,7 @@ return{
reset3="Reiniciar todo",
},
},
modes={fullCopy=true,
modes={
["sprint_10"]= {"Sprint", "10L", "¡Limpia 10 líneas!"},
["sprint_20"]= {"Sprint", "20L", "¡Limpia 20 líneas!"},
["sprint_40"]= {"Sprint", "40L", "¡Limpia 40 líneas!"},

View File

@@ -179,7 +179,7 @@ return{
tapFX="动画",
},
},
modes={fullCopy=true,
modes={
["sprint_10"]= {"竞速", "10L", "消10行"},
["sprint_20"]= {"竞速", "20L", "消20行"},
["sprint_40"]= {"竞速", "40L", "消40行"},
@@ -265,7 +265,7 @@ return{
["sprintPenta"]= {"竞速", "五连块", "离谱"},
["sprintMPH"]= {"竞速", "纯净", "听说你反应很快?"},
},
getTip={fullCopy=true,
getTip={refuseCopy=true,
"100apm?你倒是不用开局定式连续打几把",
"10连pc不是随手?",
"20G很难?是个人都能玩吧。",

View File

@@ -118,7 +118,7 @@ return{
"全/半清:",
"多余操作/极简率:",
},
help={fullCopy=true,
help={
"既然你能玩到这个游戏,应该也不需要什么帮助吧?",
"这只是一个普通的方块游戏,请勿称此游戏为某某某方块",
"从TO/C2/KOS/TGM3/JS等方块获得过灵感",
@@ -537,7 +537,7 @@ return{
reset3="清空所有数据",
},
},
modes={fullCopy=true,
modes={
["sprint_10"]= {"竞速", "10L", "消除10行"},
["sprint_20"]= {"竞速", "20L", "消除20行"},
["sprint_40"]= {"竞速", "40L", "消除40行"},
@@ -623,7 +623,7 @@ return{
["sprintPenta"]= {"竞速", "五连块", "伤脑筋十八块"},
["sprintMPH"]= {"竞速", "MPH", "纯随机\n无预览\n无暂存"},
},
getTip={fullCopy=true,
getTip={refuseCopy=true,
'注意到"旋转"到底对方块做了些什么吗?',
"(RUR'U')R'FR2U'R'U'(RUR'F')",
"↑↑↓↓←→←→BA",

View File

@@ -111,7 +111,7 @@ return{
pong="弹球",
},
},
modes={fullCopy=true,
modes={
["sprint_10"]= {"竞速", "10行", "消除10行"},
["sprint_20"]= {"竞速", "20行", "消除20行"},
["sprint_40"]= {"竞速", "40行", "消除40行"},

View File

@@ -43,9 +43,9 @@ local publicWidgetText={
}
local function langFallback(T0,T)
for k,v in next,T0 do
if type(v)=="table"and not v.fullCopy then--fullCopy=true : copy pointer instead of content
if type(v)=="table"and not v.refuseCopy then--refuseCopy: just copy pointer, not contents
if not T[k]then T[k]={}end
if type(T[k])=="table"and not v[1]then langFallback(v,T[k])end
if type(T[k])=="table"then langFallback(v,T[k])end
elseif not T[k]then
T[k]=v
end