Skip to content

Commit

Permalink
switch to client-side translation system
Browse files Browse the repository at this point in the history
  • Loading branch information
FaceDeer committed Feb 20, 2020
1 parent ba76b09 commit 6feceab
Show file tree
Hide file tree
Showing 15 changed files with 551 additions and 471 deletions.
3 changes: 1 addition & 2 deletions bridge.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
local modpath = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(modpath.."/intllib.lua")
local S = ropes.S

if ropes.bridges_enabled then

Expand Down
4 changes: 1 addition & 3 deletions crafts.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = ropes.S

if minetest.get_modpath("farming") then
-- this doesn't work reliably due to side effects of https://github.com/minetest/minetest/issues/5518
Expand Down
4 changes: 1 addition & 3 deletions doc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ if not minetest.get_modpath("doc") then
return
end

-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = ropes.S

ropes.doc.ropesegment_longdesc = S("Rope segments are bundles of fibre twisted into robust cables.")
ropes.doc.ropesegment_usage = S("This craft item is useful for creating rope ladders, or for spooling on wooden spindles to hang and climb upon.")
Expand Down
3 changes: 1 addition & 2 deletions extendingladder.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
local modpath = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(modpath.."/intllib.lua")
local S = ropes.S

if ropes.extending_ladder_enabled then

Expand Down
Loading

0 comments on commit 6feceab

Please sign in to comment.