xz/po
Lasse Collin 9284f1aea3 Build: Update po/*.po files only when needed
When po/xz.pot doesn't exist, running "make" or "make dist" will
create it. Then the .po files will be updated but only if they
actually would change more than the POT-Creation-Date line.
Then the .gmo files would be generated from the .po files.
This is the case before and after this commit.

However, "make dist" and thus "make mydist" did a forced update
to the files, updating them even if the only change was the
POT-Creation-Date line. This had pros and cons: It made it clear
that the .po file really is in sync with the recent strings in
the package. On the other hand, it added noise in form of changed
files in the source tree and distribution tarballs. It can be
ignored with something like "diff -I'^"POT-Creation-Date: '" but
it's still a minor annoyance *if* there's not enough value in
having the most recent timestamp.

Setting DIST_DEPENDS_ON_UPDATE_PO = no means that such forced
update won't happen in "make dist" anymore. However, the "mydist"
target will use xz.pot-update target which is the same target that
is run when xz.pot doesn't exist at all yet. Thus "mydist" will
ensure that the translations are up to date, without noise from
changes that would affect only the POT-Creation-Date line.

Note that po4a always uses msgmerge with --update, so POT-Creation-Date
in the man page translations is never the only change in .po files.
In that sense this commit makes the message translations behave more
similarly to the man page translations.

Distribution tarballs will still have non-reproducible POT-Creation-Date
in po/xz.pot and po4a/xz-man.pot but those are just two files. Even they
could be made reproducible from a Git timestamp if desired.
2024-05-29 16:33:24 +03:00
..
.gitignore update po/.gitignore 2009-12-09 10:56:43 +02:00
LINGUAS Translations: Add Turkish translation. 2022-09-16 15:15:05 +03:00
Makevars Build: Update po/*.po files only when needed 2024-05-29 16:33:24 +03:00
POTFILES.in Translations: Translate also messages of lzmainfo. 2024-02-14 18:31:16 +02:00
ca.po Translations: Update the Catalan translation. 2022-12-12 22:44:21 +02:00
cs.po Translations: Rebuild cs.po to avoid incorrect fuzzy strings. 2022-08-22 18:06:37 +03:00
da.po Translations: Add partial Danish translation. 2022-08-22 18:06:37 +03:00
de.po Translations: Update the German translation. 2024-02-20 19:58:25 +08:00
eo.po Translations: Update the Esperanto translation. 2024-02-24 12:06:40 +08:00
es.po Translations: Update the Spanish translation. 2024-02-20 21:03:53 +08:00
fi.po Translations: Update the Finnish translation. 2022-11-11 17:58:57 +02:00
fr.po Translations: Update the French translation. 2023-12-21 21:39:08 +08:00
hr.po Translations: Update the Croatian translation. 2024-02-20 20:15:50 +08:00
hu.po Translations: Update the Hungarian translation. 2024-02-20 19:56:52 +08:00
it.po Translations: Add fi and pt_BR, and update de, fr, it, and pl. 2022-08-22 18:06:37 +03:00
ko.po Translations: Update the Korean translation. 2024-02-18 01:08:32 +08:00
pl.po Translations: Update the Polish translation. 2024-02-17 20:41:38 +08:00
pt.po Translations: Add Portuguese translation. 2022-08-22 18:06:38 +03:00
pt_BR.po Translations: Update the Brazilian Portuguese translation. 2023-01-13 22:21:49 +08:00
ro.po Translations: Update the Romanian translation. 2024-02-20 20:18:07 +08:00
sr.po Translations: Add Serbian translation. 2022-08-22 18:06:37 +03:00
sv.po Translations: Update the Swedish translation. 2024-02-17 20:43:29 +08:00
tr.po Translations: Update the Turkish translation. 2022-12-08 18:18:06 +02:00
uk.po Translations: Update the Ukrainian translation. 2024-02-17 20:41:02 +08:00
vi.po Translations: Update the Vietnamese translation. 2024-02-24 12:12:16 +08:00
xz.pot-header Translations: Use the same sentence in xz.pot-header that the TP uses. 2024-02-16 17:53:34 +02:00
zh_CN.po Translations: Update the Chinese (simplified) translation. 2024-02-13 01:53:33 +08:00
zh_TW.po Translations: Update the Chinese (traditional) translation. 2023-07-10 20:56:28 +08:00