RSS/Atom feed Twitter
Site is read-only, email is disabled

Update existing PO files

This discussion is connected to the gimp-docs-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

10 of 10 messages available
Toggle history

Please log in to manage your subscriptions.

Update existing PO files Daniel Nylander 09 Jan 02:38
  Update existing PO files Ulf-D. Ehlert 09 Jan 18:40
   Update existing PO files Daniel Nylander 10 Jan 03:31
    Update existing PO files Ulf-D. Ehlert 10 Jan 13:08
    Update existing PO files Ulf-D. Ehlert 10 Jan 14:56
  Update existing PO files Marco Ciampa 12 Jan 08:38
   Update existing PO files Ulf-D. Ehlert 12 Jan 12:05
   Update existing PO files julien 12 Jan 14:41
    Update existing PO files Ulf-D. Ehlert 12 Jan 17:54
Update existing PO files Ulf-D. Ehlert 18 Jan 12:28
Daniel Nylander
2009-01-09 02:38:38 UTC (almost 16 years ago)

Update existing PO files

I noticed that after creating PDF and ODF files of the documentation, the resulting documents were removed. By adding a symlink to images from pdf and odf, this was fixed. cd pdf; ln -s ../images

I would also be happy to see a function like "make update-po-sv" which updates the already existing PO files which the latest POT files. Or does it already exist?

Regards, Daniel

Ulf-D. Ehlert
2009-01-09 18:40:32 UTC (almost 16 years ago)

Update existing PO files

Daniel Nylander (Freitag, 9. Januar 2009, 02:38):

I noticed that after creating PDF and ODF files of the documentation, the resulting documents were removed. By adding a symlink to images from pdf and odf, this was fixed. cd pdf; ln -s ../images

I'll try to add/change/fix this images stuff in the next days, we also have to get back our localized images.

I would also be happy to see a function like "make update-po-sv" which updates the already existing PO files which the latest POT files. Or does it already exist?

For now po files will be updated automatically (make po-sv), but only if the corresponding pot or xml files have been changed.

It should be no problem to add such a feature ("make force-po-sv"!?). I also thought of updating a single po file with a target like e.g. "make force-po/sv/foo/bar/baz.po" (?!), this seems to be more useful and less dangerous.

Ulf

Daniel Nylander
2009-01-10 03:31:04 UTC (almost 16 years ago)

Update existing PO files

fre 2009-01-09 klockan 18:40 +0100 skrev Ulf-D. Ehlert:

For now po files will be updated automatically (make po-sv), but only if the corresponding pot or xml files have been changed.

It should be no problem to add such a feature ("make force-po-sv"!?). I also thought of updating a single po file with a target like e.g. "make force-po/sv/foo/bar/baz.po" (?!), this seems to be more useful and less dangerous.

Well, I must be doing something wrong here but I got these issues:

make xml-sv Changes all/some of my PO files to 0 bytes

make po-sv Replaces all/some of my PO files with all English strings

Compendium.po I created it using pocompendium. How do I update all of my PO files with translated strings from this file?

Daniel

Ulf-D. Ehlert
2009-01-10 13:08:51 UTC (almost 16 years ago)

Update existing PO files

Daniel Nylander (Samstag, 10. Januar 2009, 03:31):

Well, I must be doing something wrong here but I got these issues:

That's exactly what I thought when I got this errors the first time. But obviously there is a weird bug somewhere.

make xml-sv
Changes all/some of my PO files to 0 bytes

Can you reproduce this? It would be very interesting to know which files will be resized to 0 (name one file) and which files won't (ditto).

make po-sv
Replaces all/some of my PO files with all English strings

Same as above.

Compendium.po
I created it using pocompendium. How do I update all of my PO files with translated strings from this file?

You have to force "make" to update these files by faking an update of the corresponding pot files, e.g.:

(better start with a (small) subset of po/pot files...)

