Commit 17293014 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix, web.sh with zh-CN locale seems works now

parent ba3806a3
......@@ -28,6 +28,7 @@ class LanguageConstants
attr_accessor :pendulum_effect_head
attr_accessor :monster_effect_head
attr_accessor :term_races # 偷个鸡
attr_accessor :mse_language
class << self
attr_accessor :languages
......@@ -44,6 +45,7 @@ class LanguageConstants
end
self.languages[locale].pendulum_effect_head = value['pendulum_effect_head']
self.languages[locale].monster_effect_head = value['monster_effect_head']
self.languages[locale].mse_language = value['mse_language']
end
end
end
......@@ -8,7 +8,7 @@ module MSETranslator
module_function
def write_set(file, set)
file.write(sprintf(MSEConstants::MSEConfig::Head, Global.language.upcase))
file.write(sprintf(MSEConstants::MSEConfig::Head, LanguageConstants.current.mse_language.upcase))
for card in set
self.write_card(file, card)
end
......
......@@ -51,4 +51,4 @@ ja-JP:
- "幻竜族"
pendulum_effect_head: !ruby/regexp /【Pスケール:青(.*)/赤(.*)】(\n)?/
monster_effect_head: !ruby/regexp /(\n)?【モンスター効果】\n/
mse_language: jp
......@@ -51,4 +51,4 @@ zh-CN:
- "幻龙族"
pendulum_effect_head: !ruby/regexp /←\\d 【灵摆】 \\d→(\\n)?/
monster_effect_head: "\n【怪兽效果】\n"
mse_language: cn
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment