diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-05-02 00:11:05 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-05-16 16:02:45 +0300 |
commit | b0cbfa47f5060b9f0d0d4bcee30272162e176792 (patch) | |
tree | 163a931ff6e3d07443201943dd60064045398d09 /kxkb/pixmap.cpp | |
parent | 1684db01bd44d0dedfc0ef6c447016bd7c4ea656 (diff) | |
download | tdebase-b0cbfa47f5060b9f0d0d4bcee30272162e176792.tar.gz tdebase-b0cbfa47f5060b9f0d0d4bcee30272162e176792.zip |
Added flags/definitions for existing locales.
* Braille
* Esperanto
* Indonesian (Javanese)
* Maori (New Zealand)
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kxkb/pixmap.cpp')
-rw-r--r-- | kxkb/pixmap.cpp | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/kxkb/pixmap.cpp b/kxkb/pixmap.cpp index 4a3e6aff2..238023d9b 100644 --- a/kxkb/pixmap.cpp +++ b/kxkb/pixmap.cpp @@ -164,16 +164,25 @@ TQString LayoutIcon::getCountryFromLayoutName(const TQString& layoutName) if( layoutName == "mkd" ) flag = "mk"; else - if( layoutName == "srp" ) { - TQString csFlagFile = locate("locale", flagTemplate.arg("cs")); - flag = csFlagFile.isEmpty() ? "yu" : "cs"; + if( layoutName == "srp" ) { + TQString csFlagFile = locate("locale", flagTemplate.arg("cs")); + flag = csFlagFile.isEmpty() ? "yu" : "cs"; } else if( layoutName.endsWith("/jp") ) flag = "jp"; - else - if( layoutName == "trq" || layoutName == "trf" || layoutName == "tralt" ) - flag = "tr"; + else + if( layoutName == "trq" || layoutName == "trf" || layoutName == "tralt" ) + flag = "tr"; + else + if( layoutName == "epo" ) // Esperanto + flag = "eo"; + else + if( layoutName == "mao" ) // Maori + flag = "mi"; + else + if( layoutName == "brai" ) // Braille + flag = "braille"; else if( layoutName.length() > 2 ) flag = ""; @@ -182,10 +191,19 @@ TQString LayoutIcon::getCountryFromLayoutName(const TQString& layoutName) } else { if( layoutName == "ar" ) // Arabic - not argentina - ; - else - if( layoutName == "sr" || layoutName == "cs") // Serbian language - Yugoslavia - flag = "yu"; + ; + else + if( layoutName == "epo" ) // Esperanto + flag = "eo"; + else + if( layoutName == "mao" ) // Maori + flag = "mi"; + else + if( layoutName == "brai" ) // Braille + flag = "braille"; + else + if( layoutName == "sr" || layoutName == "cs") // Serbian language - Yugoslavia + flag = "yu"; else if( layoutName == "bs" ) // Bosnian language - Bosnia flag = "ba"; |