Re: Addition: gettext

From: Roger Leigh (${roger}_at_invalid.whinlatter.uklinux.net.invalid)
Date: 10/31/03


Date: Fri, 31 Oct 2003 19:03:52 +0000

Rolf Hemmerling <hemmerling@gmx.net> writes:

> I just learned that there is
> gettext [...]
> if I just wanna have local strings.
>
> Do you like it, is it usual to use it ?

Yes. gettext (libintl) is the de-facto i18n/l10n framework in the
free software world. It's very good, and it's easy to maintain
translatable strings and translations. There are several tools
available for translation work, and end-users can create/edit
translations without any messing with resource files.

One of the best features of gettext is the merging of new and changed
strings with existing translations. Tools such as Emacs po-mode allow
very easy updating of translations.

> But of course, as I wanna support MFC / .NET frameworks, its o.k. to
> look for a common way for accessing ressources with C++ on Windows
> platform.

I don't know how resource files work, so I can't help here. It might
be possible to construct the resource file from the strings extracted
with xgettext. That's a question for a MS group.

> As the mandatory GUI platform ist "QT"
> http://www.trolltech.com/
> , any suggestions ?

There's also Gtkmm, which is well worth investigating. It uses
gettext for i18n. It integrates well with the Standard Library.

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.


Relevant Pages

  • =?ISO-8859-1?Q?Check_which_files_and=2For_strings_need_to_be_translat?= =?ISO-8859-1
    ... we had version 1 of our software and had a third party ... perform all translations of strings (in string resource files and the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: GNU gettext
    ... The gettext documentation explains how the keys work. ... translation files, or that you'd need to write a small utility to help ... gettext was desined for plain C, the keys are C strings ... as a developer you have no clue what every language ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Foreign language issues
    ... > translated strings that I read at program initialization. ... > translations was the largest part of the effort. ... > When a PC has a non-English default language, is there a way for a VB ... 'universal' dialogs/forms and just swap out 'strings' as needed. ...
    (microsoft.public.vb.general.discussion)
  • Using gettext
    ... process was to put the existing texts under gettext(). ... gettext finds the translations for the string which happen to ... contain no diacritical marks but fails on any string that does have any. ... I also tried the gettext implementation from WordPress, wich comes from the PHP-gettext project which does not use the standard PHP library functions but solves it all in PHP so it works whether the locale is installed or not, whether the PHP has gettext support compiled and so on. ...
    (php.general)
  • Re: gettext vs custom ways
    ... I've used gettext a while ago, but can't really compare it with other ... extract all translatable strings from the source code to create the ... message files. ...
    (comp.lang.php)

Loading