mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-06-28 06:30:34 +02:00
switch over to native translation system
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
local S = df_underworld_items.S
|
||||
|
||||
minetest.register_node("df_underworld_items:glow_amethyst", {
|
||||
description = S("Glowing Amethyst Block"),
|
||||
|
@ -4,9 +4,7 @@ if not minetest.get_modpath("doc") then
|
||||
return
|
||||
end
|
||||
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
local S = df_underworld_items.S
|
||||
|
||||
df_underworld_items.doc.glowstone_desc = S("Bright glowing stones of unknown origin found lodged in the crevices of the underworld's ceiling.")
|
||||
df_underworld_items.doc.glowstone_usage = S("These stones are highly volatile and should not be disturbed.")
|
||||
|
@ -1,6 +1,4 @@
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
local S = df_underworld_items.S
|
||||
|
||||
local glowstone_def = {
|
||||
_doc_items_longdesc = df_underworld_items.doc.glowstone_desc,
|
||||
|
@ -1,6 +1,4 @@
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
local S = df_underworld_items.S
|
||||
|
||||
minetest.register_node("df_underworld_items:pit_plasma", {
|
||||
description = S("Glowing Pit Plasma"),
|
||||
|
@ -1,6 +1,8 @@
|
||||
df_underworld_items = {}
|
||||
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
local modname = minetest.get_current_modname()
|
||||
df_underworld_items.S = minetest.get_translator(modname)
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
|
||||
dofile(modpath.."/config.lua")
|
||||
dofile(modpath.."/doc.lua")
|
||||
|
@ -1,45 +0,0 @@
|
||||
|
||||
-- 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
|
@ -1,163 +0,0 @@
|
||||
# ITALIAN LOCALE FOR THE DFCAVERNS MODULE
|
||||
# Copyright (C) 2017 FaceDeer <derksenmobile@gmail.com>
|
||||
# This file is distributed under the same license as the DFCAVERNS package.
|
||||
# Hamlet <h4mlet@riseup.net>, 2017.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: dfcaverns module's Italian locale\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-02-16 00:31-0700\n"
|
||||
"PO-Revision-Date: 2017-08-17 23:01+0100\n"
|
||||
"Last-Translator: H4mlet <h4mlet@riseup.net>\n"
|
||||
"Language-Team: ITALIANO\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.6.10\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: df_underworld_items\crystals_amethyst.lua:6
|
||||
msgid "Glowing Amethyst Block"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:11
|
||||
msgid ""
|
||||
"Bright glowing stones of unknown origin found lodged in the crevices of the "
|
||||
"underworld's ceiling."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:12
|
||||
msgid "These stones are highly volatile and should not be disturbed."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:14
|
||||
msgid ""
|
||||
"The very foundation of the world, Slade is a mysterious ultra-dense "
|
||||
"substance."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:15
|
||||
msgid "Slade is extremely hard to work with so it has little use."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:17
|
||||
msgid "In fact, Slade is impervious to conventional mining entirely."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:20
|
||||
msgid ""
|
||||
"This block of Slade, carved by an unknown hand, is engraved with mysterious "
|
||||
"symbols. Most of the engraving's meaning is lost to the mists of time but "
|
||||
"one frament in the oldest known language can be translated: \"This place is "
|
||||
"not a place of honor.\""
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:22
|
||||
msgid ""
|
||||
"Glowing purple crystals that grow through holes in the foundation of the "
|
||||
"world."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:23
|
||||
msgid "These crystals have no known use."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:25
|
||||
msgid ""
|
||||
"The liquid found in the deepest pits in the underworld is highly dangerous "
|
||||
"and damaging."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:26
|
||||
msgid ""
|
||||
"The only use for this material is that it destroys whatever is thrown into "
|
||||
"it. It cannot otherwise be manipulated."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\glowing_pit_plasma.lua:6
|
||||
#: df_underworld_items\glowing_pit_plasma.lua:44
|
||||
msgid "Glowing Pit Plasma"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\glow_stone.lua:9
|
||||
msgid "Lightseam"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:113
|
||||
msgid "Turn"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:183
|
||||
msgid "Slade Puzzle Seal"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:244
|
||||
msgid "Active Slade Breacher"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:347
|
||||
msgid "Breach in the Slade"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:359
|
||||
msgid "Inscribed Slade Block"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:383
|
||||
msgid "Slade Capstone"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:451
|
||||
msgid "Slade Block Stair"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:452
|
||||
msgid "Slade Block Slab"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:18
|
||||
msgid "Slade"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:38
|
||||
msgid "Slade Brick"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:52
|
||||
msgid "Slade Wall"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:78
|
||||
msgid "Slade Sand"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:90
|
||||
msgid "Slade Block"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:106
|
||||
msgid "Slade Seal"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:154
|
||||
msgid "Slade Stair"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:155
|
||||
msgid "Slade Slab"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Cave Coral"
|
||||
#~ msgstr "Grano di caverna"
|
||||
|
||||
#~ msgid "Glow Worms"
|
||||
#~ msgstr "Vermi luminosi"
|
||||
|
||||
#~ msgid "Dirt With Cave Moss"
|
||||
#~ msgstr "Terra con muschio di caverna"
|
||||
|
||||
#~ msgid "Cobblestone With Floor Fungus"
|
||||
#~ msgstr "Ciottoli con funghi del terreno"
|
@ -1,149 +0,0 @@
|
||||
# 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: 2020-02-16 00:31-0700\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"
|
||||
|
||||
#: df_underworld_items\crystals_amethyst.lua:6
|
||||
msgid "Glowing Amethyst Block"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:11
|
||||
msgid ""
|
||||
"Bright glowing stones of unknown origin found lodged in the crevices of the "
|
||||
"underworld's ceiling."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:12
|
||||
msgid "These stones are highly volatile and should not be disturbed."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:14
|
||||
msgid ""
|
||||
"The very foundation of the world, Slade is a mysterious ultra-dense "
|
||||
"substance."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:15
|
||||
msgid "Slade is extremely hard to work with so it has little use."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:17
|
||||
msgid "In fact, Slade is impervious to conventional mining entirely."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:20
|
||||
msgid ""
|
||||
"This block of Slade, carved by an unknown hand, is engraved with mysterious "
|
||||
"symbols. Most of the engraving's meaning is lost to the mists of time but "
|
||||
"one frament in the oldest known language can be translated: \"This place is "
|
||||
"not a place of honor.\""
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:22
|
||||
msgid ""
|
||||
"Glowing purple crystals that grow through holes in the foundation of the "
|
||||
"world."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:23
|
||||
msgid "These crystals have no known use."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:25
|
||||
msgid ""
|
||||
"The liquid found in the deepest pits in the underworld is highly dangerous "
|
||||
"and damaging."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\doc.lua:26
|
||||
msgid ""
|
||||
"The only use for this material is that it destroys whatever is thrown into "
|
||||
"it. It cannot otherwise be manipulated."
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\glowing_pit_plasma.lua:6
|
||||
#: df_underworld_items\glowing_pit_plasma.lua:44
|
||||
msgid "Glowing Pit Plasma"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\glow_stone.lua:9
|
||||
msgid "Lightseam"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:113
|
||||
msgid "Turn"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:183
|
||||
msgid "Slade Puzzle Seal"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:244
|
||||
msgid "Active Slade Breacher"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:347
|
||||
msgid "Breach in the Slade"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:359
|
||||
msgid "Inscribed Slade Block"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:383
|
||||
msgid "Slade Capstone"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:451
|
||||
msgid "Slade Block Stair"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\puzzle_seal.lua:452
|
||||
msgid "Slade Block Slab"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:18
|
||||
msgid "Slade"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:38
|
||||
msgid "Slade Brick"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:52
|
||||
msgid "Slade Wall"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:78
|
||||
msgid "Slade Sand"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:90
|
||||
msgid "Slade Block"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:106
|
||||
msgid "Slade Seal"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:154
|
||||
msgid "Slade Stair"
|
||||
msgstr ""
|
||||
|
||||
#: df_underworld_items\slade.lua:155
|
||||
msgid "Slade Slab"
|
||||
msgstr ""
|
29
df_underworld_items/locale/template.txt
Normal file
29
df_underworld_items/locale/template.txt
Normal file
@ -0,0 +1,29 @@
|
||||
Active Slade Breacher=
|
||||
Breach in the Slade=
|
||||
Bright glowing stones of unknown origin found lodged in the crevices of the underworld's ceiling.=
|
||||
Glowing Amethyst Block=
|
||||
Glowing Pit Plasma=
|
||||
Glowing purple crystals that grow through holes in the foundation of the world.=
|
||||
In fact, Slade is impervious to conventional mining entirely.=
|
||||
Inscribed Slade Block=
|
||||
Lightseam=
|
||||
Slade=
|
||||
Slade Block=
|
||||
Slade Block Slab=
|
||||
Slade Block Stair=
|
||||
Slade Brick=
|
||||
Slade Capstone=
|
||||
Slade Puzzle Seal=
|
||||
Slade Sand=
|
||||
Slade Seal=
|
||||
Slade Slab=
|
||||
Slade Stair=
|
||||
Slade Wall=
|
||||
Slade is extremely hard to work with so it has little use.=
|
||||
The liquid found in the deepest pits in the underworld is highly dangerous and damaging.=
|
||||
The only use for this material is that it destroys whatever is thrown into it. It cannot otherwise be manipulated.=
|
||||
The very foundation of the world, Slade is a mysterious ultra-dense substance.=
|
||||
These crystals have no known use.=
|
||||
These stones are highly volatile and should not be disturbed.=
|
||||
This block of Slade, carved by an unknown hand, is engraved with mysterious symbols. Most of the engraving's meaning is lost to the mists of time but one frament in the oldest known language can be translated: "This place is not a place of honor."=
|
||||
Turn=
|
@ -1,6 +0,0 @@
|
||||
@echo off
|
||||
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
|
||||
cd ..
|
||||
set LIST=
|
||||
for /r %%X in (*.lua) do set LIST=!LIST! %%X
|
||||
..\..\intllib\tools\xgettext.bat %LIST%
|
@ -1,4 +1,4 @@
|
||||
name = df_underworld_items
|
||||
description = Various node types used by the dfcaverns mapgen mod for its underworld layer.
|
||||
depends = default
|
||||
optional_depends = intllib, doc, radiant_damage, mesecons_mvps, tnt, stairs
|
||||
optional_depends = doc, radiant_damage, mesecons_mvps, tnt, stairs
|
||||
|
@ -1,6 +1,4 @@
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
local S = df_underworld_items.S
|
||||
|
||||
local named_waypoints_path = minetest.get_modpath("named_waypoints")
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
-- internationalization boilerplate
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
local S = df_underworld_items.S
|
||||
|
||||
local invulnerable = df_underworld_items.config.invulnerable_slade and not minetest.settings:get_bool("creative_mode")
|
||||
|
||||
|
Reference in New Issue
Block a user