About
News
How to Play
Hall of Fame
Screenshots
Download
Development
Localization
Join Us!
Links
|
|
Localization
This document describes how to add a new language to Fish Fillets NG. To run the game with a specific language, set your system locale or select the language in game menu (F10).
Follow these steps and send your translated files to fillets-devel or ask for CVS access.
-
Use unicode encoding
Use UTF-8 for all text you translate.
-
Add new language to game menu
Select a 2-letter language code from ISO 639-1 Language Codes to identify your language. Your country flag icon can be obtained from Open Clip Art Library. The icon should be scaled to 30x20 and saved as a PNG image.
Mention the 2-letter_code and the flag in script/select_lang.lua
-- select_addFlag(2-letter_code, flag)
select_addFlag("en", "images/menu/flags/en.png")
-
Translate world map
Translate level names in script/worlddesc.lua
Change lang, translate level_name and branch.
-- worldmap_addDesc(codename, lang, level_name, branch)
worldmap_addDesc("start", "en", "How It All Started", "Fish House")
-
Translate menu labels
Translate labels in script/labels.lua
Change lang, translate text.
-- label_text(label_id, lang, text)
label_text("menu_sound", "en", "Sound volume")
-
Translate level dialogs
Translate level dialogs in script/*/dialogs_"$lang".lua
Add dialogStr() with translated text.
-- dialogId(dialog_id, actor_font, default_text)
-- dialogStr(translated_text)
dialogId("kos-m-uklid2", "font_small", "I knew we’d have to clean this room up.")
dialogStr("Ich wusste, dass wir hier aufräumen müssen.")
-
Translate other dialogs
Translate other dialogs which are used during the game.
Change lang, translate text.
-
briefcase demo
script/briefcase/brief_dialogs_"$lang".lua
-
jokes about death
script/share/black_dialogs_"$lang".lua
-
jokes about boredom
script/share/bore_dialogs_"$lang".lua
-
victory shouts
script/share/shout_dialogs_"$lang".lua
-
info in final levels
script/share/border_dialogs_"$lang".lua
-
final level posters
script/*/demo_dialogs_"$lang".lua
-
intro poster
script/share/intro_dialogs_"$lang".lua
-
Translate How to Play manual
Translate the game manual in doc/html/manual.html
|