]> git.lyx.org Git - lyx.git/blobdiff - src/Language.cpp
Update my email and status.
[lyx.git] / src / Language.cpp
index 95e725f3f3c2b3f0178b0d4be1c9cbad66cac678..286dc92bd644454a1dc636871e49f337c73e6b6d 100644 (file)
@@ -255,12 +255,8 @@ void Languages::read(FileName const & filename)
        }
 
        // Read layout translations
-       FileName path = libFileSearch(string(), "layouttranslations");
+       FileName const path = libFileSearch(string(), "layouttranslations");
        readLayoutTranslations(path);
-
-       // Read installed translations
-       path = libFileSearch(string(), "installed_translations");
-       readInstalledTranslations(path);
 }
 
 
@@ -369,32 +365,6 @@ void Languages::readLayoutTranslations(support::FileName const & filename)
 }
 
 
-void Languages::readInstalledTranslations(support::FileName const & filename)
-{
-       Lexer lex;
-       lex.setFile(filename);
-       lex.setContext("Languages::read");
-
-       // 1) read all installed gmo files names
-       set<string> installed_translations;
-       string lang_code;
-       while (lex.isOK()) {
-               lex >> lang_code;
-               installed_translations.insert(lang_code);
-       }
-
-       // 2) mark all corresponding languages as translated.
-       LanguageList::iterator lit = languagelist.begin();
-       LanguageList::iterator const lend = languagelist.end();
-       for ( ; lit != lend ; ++lit) {
-               if (installed_translations.count(lit->second.code())
-                   || installed_translations.count(token(lit->second.code(), '_', 0)))
-                       lit->second.translated(true);
-       }
-
-}
-
-
 Language const * Languages::getLanguage(string const & language) const
 {
        if (language == "reset")