/usr/share/maliit/plugins/com/ubuntu/keys/languages.js is in ubuntu-keyboard-data 0.99.trunk.phablet2+16.04.20160226.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /*
* Copyright 2016 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function languageIdToName(languageId)
{
if (languageId == "ar") return i18n.tr("Arabic");
if (languageId == "az") return i18n.tr("Azerbaijani");
if (languageId == "bs") return i18n.tr("Bosnian");
if (languageId == "ca") return i18n.tr("Catalan");
if (languageId == "cs") return i18n.tr("Czech");
if (languageId == "da") return i18n.tr("Danish");
if (languageId == "de") return i18n.tr("German");
if (languageId == "emoji") return i18n.tr("Emoji");
if (languageId == "el") return i18n.tr("Greek");
if (languageId == "en") return i18n.tr("English");
if (languageId == "es") return i18n.tr("Spanish");
if (languageId == "fi") return i18n.tr("Finnish");
if (languageId == "fr") return i18n.tr("French");
if (languageId == "gd") return i18n.tr("Scottish Gaelic");
if (languageId == "he") return i18n.tr("Hebrew");
if (languageId == "hr") return i18n.tr("Croatian");
if (languageId == "hu") return i18n.tr("Hungarian");
if (languageId == "is") return i18n.tr("Icelandic");
if (languageId == "it") return i18n.tr("Italian");
if (languageId == "ja") return i18n.tr("Japanese");
if (languageId == "nl") return i18n.tr("Dutch");
if (languageId == "nb") return i18n.tr("Norwegian");
if (languageId == "pl") return i18n.tr("Polish");
if (languageId == "pt") return i18n.tr("Portuguese");
if (languageId == "ro") return i18n.tr("Romanian");
if (languageId == "ru") return i18n.tr("Russian");
if (languageId == "sl") return i18n.tr("Slovenian");
if (languageId == "sr") return i18n.tr("Serbian");
if (languageId == "sv") return i18n.tr("Swedish");
if (languageId == "uk") return i18n.tr("Ukrainian");
if (languageId == "zh") return i18n.tr("Chinese - Pinyin");
// fallback
return languageId.charAt(0).toUpperCase() + languageId.slice(1);
}
|