mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2024-12-22 15:30:19 +01:00
fix translation for unified_inventory
Take sfinv "Skins" page name translateable
This commit is contained in:
parent
555d682f04
commit
165c20fcad
3
init.lua
3
init.lua
@ -8,9 +8,6 @@ skins = {}
|
|||||||
skins.modpath = minetest.get_modpath(minetest.get_current_modname())
|
skins.modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||||
skins.default = "character"
|
skins.default = "character"
|
||||||
|
|
||||||
local S = minetest.get_translator("skinsdb")
|
|
||||||
print("Translator:", dump(S))
|
|
||||||
|
|
||||||
dofile(skins.modpath.."/skin_meta_api.lua")
|
dofile(skins.modpath.."/skin_meta_api.lua")
|
||||||
dofile(skins.modpath.."/api.lua")
|
dofile(skins.modpath.."/api.lua")
|
||||||
dofile(skins.modpath.."/skinlist.lua")
|
dofile(skins.modpath.."/skinlist.lua")
|
||||||
|
@ -15,3 +15,4 @@ see /help skinsdb for supported parameters=Lese /help für erlaubte Parameter
|
|||||||
skin set to=Skin ist jetzt
|
skin set to=Skin ist jetzt
|
||||||
invalid skin=unbekannter Skin
|
invalid skin=unbekannter Skin
|
||||||
unknown parameter=unbekannter Parameter
|
unknown parameter=unbekannter Parameter
|
||||||
|
Skins=Aussehen
|
||||||
|
@ -15,3 +15,4 @@ skin set to=
|
|||||||
invalid skin=
|
invalid skin=
|
||||||
unknown parameter=
|
unknown parameter=
|
||||||
unknown skin=
|
unknown skin=
|
||||||
|
Skins=
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
local S = skins.S
|
local S = minetest.get_translator("skinsdb")
|
||||||
|
|
||||||
-- generate the current formspec
|
-- generate the current formspec
|
||||||
local function get_formspec(player, context)
|
local function get_formspec(player, context)
|
||||||
@ -9,7 +9,7 @@ local function get_formspec(player, context)
|
|||||||
end
|
end
|
||||||
|
|
||||||
sfinv.register_page("skins:overview", {
|
sfinv.register_page("skins:overview", {
|
||||||
title = "Skins",
|
title = S("Skins"),
|
||||||
get = function(self, player, context)
|
get = function(self, player, context)
|
||||||
-- collect skins data
|
-- collect skins data
|
||||||
return sfinv.make_formspec(player, context, get_formspec(player, context))
|
return sfinv.make_formspec(player, context, get_formspec(player, context))
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
local S = skins.S
|
local S = minetest.get_translator("skinsdb")
|
||||||
|
|
||||||
unified_inventory.register_page("skins", {
|
unified_inventory.register_page("skins", {
|
||||||
get_formspec = function(player)
|
get_formspec = function(player)
|
||||||
|
Loading…
Reference in New Issue
Block a user