CEGUI and i18n, l10n
Posted: Thu Apr 07, 2011 09:45
by blablub
Does CEGUI already includes some stuff for easy translation of strings? If not, then what is the best practice? Just use GNU gettext() to set all strings in the CEGUI windows at runtime?
Re: CEGUI and i18n, l10n
Posted: Tue May 10, 2011 13:47
by Kulik
There are so many pre-existing solutions that I think it's best that CEGUI doesn't force any on you.
One of the common approaches is to have a property callback when loading a layout (See API reference for WindowManager::loadWindowLayout). The property callback detects when a "Text" property is being read and translates that (possible other properties as well).