Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

歯車の塔の探空士(SkynautsBouken) Dicebot 韓国語(Korean) #738

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

40food
Copy link
Contributor

@40food 40food commented Sep 2, 2024

こんにちは。スカイナッツを楽しんでいる韓国人です。
翻訳機を使っているので文章がぎこちないかもしれません。 また、rubyを初めて使うので慣れていません。 ご了承ください.

探査機の韓国語ダイスボットがないのが残念で追加してみました。
追加事項は次のとおりです。

  • i18n\SkynautsBouken\ko_kr.yml
  • lib\bcdice\game_system\SkynautsBouken_Korean.rb
  • lib\bcdice\game_system.rb (経路のみ追加)
  • test\data\SkynautsBouken_Korean.toml

テストをパスしたのですが、従来あったスカイナッツダイスボットで韓国語が適用されたtableを取り込むことができず、強制的に親classのmethodを呼び出すようにコードを組みました。 もし問題があるようでしたらおっしゃってください。

sendメソッドを使用して親classのprivate methodを呼び出す

def call_private_translate_tables
self.class.send(:translate_tables, @locale)
end
def call_private_translate_direction_infos
self.class.send(:translate_direction_infos, @locale)
end

@ysakasin ysakasin merged commit 54ab698 into bcdice:master Jan 27, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants