Use new translation system

This commit is contained in:
Wuzzy 2019-03-07 19:25:05 +01:00
parent f9543ca8fb
commit e6afb646aa
4 changed files with 5 additions and 10 deletions

View File

@ -1,3 +1,2 @@
doc
intllib?
default?

View File

@ -1,9 +1,4 @@
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter(minetest.get_current_modname())
else
S = function(s) return s end
end
local S = minetest.get_translator("doc_encyclopedia")
minetest.register_craftitem("doc_encyclopedia:encyclopedia", {
description = S("Encyclopedia"),

View File

@ -1,3 +0,0 @@
Encyclopedia = Enzyklopädie
Allows you to access the help. = Damit kann man auf die Hilfe zuzugreifen.
Wield it, then leftclick to access the help. = Halten Sie sie in der Hand und linksklicken Sie, um auf die Hilfe zuzugreifen.

View File

@ -0,0 +1,4 @@
# textdomain:doc_encyclopedia
Encyclopedia=Enzyklopädie
Allows you to access the help.=Damit kann man auf die Hilfe zuzugreifen.
Wield it, then leftclick to access the help.=Halten Sie sie in der Hand und linksklicken Sie, um auf die Hilfe zuzugreifen.