CEGUI and i18n, l10n

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

blablub
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Tue Mar 01, 2011 11:56

CEGUI and i18n, l10n

Postby blablub » Thu Apr 07, 2011 09:45

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?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: CEGUI and i18n, l10n

Postby Kulik » Tue May 10, 2011 13:47

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).


Return to “Help”

Who is online

Users browsing this forum: No registered users and 24 guests