diff --git a/depends.txt b/depends.txt index f64a4ec..9e54224 100644 --- a/depends.txt +++ b/depends.txt @@ -1,5 +1,4 @@ default -intllib? unified_inventory? 3d_armor? clothing? diff --git a/init.lua b/init.lua index 2e1cea4..266e94e 100644 --- a/init.lua +++ b/init.lua @@ -9,12 +9,7 @@ skins = {} skins.modpath = minetest.get_modpath(minetest.get_current_modname()) skins.default = "character" -local S -if minetest.get_modpath("intllib") then - skins.S = intllib.Getter() -else - skins.S = function(s) return s end -end +local S = minetest.get_translator("skinsdb") dofile(skins.modpath.."/skin_meta_api.lua") dofile(skins.modpath.."/api.lua") diff --git a/locale/de.txt b/locale/skinsdb.de.tr similarity index 95% rename from locale/de.txt rename to locale/skinsdb.de.tr index 1507da8..04041ef 100644 --- a/locale/de.txt +++ b/locale/skinsdb.de.tr @@ -1,3 +1,4 @@ +# textdomain: skinsdb # Translation by Xanthin Raw texture = Rohtextur diff --git a/locale/fr.txt b/locale/skinsdb.fr.tr similarity index 95% rename from locale/fr.txt rename to locale/skinsdb.fr.tr index b803dc2..05b7461 100644 --- a/locale/fr.txt +++ b/locale/skinsdb.fr.tr @@ -1,4 +1,4 @@ -# Template +# textdomain: skinsdb Raw texture = Texture Name = Nom diff --git a/locale/ms.txt b/locale/skinsdb.ms.tr similarity index 96% rename from locale/ms.txt rename to locale/skinsdb.ms.tr index c493f48..79ff178 100644 --- a/locale/ms.txt +++ b/locale/skinsdb.ms.tr @@ -1,3 +1,4 @@ +# textdomain: skinsdb # Malay translation by muhdnurhidayat Raw texture = Tekstur mentah diff --git a/locale/zh_CN.txt b/locale/skinsdb.zh_CN.tr similarity index 89% rename from locale/zh_CN.txt rename to locale/skinsdb.zh_CN.tr index 67d3829..72da731 100644 --- a/locale/zh_CN.txt +++ b/locale/skinsdb.zh_CN.tr @@ -1,3 +1,4 @@ +# textdomain: skinsdb #Translation by IFRFSX(BingFengFSX) Raw texture = 自然状态的纹理 @@ -15,4 +16,4 @@ skin set to = 皮肤设置为 invalid skin = 无效皮肤 unknown parameter = 未知参数 unknown skin = 未知皮肤 -Downloads the specified range of skins and shuts down the server = 下载指定范围的皮肤并关闭服务器 \ No newline at end of file +Downloads the specified range of skins and shuts down the server = 下载指定范围的皮肤并关闭服务器 diff --git a/locale/template.txt b/locale/template.txt index d2c5811..46fa9f6 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,4 +1,4 @@ -# Template +# textdomain: skinsdb Raw texture = Name =