summaryrefslogtreecommitdiffstats
path: root/tags/i/incorrect-locale-code.tag
diff options
context:
space:
mode:
Diffstat (limited to 'tags/i/incorrect-locale-code.tag')
-rw-r--r--tags/i/incorrect-locale-code.tag15
1 files changed, 15 insertions, 0 deletions
diff --git a/tags/i/incorrect-locale-code.tag b/tags/i/incorrect-locale-code.tag
new file mode 100644
index 0000000..f4cdb53
--- /dev/null
+++ b/tags/i/incorrect-locale-code.tag
@@ -0,0 +1,15 @@
+Tag: incorrect-locale-code
+Severity: warning
+Check: files/locales
+Explanation: The package appears to ship locales for a language but uses an
+ incorrect locale code as a subdirectory of <code>/usr/share/locale</code>.
+ This usually results in users of the intended target language not
+ finding the locale. The language codes used in the locale directories
+ are those from the ISO 639-1 and ISO 639-2 standards, not those
+ usually used as TLDs (which are from the ISO 3166 standard).
+ .
+ When both standards define a language code for a given language, the
+ ISO 639-1 code should be used (i.e. the two lettered code).
+ .
+ Lintian only knows about some commonly-mistaken set of incorrect
+ locale codes.