[pygtk] Re: [Glade-users] Translation, gtk labels, and gettext

2008-07-09 Thread Tristan Van Berkom
On Dec 7, 2007 4:06 AM, Caleb Marcus [EMAIL PROTECTED] wrote:

  I'm now having issues with glade and gettext. I can run xgettext directly
 on the glade file, but that just produces a file with ALL the strings, not
 just the translatable ones. I can run intltool-extract on the glade file to
 produce a .h file, but running xgettext on the result doesn't produce any
 output unless I use the -a argument, which just extracts all the strings,
 which I don't want. What should I do?


I was under the impression that there is an intltool rule for this
(similar to INTLTOOL_XML_NOMERGE_RULE) that you can
add to your project's makefile to create myproject.glade from
myproject.glade.in .

although I just noticed that glade 2 used to dump translatable strings
into a file for this purpose; IMO this should be the domain of intltool
to extract translations from glade files (or gtkbuilder files).

I would recommend that you verify that such a rule doesnt exist
yet and file an rfe under intltool for that.

Cheers,
 -Tristan
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Re: [Glade-users] Translation, gtk labels, and gettext

2007-12-07 Thread Caleb Marcus
On Fri, 2007-12-07 at 14:42 -0200, Tristan Van Berkom wrote:

 On Dec 7, 2007 4:06 AM, Caleb Marcus [EMAIL PROTECTED] wrote:
 
 I'm now having issues with glade and gettext. I can run
 xgettext directly on the glade file, but that just produces a
 file with ALL the strings, not just the translatable ones. I
 can run intltool-extract on the glade file to produce a .h
 file, but running xgettext on the result doesn't produce any
 output unless I use the -a argument, which just extracts all
 the strings, which I don't want. What should I do?
 
 I was under the impression that there is an intltool rule for this
 (similar to INTLTOOL_XML_NOMERGE_RULE) that you can
 add to your project's makefile to create myproject.glade from
 myproject.glade.in .
 
 although I just noticed that glade 2 used to dump translatable
 strings 
 into a file for this purpose; IMO this should be the domain of
 intltool
 to extract translations from glade files (or gtkbuilder files). 
 
 I would recommend that you verify that such a rule doesnt exist
 yet and file an rfe under intltool for that.
 
 Cheers,
  -Tristan
 
I don't have a makefile... I'm just using the .glade file with libglade
in Python.


signature.asc
Description: This is a digitally signed message part
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/