Author: rra
Date: 2008-06-07 00:24:57 +0200 (Sat, 07 Jun 2008)
New Revision: 1342

Modified:
   trunk/checks/manpages
   trunk/checks/manpages.desc
Log:
Properly generalize the exclusion of zh_* locales from the prohibition
on country names in man page locale directories to allow for any zh_*
country-based locale.


Modified: trunk/checks/manpages
===================================================================
--- trunk/checks/manpages       2008-06-06 21:48:39 UTC (rev 1341)
+++ trunk/checks/manpages       2008-06-06 22:24:57 UTC (rev 1342)
@@ -121,7 +121,7 @@
     # The country should not be part of the man page locale directory unless
     # it's one of the known cases where the language is significantly
     # different between countries.
-    if ($lang =~ /_/ && $lang !~ /^(pt_BR|zh_(CN|TW))$/) {
+    if ($lang =~ /_/ && $lang !~ /^(pt_BR|zh_[A-Z][A-Z])$/) {
        tag "manpage-locale-dir-country-specific", "$file";
     }
 

Modified: trunk/checks/manpages.desc
===================================================================
--- trunk/checks/manpages.desc  2008-06-06 21:48:39 UTC (rev 1341)
+++ trunk/checks/manpages.desc  2008-06-06 22:24:57 UTC (rev 1342)
@@ -247,6 +247,6 @@
 Info: This package installs a manual page in a locale directory that
  includes the country name.  A country name should not be included in the
  directory name unless it indicates a significant difference in the
- language.  The known cases where country names are appropriate are pt_BR,
- zh_CN, zh_TW, and zh_SG.  Please file a bug against Lintian if this is
- another case where a country name is appropriate.
+ language.  The known cases where country names are appropriate are pt_BR
+ and zh_*.  Please file a bug against Lintian if this is another case
+ where a country name is appropriate.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to