bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] xgettext not extracting strings in a Glade GtkListStor


From: Miguel Ángel Arruga Vivas
Subject: Re: [bug-gettext] xgettext not extracting strings in a Glade GtkListStore
Date: Thu, 08 Aug 2013 00:04:49 +0200

Hi to all,

Sorry for my long absence, I am slightly busy.

Kip Warner <address@hidden> wrote: 
> I have a sample GtkListStore declared within a Gtk+ Glade file
> containing a single row with just one column of type gchararray. The
> string is marked as translatable="yes". 
> 
> I am using xgettext as follows, without any foo.pot being generated
> against the minimal:
> 
>         $ xgettext --language Glade minimal.glade --output=foo.pot
> 
> Am I using xgettext incorrectly?
> 
No, It is fine, but Glade 3 support have been added with 0.18.3 version.

====================================================================
$ xgettext --version
xgettext (GNU gettext-tools) 0.18.3
Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper.
$ ls
minimal.glade
$ xgettext --language Glade minimal.glade --output=foo.pot
$ ls
foo.pot  minimal.glade
$ cat foo.pot 
# 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 <address@hidden>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-08-07 23:58+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <address@hidden>\n"
"Language-Team: LANGUAGE <address@hidden>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: minimal.glade:11
msgid "stuff"
msgstr ""
====================================================================

Also it works with "xgettext minimal.glade --output=foo.pot".

Happy hacking!
Miguel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]