Re: How to compile/merge more than one .po file with Mallard?



Hi!

To get an up-to-date POT file from scratch, you can install itstool [1] and run the following command inside the C folder (in case of gnome.user-docs, it will be gnome-user-docs/gnome-help/C)

itstool $( grep \.page ../Makefile.am | sed -e 's/^\s*//' -e 's/\s*\\$//' |sed -n -e '1x;1!H;${x;s-\n- -gp}' ) > gnome-user-docs.pot

Just a question... why you don't download the POT file from Damned Lies? It is always up-to-date, as it's created from the last git version of the module...

Hope it helps!

[1] http://files.itstool.org/itstool/itstool-2.0.2.tar.bz2


2014-02-10 18:45 GMT+01:00 Juliette Tux <juliette tux gmail com>:
Thanks for your reply! :)
I've updated the 'gnome-docs' module via git and did 'autogen.sh' and 'make pot' there, in order to get the freshest .pot possible. The only Privacy page listed there is 'privacy-screen-lock.page'. And it's not possible to run intltool-update since there is no /po directory in the gnome-user-docs/gnome-help module. I'm crossposting to the gnome-doc-list@ at the moment, hope there will be somebody able to help with the issue.


On 10 February 2014 21:33, Rūdolfs Mazurs <rudolfs mazurs gmail com> wrote:
Hi,
in git repository, PO files are not updated automatically, so if the
modules you listed were not included in the uploaded translations, they
will won't appear.

Simple solution: get the PO file from damn-lies [1] and translate/upload
that.

More complicated solution: update PO file in the git repository (I am
not sure how it is done with docs, but for UI translations it is usually
done with intltool-update utility)

[1] https://l10n.gnome.org/vertimus/gnome-user-docs/master/gnome-help/ru

On P , 2014-02-10 at 15:50 +0400, Juliette Tux wrote:
> Hello again,
> The first question got cleared for me, more or less, but I still
> cannot find the correspondong .po file for the following pages:
> privacy-hide-notifications.page
> privacy-history-recent-off.page
> privacy-name-visibility.page
> privacy-purge.page
> privacy.page
>
>
> or is there any way to know it using some Mallard options?
> Please somebody help :)
>
>
> On 7 February 2014 20:33, Juliette Tux <juliette tux gmail com> wrote:
>         Hello everybody,
>         I represent Russian translation team and currently I'm working
>         with GNOME help files and Mallard. These are my first steps
>         with Mallard, so I'm asking for help.
>         As I can see, (judging by the text which appears in the
>         default help opened woth yelp), the big global GNOME help
>         takes more then one .po file to compile. These are: the one
>         from gnome-user-docs/gnome-help, the one from
>         gnome-getting-started-docs and at least one more file
>         regarding the Privacy settings, but I wasn't able to locate
>         the corresponding files in the git, yet. I guess it was just
>         recently added, correct me if I'm wrong.
>         So my question is: how do I compile/merge more then 1 .po file
>         into one help document to view it with yelp. Currenty I'm
>         using the following string to work with single .po:
>
>
>         for i in *.page; do xml2po -m mallard -p ../ru.po $i
>         > ../tmp/$i; done
>
>         And the '*.po' instead of 'ru.po' gives an error Error: You
>         can merge translations with only one XML file at a time.
>
>
>         Thanks in advance!
>         --
>         best regards, Julia Dronova
>
>
>
>
> --
> С уважением, Дронова Юлия
> _______________________________________________
> gnome-i18n mailing list
> gnome-i18n gnome org
> https://mail.gnome.org/mailman/listinfo/gnome-i18n


_______________________________________________
gnome-i18n mailing list
gnome-i18n gnome org
https://mail.gnome.org/mailman/listinfo/gnome-i18n



--
С уважением, Дронова Юлия

_______________________________________________
gnome-i18n mailing list
gnome-i18n gnome org
https://mail.gnome.org/mailman/listinfo/gnome-i18n




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