「どう翻訳を実現したか」の編集履歴(バックアップ)一覧はこちら
「どう翻訳を実現したか」(2011/01/07 (金) 15:55:25) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
**フォントを日本語フォントに入れ替える
日本語化するためにはまずゲーム内で日本語を表示できるようにしなければいけません、
手順としては
フォントを入手
↓
フォントの拡張子を変更
↓
フォントをフォルダ内に入れる
↓
フォントの設定を変更する
***フォントを入手
洒落たフォントを使いたかったのですが、欲を出さずにwindowsフォルダ内に有るMSゴシック体(msgothic.ttf)を引っ張り出して、
C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内に入れました。
***フォントの拡張子を変更
msgothic.ttfをフォルダにぶち込みたいところですが、プログラムが.pfbと.afmの拡張子を使用しているので、
http://www.henkan-muryo.com/convert-font.phpで拡張子を変更しました。
***フォントをフォルダ内に入れる
C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内にmsgothic.pfb、msgothic.afmを入れました。
***フォントの設定を変更する
このままではプログラムが日本語フォントを使ってくれないので、使うよう調教する必要がありました。
C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内にあるfontregistry.xntの、
<fontregistry>
<family>
<name>Lithos</name>
<face>
<style>Regular</style>
<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
</face>
<face>
<style>Bold</style>
<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
<embolden>0.05</embolden>
</face>
<face>
<style>Italic</style>
<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
<transform><xy>0.2</xy></transform>
</face>
<face>
<style>BoldItalic</style>
<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
<embolden>0.05</embolden>
<transform><xy>0.2</xy></transform>
</face>
</family>
<family>
<name>Day Roman</name>
<face>
<style>Regular</style>
<file>Resources/Fonts/DAYROM__.pfb|afm</file>
</face>
<face>
<style>Bold</style>
<file>Resources/Fonts/DAYROM__.pfb|afm</file>
<embolden>0.05</embolden>
</face>
<face>
<style>Italic</style>
<file>Resources/Fonts/DAYROM__.pfb|afm</file>
<transform><xy>0.2</xy></transform>
</face>
<face>
<style>BoldItalic</style>
<file>Resources/Fonts/DAYROM__.pfb|afm</file>
<embolden>0.05</embolden>
<transform><xy>0.2</xy></transform>
</face>
</family>
を
<file>Resources/Fonts/msgothic.pfb|afm</file>
</face>
<face>
<style>Bold</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<embolden>0.05</embolden>
</face>
<face>
<style>Italic</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<transform><xy>0.2</xy></transform>
</face>
<face>
<style>BoldItalic</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<embolden>0.05</embolden>
<transform><xy>0.2</xy></transform>
</face>
</family>
<family>
<name>Day Roman</name>
<face>
<style>Regular</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
</face>
<face>
<style>Bold</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<embolden>0.05</embolden>
</face>
<face>
<style>Italic</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<transform><xy>0.2</xy></transform>
</face>
<face>
<style>BoldItalic</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<embolden>0.05</embolden>
<transform><xy>0.2</xy></transform>
</face>
</family>
**フォントを日本語フォントに入れ替える
日本語化するためにはまずゲーム内で日本語を表示できるようにしなければいけません、
手順としては
フォントを入手
↓
フォントの拡張子を変更
↓
フォントをフォルダ内に入れる
↓
フォントの設定を変更する
***フォントを入手
洒落たフォントを使いたかったのですが、欲を出さずにwindowsフォルダ内に有るMSゴシック体(msgothic.ttf)を引っ張り出して、
C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内に入れました。
***フォントの拡張子を変更
msgothic.ttfをフォルダにぶち込みたいところですが、プログラムが.pfbと.afmの拡張子を使用しているので、
http://www.henkan-muryo.com/convert-font.phpで拡張子を変更しました。
***フォントをフォルダ内に入れる
C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内にmsgothic.pfb、msgothic.afmを入れました。
***フォントの設定を変更する
このままではプログラムが日本語フォントを使ってくれないので、使うよう調教する必要がありました。
C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内にあるfontregistry.xntの、
<fontregistry>
<family>
<name>Lithos</name>
<face>
<style>Regular</style>
<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
</face>
<face>
<style>Bold</style>
<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
<embolden>0.05</embolden>
</face>
<face>
<style>Italic</style>
<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
<transform><xy>0.2</xy></transform>
</face>
<face>
<style>BoldItalic</style>
<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
<embolden>0.05</embolden>
<transform><xy>0.2</xy></transform>
</face>
</family>
<family>
<name>Day Roman</name>
<face>
<style>Regular</style>
<file>Resources/Fonts/DAYROM__.pfb|afm</file>
</face>
<face>
<style>Bold</style>
<file>Resources/Fonts/DAYROM__.pfb|afm</file>
<embolden>0.05</embolden>
</face>
<face>
<style>Italic</style>
<file>Resources/Fonts/DAYROM__.pfb|afm</file>
<transform><xy>0.2</xy></transform>
</face>
<face>
<style>BoldItalic</style>
<file>Resources/Fonts/DAYROM__.pfb|afm</file>
<embolden>0.05</embolden>
<transform><xy>0.2</xy></transform>
</face>
</family>
を
<file>Resources/Fonts/msgothic.pfb|afm</file>
</face>
<face>
<style>Bold</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<embolden>0.05</embolden>
</face>
<face>
<style>Italic</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<transform><xy>0.2</xy></transform>
</face>
<face>
<style>BoldItalic</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<embolden>0.05</embolden>
<transform><xy>0.2</xy></transform>
</face>
</family>
<family>
<name>Day Roman</name>
<face>
<style>Regular</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
</face>
<face>
<style>Bold</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<embolden>0.05</embolden>
</face>
<face>
<style>Italic</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<transform><xy>0.2</xy></transform>
</face>
<face>
<style>BoldItalic</style>
<file>Resources/Fonts/msgothic.pfb|afm</file>
<embolden>0.05</embolden>
<transform><xy>0.2</xy></transform>
</face>
</family>
に変更しました。
Ethos-Regular.pfb、DAYROM__.pfbの所を
msgothic.pfbに入れ替えただけです。
**あとは翻訳するだけ!
あとはlanguage.ltx内の物を翻訳するだけです。