-
Notifications
You must be signed in to change notification settings - Fork 119
i18n
matsuo edited this page May 17, 2025
·
2 revisions
- 言語ファイルについて
- 言語ファイルは、Windowsのiniファイル
- iniファイルはWindows2000以降、Unicodeに対応している
- ソースツリーでは installer\release\lang_utf8 フォルダにある
- このファイルの文字コードを変換して実際に使用するiniファイルを作成する
- 作成/修正する時は、lngファイルをUTF-8で扱う
- インストール先
- {app}\lang_utf16le フォルダに、utf16le に変換したものがコピーされる
- 通常はこちらが使われる
- {app}\lang フォルダに、言語ごとのエンコードに変換したものがコピーされる
- Windows 9x のとき、このフォルダのファイルを読み込む
- {app}\lang_utf16le フォルダに、utf16le に変換したものがコピーされる
- 言語ファイルを読み込むようソースを変更する
- ダイアログのメッセージの場合、リソースにデフォルトのメッセージ(英語)を記述する
- 言語ファイルに追記する
- installer/release/lang_utf8 配下の言語ファイルを修正する
- 英語のメッセージファイル
- 英語のメッセージを追加する
- メッセージの更新日として今日を記述する
- 機能追加時に更新されるので最終翻訳日はない
- 英語のメッセージファイルはプログラムから読み込まれないが、他の言語ファイルへ翻訳するときの参考となる
- 日本語のメッセージファイル
- 日本語に翻訳したメッセージを追加する
- メッセージの更新日として今日を記述する
- 機能追加時に更新されるので最終翻訳日はない
- 他の言語のメッセージファイル(翻訳できない場合)
- 英語のメッセージを追加する
- メッセージの更新日として今日を記述する
- 翻訳はアップデートされていないので最終翻訳日は更新しない
- 他の言語のメッセージファイル(すでにあるメッセージの翻訳のみを行う場合)
- 英語のメッセージ(すでに存在するはず)を target language のメッセージに変更する
- メッセージの更新日は更新しない
- 最終翻訳日を更新する
- copy
{source tree}\installer\release\lang_utf8\English.lngto{app}\lang_utf16le\Newlang.lngas UTF16LE encoding- English.lng has latest messages. It is updated as needed by the TeraTerm Project.
- edit TERATERM.INI like
UILanguageFile=lang_utf16le\Newlang.lng - translate each messages
- run
Tera Termto check
- run
- send Newlang.lng to TeraTerm Project
After sending the Newlang.lng, please monitor updates to the English.lng file, which we manage.
- the TeraTerm Project updates English.lng file as needed
- when you detect an update, please translate only the differences and send them to me
- we can then update our source tree, the changes will be included in the next release