diff --git a/init.lua b/init.lua index cd4f7c4..e6e6a3c 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,18 @@ --- internationalization boilerplate -local MP = minetest.get_modpath(minetest.get_current_modname()) -local S, NS = dofile(MP.."/intllib.lua") + +-- Used for localization, choose either built-in or intllib. + +local MP, S, NS = nil + +if (minetest.get_modpath("intllib") == nil) then + S = minetest.get_translator("castle_tapestries") + +else + -- internationalization boilerplate + MP = minetest.get_modpath(minetest.get_current_modname()) + S, NS = dofile(MP.."/intllib.lua") + +end + local tapestry = {} diff --git a/locale/castle_tapestries.it.tr b/locale/castle_tapestries.it.tr new file mode 100644 index 0000000..59f430f --- /dev/null +++ b/locale/castle_tapestries.it.tr @@ -0,0 +1,6 @@ +# textdomain:castle_tapestries + +Tapestry Top=Cima dell'arazzo +Tapestry=Arazzo +Tapestry (Long)=Arazzo (lungo) +Tapestry (Very Long)=Arazzo (molto lungo) diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..ce45d5f --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,6 @@ +# textdomain:castle_tapestries + +Tapestry Top= +Tapestry= +Tapestry (Long)= +Tapestry (Very Long)= diff --git a/screenshot.png b/screenshot.png index 838038e..a8c71ac 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/textures/castle_tapestry.png b/textures/castle_tapestry.png index e807340..5e2ce4f 100644 Binary files a/textures/castle_tapestry.png and b/textures/castle_tapestry.png differ diff --git a/textures/castle_tapestry_inv.png b/textures/castle_tapestry_inv.png index 99c1b2e..74ae24f 100644 Binary files a/textures/castle_tapestry_inv.png and b/textures/castle_tapestry_inv.png differ