]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexfile.cc
debian/copyright: removed again, this is copied in place by debian/rules
[apt.git] / apt-pkg / indexfile.cc
index 34fd71b20197473ec4fefba739dea80263598a68..2f5bc24390c66cc954078b4bf453ac45ecb981e6 100644 (file)
@@ -115,8 +115,7 @@ string pkgIndexFile::LanguageCode()
      // we have a mapping of the language codes that contains all the language
      // codes that need the country code as well 
      // (like pt_BR, pt_PT, sv_SE, zh_*, en_*)
-     const char *need_full_langcode[] = { "cs_", 
-                                         "en_", 
+     const char *need_full_langcode[] = { "en_", 
                                          "pt_",
                                          "sv_",
                                          "zh_", 
@@ -127,6 +126,8 @@ string pkgIndexFile::LanguageCode()
      
      if(lang.find("_") != lang.npos)
        return lang.substr(0, lang.find("_"));
+     else if(lang.find(".") != lang.npos)
+       return lang.substr(0, lang.find("."));
      else
        return lang;
   }