summaryrefslogtreecommitdiff
path: root/signs_lib
diff options
context:
space:
mode:
Diffstat (limited to 'signs_lib')
-rw-r--r--signs_lib/depends.txt1
-rw-r--r--signs_lib/init.lua10
-rw-r--r--signs_lib/locale/es.txt9
3 files changed, 15 insertions, 5 deletions
diff --git a/signs_lib/depends.txt b/signs_lib/depends.txt
index abb8bd5..7f4e061 100644
--- a/signs_lib/depends.txt
+++ b/signs_lib/depends.txt
@@ -2,3 +2,4 @@ default
intllib?
screwdriver?
keyword_interact?
+craft_guide?
diff --git a/signs_lib/init.lua b/signs_lib/init.lua
index 536066f..775db95 100644
--- a/signs_lib/init.lua
+++ b/signs_lib/init.lua
@@ -13,7 +13,7 @@
local enable_colored_metal_signs = true
-- CWz's keyword interact mod uses this setting.
-local current_keyword = minetest.setting_get("interact_keyword") or "iaccept"
+local current_keyword = minetest.settings:get("interact_keyword") or "iaccept"
signs_lib = {}
screwdriver = screwdriver or {}
@@ -165,7 +165,7 @@ end
-- infinite stacks
-if not minetest.setting_getbool("creative_mode") then
+if not minetest.settings:get_bool("creative_mode") then
signs_lib.expect_infinite_stacks = false
else
signs_lib.expect_infinite_stacks = true
@@ -793,7 +793,7 @@ minetest.register_node(":locked_sign:sign_wall_locked", {
local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner")
local pname = sender:get_player_name() or ""
- if pname ~= owner and pname ~= minetest.setting_get("name")
+ if pname ~= owner and pname ~= minetest.settings:get("name")
and not minetest.check_player_privs(pname, {sign_editor=true}) then
return
end
@@ -806,7 +806,7 @@ minetest.register_node(":locked_sign:sign_wall_locked", {
local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner")
local pname = player:get_player_name()
- return pname == owner or pname == minetest.setting_get("name")
+ return pname == owner or pname == minetest.settings:get("name")
or minetest.check_player_privs(pname, {sign_editor=true})
end,
on_rotate = signs_lib.wallmounted_rotate
@@ -1158,6 +1158,6 @@ if enable_colored_metal_signs then
})
end
-if minetest.setting_get("log_mods") then
+if minetest.settings:get("log_mods") then
minetest.log("action", S("signs loaded"))
end
diff --git a/signs_lib/locale/es.txt b/signs_lib/locale/es.txt
new file mode 100644
index 0000000..6741584
--- /dev/null
+++ b/signs_lib/locale/es.txt
@@ -0,0 +1,9 @@
+#Traducido por Carlos Barraza
+
+Reading cached character database. = Leyendo la base de datos de caracteres en caché.
+Font seems to have changed. Rebuilding cache. = La fuente parece haber cambiado. Reconstruyendo caché.
+Could not find font line height in cached DB. Trying brute force. = No se puede encontrar la fuente en la base de datos almacenada en el caché. Tratando fuerza bruta.
+Sign = Letrero
+%s wrote "%s" to sign at %s = %s escribio "%s" en el cartel en %s
+Registered %s and %s = Registrado %s y %s
+signs loaded = letreros cargados