touch pot/using/*.pot make [-f Magefile.GNU] po/sv/using/*.po

Ulf

Ulf-D. Ehlert
2009-01-10 14:56:11 UTC (almost 16 years ago)

Update existing PO files

Daniel Nylander (Samstag, 10. Januar 2009, 03:31):

make xml-sv
Changes all/some of my PO files to 0 bytes

One possible reason is a bug (e.g. missing quote character) in the old po file, then (msg)merging fails and an empty po file is created.

I have fixed this by using a temp file as backup (not yet committed).

make po-sv
Replaces all/some of my PO files with all English strings

Still no idea. I know this happens, but whenever I try to reproduce this error, everything works fine. :-|

Ulf

Marco Ciampa
2009-01-12 08:38:30 UTC (almost 16 years ago)

Update existing PO files

On Fri, Jan 09, 2009 at 02:38:38AM +0100, Daniel Nylander wrote:

I noticed that after creating PDF and ODF files of the documentation, the resulting documents were removed. By adding a symlink to images from pdf and odf, this was fixed. cd pdf; ln -s ../images

I would also be happy to see a function like "make update-po-sv" which updates the already existing PO files which the latest POT files. Or does it already exist?

I saw this this morning...

$svn up Enter passphrase for key '/home/marco/.ssh/id_rsa': U src/introduction.xml
U src/key-reference.xml
U src/gimp.xml
U src/help-missing.xml
U src/concepts/color-management.xml U src/concepts/docks.xml
U src/concepts/brushes.xml
U src/concepts/concepts.xml
U src/concepts/basic-setup.xml
Aggiornato alla revisione 2686.
marco@ibook:~/svn-gnome/gimp-help-2/trunk$ make Making all in quickreference
make[1]: Entering directory
`/home/marco/svn-gnome/gimp-help-2/trunk/quickreference' make[1]: Nothing to be done for `all'. make[1]: Leaving directory
`/home/marco/svn-gnome/gimp-help-2/trunk/quickreference' make[1]: Entering directory `/home/marco/svn-gnome/gimp-help-2/trunk' *** Making html for en ...

...so xml updated but it seems that the system does not recognize a change in the xml/pot/po chain...

Ulf-D. Ehlert
2009-01-12 12:05:24 UTC (almost 16 years ago)

Update existing PO files

Marco Ciampa (Montag, 12. Januar 2009, 08:38):

I saw this this morning...

[...]

make[1]: Entering directory `/home/marco/svn-gnome/gimp-help-2/trunk' *** Making html for en ...

...so xml updated but it seems that the system does not recognize a change in the xml/pot/po chain...

'en' is a special case, there are no po files (which depend on pot files), so all to do is making html for en ...

"make html-it" should update pot files, po files, xml files, and then should continue making html for it ...

Ulf

PS: It seems that the ChangeLog entry is missing.

julien
2009-01-12 14:41:16 UTC (almost 16 years ago)

Update existing PO files

Last change in ChangeLog is 2682 ! svn up -->2685
What happenned between 2683 and 2685?

Julien

I saw this this morning...

$svn up Enter passphrase for key '/home/marco/.ssh/id_rsa': U src/introduction.xml
U src/key-reference.xml
U src/gimp.xml
U src/help-missing.xml
U src/concepts/color-management.xml U src/concepts/docks.xml
U src/concepts/brushes.xml
U src/concepts/concepts.xml
U src/concepts/basic-setup.xml
Aggiornato alla revisione 2686.
marco@ibook:~/svn-gnome/gimp-help-2/trunk$ make Making all in quickreference
make[1]: Entering directory
`/home/marco/svn-gnome/gimp-help-2/trunk/quickreference' make[1]: Nothing to be done for `all'. make[1]: Leaving directory
`/home/marco/svn-gnome/gimp-help-2/trunk/quickreference' make[1]: Entering directory `/home/marco/svn-gnome/gimp-help-2/trunk' *** Making html for en ...

...so xml updated but it seems that the system does not recognize a change in the xml/pot/po chain...

Ulf-D. Ehlert
2009-01-12 17:54:58 UTC (almost 16 years ago)

Update existing PO files

julien (Montag, 12. Januar 2009, 14:41):

Last change in ChangeLog is 2682 ! svn up -->2685
What happenned between 2683 and 2685?

svn log -r 2683:HEAD gimp-help-2/trunk/

Ulf

Ulf-D. Ehlert
2009-01-18 12:28:50 UTC (almost 16 years ago)

Update existing PO files

Daniel Nylander (Freitag, 9. Januar 2009, 02:38):

I would also be happy to see a function like "make update-po-sv" which updates the already existing PO files which the latest POT files. Or does it already exist?

I have added some new targets to Makefile.GNU:

make -f Makefile.GNU update-po/xx/path/to/pofile.po

will make a forced update for a single po-file;

make -f Makefile.GNU force-po/xx/some/path/*

will force updating all po-files in po/xx/some/path/ (but not recursively in the subdirectories of po/xx/some/path/).

I also changed making of HTML previews (drafts), now

make [-f Makefile.GNU] preview-xml/xx/path/to/xmlfile.xml

will produce a single HTML file (remember that links can't work in those draft HTML files),

make [-f Makefile.GNU] preview-src/path/to/xmlfile.xml

will do the same for all languages (ALL_LINGUAS). The old syntax

make [-f Makefile.GNU] src/path/to/xmlfile.draft or
make [-f Makefile.GNU] xml/xx/path/to/xmlfile.draft

will still work.

make [-f Makefile.GNU] preview-po/xx/path/to/xmlfile.po

will also make an HTML file (like "... preview-xml/xx/...). If you use 'Makefile.GNU' and you have xdg-open installed (package 'xdg-utils' on openSUSE), this command will also try to open the HTML draft file in a browser - don't know if this is nice or nonsense...

Ulf