I try to translate Gajim of nightly version. I created a gajim.pot by following commands:
$ hg clone http://hg.gajim.org/gajim gajim $ cd gajim && hg pull && hg up -C $ ./autogen.sh $ cd po $ make update-po
The created gajim.pot has 1499 strings. Is it correct? It seems that all messages under the directory ../data/gui/ do not appear in the gajim.pot. So, most of menu items can not be translated.
Mako N. wrote:
I try to translate Gajim of nightly version. I created a gajim.pot by following commands:
$ hg clone http://hg.gajim.org/gajim gajim $ cd gajim && hg pull && hg up -C $ ./autogen.sh $ cd po $ make update-po
The created gajim.pot has 1499 strings. Is it correct? It seems that all messages under the directory ../data/gui/ do not appear in the gajim.pot. So, most of menu items can not be translated.
Since we migrate from glade to gtk builder, We never did a released, so I never looked at that, so there may be a problem in our scripts. Thanks for pointing the problem, I'll try to look at that as soon as possible.
Mako N. wrote:
I try to translate Gajim of nightly version. I created a gajim.pot by following commands:
$ hg clone http://hg.gajim.org/gajim gajim $ cd gajim && hg pull && hg up -C $ ./autogen.sh $ cd po $ make update-po
The created gajim.pot has 1499 strings. Is it correct? It seems that all messages under the directory ../data/gui/ do not appear in the gajim.pot. So, most of menu items can not be translated.
I't now several hours I try to get translatable string from .ui files, but without success. I saw that [type: gettext/glade] is needed in POTFILE.in, so I added this line in autogen.sh after POTFILE.in is created
perl -i -pe 's/(.*).ui/[type: gettext/glade]$1.ui/' po/POTFILES.in
But that doesn't help.
Even intltool-extract --type=gettext/glade roster_window.ui Doesn't extract anything.
I don't know where is the problem.
From: Yann Leboulanger asterix@lagaule.org Subject: Re: [Gajim-translators] gajim.pot of nightly version Date: Thu, 11 Mar 2010 22:33:02 +0100
I't now several hours I try to get translatable string from .ui files, but without success. I saw that [type: gettext/glade] is needed in POTFILE.in, so I added this line in autogen.sh after POTFILE.in is created
perl -i -pe 's/(.*).ui/[type: gettext/glade]$1.ui/' po/POTFILES.in
That's OK!
I've got complete gajim.pot which has 2042 strings. I'll go on translating.
Thank you, Yann.
Mako N. wrote:
From: Yann Leboulanger asterix@lagaule.org Subject: Re: [Gajim-translators] gajim.pot of nightly version Date: Thu, 11 Mar 2010 22:33:02 +0100
I't now several hours I try to get translatable string from .ui files, but without success. I saw that [type: gettext/glade] is needed in POTFILE.in, so I added this line in autogen.sh after POTFILE.in is created
perl -i -pe 's/(.*).ui/[type: gettext/glade]$1.ui/' po/POTFILES.in
That's OK!
Indeed it works, it's just that gajim.pot was not rebuilt. Removing it and it's ok.
Now someone knows a better solution without or sed or anything?
I just would like to list all .ui files, and add a sting at the begining of the line.
Yann Leboulanger wrote:
Mako N. wrote:
From: Yann Leboulanger asterix@lagaule.org Subject: Re: [Gajim-translators] gajim.pot of nightly version Date: Thu, 11 Mar 2010 22:33:02 +0100
I't now several hours I try to get translatable string from .ui files, but without success. I saw that [type: gettext/glade] is needed in POTFILE.in, so I added this line in autogen.sh after POTFILE.in is created
perl -i -pe 's/(.*).ui/[type: gettext/glade]$1.ui/' po/POTFILES.in
That's OK!
Indeed it works, it's just that gajim.pot was not rebuilt. Removing it and it's ok.
Now someone knows a better solution without or sed or anything?
I just would like to list all .ui files, and add a sting at the begining of the line.
ok it's fixed in hg, and with a bash solution, no need of perl or sed. Thanks xbright.