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

Updating 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.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Updating PO files julien 28 Apr 07:58
  Updating PO files Ulf-D. Ehlert 28 Apr 12:01
   Updating PO files julien 28 Apr 14:53
    Updating PO files Ulf-D. Ehlert 28 Apr 21:41
julien
2009-04-28 07:58:44 UTC (almost 16 years ago)

Updating PO files

Hi,

I don't understand:

In glossary.xml, Ulf changed "Color Depth" to "Color depth". We have "Color depth" in the git repository.

After git pull --rebase, I also have "Color depth" in my src/glossary.xml file.
I run "make pot", then "make po-fr"... and I still have "Color Depth" in my glossary.po. No "#, fuzzy" comment for these strings.

My PO file is not updated. Why that?

Julien

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

Updating PO files

julien (Dienstag, 28. April 2009, 08:00):

In glossary.xml, Ulf changed "Color Depth" to "Color depth". We have "Color depth" in the git repository.

After git pull --rebase, I also have "Color depth" in my src/glossary.xml file.
I run "make pot", then "make po-fr"... and I still have "Color Depth" in my glossary.po. No "#, fuzzy" comment for these strings.

My PO file is not updated. Why that?

Check the timestamps of the glossary files: src/glossary.xml
pot/glossary.pot
po/fr/glossary.po

Maybe 'git pull --rebase' changed the timestamp to the day of my commit?

Ulf

julien
2009-04-28 14:53:38 UTC (almost 16 years ago)

Updating PO files

Hi Ulf,

julien (Dienstag, 28. April 2009, 08:00):

In glossary.xml, Ulf changed "Color Depth" to "Color depth". We have "Color depth" in the git repository.

After git pull --rebase, I also have "Color depth" in my src/glossary.xml file.
I run "make pot", then "make po-fr"... and I still have "Color Depth" in my glossary.po. No "#, fuzzy" comment for these strings.

My PO file is not updated. Why that?

Check the timestamps of the glossary files: src/glossary.xml
pot/glossary.pot
po/fr/glossary.po

Maybe 'git pull --rebase' changed the timestamp to the day of my commit?

What is 'timestamp':
- The last editing date? The three files are 2009:04:28 07:21 - The creation date? No date for glossary.xml; 2009:04:28 07:28 for glossary.pot; 2009:04:26 14:32 for fr/glossary.po (with POT creation date 2009-04-20).

Weird! if I run msgmerge -o tmp.po po/fr/glossary.po pot/glossary.pot, I get a right PO file with a '#, fuzzy' comment and "Color depth" instead of "Color Depth"...

What if I rename tmp.po to glossary.po and copy-paste it to po/fr/ ? A good or bad idea?

Julien

Ulf-D. Ehlert
2009-04-28 21:41:16 UTC (almost 16 years ago)

Updating PO files

julien (Dienstag, 28. April 2009, 14:54):

What is 'timestamp':
- The last editing date?

Yes, the time of last modification. Just use ls -ltr src/glossary.xml pot/glossary.pot po/fr/glossary.po this will show the timestamps and sort the files according to their timestamps.

The three files are 2009:04:28 07:21

If both src/glossary.xml and po/fr/glossary.po are updated by git, both timestamps are set, and then the po file may be newer than the src file - and won't be updated. I still don't know how to handle this situation correctly.

Remember that you can always force updating with make update-po/fr/glossary.po

Weird! if I run
msgmerge -o tmp.po po/fr/glossary.po pot/glossary.pot, I get a right PO file with a '#, fuzzy' comment and "Color depth" instead of "Color Depth"...

This command does not depend on timestamps, so the po file will always be updated.

What if I rename tmp.po to glossary.po and copy-paste it to po/fr/ ? A good or bad idea?

Should be ok. But an easy way to find out is diff po/fr/glossary.po tmp.po
(and much better using colordiff - http://colordiff.sourceforge.net/).

Ulf