Add Lojban language code (issue #233)

This commit is contained in:
Abs62 2013-03-05 18:31:20 +04:00
parent f0f087c04a
commit 8f4ed2678f
2 changed files with 6 additions and 1 deletions

View file

@ -200,6 +200,7 @@ const LangCode LangCodes[] = {
{ "za", "zha", "Zhuang" },
{ "zh", "chi", "Chinese" },
{ "zu", "zul", "Zulu" },
{ "jb", "jbo", "Lojban" },
{ "", "", "" }

View file

@ -237,6 +237,7 @@ Db::Db()
addEntry( "za", "Zhuang", QCoreApplication::translate( "Language", "Zhuang" ) );
addEntry( "zh", "Chinese", QCoreApplication::translate( "Language", "Chinese" ) );
addEntry( "zu", "Zulu", QCoreApplication::translate( "Language", "Zulu" ) );
addEntry( "jb", "Lojban", QCoreApplication::translate( "Language", "Lojban" ) );
// Countries
@ -458,6 +459,9 @@ QString localizedStringForId( Id langId )
QString iconId = countryCodeForId( langId );
if( iconId.isEmpty() )
return name;
else
return QString( "<img src=\":/flags/%1.png\"> %2" ).arg( iconId ).arg( name );
}
}