From: Duilio J. P. <dp...@fl...> - 2005-03-20 00:17:45
|
Currently, spanish is the only translation available. Feel free to add your own. Remember the steps: - go to 'po' directory, and make 'msginit -l COUNTRY', where COUNTRY is your two letters country code. - edit the just created COUNTRY.po file, and translate all the strings (is highly recommended that you use and UTF-8 codeset for the file). - add COUNTRY to 'po/LINGUAS' file. - add COUNTRY to 'LINGUAS' variable on 'configure.ac' file. That's all. Now the plugins speak you language. To make use of the i18n support within libvisual-plugins, just put the string you want to translate on a _() call, i.e : printf (_("Hello world!\n")); *except* for initialization strings, which must be put within a N_() call. Take into account that initialization strings must be literals, they cannot be the result of a function call, in order to make gettext work properly. Also make sure you have included 'config.h' and 'gettext.h' in the current file (with config.h *before* gettext.h). When the Wiki will be ready, I'll post a more complete procedure there. Bye, Duilio. |