Skip to content

Commit

Permalink
Cleaned up language completion filtering, but left it disabled here
Browse files Browse the repository at this point in the history
We don't want this enabled on the dev branch.

(cherry-picked from commit 301fb93)
  • Loading branch information
Vultraz committed Oct 7, 2018
1 parent 8e323e8 commit e7a20bd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/language.cpp
Expand Up @@ -39,14 +39,11 @@ extern "C" int _putenv(const char*);
#define WRN_G LOG_STREAM(warn, lg::general())
#define ERR_G LOG_STREAM(err, lg::general())

#ifndef MIN_TRANSLATION_PERCENT
#define MIN_TRANSLATION_PERCENT 80
#endif

namespace {
language_def current_language;
std::vector<config> languages_;
utils::string_map strings_;
const unsigned MIN_TRANSLATION_PERCENT = 80;
}

static language_list known_languages;
Expand Down Expand Up @@ -120,12 +117,11 @@ 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; });
[](const language_def& lang) { return lang.percent >= MIN_TRANSLATION_PERCENT; });

return result;
#endif
return known_languages;
Expand Down

0 comments on commit e7a20bd

Please sign in to comment.