[ghemical-devel] gettext() still not working...

Vlado Peshov vlatkop at gmail.com
Sun Nov 23 15:10:24 EST 2008


On Sun, Nov 23, 2008 at 8:42 PM, Jean Bréfort
<jean.brefort at normalesup.org>wrote:

> Very strange, it does not work for me.
>

# LANG=fi_FI.UTF-8 TEST_gettext
Translate this, please!

after this modification:

# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-11-23 20:39+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../src/main.cpp:14
msgid "Translate this, please!"
msgstr "Käännä tämä, kiitos!"

#msgfmt -o TEST_gettext.mo fi.po

#cp TEST_gettext.mo /usr/local/share/locale/fi/LC_MESSAGES/

It worked:

# LANG=fi_FI.UTF-8 TEST_gettext
Käännä tämä, kiitos!

so you have to remove ,fuzzy string from your first message, and set charset
in order to compile it again.

Regards, Vlado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bioinformatics.org/pipermail/ghemical-devel/attachments/20081123/7a4fa271/attachment.html>


More information about the ghemical-devel mailing list