From fb7d5a2018615b9d4a2f5f43f5692fe9ada0f936 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 26 Jul 2019 17:23:20 +0200 Subject: [PATCH] fix(datas): use new language format --- .../languages/en/{global => }/boolean.lua | 0 .../datas/languages/en/menu.lua | 18 ++++++++++++++++++ .../datas/languages/en/options/menu.lua | 18 ------------------ .../languages/fr/{global => }/boolean.lua | 0 .../datas/languages/fr/menu.lua | 18 ++++++++++++++++++ .../datas/languages/fr/options/menu.lua | 18 ------------------ sonic-radiance.love/datas/languages/init.lua | 6 ++---- 7 files changed, 38 insertions(+), 40 deletions(-) rename sonic-radiance.love/datas/languages/en/{global => }/boolean.lua (100%) create mode 100644 sonic-radiance.love/datas/languages/en/menu.lua delete mode 100644 sonic-radiance.love/datas/languages/en/options/menu.lua rename sonic-radiance.love/datas/languages/fr/{global => }/boolean.lua (100%) create mode 100644 sonic-radiance.love/datas/languages/fr/menu.lua delete mode 100644 sonic-radiance.love/datas/languages/fr/options/menu.lua diff --git a/sonic-radiance.love/datas/languages/en/global/boolean.lua b/sonic-radiance.love/datas/languages/en/boolean.lua similarity index 100% rename from sonic-radiance.love/datas/languages/en/global/boolean.lua rename to sonic-radiance.love/datas/languages/en/boolean.lua diff --git a/sonic-radiance.love/datas/languages/en/menu.lua b/sonic-radiance.love/datas/languages/en/menu.lua new file mode 100644 index 0000000..ba12c45 --- /dev/null +++ b/sonic-radiance.love/datas/languages/en/menu.lua @@ -0,0 +1,18 @@ +return { + ["options"] = "OPTIONS", + ["video"] = "VIDEO", + ["audio"] = "AUDIO", + ["lang"] = "LANGUES", + ["input"] = "CONTROLES", + ["reset"] = "RESET", + ["exit"] = "EXIT", + ["back"] = "BACK", + ["sfx"] = "SFX", + ["music"] = "MUSIC", + ["keyboard"] = "Clavier", + ["inputtype"] = "SOURCE", + ["vsync"] = "VSYNC", + ["borders"] = "BORDURES", + ["fullscreen"] = "PLEIN ECRAN", + ["resolution"] = "RESOLUTION" +} diff --git a/sonic-radiance.love/datas/languages/en/options/menu.lua b/sonic-radiance.love/datas/languages/en/options/menu.lua deleted file mode 100644 index ad43f1a..0000000 --- a/sonic-radiance.love/datas/languages/en/options/menu.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - ["options"] = "OPTIONS", - ["video"] = "VIDEO", - ["audio"] = "AUDIO", - ["lang"] = "LANGUES", - ["input"] = "CONTROLES", - ["reset"] = "RESET", - ["exit"] = "EXIT", - ["back"] = "BACK", - ["sfx"] = "SFX", - ["music"] = "MUSIC", - ["keyboard"] = "Clavier", - ["inputtype"] = "SOURCE", - ["vsync"] = "VSYNC", - ["borders"] = "BORDURES", - ["fullscreen"] = "PLEIN ECRAN", - ["resolution"] = "RESOLUTION" -} diff --git a/sonic-radiance.love/datas/languages/fr/global/boolean.lua b/sonic-radiance.love/datas/languages/fr/boolean.lua similarity index 100% rename from sonic-radiance.love/datas/languages/fr/global/boolean.lua rename to sonic-radiance.love/datas/languages/fr/boolean.lua diff --git a/sonic-radiance.love/datas/languages/fr/menu.lua b/sonic-radiance.love/datas/languages/fr/menu.lua new file mode 100644 index 0000000..ee96845 --- /dev/null +++ b/sonic-radiance.love/datas/languages/fr/menu.lua @@ -0,0 +1,18 @@ +return { + ["options"] = "SETTINGS", + ["video"] = "VIDEO", + ["audio"] = "AUDIO", + ["lang"] = "LANGUAGES", + ["input"] = "CONTROLS", + ["reset"] = "RESET", + ["exit"] = "EXIT", + ["back"] = "BACK", + ["sfx"] = "SFX", + ["music"] = "MUSIC", + ["keyboard"] = "Keyboard", + ["inputtype"] = "SOURCE", + ["vsync"] = "VSYNC", + ["borders"] = "BORDERS", + ["fullscreen"] = "FULLSCREEN", + ["resolution"] = "RESOLUTION" +} diff --git a/sonic-radiance.love/datas/languages/fr/options/menu.lua b/sonic-radiance.love/datas/languages/fr/options/menu.lua deleted file mode 100644 index 74aea9a..0000000 --- a/sonic-radiance.love/datas/languages/fr/options/menu.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - ["options"] = "SETTINGS", - ["video"] = "VIDEO", - ["audio"] = "AUDIO", - ["lang"] = "LANGUAGES", - ["input"] = "CONTROLS", - ["reset"] = "RESET", - ["exit"] = "EXIT", - ["back"] = "BACK", - ["sfx"] = "SFX", - ["music"] = "MUSIC", - ["keyboard"] = "Keyboard", - ["inputtype"] = "SOURCE", - ["vsync"] = "VSYNC", - ["borders"] = "BORDERS", - ["fullscreen"] = "FULLSCREEN", - ["resolution"] = "RESOLUTION" -} diff --git a/sonic-radiance.love/datas/languages/init.lua b/sonic-radiance.love/datas/languages/init.lua index 4d76b9f..813eb45 100644 --- a/sonic-radiance.love/datas/languages/init.lua +++ b/sonic-radiance.love/datas/languages/init.lua @@ -1,6 +1,4 @@ return { - available_langs = { - ["en"] = "English", - ["fr"] = "Français" - } + available = {"en", "fr"}, + default = "en" }