[Lazarus] Localization in toolkit like fpGUI
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Tue Feb 19 18:14:36 CET 2008
Take a look at how the magnifier handles this. It's a class which
centralizes all necessary strings and can translate them on demand:
http://magnifier.svn.sourceforge.net/viewvc/magnifier/trunk/translationsvmg.pas?revision=128&view=markup
The contents of each translate function could be moved to .inc files,
to make it easier for translators, I just hadn't time to do that.
The advantages are:
* Can be translated at run-time, no need to restart
* Accepts comments to help translators
* No need for IFDEFs
--
Felipe Monteiro de Carvalho
More information about the Lazarus
mailing list