1
0
mirror of https://gitlab.com/echoes91/spears.git synced 2024-11-13 13:20:19 +01:00

Merge branch 'master' into 'master'

Translation i18n support

See merge request echoes91/spears!3
This commit is contained in:
Echoes 2024-02-04 18:01:45 +00:00
commit e9e7afd6c5
3 changed files with 21 additions and 1 deletions

9
locale/spears.eo.tr Normal file
View File

@ -0,0 +1,9 @@
# textdomain: spears
Stone Spear=Ŝtona Ponardego
Iron Spear=Fera Ponardego
Steel Spear=Ŝtala Ponardego
Copper Spear=Kupra Ponardego
Bronze Spear=Bronza Ponardego
Obsidian Spear=Obsidiana Ponardego
Diamond Spear=Diamanta Ponardego
Golden Spear=Ora Ponardego

9
locale/template.txt Normal file
View File

@ -0,0 +1,9 @@
# textdomain: spears
Stone Spear=
Iron Spear=
Steel Spear=
Copper Spear=
Bronze Spear=
Obsidian Spear=
Diamond Spear=
Golden Spear=

View File

@ -1,7 +1,9 @@
local S = minetest.get_translator("spears")
function spears_register_spear(spear_type, desc, base_damage, toughness, material)
minetest.register_tool("spears:spear_" .. spear_type, {
description = desc .. " spear",
description = desc,
wield_image = "spears_spear_" .. spear_type .. ".png^[transform4",
inventory_image = "spears_spear_" .. spear_type .. ".png",
wield_scale= {x = 1.5, y = 1.5, z = 1.5},