Public bug reported:
Save following as gettextdemo.c
Compile with gcc -o gettextdemo gettextdemo.c
#include <libintl.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
setlocale( LC_ALL, "" );
bindtextdomain( "my_domain", "./" );
textdomain( "my_domain" );
printf( gettext( "Welcome to my program" ) );
printf( "\n" );
exit(0);
}
Save following as ./de_DE/LC_MESSAGES/my_domain.po
domain "my_domain"
msgid "Welcome to my program"
msgstr "Willkommen in meinem Program"
Create .mo with cd de_DE/LC_MESSAGES; msgfmt my_domain.po
Test. On my RH4 machine:
$ ./gettextdemo
Welcome to my program
$ LANG=de_DE ./gettextdemo
Willkommen in meinem Program
On my Dapper machine:
$ ./gettextdemo
Welcome to my program
$ LANG=de_DE ./gettextdemo
Welcome to my program
** Affects: gettext (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
gettext doesn't in Dapper
https://launchpad.net/bugs/66866
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs