Compare commits

...

5 Commits

Author SHA1 Message Date
Jordan Irwin cd23e33905 Increment version to 1.2 2021-08-03 15:35:22 -07:00
Jordan Irwin eecfcba5b9 Add Spanish translation 2021-08-03 15:34:28 -07:00
Jordan Irwin 83fb1227de Add localization support 2021-08-03 15:29:43 -07:00
Jordan Irwin 44d3e24683 Delete unneeded .gitignore file 2021-08-03 15:22:31 -07:00
Jordan Irwin 0f82fc6130 Add .gitattributes file to ignore some files & dirs for archives & releases 2021-08-03 15:22:14 -07:00
9 changed files with 29 additions and 8 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
.* export-ignore
docs/ export-ignore

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
# Eclipse project files
.project

View File

@ -1,4 +1,2 @@
TODO:
- add localization support
- add Spanish translation

View File

@ -29,6 +29,8 @@
-- @module api.lua
local S = core.get_translator(asm.modname)
local registered_eggs = {}
--- Retrieves egg that spawns specified entity.
@ -75,7 +77,7 @@ local function formatTitle(s)
table.insert(t, v)
end
return table.concat(t, " ") .. " Spawn Egg"
return S("@1 Spawn Egg", table.concat(t, " "))
end
--- Registers new egg in game.

View File

@ -3,17 +3,22 @@ v1.2
----
- added method to retrieve registered egg by entity name
- added optional field "title" for EggDef
- added localization support
- added Spanish translation
v1.1
----
- egg names are titleized & underscores are replaced with space
v1.0
----
- made independent of any other mods or games
- renamed to "asm_spawneggs" (Another Spawneggs Mod)
- added API reference
v0.1
----
- created mod for Antum game

View File

@ -25,7 +25,9 @@
--]]
local S = core.get_translator(asm.modname)
core.register_craftitem(":spawneggs:egg", {
description = "Spawn Egg",
description = S("Spawn Egg"),
inventory_image = "spawneggs_egg.png",
})

View File

@ -0,0 +1,7 @@
# textdomain:asm_spawneggs
# Translators: Jordan Irwin (AntumDeluge)
Spawn Egg=Huevo de Desove
@1 Spawn Egg=Huevo de Desove de @1

7
locale/template.txt Normal file
View File

@ -0,0 +1,7 @@
# textdomain:asm_spawneggs
# Translators:
Spawn Egg=
@1 Spawn Egg=

View File

@ -3,5 +3,5 @@ title = Another Spawneggs Mod
author = AntumDeluge
description = Spawneggs for adding entities to game.
license = MIT
version = 1.1
min_minetest_version = 0.4
version = 1.2
min_minetest_version = 5.0