Closed proudust closed 5 months ago
MAS 本体へ送信する修正は以下でおそらく OK。(未確認)
https://github.com/Monika-After-Story/MonikaModDev/commit/2169fbdb45af7c3adaa2e2eccf8c8624c2025450
非公式パッチ側でも if 式でゴリ押し修正ができる気がする。(未確認)
translate Japanese monika_haterReaction_91847127:
m `[menuOption if persistent._mas_pm_cares_about_dokis else "You're not one of those haters, are you [player]?"!t]{nw}`
translate Japanese monika_haterReaction_912dd85b:
m `[menuOption if persistent._mas_pm_cares_about_dokis else "You're not one of those haters, are you [player]?"!t]{fast}` nointeract
↑ if 式の中に '
"
があると正しく機能しない模様。
また単純にテキストタグによる置換とすると今度は [player]
の置換が行われない。
しかも Ren'Py バージョンが古いので !i
フラグも使えない。
仕方が無いので renpy.substitute
で予め翻訳・置換した文字列を menuOption
に代入するよう変更。
translate Japanese monika_haterReaction_91847127:
if not persistent._mas_pm_cares_about_dokis:
$ menuOption = renpy.substitute("You're not one of those haters, are you [player]?")
m "[menuOption!t]{nw}"
translate Japanese monika_haterReaction_912dd85b:
if not persistent._mas_pm_cares_about_dokis:
$ menuOption = renpy.substitute("You're not one of those haters, are you [player]?")
m "[menuOption!t]{fast}" nointeract
よく考えたら monika_haterReaction_91847127
の時点で menuOption
が差し変わっているので monika_haterReaction_912dd85b
は特殊対応不要。
DDLC Monika After Story 日本語化 作業所より引用 話題 "Dealing with haters" で翻訳未反映