[gtkmm] gettext with ANJUTA , translation doesn't work



Hi !
I'm using anjuta and gettext capabilities.
I use gettext("strings in english") in the sources.
i've made the fr.po , and it is in the directory po/
po/ is in my project directory.
Anjuta compile fr.po to fr.gmo
The compilation works well.

But no translation !

>locale
LANG=fr_FR ISO-8859-15 euro
LC_CTYPE="fr_FR ISO-8859-15 euro"
LC_NUMERIC="fr_FR ISO-8859-15 euro"
LC_TIME="fr_FR ISO-8859-15 euro"
LC_COLLATE="fr_FR ISO-8859-15 euro"
LC_MONETARY="fr_FR ISO-8859-15 euro"
LC_MESSAGES="fr_FR ISO-8859-15 euro"
LC_PAPER="fr_FR ISO-8859-15 euro"
LC_NAME="fr_FR ISO-8859-15 euro"
LC_ADDRESS="fr_FR ISO-8859-15 euro"
LC_TELEPHONE="fr_FR ISO-8859-15 euro"
LC_MEASUREMENT="fr_FR ISO-8859-15 euro"
LC_IDENTIFICATION="fr_FR ISO-8859-15 euro"
LC_ALL=

header in fr.po :
...
# Copyright (C) 2004
#
msgid ""
msgstr ""
"Project-Id-Version: easygest 2.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-07-29 15:19+0200\n"
"PO-Revision-Date: 2004-07-29 15:25+0200\n"
"Last-Translator: seb <>\n"
"Language-Team: French <gnomefr traduc org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit":
...

in my configure.in :
...
dnl Languages which your application supports
ALL_LINGUAS="fr"
AM_GLIB_GNU_GETTEXT
...

in my main.cc :
...
setlocale (LC_ALL,"");
bindtextdomain(GETTEXT_PACKAGE,  LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
...

value of  GETTEXT_PACKAGE is easygest , the name of my app.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]