diff options
author | frosch <frosch@openttd.org> | 2021-04-11 17:28:47 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2021-04-22 22:16:56 +0200 |
commit | 37222c3fa2f558df5f7ef420ad583ba403ceda62 (patch) | |
tree | c4f322cd2a726e7dccc9a089959aec07b2a0e9f0 /src/settings_gui.cpp | |
parent | a9740cef82b6969be1087bb0cfa2fcfdc3058845 (diff) | |
download | openttd-37222c3fa2f558df5f7ef420ad583ba403ceda62.tar.xz |
Change: treat languages as finished, if translations are 75% completed.
Unfinished translations are not auto-picked from the locale.
In release builds, unfinished translations are not offered in the GUI.
Unfinished translations are available in non-release builds, or by editing openttd.cfg.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 1e3bdb7d7..f5872c648 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -218,6 +218,8 @@ struct GameOptionsWindow : Window { case WID_GO_LANG_DROPDOWN: { // Setup interface language dropdown for (uint i = 0; i < _languages.size(); i++) { + bool hide_language = IsReleasedVersion() && !_languages[i].IsReasonablyFinished(); + if (hide_language) continue; bool hide_percentage = IsReleasedVersion() || _languages[i].missing < _settings_client.gui.missing_strings_threshold; auto item = new DropDownListParamStringItem(hide_percentage ? STR_JUST_RAW_STRING : STR_GAME_OPTIONS_LANGUAGE_PERCENTAGE, i, false); if (&_languages[i] == _current_language) { |