Added intllib support (en/de)

This commit is contained in:
TenPlus1 2016-06-11 11:03:00 +01:00
parent f83ecdfdf9
commit 081527629e
13 changed files with 113 additions and 12 deletions

View File

@ -1,2 +1,3 @@
default
mobs
intllib?

View File

@ -1,4 +1,6 @@
local S = mobs.intllib
-- Dirt Monster by PilzAdam
mobs:register_mob("mobs_monster:dirt_monster", {
@ -50,7 +52,7 @@ mobs:register_mob("mobs_monster:dirt_monster", {
mobs:register_spawn("mobs_monster:dirt_monster",
{"default:dirt_with_grass", "ethereal:gray_dirt"}, 7, 0, 7000, 1, 31000, false)
mobs:register_egg("mobs_monster:dirt_monster", "Dirt Monster", "default_dirt.png", 1)
mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1)
-- compatibility
mobs:alias_mob("mobs:dirt_monster", "mobs_monster:dirt_monster")

View File

@ -1,4 +1,6 @@
local S = mobs.intllib
-- Dungeon Master by PilzAdam
mobs:register_mob("mobs_monster:dungeon_master", {
@ -58,7 +60,7 @@ mobs:register_mob("mobs_monster:dungeon_master", {
mobs:register_spawn("mobs_monster:dungeon_master", {"default:stone"}, 7, 0, 7000, 1, -70)
mobs:register_egg("mobs_monster:dungeon_master", "Dungeon Master", "fire_basic_flame.png", 1, true)
mobs:register_egg("mobs_monster:dungeon_master", S("Dungeon Master"), "fire_basic_flame.png", 1, true)
-- compatibility
mobs:alias_mob("mobs:dungeon_master", "mobs_monster:dungeon_master")

View File

@ -1,6 +1,15 @@
local path = minetest.get_modpath("mobs_monster")
-- Intllib
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
mobs.intllib = S
-- Monsters
dofile(path .. "/dirt_monster.lua") -- PilzAdam

View File

@ -1,4 +1,6 @@
local S = mobs.intllib
-- Lava Flan by Zeg9 (additional textures by JurajVajda)
mobs:register_mob("mobs_monster:lava_flan", {
@ -54,14 +56,14 @@ mobs:register_mob("mobs_monster:lava_flan", {
mobs:register_spawn("mobs_monster:lava_flan", {"default:lava_source"}, 15, 0, 1000, 2, 0)
mobs:register_egg("mobs_monster:lava_flan", "Lava Flan", "default_lava.png", 1)
mobs:register_egg("mobs_monster:lava_flan", S("Lava Flan"), "default_lava.png", 1)
-- compatibility
mobs:alias_mob("mobs:lava_flan", "mobs_monster:lava_flan")
-- lava orb
minetest.register_craftitem(":mobs:lava_orb", {
description = "Lava orb",
description = S("Lava orb"),
inventory_image = "zmobs_lava_orb.png",
})
@ -118,7 +120,7 @@ function minetest.handle_node_drops(pos, drops, digger)
end
minetest.register_tool(":mobs:pick_lava", {
description = "Lava Pickaxe",
description = S("Lava Pickaxe"),
inventory_image = "mobs_pick_lava.png",
tool_capabilities = {
full_punch_interval = 0.4,

37
locale/de.txt Normal file
View File

@ -0,0 +1,37 @@
# German Translation for mobs_monster mod
# Deutsche Übersetzung der mobs_monster Mod
# last update: 2016/June/10
# Author: Xanthin
#dirtmonster.lua
Dirt Monster = Erdmonster
#dungeonmaster.lua
Dungeon Master = Kerkermeister
#init.lua
[MOD] Mobs Redo 'Monsters' loaded = [MOD] Mobs Redo 'Monsters' geladen
#lava_flan.lua
Lava Flan = Lavaflan
Lava orb = Lavakugel
Lava Pickaxe = Lavaspitzhacke
#mese_monster.lua
Mese Monster = Mesemonster
#oerkki.lua
Oerkki = Oerkki
#sandmonster.lua
Sand Monster = Sandmonster
#spider.lua
Spider = Spinne
Cobweb = Spinnennetz
#stonemonster.lua
Stone Monster = Steinmonster
#treemonster.lua
Tree Monster = Baummonster

35
locale/template.txt Normal file
View File

@ -0,0 +1,35 @@
# Template for translations of mobs_monster mod
# last update: 2016/June/10
#dirtmonster.lua
Dirt Monster =
#dungeonmaster.lua
Dungeon Master =
#init.lua
[MOD] Mobs Redo 'Monsters' loaded =
#lava_flan.lua
Lava Flan =
Lava orb =
Lava Pickaxe =
#mese_monster.lua
Mese Monster =
#oerkki.lua
Oerkki =
#sandmonster.lua
Sand Monster =
#spider.lua
Spider =
Cobweb =
#stonemonster.lua
Stone Monster =
#treemonster.lua
Tree Monster =

View File

@ -1,4 +1,6 @@
local S = mobs.intllib
-- Mese Monster by Zeg9
mobs:register_mob("mobs_monster:mese_monster", {
@ -54,7 +56,7 @@ mobs:register_mob("mobs_monster:mese_monster", {
mobs:register_spawn("mobs_monster:mese_monster", {"default:stone"}, 7, 0, 5000, 1, -20)
mobs:register_egg("mobs_monster:mese_monster", "Mese Monster", "default_mese_block.png", 1)
mobs:register_egg("mobs_monster:mese_monster", S("Mese Monster"), "default_mese_block.png", 1)
-- compatibility
mobs:alias_mob("mobs:mese_monster", "mobs_monster:mese_monster")

View File

@ -1,4 +1,6 @@
local S = mobs.intllib
-- Oerkki by PilzAdam
mobs:register_mob("mobs_monster:oerkki", {
@ -57,7 +59,7 @@ mobs:register_mob("mobs_monster:oerkki", {
mobs:register_spawn("mobs_monster:oerkki", {"default:stone"}, 7, 0, 7000, 1, -10)
mobs:register_egg("mobs_monster:oerkki", "Oerkki", "default_obsidian.png", 1)
mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1)
-- compatibility
mobs:alias_mob("mobs:oerkki", "mobs_monster:oerkki")

View File

@ -1,4 +1,6 @@
local S = mobs.intllib
-- Sand Monster by PilzAdam
mobs:register_mob("mobs_monster:sand_monster", {
@ -55,7 +57,7 @@ mobs:register_mob("mobs_monster:sand_monster", {
mobs:register_spawn("mobs_monster:sand_monster", {"default:desert_sand"}, 20, 0, 7000, 1, 31000)
mobs:register_egg("mobs_monster:sand_monster", "Sand Monster", "default_desert_sand.png", 1)
mobs:register_egg("mobs_monster:sand_monster", S("Sand Monster"), "default_desert_sand.png", 1)
-- compatibility
mobs:alias_mob("mobs:sand_monster", "mobs_monster:sand_monster")

View File

@ -1,8 +1,11 @@
local S = mobs.intllib
-- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 license for texture)
mobs:register_mob("mobs_monster:spider", {
docile_by_day = true,
group_attack = true,
type = "monster",
passive = false,
attack_type = "dogfight",
@ -52,7 +55,7 @@ mobs:register_mob("mobs_monster:spider", {
mobs:register_spawn("mobs_monster:spider",
{"default:desert_stone", "ethereal:crystal_dirt"}, 13, 0, 7000, 1, 71)
mobs:register_egg("mobs_monster:spider", "Spider", "mobs_cobweb.png", 1)
mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1)
-- compatibility
mobs:alias_mob("mobs:spider", "mobs_monster:spider")
@ -64,7 +67,7 @@ end
-- cobweb
minetest.register_node(":mobs:cobweb", {
description = "Cobweb",
description = S("Cobweb"),
drawtype = "plantlike",
visual_scale = 1.1,
tiles = {"mobs_cobweb.png"},

View File

@ -1,4 +1,6 @@
local S = mobs.intllib
-- Stone Monster by PilzAdam
mobs:register_mob("mobs_monster:stone_monster", {
@ -51,7 +53,7 @@ mobs:register_mob("mobs_monster:stone_monster", {
mobs:register_spawn("mobs_monster:stone_monster", {"default:stone", "default:desert_stone"}, 7, 0, 7000, 1, 0)
mobs:register_egg("mobs_monster:stone_monster", "Stone Monster", "default_stone.png", 1)
mobs:register_egg("mobs_monster:stone_monster", S("Stone Monster"), "default_stone.png", 1)
-- compatibility
mobs:alias_mob("mobs:stone_monster", "mobs_monster:stone_monster")

View File

@ -1,4 +1,6 @@
local S = mobs.intllib
-- Tree Monster (or Tree Gollum) by PilzAdam
mobs:register_mob("mobs_monster:tree_monster", {
@ -52,7 +54,7 @@ mobs:register_mob("mobs_monster:tree_monster", {
mobs:register_spawn("mobs_monster:tree_monster",
{"default:leaves", "default:jungleleaves"}, 7, 0, 7000, 1, 31000, false)
mobs:register_egg("mobs_monster:tree_monster", "Tree Monster", "default_tree_top.png", 1)
mobs:register_egg("mobs_monster:tree_monster", S("Tree Monster"), "default_tree_top.png", 1)
-- compatibility
mobs:alias_mob("mobs:tree_monster", "mobs_monster:tree_monster")