Add language menu to Options

In this menu, all languages supported by GZDoom are selectable with one simple click! Credits to @PROPHESSOR for making it!

(This only edits the English and French languages because they are the only languages currently up to date with GZDoom’s development. A Russian translation will follow suit at a later date.)
This commit is contained in:
Nemrtvi 2019-02-17 12:03:51 +01:00 committed by Christoph Oelckers
parent e49a5fdb61
commit 7060f9cc05
3 changed files with 26 additions and 0 deletions

View file

@ -1730,6 +1730,7 @@ OPTMNU_DEFAULTS = "Reset to defaults";
OPTMNU_RESETTOSAVED = "Reset to last saved";
OPTMNU_CONSOLE = "Go to console";
OPTMNU_REVERB = "Reverb environment editor";
OPTMNU_LANGUAGE = "Language";
// Controls Menu

View file

@ -1774,6 +1774,7 @@ OPTMNU_DEFAULTS = "Réinitialiser les paramètres";
OPTMNU_RESETTOSAVED = "Recharger dernière config.";
OPTMNU_CONSOLE = "Ouvrir la console";
OPTMNU_REVERB = "Editeur environement de révérb.";
OPTMNU_LANGUAGE = "Langage";
// Controls Menu
CNTRLMNU_TITLE = "MODIFIER CONTROLES";

View file

@ -2545,3 +2545,27 @@ OptionMenu "ReverbSave" protected
StaticText "Environments to save"
// Rest is filled in by code.
}
/*=======================================
*
* Language menu
*
*=======================================*/
OptionMenu "LanguageOptions"
{
Title "$OPTMNU_LANGUAGE"
StaticText " "
Command "English (UK)", "language eng"
Command "English (US)", "language enu"
Command "Français (FR)", "language fr"
Command "Italiano (ITA)", "language ita"
Command "Português do Brasil (PTB)", "language ptb"
Command "Русский (RU)", "language rus"
}
AddOptionMenu "OptionsMenu"
{
StaticText " "
Submenu "$OPTMNU_LANGUAGE", "LanguageOptions"
}