diff --git a/langcoder.hh b/langcoder.hh index cabfa778..3711b46a 100644 --- a/langcoder.hh +++ b/langcoder.hh @@ -200,6 +200,7 @@ const LangCode LangCodes[] = { { "za", "zha", "Zhuang" }, { "zh", "chi", "Chinese" }, { "zu", "zul", "Zulu" }, + { "jb", "jbo", "Lojban" }, { "", "", "" } diff --git a/language.cc b/language.cc index 5c44156d..f50053c8 100644 --- a/language.cc +++ b/language.cc @@ -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 ); - return QString( " %2" ).arg( iconId ).arg( name ); + if( iconId.isEmpty() ) + return name; + else + return QString( " %2" ).arg( iconId ).arg( name ); } }