]> git.ipfire.org Git - thirdparty/gettext.git/commit
Fix matching of languages in the LINGUAS environment variable.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Sep 2020 19:28:50 +0000 (21:28 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Sep 2020 19:28:50 +0000 (21:28 +0200)
commit3ab3933d54fe2ae030203658fac59c845ae554c8
tree8fc626ca490be0edb1ba094e2c9ba8e4e3cb5c0c
parent60bc1031102fa4264ca8c066976c7fb2847d87ed
Fix matching of languages in the LINGUAS environment variable.

Setting LINGUAS e.g. to "frs" should not cause fr.mo to get installed,
because Frisian is not a variant of French.

Reported by <arfrever.fta@gmail.com> in <https://savannah.gnu.org/bugs/?59062>.

* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Don't
consider $desiredlang a variant of $presentlang unless it has the syntax of a
variant.
gettext-runtime/m4/po.m4