@ -1,6 +1,17 @@
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
|
||||
-- Used for localization, choose either built-in or intllib.
|
||||
|
||||
local MP, S, NS = nil
|
||||
|
||||
if (minetest.get_modpath("intllib") == nil) then
|
||||
S = minetest.get_translator("castle_weapons")
|
||||
|
||||
else
|
||||
-- internationalization boilerplate
|
||||
MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
S, NS = dofile(MP.."/intllib.lua")
|
||||
|
||||
end
|
||||
|
||||
minetest.register_alias("castle:battleaxe", "castle_weapons:battleaxe")
|
||||
|
||||
|
16
crossbow.lua
@ -18,9 +18,19 @@ minetest.register_alias("castle:bolt", "castle_weapons:crossbow_bolt")
|
||||
minetest.register_alias("castle:crossbow_bolt", "castle_weapons:crossbow_bolt")
|
||||
minetest.register_alias("castle:crossbow_loaded", "castle_weapons:crossbow_loaded")
|
||||
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
-- Used for localization, choose either built-in or intllib.
|
||||
|
||||
local MP, S, NS = nil
|
||||
|
||||
if (minetest.get_modpath("intllib") == nil) then
|
||||
S = minetest.get_translator("castle_weapons")
|
||||
|
||||
else
|
||||
-- internationalization boilerplate
|
||||
MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
S, NS = dofile(MP.."/intllib.lua")
|
||||
|
||||
end
|
||||
|
||||
local crossbow={}
|
||||
|
||||
|
5
locale/castle_weapons.it.tr
Normal file
@ -0,0 +1,5 @@
|
||||
# textdomain:castle_weapons
|
||||
|
||||
Battleaxe=Ascia da guerra
|
||||
Bolt=Quadrello
|
||||
Crossbow=Balestra
|
5
locale/template.txt
Normal file
@ -0,0 +1,5 @@
|
||||
# textdomain:castle_weapons
|
||||
|
||||
Battleaxe=
|
||||
Bolt=
|
||||
Crossbow=
|
3
mod.conf
@ -1 +1,4 @@
|
||||
name = castle_weapons
|
||||
description = Provides several medieval weapons for use around castles
|
||||
depends = default
|
||||
optional_depends = intllib
|
||||
|
BIN
screenshot.png
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 293 B |