summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-08-10 18:43:12 +0900
committerSho Sakuma <me@m1sk9.dev>2026-08-10 18:43:12 +0900
commit8c19c4f6d9db58fe7340e72a8884fc0734c75ad7 (patch)
tree075cd32c247cbc26a3afc1fce9c91496ddc96424
parent4a5570973319d992f21ed01ab20e8dc9fa721d81 (diff)
downloadLunaticChat-8c19c4f6d9db58fe7340e72a8884fc0734c75ad7.tar.gz
LunaticChat-8c19c4f6d9db58fe7340e72a8884fc0734c75ad7.tar.bz2
LunaticChat-8c19c4f6d9db58fe7340e72a8884fc0734c75ad7.zip
refactor(paper): reword the /lc reload messages and mark the untranslated lines
The Japanese wording was revised in place: the messages now say "the configuration file" rather than naming config.yml at the operator, and they follow the punctuation this file already used for in-game text. English is brought in line with that wording, keeping its own trailing periods, which the rest of en.yml uses on every full sentence. The three failure headings now carry a comment saying what is printed beneath them and why those lines are never translated. A translator has no way to see that from the file alone, and the two reasons it cannot change are both easy to undo by accident: the text comes from the YAML parser, so a parser update would silently age any translation kept here, and it cannot be passed as a placeholder because a reason holding braces of its own is broken by the next substitution and then coloured as if the braces were ours.
-rw-r--r--platform-paper/src/main/resources/languages/en.yml21
-rw-r--r--platform-paper/src/main/resources/languages/ja.yml25
2 files changed, 32 insertions, 14 deletions
diff --git a/platform-paper/src/main/resources/languages/en.yml b/platform-paper/src/main/resources/languages/en.yml
index a949315..f5e6b8f 100644
--- a/platform-paper/src/main/resources/languages/en.yml
+++ b/platform-paper/src/main/resources/languages/en.yml
@@ -66,13 +66,22 @@ settings:
availableValues: "Available settings value: {values}"
reload:
- success: "Reloaded config.yml."
- restartRequired: "Reloaded config.yml, but some of the changes need a server restart to take effect."
- noChanges: "config.yml holds no change to apply."
+ success: "Reloaded the configuration file."
+ restartRequired: "Reloaded the configuration file. A server restart is required to apply the changes."
+ noChanges: "There was no change to reload."
inProgress: "A reload is already running."
- invalidSettings: "Reload aborted. These settings in config.yml could not be read:"
- invalidDocument: "Reload aborted. config.yml could not be read as a settings document:"
- unreadable: "Reload aborted. config.yml could not be read:"
+ # invalidSettings / invalidDocument / unreadable are headings. /lc reload prints the setting it
+ # could not read, and the reason, on the lines beneath them.
+ #
+ # Those detail lines are NOT translated. The reason comes from the YAML parser and stays English
+ # whatever language is selected, so a parser update cannot leave a stale translation behind here.
+ # It also cannot be carried as a {placeholder}: a reason holding braces of its own would be broken
+ # by the next substitution, and the braces would then be coloured as if they were ours.
+ # See ReloadCommand.fallbackLine / reasonLine.
+ invalidSettings: "Reload aborted. The following settings could not be read:"
+ invalidDocument: "Reload aborted. config.yml could not be read as a configuration file:"
+ unreadable: "Reload aborted. The file could not be read"
+ # The closing line shared by all three failures above.
previousKept: "The configuration the server started with is still in use."
channel:
diff --git a/platform-paper/src/main/resources/languages/ja.yml b/platform-paper/src/main/resources/languages/ja.yml
index c0910dc..275ccd9 100644
--- a/platform-paper/src/main/resources/languages/ja.yml
+++ b/platform-paper/src/main/resources/languages/ja.yml
@@ -66,14 +66,23 @@ settings:
availableValues: "使用可能な設定値: {values}"
reload:
- success: "config.yml を再読み込みしました."
- restartRequired: "config.yml を再読み込みしましたが,一部の変更の適用にはサーバーの再起動が必要です."
- noChanges: "config.yml に適用する変更はありませんでした."
- inProgress: "再読み込みはすでに実行中です."
- invalidSettings: "再読み込みを中止しました.config.yml の次の設定を読み取れません:"
- invalidDocument: "再読み込みを中止しました.config.yml を設定ファイルとして読み取れません:"
- unreadable: "再読み込みを中止しました.config.yml を読み取れません:"
- previousKept: "サーバー起動時の設定をそのまま使用します."
+ success: "設定ファイルを再読み込みしました。"
+ restartRequired: "設定ファイルを再読み込みしました。変更の適用にはサーバーの再起動が必要です"
+ noChanges: "再読み込みが必要な変更はありませんでした"
+ inProgress: "再読み込みはすでに実行中です"
+ # invalidSettings / invalidDocument / unreadable は見出しです./lc reload はこの下に,読み取れな
+ # かった設定とその理由を 1 行ずつ表示します.
+ #
+ # その明細行は翻訳されません.理由は YAML パーサーが返す文言をそのまま出しており,どの言語を
+ # 選んでいても英語のままです.こうしておかないと,パーサーの更新で文言が変わるたびにここの翻訳
+ # が実態と食い違います.{placeholder} として渡すこともできません.理由自体が波括弧を含む場合,
+ # 後続の置換で壊れたうえ,その波括弧が LunaticChat のプレースホルダとして着色されるためです.
+ # ReloadCommand.fallbackLine / reasonLine を参照してください.
+ invalidSettings: "再読み込みを中止しました。次の設定を読み取れません:"
+ invalidDocument: "再読み込みを中止しました。config.yml を設定ファイルとして読み取れません:"
+ unreadable: "再読み込みを中止しました。ファイルを読み取れません"
+ # 上記 3 つの失敗に共通する締めの行.
+ previousKept: "サーバー起動時の設定をそのまま使用します"
channel:
help: