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