]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use two-letter language codes where possible.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Jan 2004 15:05:44 +0000 (15:05 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:41 +0000 (12:11 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/localename.c

index 8e191da1350fd0c3a7755b33ad8aeb8a8a4c441c..b546ead6af02b7a3df3159c02f7249d26d9bff79 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-18  Bruno Haible  <bruno@clisp.org>
+
+       * localename.c (_nl_locale_name): Use two-letter ISO 639 codes for
+       Divehi, Fulfulde, Igbo, Kanuri, Venda.
+
 2004-01-17  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.in (LTV_CURRENT, LTV_REVISION, LTV_AGE): Bump to 7:0:4.
index cf3ddb2b0ce38c8750d59ce4c8718ced550277bf..5662e54ffe2c0c1af5ecd17c1d44381a20304d32 100644 (file)
@@ -1,5 +1,5 @@
 /* Determine the current selected locale.
-   Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc.
+   Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published
@@ -845,7 +845,7 @@ _nl_locale_name (int category, const char *categoryname)
       return "hr";
     case LANG_CZECH: return "cs_CZ";
     case LANG_DANISH: return "da_DK";
-    case LANG_DIVEHI: return "div_MV";
+    case LANG_DIVEHI: return "dv_MV";
     case LANG_DUTCH:
       switch (sub)
        {
@@ -906,7 +906,9 @@ _nl_locale_name (int category, const char *categoryname)
        }
       return "fr";
     case LANG_FRISIAN: return "fy_NL";
-    case LANG_FULFULDE: return "ful_NG";
+    case LANG_FULFULDE:
+      /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */
+      return "ff_NG";
     case LANG_GAELIC:
       switch (sub)
        {
@@ -939,7 +941,7 @@ _nl_locale_name (int category, const char *categoryname)
     case LANG_HUNGARIAN: return "hu_HU";
     case LANG_IBIBIO: return "nic_NG";
     case LANG_ICELANDIC: return "is_IS";
-    case LANG_IGBO: return "ibo_NG";
+    case LANG_IGBO: return "ig_NG";
     case LANG_INDONESIAN: return "id_ID";
     case LANG_INUKTITUT: return "iu_CA";
     case LANG_ITALIAN:
@@ -951,7 +953,7 @@ _nl_locale_name (int category, const char *categoryname)
       return "it";
     case LANG_JAPANESE: return "ja_JP";
     case LANG_KANNADA: return "kn_IN";
-    case LANG_KANURI: return "kau_NG";
+    case LANG_KANURI: return "kr_NG";
     case LANG_KASHMIRI:
       switch (sub)
        {
@@ -1125,12 +1127,7 @@ _nl_locale_name (int category, const char *categoryname)
        case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic";
        }
       return "uz";
-    case LANG_VENDA:
-      /* FIXME: It's not clear whether Venda has the ISO 639-2 two-letter code
-        "ve" or not.
-        http://www.loc.gov/standards/iso639-2/englangn.html has it, but
-        http://lcweb.loc.gov/standards/iso639-2/codechanges.html doesn't,  */
-      return "ven_ZA"; /* or "ve_ZA"? */
+    case LANG_VENDA: return "ve_ZA";
     case LANG_VIETNAMESE: return "vi_VN";
     case LANG_WELSH: return "cy_GB";
     case LANG_XHOSA: return "xh_ZA";