From fc1a4c247ef4cd6c58d619f8b07e518945d06752 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Sun, 10 Dec 2017 23:15:43 -0500 Subject: [PATCH] update deprecated calls and add new locales --- bunny.lua | 2 +- chicken.lua | 4 +- cow.lua | 3 +- init.lua | 16 +--- intllib.lua | 45 +++++++++++ locale/de.po | 182 ++++++++++++++++++++++++++++++++++++++++++++ locale/de.txt | 60 --------------- locale/fr.po | 180 +++++++++++++++++++++++++++++++++++++++++++ locale/it.po | 179 +++++++++++++++++++++++++++++++++++++++++++ locale/ru.po | 178 +++++++++++++++++++++++++++++++++++++++++++ locale/template.pot | 178 +++++++++++++++++++++++++++++++++++++++++++ locale/template.txt | 58 -------------- locale/tr.po | 180 +++++++++++++++++++++++++++++++++++++++++++ rat.lua | 2 +- sheep.lua | 6 +- warthog.lua | 1 + 16 files changed, 1134 insertions(+), 140 deletions(-) create mode 100644 intllib.lua create mode 100644 locale/de.po delete mode 100644 locale/de.txt create mode 100644 locale/fr.po create mode 100644 locale/it.po create mode 100644 locale/ru.po create mode 100644 locale/template.pot delete mode 100644 locale/template.txt create mode 100644 locale/tr.po diff --git a/bunny.lua b/bunny.lua index 3fb99f7..e61b526 100644 --- a/bunny.lua +++ b/bunny.lua @@ -58,7 +58,7 @@ mobs:register_mob("mobs_animal:bunny", { if item:get_name() == "mobs:lava_orb" then - if not minetest.setting_getbool("creative_mode") then + if not mobs.is_creative(clicker:get_player_name()) then item:take_item() clicker:set_wielded_item(item) end diff --git a/chicken.lua b/chicken.lua index 856f23f..3ec5cbf 100644 --- a/chicken.lua +++ b/chicken.lua @@ -71,7 +71,7 @@ mobs:register_mob("mobs_animal:chicken", { return end - local pos = self.object:getpos() + local pos = self.object:get_pos() minetest.add_item(pos, "mobs:egg") @@ -171,7 +171,7 @@ local egg_VELOCITY = 19 -- shoot egg local mobs_shoot_egg = function (item, player, pointed_thing) - local playerpos = player:getpos() + local playerpos = player:get_pos() minetest.sound_play("default_place_node_hard", { pos = playerpos, diff --git a/cow.lua b/cow.lua index 0a3203a..0120fd8 100644 --- a/cow.lua +++ b/cow.lua @@ -49,7 +49,6 @@ mobs:register_mob("mobs_animal:cow", { }, follow = "farming:wheat", view_range = 8, - owner_loyal = true, replace_rate = 10, replace_what = { {"group:grass", "air", 0}, @@ -88,7 +87,7 @@ mobs:register_mob("mobs_animal:cow", { if inv:room_for_item("main", {name = "mobs:bucket_milk"}) then clicker:get_inventory():add_item("main", "mobs:bucket_milk") else - local pos = self.object:getpos() + local pos = self.object:get_pos() pos.y = pos.y + 0.5 minetest.add_item(pos, {name = "mobs:bucket_milk"}) end diff --git a/init.lua b/init.lua index e1eba85..ec6f5ec 100644 --- a/init.lua +++ b/init.lua @@ -1,19 +1,9 @@ local path = minetest.get_modpath("mobs_animal") --- Intllib -local S -if minetest.global_exists("intllib") then - if intllib.make_gettext_pair then - -- New method using gettext. - S = intllib.make_gettext_pair() - else - -- Old method using text files. - S = intllib.Getter() - end -else - S = function(s) return s end -end +-- Load support for intllib. +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") mobs.intllib = S -- Animals diff --git a/intllib.lua b/intllib.lua new file mode 100644 index 0000000..b229b8a --- /dev/null +++ b/intllib.lua @@ -0,0 +1,45 @@ + +-- Fallback functions for when `intllib` is not installed. +-- Code released under Unlicense . + +-- Get the latest version of this file at: +-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua + +local function format(str, ...) + local args = { ... } + local function repl(escape, open, num, close) + if escape == "" then + local replacement = tostring(args[tonumber(num)]) + if open == "" then + replacement = replacement..close + end + return replacement + else + return "@"..open..num..close + end + end + return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl)) +end + +local gettext, ngettext +if minetest.get_modpath("intllib") then + if intllib.make_gettext_pair then + -- New method using gettext. + gettext, ngettext = intllib.make_gettext_pair() + else + -- Old method using text files. + gettext = intllib.Getter() + end +end + +-- Fill in missing functions. + +gettext = gettext or function(msgid, ...) + return format(msgid, ...) +end + +ngettext = ngettext or function(msgid, msgid_plural, n, ...) + return format(n==1 and msgid or msgid_plural, ...) +end + +return gettext, ngettext \ No newline at end of file diff --git a/locale/de.po b/locale/de.po new file mode 100644 index 0000000..9b327b0 --- /dev/null +++ b/locale/de.po @@ -0,0 +1,182 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-31 11:28+0200\n" +"PO-Revision-Date: 2016-06-10 08:58+0200\n" +"Last-Translator: Xanthin\n" +"Language-Team: \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.12\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: bee.lua +msgid "Bee" +msgstr "Biene" + +#: bee.lua +msgid "Honey" +msgstr "Honig" + +#: bee.lua +msgid "Beehive" +msgstr "Bienenstock" + +#: bee.lua +msgid "Honey Block" +msgstr "Honigblock" + +#: bunny.lua +msgid "Bunny" +msgstr "Häschen" + +#: chicken.lua +msgid "Chicken" +msgstr "Huhn" + +#: chicken.lua +msgid "Chicken Egg" +msgstr "Hühnerei" + +#: chicken.lua +msgid "Fried Egg" +msgstr "Spiegelei" + +#: chicken.lua +msgid "Raw Chicken" +msgstr "Rohes Hühnchen" + +#: chicken.lua +msgid "Cooked Chicken" +msgstr "Gekochtes Hühnchen" + +#: chicken.lua +#, fuzzy +msgid "Feather" +msgstr "Feder" + +#: cow.lua +msgid "Cow already milked!" +msgstr "Kuh ist bereits gemolken!" + +#: cow.lua +msgid "Cow" +msgstr "Kuh" + +#: cow.lua +msgid "Bucket of Milk" +msgstr "Eimer Milch" + +#: cow.lua +msgid "Cheese" +msgstr "Käse" + +#: cow.lua +msgid "Cheese Block" +msgstr "Käseblock" + +#: init.lua +msgid "[MOD] Mobs Redo 'Animals' loaded" +msgstr "[MOD] Mobs Redo 'Animals' geladen" + +#: kitten.lua +msgid "Kitten" +msgstr "Kätzchen" + +#: penguin.lua +#, fuzzy +msgid "Penguin" +msgstr "Pinguin" + +#: rat.lua +msgid "Rat" +msgstr "Ratte" + +#: rat.lua +msgid "Cooked Rat" +msgstr "Gekochte Ratte" + +#: sheep.lua +msgid "Black" +msgstr "Schwarzes" + +#: sheep.lua +msgid "Blue" +msgstr "Blaues" + +#: sheep.lua +msgid "Brown" +msgstr "Braunes" + +#: sheep.lua +msgid "Cyan" +msgstr "Cyan" + +#: sheep.lua +msgid "Dark Green" +msgstr "Dunkelgrünes" + +#: sheep.lua +msgid "Dark Grey" +msgstr "Dunkelgraues" + +#: sheep.lua +msgid "Green" +msgstr "Grünes" + +#: sheep.lua +msgid "Grey" +msgstr "Graues" + +#: sheep.lua +msgid "Magenta" +msgstr "Magenta" + +#: sheep.lua +msgid "Orange" +msgstr "Oranges" + +#: sheep.lua +msgid "Pink" +msgstr "Pinkes" + +#: sheep.lua +msgid "Red" +msgstr "Rotes" + +#: sheep.lua +msgid "Violet" +msgstr "Violettes" + +#: sheep.lua +msgid "White" +msgstr "Weißes" + +#: sheep.lua +msgid "Yellow" +msgstr "Gelbes" + +#: sheep.lua +#, fuzzy +msgid "@1 Sheep" +msgstr "@1 Schaf" + +#: warthog.lua +msgid "Warthog" +msgstr "Warzenschwein" + +#: warthog.lua +msgid "Raw Porkchop" +msgstr "Rohes Schweinekotelett" + +#: warthog.lua +msgid "Cooked Porkchop" +msgstr "Gekochtes Schweinekotelett" \ No newline at end of file diff --git a/locale/de.txt b/locale/de.txt deleted file mode 100644 index 185003b..0000000 --- a/locale/de.txt +++ /dev/null @@ -1,60 +0,0 @@ -# German Translation for mobs_animal mod -# Deutsche Übersetzung der mobs_animal Mod -# last update: 2016/June/10 -# Author: Xanthin - -#bee.lua -Bee = Biene -Honey = Honig -Beehive = Bienenstock -Honey Block = Honigblock - -#bunny.lua -Bunny = Häschen - -#chicken.lua -Chicken = Huhn -Chicken Egg = Hühnerei -Fried Egg = Spiegelei -Raw Chicken = Rohes Hühnchen -Cooked Chicken = Gekochtes Hühnchen - -#cow.lua -Cow already milked! = Kuh ist bereits gemolken! -Cow = Kuh -Bucket of Milk = Eimer Milch -Cheese = Käse -Cheese Block = Käseblock - -#init.lua -[MOD] Mobs Redo 'Animals' loaded = [MOD] Mobs Redo 'Animals' geladen - -#kitten.lua -Kitten = Kätzchen - -#rat.lua -Rat = Ratte -Cooked Rat = Gekochte Ratte - -#sheep.lua -Black = Schwarzes -Blue = Blaues -Brown = Braunes -Cyan = Cyan -Dark Green = Dunkelgrünes -Dark Grey = Dunkelgraues -Green = Grünes -Grey = Graues -Magenta = Magenta -Orange = Oranges -Pink = Pinkes -Red = Rotes -Violet = Violettes -White = Weißes -Yellow = Gelbes -Sheep = Schaf - -#warthog.lua -Warthog = Warzenschwein -Raw Porkchop = Rohes Schweinekotelett -Cooked Porkchop = Gekochtes Schweinekotelett \ No newline at end of file diff --git a/locale/fr.po b/locale/fr.po new file mode 100644 index 0000000..e309a2c --- /dev/null +++ b/locale/fr.po @@ -0,0 +1,180 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-31 11:28+0200\n" +"PO-Revision-Date: 2017-07-31 09:18+0200\n" +"Last-Translator: fat115 \n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.12\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: bee.lua +msgid "Bee" +msgstr "Abeille" + +#: bee.lua +msgid "Honey" +msgstr "Miel" + +#: bee.lua +msgid "Beehive" +msgstr "Ruche" + +#: bee.lua +msgid "Honey Block" +msgstr "Bloc de miel" + +#: bunny.lua +msgid "Bunny" +msgstr "Lapin" + +#: chicken.lua +msgid "Chicken" +msgstr "Poule" + +#: chicken.lua +msgid "Chicken Egg" +msgstr "Œuf" + +#: chicken.lua +msgid "Fried Egg" +msgstr "Œuf au plat" + +#: chicken.lua +msgid "Raw Chicken" +msgstr "Poulet cru" + +#: chicken.lua +msgid "Cooked Chicken" +msgstr "Poulet cuit" + +#: chicken.lua +msgid "Feather" +msgstr "Plume" + +#: cow.lua +msgid "Cow already milked!" +msgstr "Vache déjà traite !" + +#: cow.lua +msgid "Cow" +msgstr "Vache" + +#: cow.lua +msgid "Bucket of Milk" +msgstr "Seau de lait" + +#: cow.lua +msgid "Cheese" +msgstr "Fromage" + +#: cow.lua +msgid "Cheese Block" +msgstr "Bloc de fromage" + +#: init.lua +msgid "[MOD] Mobs Redo 'Animals' loaded" +msgstr "[MOD] Mobs Redo 'Animals' chargé" + +#: kitten.lua +msgid "Kitten" +msgstr "Chaton" + +#: penguin.lua +msgid "Penguin" +msgstr "Manchot" + +#: rat.lua +msgid "Rat" +msgstr "Rat" + +#: rat.lua +msgid "Cooked Rat" +msgstr "Rat cuit" + +#: sheep.lua +msgid "Black" +msgstr "noir" + +#: sheep.lua +msgid "Blue" +msgstr "bleu" + +#: sheep.lua +msgid "Brown" +msgstr "marron" + +#: sheep.lua +msgid "Cyan" +msgstr "cyan" + +#: sheep.lua +msgid "Dark Green" +msgstr "vert foncé" + +#: sheep.lua +msgid "Dark Grey" +msgstr "gris foncé" + +#: sheep.lua +msgid "Green" +msgstr "vert" + +#: sheep.lua +msgid "Grey" +msgstr "gris" + +#: sheep.lua +msgid "Magenta" +msgstr "magenta" + +#: sheep.lua +msgid "Orange" +msgstr "orange" + +#: sheep.lua +msgid "Pink" +msgstr "rose" + +#: sheep.lua +msgid "Red" +msgstr "rouge" + +#: sheep.lua +msgid "Violet" +msgstr "violet" + +#: sheep.lua +msgid "White" +msgstr "blanc" + +#: sheep.lua +msgid "Yellow" +msgstr "jaune" + +#: sheep.lua +#, fuzzy +msgid "@1 Sheep" +msgstr "Mouton @1" + +#: warthog.lua +msgid "Warthog" +msgstr "Sanglier" + +#: warthog.lua +msgid "Raw Porkchop" +msgstr "Côte de sanglier crue" + +#: warthog.lua +msgid "Cooked Porkchop" +msgstr "Côte de sanglier cuite" diff --git a/locale/it.po b/locale/it.po new file mode 100644 index 0000000..c46f208 --- /dev/null +++ b/locale/it.po @@ -0,0 +1,179 @@ +# ITALIAN LOCALE FILE FOR THE MOBS ANMAL MODULE +# Copyright (c) 2014 Krupnov Pavel and 2016 TenPlus1 +# This file is distributed under the same license as the MOBS ANIMAL package. +# Hamlet , 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: Italian localization file for the Mobs Animal mod\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-31 11:28+0200\n" +"PO-Revision-Date: 2017-08-18 00:56+0100\n" +"Last-Translator: H4mlet \n" +"Language-Team: \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.6.10\n" + +#: bee.lua +msgid "Bee" +msgstr "Ape" + +#: bee.lua +msgid "Honey" +msgstr "Miele" + +#: bee.lua +msgid "Beehive" +msgstr "Favo" + +#: bee.lua +msgid "Honey Block" +msgstr "Blocco di miele" + +#: bunny.lua +msgid "Bunny" +msgstr "Coniglietto" + +#: chicken.lua +msgid "Chicken" +msgstr "Gallina" + +#: chicken.lua +msgid "Chicken Egg" +msgstr "Uovo di gallina" + +#: chicken.lua +msgid "Fried Egg" +msgstr "Uovo fritto" + +#: chicken.lua +msgid "Raw Chicken" +msgstr "Pollo crudo" + +#: chicken.lua +msgid "Cooked Chicken" +msgstr "Pollo cotto" + +#: chicken.lua +msgid "Feather" +msgstr "Piuma" + +#: cow.lua +msgid "Cow already milked!" +msgstr "Mucca già munta!" + +#: cow.lua +msgid "Cow" +msgstr "Mucca" + +#: cow.lua +msgid "Bucket of Milk" +msgstr "Secchio di latte" + +#: cow.lua +msgid "Cheese" +msgstr "Formaggio" + +#: cow.lua +msgid "Cheese Block" +msgstr "Blocco di formaggio" + +#: init.lua +msgid "[MOD] Mobs Redo 'Animals' loaded" +msgstr "[MOD] Mobs Redo 'Animals' caricato" + +#: kitten.lua +msgid "Kitten" +msgstr "Gattino" + +#: penguin.lua +msgid "Penguin" +msgstr "Pinguino" + +#: rat.lua +msgid "Rat" +msgstr "Ratto" + +#: rat.lua +msgid "Cooked Rat" +msgstr "Ratto cotto" + +#: sheep.lua +msgid "Black" +msgstr "Nera" + +#: sheep.lua +msgid "Blue" +msgstr "Blu" + +#: sheep.lua +msgid "Brown" +msgstr "Marrone" + +#: sheep.lua +msgid "Cyan" +msgstr "Ciano" + +#: sheep.lua +msgid "Dark Green" +msgstr "Verde scuro" + +#: sheep.lua +msgid "Dark Grey" +msgstr "Grigio scuro" + +#: sheep.lua +msgid "Green" +msgstr "Verde" + +#: sheep.lua +msgid "Grey" +msgstr "Grigia" + +#: sheep.lua +msgid "Magenta" +msgstr "Magenta" + +#: sheep.lua +msgid "Orange" +msgstr "Arancione" + +#: sheep.lua +msgid "Pink" +msgstr "Rosa" + +#: sheep.lua +msgid "Red" +msgstr "Rossa" + +#: sheep.lua +msgid "Violet" +msgstr "Viola" + +#: sheep.lua +msgid "White" +msgstr "Bianca" + +#: sheep.lua +msgid "Yellow" +msgstr "Gialla" + +#: sheep.lua +msgid "@1 Sheep" +msgstr "Pecora @1" + +#: warthog.lua +msgid "Warthog" +msgstr "Facocero" + +#: warthog.lua +msgid "Raw Porkchop" +msgstr "Bistecca di maiale cruda" + +#: warthog.lua +msgid "Cooked Porkchop" +msgstr "Bistecca di maiale cotta" diff --git a/locale/ru.po b/locale/ru.po new file mode 100644 index 0000000..4673cdb --- /dev/null +++ b/locale/ru.po @@ -0,0 +1,178 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-13 16:00+0200\n" +"PO-Revision-Date: 2017-08-13 16:00+ZONE\n" +"Last-Translator: Oleg720 \n" +"Language-Team: 720 Locales <>\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: bee.lua +msgid "Bee" +msgstr "Пчела" + +#: bee.lua +msgid "Honey" +msgstr "Мед" + +#: bee.lua +msgid "Beehive" +msgstr "Улей" + +#: bee.lua +msgid "Honey Block" +msgstr "Блок меда" + +#: bunny.lua +msgid "Bunny" +msgstr "Кролик" + +#: chicken.lua +msgid "Chicken" +msgstr "Курица" + +#: chicken.lua +msgid "Chicken Egg" +msgstr "Курино яйцо" + +#: chicken.lua +msgid "Fried Egg" +msgstr "Жареное яйцо" + +#: chicken.lua +msgid "Raw Chicken" +msgstr "Сырая курятина" + +#: chicken.lua +msgid "Cooked Chicken" +msgstr "Вареная курятина" + +#: chicken.lua +msgid "Feather" +msgstr "Перо" + +#: cow.lua +msgid "Cow already milked!" +msgstr "Корову уже подоили!" + +#: cow.lua +msgid "Cow" +msgstr "Корова" + +#: cow.lua +msgid "Bucket of Milk" +msgstr "Ведро молока" + +#: cow.lua +msgid "Cheese" +msgstr "Сыр" + +#: cow.lua +msgid "Cheese Block" +msgstr "Блок сыра" + +#: init.lua +msgid "[MOD] Mobs Redo 'Animals' loaded" +msgstr "[МОД] Mobs Redo 'Animals' загружен" + +#: kitten.lua +msgid "Kitten" +msgstr "Котенок" + +#: penguin.lua +msgid "Penguin" +msgstr "Пингвин" + +#: rat.lua +msgid "Rat" +msgstr "Крыса" + +#: rat.lua +msgid "Cooked Rat" +msgstr "Приготовленная крыса" + +#: sheep.lua +msgid "Black" +msgstr "Черный" + +#: sheep.lua +msgid "Blue" +msgstr "Синий" + +#: sheep.lua +msgid "Brown" +msgstr "Коричневый" + +#: sheep.lua +msgid "Cyan" +msgstr "Голубой" + +#: sheep.lua +msgid "Dark Green" +msgstr "Темно-зеленый" + +#: sheep.lua +msgid "Dark Grey" +msgstr "Темно-серый" + +#: sheep.lua +msgid "Green" +msgstr "Зеленый" + +#: sheep.lua +msgid "Grey" +msgstr "Серый" + +#: sheep.lua +msgid "Magenta" +msgstr "Пурпурный" + +#: sheep.lua +msgid "Orange" +msgstr "Оранжевый" + +#: sheep.lua +msgid "Pink" +msgstr "Розовый" + +#: sheep.lua +msgid "Red" +msgstr "Красный" + +#: sheep.lua +msgid "Violet" +msgstr "Фиолетовый" + +#: sheep.lua +msgid "White" +msgstr "Белый" + +#: sheep.lua +msgid "Yellow" +msgstr "Желтый" + +#: sheep.lua +msgid "@1 Sheep" +msgstr "@1 Овец" + +#: warthog.lua +msgid "Warthog" +msgstr "Бородавочник" + +#: warthog.lua +msgid "Raw Porkchop" +msgstr "Отбивные из свинины" + +#: warthog.lua +msgid "Cooked Porkchop" +msgstr "Приготовленные отбивные" diff --git a/locale/template.pot b/locale/template.pot new file mode 100644 index 0000000..94b00c2 --- /dev/null +++ b/locale/template.pot @@ -0,0 +1,178 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-31 11:28+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: bee.lua +msgid "Bee" +msgstr "" + +#: bee.lua +msgid "Honey" +msgstr "" + +#: bee.lua +msgid "Beehive" +msgstr "" + +#: bee.lua +msgid "Honey Block" +msgstr "" + +#: bunny.lua +msgid "Bunny" +msgstr "" + +#: chicken.lua +msgid "Chicken" +msgstr "" + +#: chicken.lua +msgid "Chicken Egg" +msgstr "" + +#: chicken.lua +msgid "Fried Egg" +msgstr "" + +#: chicken.lua +msgid "Raw Chicken" +msgstr "" + +#: chicken.lua +msgid "Cooked Chicken" +msgstr "" + +#: chicken.lua +msgid "Feather" +msgstr "" + +#: cow.lua +msgid "Cow already milked!" +msgstr "" + +#: cow.lua +msgid "Cow" +msgstr "" + +#: cow.lua +msgid "Bucket of Milk" +msgstr "" + +#: cow.lua +msgid "Cheese" +msgstr "" + +#: cow.lua +msgid "Cheese Block" +msgstr "" + +#: init.lua +msgid "[MOD] Mobs Redo 'Animals' loaded" +msgstr "" + +#: kitten.lua +msgid "Kitten" +msgstr "" + +#: penguin.lua +msgid "Penguin" +msgstr "" + +#: rat.lua +msgid "Rat" +msgstr "" + +#: rat.lua +msgid "Cooked Rat" +msgstr "" + +#: sheep.lua +msgid "Black" +msgstr "" + +#: sheep.lua +msgid "Blue" +msgstr "" + +#: sheep.lua +msgid "Brown" +msgstr "" + +#: sheep.lua +msgid "Cyan" +msgstr "" + +#: sheep.lua +msgid "Dark Green" +msgstr "" + +#: sheep.lua +msgid "Dark Grey" +msgstr "" + +#: sheep.lua +msgid "Green" +msgstr "" + +#: sheep.lua +msgid "Grey" +msgstr "" + +#: sheep.lua +msgid "Magenta" +msgstr "" + +#: sheep.lua +msgid "Orange" +msgstr "" + +#: sheep.lua +msgid "Pink" +msgstr "" + +#: sheep.lua +msgid "Red" +msgstr "" + +#: sheep.lua +msgid "Violet" +msgstr "" + +#: sheep.lua +msgid "White" +msgstr "" + +#: sheep.lua +msgid "Yellow" +msgstr "" + +#: sheep.lua +msgid "@1 Sheep" +msgstr "" + +#: warthog.lua +msgid "Warthog" +msgstr "" + +#: warthog.lua +msgid "Raw Porkchop" +msgstr "" + +#: warthog.lua +msgid "Cooked Porkchop" +msgstr "" diff --git a/locale/template.txt b/locale/template.txt deleted file mode 100644 index cfe6238..0000000 --- a/locale/template.txt +++ /dev/null @@ -1,58 +0,0 @@ -# Template for translations of mobs_animal mod -# last update: 2016/June/10 - -#bee.lua -Bee = -Honey = -Beehive = -Honey Block = - -#bunny.lua -Bunny = - -#chicken.lua -Chicken = -Chicken Egg = -Fried Egg = -Raw Chicken = -Cooked Chicken = - -#cow.lua -Cow already milked! = -Cow = -Bucket of Milk = -Cheese = -Cheese Block = - -#init.lua -[MOD] Mobs Redo 'Animals' loaded = - -#kitten.lua -Kitten = - -#rat.lua -Rat = -Cooked Rat = - -#sheep.lua -Black = -Blue = -Brown = -Cyan = -Dark Green = -Dark Grey = -Green = -Grey = -Magenta = -Orange = -Pink = -Red = -Violet = -White = -Yellow = -Sheep = - -#warthog.lua -Warthog = -Raw Porkchop = -Cooked Porkchop = \ No newline at end of file diff --git a/locale/tr.po b/locale/tr.po new file mode 100644 index 0000000..ef9acfe --- /dev/null +++ b/locale/tr.po @@ -0,0 +1,180 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-31 11:28+0200\n" +"PO-Revision-Date: 2017-04-26 09:02+0200\n" +"Last-Translator: Admicos\n" +"Language-Team: \n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.12\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: bee.lua +msgid "Bee" +msgstr "Arı" + +#: bee.lua +msgid "Honey" +msgstr "Bal" + +#: bee.lua +msgid "Beehive" +msgstr "Arı kovanı" + +#: bee.lua +msgid "Honey Block" +msgstr "Bal bloğu" + +#: bunny.lua +msgid "Bunny" +msgstr "Tavşan" + +#: chicken.lua +msgid "Chicken" +msgstr "Tavuk" + +#: chicken.lua +msgid "Chicken Egg" +msgstr "Tavuk yumurtası " + +#: chicken.lua +msgid "Fried Egg" +msgstr "Kızarmış yumurta" + +#: chicken.lua +msgid "Raw Chicken" +msgstr "Çiğ tavuk" + +#: chicken.lua +msgid "Cooked Chicken" +msgstr "Pişmiş tavuk" + +#: chicken.lua +msgid "Feather" +msgstr "" + +#: cow.lua +msgid "Cow already milked!" +msgstr "İnekte süt yok!" + +#: cow.lua +msgid "Cow" +msgstr "İnek" + +#: cow.lua +msgid "Bucket of Milk" +msgstr "Süt kovası" + +#: cow.lua +msgid "Cheese" +msgstr "Peynir" + +#: cow.lua +msgid "Cheese Block" +msgstr "Peynir bloğu" + +#: init.lua +msgid "[MOD] Mobs Redo 'Animals' loaded" +msgstr "[MOD] Mobs Redo 'Hayvanlar' yüklendi" + +#: kitten.lua +msgid "Kitten" +msgstr "Yavru kedi" + +#: penguin.lua +msgid "Penguin" +msgstr "" + +#: rat.lua +msgid "Rat" +msgstr "Sıçan" + +#: rat.lua +msgid "Cooked Rat" +msgstr "Pişmiş sıçan" + +#: sheep.lua +msgid "Black" +msgstr "Siyah" + +#: sheep.lua +msgid "Blue" +msgstr "Mavi" + +#: sheep.lua +msgid "Brown" +msgstr "Kahverengi" + +#: sheep.lua +msgid "Cyan" +msgstr "Camgöbeği" + +#: sheep.lua +msgid "Dark Green" +msgstr "Koyu yeşil" + +#: sheep.lua +msgid "Dark Grey" +msgstr "Koyu gri" + +#: sheep.lua +msgid "Green" +msgstr "Yeşil" + +#: sheep.lua +msgid "Grey" +msgstr "Gri" + +#: sheep.lua +msgid "Magenta" +msgstr "Macenta" + +#: sheep.lua +msgid "Orange" +msgstr "Turuncu" + +#: sheep.lua +msgid "Pink" +msgstr "Pembe" + +#: sheep.lua +msgid "Red" +msgstr "Kırmızı" + +#: sheep.lua +msgid "Violet" +msgstr "Mor" + +#: sheep.lua +msgid "White" +msgstr "Beyaz" + +#: sheep.lua +msgid "Yellow" +msgstr "Sarı" + +#: sheep.lua +#, fuzzy +msgid "@1 Sheep" +msgstr "@1 Koyun" + +#: warthog.lua +msgid "Warthog" +msgstr "Domuz" + +#: warthog.lua +msgid "Raw Porkchop" +msgstr "Çiğ pirzola" + +#: warthog.lua +msgid "Cooked Porkchop" +msgstr "Pişmiş pirzola" diff --git a/rat.lua b/rat.lua index d76e151..9ce95fa 100644 --- a/rat.lua +++ b/rat.lua @@ -40,7 +40,7 @@ mobs:register_mob("mobs_animal:rat", { self.rat_timer = 0 - local pos = self.object:getpos() + local pos = self.object:get_pos() print("rat pos", pos.x, pos.y, pos.z, dtime) diff --git a/sheep.lua b/sheep.lua index 97e9e3e..b0ef756 100644 --- a/sheep.lua +++ b/sheep.lua @@ -101,7 +101,7 @@ for _, col in pairs(all_colours) do self.gotten = true -- shaved local obj = minetest.add_item( - self.object:getpos(), + self.object:get_pos(), ItemStack( "wool:" .. col[1] .. " " .. math.random(1, 3) ) ) @@ -142,7 +142,7 @@ for _, col in pairs(all_colours) do if c[1] == colr then - local pos = self.object:getpos() + local pos = self.object:get_pos() self.object:remove() @@ -153,7 +153,7 @@ for _, col in pairs(all_colours) do ent.tamed = true -- take item - if not minetest.setting_getbool("creative_mode") then + if not mobs.is_creative(clicker:get_player_name()) then item:take_item() clicker:set_wielded_item(item) end diff --git a/warthog.lua b/warthog.lua index ae1a8c4..2f7861d 100644 --- a/warthog.lua +++ b/warthog.lua @@ -8,6 +8,7 @@ mobs:register_mob("mobs_animal:pumba", { passive = false, attack_type = "dogfight", group_attack = true, + owner_loyal = true, reach = 2, damage = 2, hp_min = 25,