Display name for a language code, in its own language (never localized).
| 94 | |
| 95 | // Display name for a language code, in its own language (never localized). |
| 96 | const char* languageName(const std::string& code) |
| 97 | { |
| 98 | if (code == "it") |
| 99 | return "Italiano"; |
| 100 | if (code == "es") |
| 101 | return "Español"; |
| 102 | if (code == "fr") |
| 103 | return "Français"; |
| 104 | if (code == "de") |
| 105 | return "Deutsch"; |
| 106 | if (code == "pt") |
| 107 | return "Português"; |
| 108 | if (code == "nl") |
| 109 | return "Nederlands"; |
| 110 | if (code == "ja") |
| 111 | return "日本語"; |
| 112 | if (code == "zh") |
| 113 | return "简体中文"; |
| 114 | if (code == "ru") |
| 115 | return "Русский"; |
| 116 | return "English"; |
| 117 | } |
| 118 | |
| 119 | size_t languageIndex(const std::string& code) |
| 120 | { |