diff --git a/chatcommands.lua b/chatcommands.lua index c84b695..3d069e0 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -1,4 +1,4 @@ -local S = skins.S +local S = minetest.get_translator("skinsdb") local function show_selection_formspec(player) local context = skins.get_formspec_context(player) diff --git a/formspecs.lua b/formspecs.lua index 328c2f3..89e60f7 100644 --- a/formspecs.lua +++ b/formspecs.lua @@ -1,4 +1,4 @@ -local S = skins.S +local S = minetest.get_translator("skinsdb") function skins.get_formspec_context(player) if player then diff --git a/init.lua b/init.lua index 266e94e..90723ce 100644 --- a/init.lua +++ b/init.lua @@ -3,13 +3,13 @@ -- Copyright (c) 2012 cornernote, Dean Montgomery -- Rework 2017 by bell07 -- License: GPLv3 --- Boilerplate to support localized strings if intllib mod is installed. skins = {} skins.modpath = minetest.get_modpath(minetest.get_current_modname()) skins.default = "character" local S = minetest.get_translator("skinsdb") +print("Translator:", dump(S)) dofile(skins.modpath.."/skin_meta_api.lua") dofile(skins.modpath.."/api.lua") diff --git a/locale/skinsdb.de.tr b/locale/skinsdb.de.tr index 04041ef..e47421c 100644 --- a/locale/skinsdb.de.tr +++ b/locale/skinsdb.de.tr @@ -1,17 +1,17 @@ # textdomain: skinsdb # Translation by Xanthin -Raw texture = Rohtextur -Name = Name -Author = Autor -Change = Wechseln -Page = Seite -License = Lizenz -Description = Beschreibung -Show, list or set player's skin = Anzeigen oder setzen der Spieler-Skins -Player not found = Spieler nicht da -unknown command = unbekannter Befehl -see /help skinsdb for supported parameters = Lese /help für erlaubte Parameter -skin set to = Skin ist jetzt -invalid skin = unbekannter Skin -unknown parameter = unbekannter Parameter +Raw texture=Rohtextur +Name=Name +Author=Autor +Change=Wechseln +Page=Seite +License=Lizenz +Description=Beschreibung +Show, list or set player's skin=Anzeigen oder setzen der Spieler-Skins +Player not found=Spieler nicht da +unknown command=unbekannter Befehl +see /help skinsdb for supported parameters=Lese /help für erlaubte Parameter +skin set to=Skin ist jetzt +invalid skin=unbekannter Skin +unknown parameter=unbekannter Parameter diff --git a/locale/skinsdb.fr.tr b/locale/skinsdb.fr.tr index 05b7461..7122d78 100644 --- a/locale/skinsdb.fr.tr +++ b/locale/skinsdb.fr.tr @@ -1,18 +1,18 @@ # textdomain: skinsdb -Raw texture = Texture -Name = Nom -Author = Auteur -Change = Changer -Page = Page -License = Licence -Description = Description -Show, list or set player's skin = Afficher, lister ou définir le skin du joueur -Player not found = Joueur non trouvé -unknown command = commande inconnue -see /help skinsdb for supported parameters = voir /help skinsdb pour les paramètres supportés -skin set to = skin définie sur -invalid skin = skin peau invalide -unknown parameter = paramètre inconnu -unknown skin = skin inconnue +Raw texture=Texture +Name=Nom +Author=Auteur +Change=Changer +Page=Page +License=Licence +Description=Description +Show, list or set player's skin=Afficher, lister ou définir le skin du joueur +Player not found=Joueur non trouvé +unknown command=commande inconnue +see /help skinsdb for supported parameters=voir /help skinsdb pour les paramètres supportés +skin set to=skin définie sur +invalid skin=skin peau invalide +unknown parameter=paramètre inconnu +unknown skin=skin inconnue diff --git a/locale/skinsdb.ms.tr b/locale/skinsdb.ms.tr index 79ff178..61eb1a0 100644 --- a/locale/skinsdb.ms.tr +++ b/locale/skinsdb.ms.tr @@ -1,18 +1,18 @@ # textdomain: skinsdb # Malay translation by muhdnurhidayat -Raw texture = Tekstur mentah -Name = Nama -Author = Pencipta -Change = Ubah -Page = Halaman -License = Lesen -Description = Keterangan -Show, list or set player's skin = Tunjukkan, senaraikan atau tetapkan kulit pemain -Player not found = Pemain tidak dijumpai -unknown command = perintah tidak diketahui -see /help skinsdb for supported parameters = lihat /help skinsdb untuk parameter yang disokong -skin set to = kulit ditetapkan kepada -invalid skin = kulit tidak sah -unknown parameter = parameter tidak diketahui -unknown skin = kulit tidak diketahui +Raw texture=Tekstur mentah +Name=Nama +Author=Pencipta +Change=Ubah +Page=Halaman +License=Lesen +Description=Keterangan +Show, list or set player's skin=Tunjukkan, senaraikan atau tetapkan kulit pemain +Player not found=Pemain tidak dijumpai +unknown command=perintah tidak diketahui +see /help skinsdb for supported parameters=lihat /help skinsdb untuk parameter yang disokong +skin set to=kulit ditetapkan kepada +invalid skin=kulit tidak sah +unknown parameter=parameter tidak diketahui +unknown skin=kulit tidak diketahui diff --git a/locale/skinsdb.zh_CN.tr b/locale/skinsdb.zh_CN.tr index 72da731..51ee1d0 100644 --- a/locale/skinsdb.zh_CN.tr +++ b/locale/skinsdb.zh_CN.tr @@ -1,19 +1,19 @@ # textdomain: skinsdb #Translation by IFRFSX(BingFengFSX) -Raw texture = 自然状态的纹理 -Name = 名称 -Author = 作者 -Change = 更换 -Page = 页面 -License = 许可证 -Description = 说明 -Show, list or set player's skin = 显示,列出或者设置玩家的皮肤 -Player not found = 玩家未找到 -unknown command = 未知命令 -see /help skinsdb for supported parameters = 有关skinsdb支持的参数,参见 /help -skin set to = 皮肤设置为 -invalid skin = 无效皮肤 -unknown parameter = 未知参数 -unknown skin = 未知皮肤 -Downloads the specified range of skins and shuts down the server = 下载指定范围的皮肤并关闭服务器 +Raw texture=自然状态的纹理 +Name=名称 +Author=作者 +Change=更换 +Page=页面 +License=许可证 +Description=说明 +Show, list or set player's skin=显示,列出或者设置玩家的皮肤 +Player not found=玩家未找到 +unknown command=未知命令 +see /help skinsdb for supported parameters=有关skinsdb支持的参数,参见 /help +skin set to=皮肤设置为 +invalid skin=无效皮肤 +unknown parameter=未知参数 +unknown skin=未知皮肤 +Downloads the specified range of skins and shuts down the server=下载指定范围的皮肤并关闭服务器 diff --git a/locale/template.txt b/locale/template.txt index 46fa9f6..ff589fb 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,17 +1,17 @@ # textdomain: skinsdb -Raw texture = -Name = -Author = -Change = -Page = -License = -Description = -Show, list or set player's skin = -Player not found = -unknown command = -see /help skinsdb for supported parameters = -skin set to = -invalid skin = -unknown parameter = -unknown skin = +Raw texture= +Name= +Author= +Change= +Page= +License= +Description= +Show, list or set player's skin= +Player not found= +unknown command= +see /help skinsdb for supported parameters= +skin set to= +invalid skin= +unknown parameter= +unknown skin= diff --git a/skins_updater.lua b/skins_updater.lua index 16f6253..e349e99 100644 --- a/skins_updater.lua +++ b/skins_updater.lua @@ -1,6 +1,6 @@ -- Skins update script -local S = skins.S +local S = minetest.get_translator("skinsdb") local _ID_ = "Lua Skins Updater" local internal = {}