1
0
mirror of git://repo.or.cz/minetest_mana.git synced 2024-11-15 23:00:20 +01:00

Use new 5.0.0 translation system

This commit is contained in:
Wuzzy 2019-03-22 12:19:57 +01:00
parent f4a0c31301
commit 7efd3064bb
4 changed files with 7 additions and 10 deletions

View File

@ -9,12 +9,7 @@ License: WTFPL
Initialization
]===]
local S
if (minetest.get_modpath("intllib")) then
S = intllib.Getter()
else
S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end
end
local S = minetest.get_translator("mana")
mana = {}
mana.playerlist = {}

View File

@ -1,2 +0,0 @@
Mana = Mana
Mana: @1/@2 = Mana: @1/@2

3
locale/mana.de.tr Normal file
View File

@ -0,0 +1,3 @@
# textdomain:mana
Mana=Mana
Mana: @1/@2=Mana: @1/@2

View File

@ -1,2 +1,3 @@
Mana =
Mana: @1/@2 =
# textdomain:mana
Mana=
Mana: @1/@2=