From 2a075a8ff1e9ca7943a1723630558670880efc36 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 27 Nov 2024 18:56:48 +0100 Subject: [PATCH] Make game name and description translatable --- game.conf | 1 + mods/tutorial_game_meta/init.lua | 1 + mods/tutorial_game_meta/locale/template.pot | 20 +++++++++++++++++++ .../locale/tutorial_game_meta.de.po | 19 ++++++++++++++++++ mods/tutorial_game_meta/mod.conf | 2 ++ 5 files changed, 43 insertions(+) create mode 100644 mods/tutorial_game_meta/init.lua create mode 100644 mods/tutorial_game_meta/locale/template.pot create mode 100644 mods/tutorial_game_meta/locale/tutorial_game_meta.de.po create mode 100644 mods/tutorial_game_meta/mod.conf diff --git a/game.conf b/game.conf index 60e86a5..278f46a 100644 --- a/game.conf +++ b/game.conf @@ -5,3 +5,4 @@ disallowed_mapgens = v5, v6, v7, valleys, carpathian, fractal, flat disallowed_mapgen_settings = seed allowed_mapgens = singlenode disabled_settings = enable_server, !enable_damage, creative_mode +textdomain = tutorial_game_meta diff --git a/mods/tutorial_game_meta/init.lua b/mods/tutorial_game_meta/init.lua new file mode 100644 index 0000000..5ab92bf --- /dev/null +++ b/mods/tutorial_game_meta/init.lua @@ -0,0 +1 @@ +-- No code, this mod only contains locale files for the game.conf translation diff --git a/mods/tutorial_game_meta/locale/template.pot b/mods/tutorial_game_meta/locale/template.pot new file mode 100644 index 0000000..ae43441 --- /dev/null +++ b/mods/tutorial_game_meta/locale/template.pot @@ -0,0 +1,20 @@ +msgid "" +msgstr "" +"Project-Id-Version: Tutorial (Luanti) 4.0.0\n" +"Report-Msgid-Bugs-To: Wuzzy@disroot.org\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" + +msgid "Tutorial" +msgstr "" + +msgid "Learn how to play Luanti." +msgstr "" + diff --git a/mods/tutorial_game_meta/locale/tutorial_game_meta.de.po b/mods/tutorial_game_meta/locale/tutorial_game_meta.de.po new file mode 100644 index 0000000..fbb17b1 --- /dev/null +++ b/mods/tutorial_game_meta/locale/tutorial_game_meta.de.po @@ -0,0 +1,19 @@ +msgid "" +msgstr "" +"Project-Id-Version: Tutorial (Luanti) 4.0.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2024-11-27 18:54+0100\n" +"Last-Translator: \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "Tutorial" +msgstr "Tutorial" + +msgid "Learn how to play Luanti." +msgstr "Lernen Sie, wie man Luanti spielt." diff --git a/mods/tutorial_game_meta/mod.conf b/mods/tutorial_game_meta/mod.conf new file mode 100644 index 0000000..fb4eabf --- /dev/null +++ b/mods/tutorial_game_meta/mod.conf @@ -0,0 +1,2 @@ +name = tutorial_game_meta +description = Tutorial mod that contains translations for the tutorial metadata