Updated intllib (thanks fat115)

master
TenPlus1 2017-08-04 15:32:39 +01:00
parent 1c3d11ca30
commit cadacac5aa
10 changed files with 769 additions and 193 deletions

View File

@ -1,19 +1,9 @@
local path = minetest.get_modpath("mobs_animal") local path = minetest.get_modpath("mobs_animal")
-- Intllib -- Load support for intllib.
local S local MP = minetest.get_modpath(minetest.get_current_modname())
if minetest.global_exists("intllib") then local S, NS = dofile(MP.."/intllib.lua")
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
mobs.intllib = S mobs.intllib = S
-- Animals -- Animals

45
intllib.lua Normal file
View File

@ -0,0 +1,45 @@
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- 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

182
locale/de.po Normal file
View File

@ -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 <EMAIL@ADDRESS>, 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"

View File

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

180
locale/fr.po Normal file
View File

@ -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 <EMAIL@ADDRESS>, 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 <fat115@framasoft.org>\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"

178
locale/template.pot Normal file
View File

@ -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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

View File

@ -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 =

180
locale/tr.po Normal file
View File

@ -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 <EMAIL@ADDRESS>, 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"

View File

@ -1,61 +0,0 @@
# Türkçe çeviri by Admicos
# Turkish translation by Admicos
# Son düzenleme: 26 Nisan 2017
# Last edit: 26 April 2017
#bee.lua
Bee = Arı
Honey = Bal
Beehive = Arı kovanı
Honey Block = Bal bloğu
#bunny.lua
Bunny = Tavşan
#chicken.lua
Chicken = Tavuk
Chicken Egg = Tavuk yumurtası
Fried Egg = Kızarmış yumurta
Raw Chicken = Çiğ tavuk
Cooked Chicken = Pişmiş tavuk
#cow.lua
Cow already milked! = İnekte süt yok!
Cow = İnek
Bucket of Milk = Süt kovası
Cheese = Peynir
Cheese Block = Peynir bloğu
#init.lua
[MOD] Mobs Redo 'Animals' loaded = [MOD] Mobs Redo 'Hayvanlar' yüklendi
#kitten.lua
Kitten = Yavru kedi
#rat.lua
Rat = Sıçan
Cooked Rat = Pişmiş sıçan
#sheep.lua
Black = Siyah
Blue = Mavi
Brown = Kahverengi
Cyan = Camgöbeği
Dark Green = Koyu yeşil
Dark Grey = Koyu gri
Green = Yeşil
Grey = Gri
Magenta = Macenta
Orange = Turuncu
Pink = Pembe
Red = Kırmızı
Violet = Mor
White = Beyaz
Yellow = Sarı
Sheep = Koyun
#warthog.lua
Warthog = Domuz
Raw Porkchop = Çiğ pirzola
Cooked Porkchop = Pişmiş pirzola

View File

@ -179,7 +179,7 @@ for _, col in ipairs(all_colours) do
end end
}) })
mobs:register_egg("mobs_animal:sheep_"..col[1], col[2] .. " " .. S("Sheep"), "wool_"..col[1]..".png", 1) mobs:register_egg("mobs_animal:sheep_"..col[1], S("@1 Sheep", col[2]), "wool_"..col[1]..".png", 1)
-- compatibility -- compatibility
mobs:alias_mob("mobs:sheep_" .. col[1], "mobs_animal:sheep_" .. col[1]) mobs:alias_mob("mobs:sheep_" .. col[1], "mobs_animal:sheep_" .. col[1])