Csound Csound-dev Csound-tekno Search About

[Cs-dev] Internationalisation and localisation

Date2007-12-26 18:53
Fromjpff
Subject[Cs-dev] Internationalisation and localisation
I seem to have the GNU gettext system running in my experimental
system.  This does have tools to help create translations.  I have
been playing with a French version (via Babelfish and my very bad
remembered French).  It is not build by default but I would like to
see it become so as it is one less thing to maintain.

If anyone wishes to try an do a (say) Spanish translation the process
is to copy the file po/csound.po to po/spanish.po and then insert the
translations -- rather obvious when you see the code.  Emacs has a
mode to assist.  Francophones might like to fix my French as well (in
po/french.po).

At present not well integrated into SCons, but to try it one needs to
set useGettext=1 and generateXMG=0

Binary translations currently live in po/XXX/LC_MESSAGES/csound5.mo
where XXX is replaced by the language

I have a Makefile with the lines

po/fr/LC_MESSAGES/csound5.mo: po/french.po
	msgfmt -o po/fr/LC_MESSAGES/csound5.mo po/french.po

po/en_US/LC_MESSAGES/csound5.mo: po/american.po
	msgfmt -o po/en_US/LC_MESSAGES/csound5.mo po/american.po

po/en_GB/LC_MESSAGES/csound5.mo: po/csound.po
	msgfmt -o po/en_GB/LC_MESSAGES/csound5.mo po/csound.po

If/when people are happy we can invite users to contribute
translations.

==John ffitch

"This research is of insufficient standard"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-12-26 19:31
From"Felipe Sateler"
SubjectRe: [Cs-dev] Internationalisation and localisation
AttachmentsNone