Skip to content

サイバーパンクレッド韓国語翻訳 #777

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

park-se-jun
Copy link

以前にディスコードにサイバーパンクレッドの韓国語翻訳ファイルを載せたユーザーです。

そのファイルを今見直すとエラーがいっぱいあり、ファイル修正+若干のソース変更をしてpr上げます。

  • ファイルの修正
      def eval_game_system_specific_command(command)
        debug("eval_game_system_specific_command begin string", command)
        cp_roll_result(command) || roll_tables(command, TABLES)
      end

から

      def eval_game_system_specific_command(command)
        debug("eval_game_system_specific_command begin string", command)
        cp_roll_result(command) || roll_tables(command, self.class::TABLES)
      end

上記のコードでは、TABLESにi18nが適用されないため、self.class::TABLESに置き換えました。

p.s このファイルのテーブル変数がクラス定数であるため、TABLES = translate_table(@Locale)が正しく機能しないようです。 (@Localeはクラス変数なので)

- ko_kr.yml
- CyberpunkRed_Korea.rb
- CyberpunkRed_Korea.toml
Line 71 was roll_tables(command, TABLES) so it read tables that not translated.

So I change that roll_tables(command, self.class::TABLES).
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.

1 participant