LipSync @ ウィキ
How to prepare language config file (EN)
最終更新:
lipsync
-
view
このページの日本語版もあります (日本語版)
This page makes short introduction to prepare the language configuration used in LipSync.
notice: The file format of language configuration file of current version is different from that of version 2.3.6 or previous.
notice: The file format of language configuration file of current version is different from that of version 2.3.6 or previous.
LipSync uses the *.po format, which is generally used in the development of multi-language applications.
This page introduce how to translate the UI message, using *.po file editor, "poEdit".
This page introduce how to translate the UI message, using *.po file editor, "poEdit".
Getting "poEdit"
The latest release can be get from the home page of "poEdit" (this link at least available at Nov 2008)
Configuration of poEdit
If your poEdit has no parser configuration for C#, please add new configuration as shown below.
At first boot of poEdit, interface language is set to English. You can change the UI language if you want to do so.
At first boot of poEdit, interface language is set to English. You can change the UI language if you want to do so.
Configuration of UI language
- Select "File" menu => "Preferences"
- Select "Personalize" tab, and click "Change UI language" button.
- Select language and click "OK".
- Reboot poEdit, and UI language will changed to selected one.
Configuration of source code parser
- Select "File" menu => "Preferences".
- Select "Parsers" tab.
- If there is no entry named "C#" in the list, click, "New" button and type each sections as following list.
- 「Language:」C#
- 「List of extensions (...):」*.cs
- 「Parser command:」xgettext --force-po -o %o %C %K %F
- 「An item in keywords list:」-k%k
- 「An item in input files list:」%f
- 「Source code charset:」--from-code=%c
- if all sections are filled, click "OK" button.
Getting source codes of LipSync
To prepare a language configuration file, you have to get the source codes of LipSync, because all UI message or comments are embedded in these source codes.
Most simple way to get the sourc code is to download the archive of source code which is distributed in this Wiki. However, it will be better to checkout the latest code from the cvs repository of SourceForge.jp.
Most simple way to get the sourc code is to download the archive of source code which is distributed in this Wiki. However, it will be better to checkout the latest code from the cvs repository of SourceForge.jp.