proudust / ddlc-mas-jp-patch

DDLC MOD Monika After Story Japanese Language Submod
https://steamcommunity.com/sharedfiles/filedetails/?id=1331592265
11 stars 0 forks source link

話題 "Dealing with haters" で翻訳未反映 #67

Closed proudust closed 5 months ago

proudust commented 1 year ago

DDLC Monika After Story 日本語化 作業所より引用 話題 "Dealing with haters" で翻訳未反映

属性: strings
原文: You're not one of those haters, are you [player]?
翻訳: [player]君、あなたは私のことを嫌ってないよね、ね?
コメント: |
  悪い冗談について特に気にしていない場合のmenuOption
  何故か文字列連結してるのでMAS側にパッチ送らないと訳せない

script-topics / monika_haterReaction

proudust commented 10 months ago

MAS 本体へ送信する修正は以下でおそらく OK。(未確認)

https://github.com/Monika-After-Story/MonikaModDev/commit/2169fbdb45af7c3adaa2e2eccf8c8624c2025450

proudust commented 10 months ago

非公式パッチ側でも 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
proudust commented 10 months ago

↑ 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
proudust commented 10 months ago

よく考えたら monika_haterReaction_91847127 の時点で menuOption が差し変わっているので monika_haterReaction_912dd85b は特殊対応不要。