2019-11-12

This commit is contained in:
h4ml3t 2019-11-12 20:25:07 +01:00
parent 86c5e1c2c6
commit 86490de792
No known key found for this signature in database
GPG Key ID: 271F8A06F0612005
9 changed files with 41 additions and 7 deletions

View File

@ -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")

View File

@ -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={}
@ -458,4 +468,4 @@ minetest.register_craft({
recipe = {
{'default:stick', 'default:stick', 'default:steel_ingot'},
}
})
})

View File

@ -0,0 +1,5 @@
# textdomain:castle_weapons
Battleaxe=Ascia da guerra
Bolt=Quadrello
Crossbow=Balestra

5
locale/template.txt Normal file
View File

@ -0,0 +1,5 @@
# textdomain:castle_weapons
Battleaxe=
Bolt=
Crossbow=

View File

@ -1 +1,4 @@
name = castle_weapons
description = Provides several medieval weapons for use around castles
depends = default
optional_depends = intllib

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 B

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 293 B