bug-gettext
[Top][All Lists]
Advanced

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

[bug #59062] po.m4: LINGUAS check should exclude .po files for unrelated


From: Arfrever
Subject: [bug #59062] po.m4: LINGUAS check should exclude .po files for unrelated languages
Date: Mon, 7 Sep 2020 07:14:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

Follow-up Comment #2, bug #59062 (project gettext):

After more testing, it appears that in both my patch and in your commit, usage
of variables is inverted.

When user sets LINGUAS="... zh ..." and zh_CN.po and zh_TW.po files exist,
values of variables during some iterations of those loops would be:

desiredlang="zh"
presentlang="zh_CN"

desiredlang="zh"
presentlang="zh_TW"


The current comment implies that zh is variant of zh_CN and zh_TW, but it is
the other way round, i.e. zh_CN and zh_TW are variants of zh.

I will attach new patch, which fixes usage of variables.

I have now verified that e.g. setting LINGUAS="en fr ja zh" for gettext
project results in:

gettext-runtime/po/Makefile:CATALOGS =  en@quot.gmo en@boldquot.gmo fr.gmo
ja.gmo zh_CN.gmo zh_HK.gmo zh_TW.gmo
gettext-tools/po/Makefile:CATALOGS =  en@quot.gmo en@boldquot.gmo fr.gmo
ja.gmo zh_CN.gmo zh_TW.gmo


(file #49753)
    _______________________________________________________

Additional Item Attachment:

File name: gettext.patch                  Size:2 KB
    <https://file.savannah.gnu.org/file/gettext.patch?file_id=49753>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59062>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]