mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Add Lojban language code (issue #233)
This commit is contained in:
parent
f0f087c04a
commit
8f4ed2678f
|
@ -200,6 +200,7 @@ const LangCode LangCodes[] = {
|
|||
{ "za", "zha", "Zhuang" },
|
||||
{ "zh", "chi", "Chinese" },
|
||||
{ "zu", "zul", "Zulu" },
|
||||
{ "jb", "jbo", "Lojban" },
|
||||
|
||||
{ "", "", "" }
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue