Temporarily re-enabled display of all languages, regardless of completeness

This commit is contained in:
Charles Dang 2018-03-18 17:19:08 +11:00
parent 3760b2a356
commit 5c86dc81be
2 changed files with 5 additions and 2 deletions

View file

@ -25,8 +25,6 @@
* New Elvish Sylph baseframe by Jetrel.
### Language and i18n
* Updated translations: British English, Czech, Spanish
* Translations with less than 80% completion are now hidden from the
language selection menu by default.
### Lua API
* Add side_name to side proxy
* Added wesnoth.custom_synced_commands table where you can register

View file

@ -120,10 +120,15 @@ language_list get_languages()
// We sort every time, the local might have changed which can modify the
// sort order.
std::sort(known_languages.begin(), known_languages.end());
// FIXME! The translation percent complete script is giving results that don't
// match with gettext.wesnoth.org... need to figure out what the hell is wrong :(
#if 0
language_list result;
std::copy_if(known_languages.begin(), known_languages.end(), std::back_inserter(result),
[](language_def lang) { return lang.percent >= MIN_TRANSLATION_PERCENT; });
return result;
#endif
return known_languages;
}
static void wesnoth_setlocale(int category, const std::string& slocale,