Hi:
Thanks, but it seems that it doesn't work. The POTFILES.in file has all
the files to be translated, and they can be C, Vala, Glade and Genie.
In Intltool it was possible to annotate the POTFILES.in with [type:
gettext/LANG] for each file, but with xgettext it seems it is not
possible... Do you know a way of specifying to use Vala syntax for .gs
files? Or to use Vala syntax when it doesn't recognize an extension type?
Thanks.
El 16/12/16 a las 21:54, Al Thomas escribió:
>> - Original Message -
>> From: rastersoft
>> Sent: Friday, 16 December 2016, 20:09
>> Subject: [Vala] xgettext and genie
>
>
>> An user asked about using autovala with genie, so I'm working on adding
>> support for it.
> Sounds good, thanks.
>
>> My question is: how can I extract the translatable strings with xgettext
>> from a genie source file? xgettext has support for vala, but the manpage
>> says nothing about genie, and when trying, it tries with C syntax...
>
> You could try:
> xgettext --language=Vala
> This picks up:
> print _( "simple translation sample" )
>
> print dgettext( null, "simple translation sample" )
>
> print( _( "simple translation sample" ))
> print( dgettext( null, "simple translation sample" ))
> in Genie.
>
> You could also try:
> xgettext --language=Python
> if there are any problems with white space parsing, although I'm not sure
> that is used. Genie doesn't use the # for comments though.
>
>
> Al
>
--
Nos leemos
RASTER(Linux user #228804)
ras...@rastersoft.com http://www.rastersoft.com
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list