From 7060f9cc052ca8fa6c85eb8275775acf2b942315 Mon Sep 17 00:00:00 2001 From: Nemrtvi Date: Sun, 17 Feb 2019 12:03:51 +0100 Subject: [PATCH] Add language menu to Options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.) --- wadsrc/static/language.enu | 1 + wadsrc/static/language.fr | 1 + wadsrc/static/menudef.txt | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/wadsrc/static/language.enu b/wadsrc/static/language.enu index f2c1c50e2..a43247c25 100644 --- a/wadsrc/static/language.enu +++ b/wadsrc/static/language.enu @@ -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 diff --git a/wadsrc/static/language.fr b/wadsrc/static/language.fr index 70f6a5b22..18e1f0e29 100644 --- a/wadsrc/static/language.fr +++ b/wadsrc/static/language.fr @@ -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"; diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index fb0372201..389f9a54a 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -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" +}