CEGUI and i18n, l10n
Moderators: CEGUI MVP, CEGUI Team
CEGUI and i18n, l10n
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
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).
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).
Who is online
Users browsing this forum: No registered users and 24 guests
