Browse Source

fix translation for unified_inventory

Take sfinv "Skins" page name translateable
pull/40/head
Alexander Weber 1 month ago
parent
commit
165c20fcad
5 changed files with 5 additions and 6 deletions
  1. +0
    -3
      init.lua
  2. +1
    -0
      locale/skinsdb.de.tr
  3. +1
    -0
      locale/template.txt
  4. +2
    -2
      sfinv_page.lua
  5. +1
    -1
      unified_inventory_page.lua

+ 0
- 3
init.lua View File

@@ -8,9 +8,6 @@ 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")
dofile(skins.modpath.."/skinlist.lua")

+ 1
- 0
locale/skinsdb.de.tr View File

@@ -15,3 +15,4 @@ 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
Skins=Aussehen

+ 1
- 0
locale/template.txt View File

@@ -15,3 +15,4 @@ skin set to=
invalid skin=
unknown parameter=
unknown skin=
Skins=

+ 2
- 2
sfinv_page.lua View File

@@ -1,4 +1,4 @@
local S = skins.S
local S = minetest.get_translator("skinsdb")

-- generate the current formspec
local function get_formspec(player, context)
@@ -9,7 +9,7 @@ local function get_formspec(player, context)
end

sfinv.register_page("skins:overview", {
title = "Skins",
title = S("Skins"),
get = function(self, player, context)
-- collect skins data
return sfinv.make_formspec(player, context, get_formspec(player, context))

+ 1
- 1
unified_inventory_page.lua View File

@@ -1,4 +1,4 @@
local S = skins.S
local S = minetest.get_translator("skinsdb")

unified_inventory.register_page("skins", {
get_formspec = function(player)

Loading…
Cancel
Save