Display name for a language code, in its own language (never localized).
| 80 | |
| 81 | // Display name for a language code, in its own language (never localized). |
| 82 | const char* languageName(const std::string& code) |
| 83 | { |
| 84 | if (code == "it") |
| 85 | return "Italiano"; |
| 86 | if (code == "es") |
| 87 | return "Español"; |
| 88 | if (code == "fr") |
| 89 | return "Français"; |
| 90 | if (code == "de") |
| 91 | return "Deutsch"; |
| 92 | if (code == "pt") |
| 93 | return "Português"; |
| 94 | if (code == "nl") |
| 95 | return "Nederlands"; |
| 96 | if (code == "ja") |
| 97 | return "日本語"; |
| 98 | if (code == "zh") |
| 99 | return "简体中文"; |
| 100 | return "English"; |
| 101 | } |
| 102 | |
| 103 | size_t languageIndex(const std::string& code) |
| 104 | { |