Use MT5 translator (#15)

Remove intllib dependency.
Rework some french translation string.
Put back translator credit on es translation.
This commit is contained in:
Louis Royer 2022-11-05 10:08:43 +01:00 committed by GitHub
parent 3485de34e8
commit 59a0bd58c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 16 additions and 967 deletions

View File

@ -1,17 +1,5 @@
-- Used for localization, choose either built-in or intllib.
local MP, S, NS = nil
if (minetest.get_modpath("intllib") == nil) then
S = minetest.get_translator("castle_masonry")
else
-- internationalization boilerplate
MP = minetest.get_modpath(minetest.get_current_modname())
S, NS = dofile(MP.."/intllib.lua")
end
local S = minetest.get_translator("castle_masonry")
castle_masonry.register_arrowslit = function(material)

View File

@ -8,19 +8,7 @@ dofile(MP.."/stone_wall.lua")
dofile(MP.."/paving.lua")
-- Used for localization, choose either built-in or intllib.
local S, NS = nil
if (minetest.get_modpath("intllib") == nil) then
S = minetest.get_translator("castle_masonry")
else
-- internationalization boilerplate
S, NS = dofile(MP.."/intllib.lua")
end
local S = minetest.get_translator("castle_masonry")
local read_setting = function(name, default)
local setting = minetest.settings:get_bool(name)

View File

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

View File

@ -1,4 +1,5 @@
# textdomain: castle_masonry
# Translation by Carlos Barraza
@1 Arrowslit=Aspillera de @1
@1 Arrowslit with Cross=Aspillera con Crus de @1
@ -47,4 +48,3 @@ Stone Wall=Pared de Piedra
Stonebrick=Ladrillo de Piedra
Stonewall=Pared de piedra
Wood=Madera
##### not used anymore #####

View File

@ -5,7 +5,7 @@
@1 Arrowslit with Hole=Meurtrière avec trou en @1
@1 Crossbrace=Travers en @1
@1 Embrasure=Embrasure en @1
@1 Extended Crossbrace=Travers entendu en @1
@1 Extended Crossbrace=Travers étendu en @1
@1 Half Pillar Base=Base de demi pilier en @1
@1 Half Pillar Middle=Milieu de demi pilier en @1
@1 Half Pillar Top=Haut de demi pilier en @1
@ -28,9 +28,9 @@ Desert Sandstone=Pierre du désert
Desert Sandstone Brick=Brique de pierre du désert
Desert Stone=Pierre du désert
Desert Stone Brick=Brique de pierre du désert
Dungeon Stone=Pierre de dongeon
Dungeon Stone Slab=Dalle en pierre de dongeon
Dungeon Stone Stair=Escalier en pierre de dongeon
Dungeon Stone=Pierre de donjon
Dungeon Stone Slab=Dalle en pierre de donjon
Dungeon Stone Stair=Escalier en pierre de donjon
Ice=Glace
Obsidian Brick=Brique d'obsidienne
Pavement Brick=Brique de pavage
@ -47,4 +47,3 @@ Stone Wall=Mur de pierre
Stonebrick=Brique de pierre
Stonewall=Pierre brune
Wood=Bois
##### not used anymore #####

View File

@ -1,210 +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: 2019-11-12 13:31+0100\n"
"PO-Revision-Date: 2017-04-28 15:23-0400\n"
"Last-Translator: Carlos Barraza\n"
"Language-Team: Español\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: arrow_slits.lua
msgid "@1 Arrowslit"
msgstr "Aspillera de @1"
#: arrow_slits.lua
msgid "@1 Arrowslit with Cross"
msgstr "Aspillera con Crus de @1"
#: arrow_slits.lua
msgid "@1 Arrowslit with Hole"
msgstr "Aspillera con Agujero de @1"
#: arrow_slits.lua
msgid "@1 Embrasure"
msgstr "Aféizar de @1 "
#: init.lua
msgid "Stonewall"
msgstr "Pared de piedra"
#: init.lua
msgid "Cobble"
msgstr "Adoquín"
#: init.lua
msgid "Stonebrick"
msgstr "Ladrillo de Piedra"
#: init.lua
msgid "Sandstone Brick"
msgstr "Ladrillo de Arenisca"
#: init.lua
msgid "Desert Stone Brick"
msgstr "Ladrillo de Piedra del Desierto"
#: init.lua
#, fuzzy
msgid "Desert Sandstone Brick"
msgstr "Ladrillo de Piedra del Desierto"
#: init.lua
#, fuzzy
msgid "Silver Sandstone Brick"
msgstr "Ladrillo de Arenisca"
#: init.lua
msgid "Stone"
msgstr "Piedra"
#: init.lua
msgid "Sandstone"
msgstr "Arenisca"
#: init.lua
msgid "Desert Stone"
msgstr "Piedra del Desierto"
#: init.lua
#, fuzzy
msgid "Desert Sandstone"
msgstr "Piedra del Desierto"
#: init.lua
#, fuzzy
msgid "Silver Sandstone"
msgstr "Arenisca"
#: init.lua
msgid "Wood"
msgstr "Madera"
#: init.lua
msgid "Ice"
msgstr "Hielo"
#: init.lua
msgid "Snow"
msgstr "Nieve"
#: init.lua
msgid "Obsidian Brick"
msgstr "Ladrillo de Obsidiana"
#: murder_holes.lua
msgid "@1 Murder Hole"
msgstr "Agujero de @1"
#: murder_holes.lua
msgid "@1 Machicolation"
msgstr "Matacán de @1"
#: paving.lua
msgid "Paving Stone"
msgstr "Piedra Pavimentada"
#: paving.lua
msgid "Pavement Brick"
msgstr "Ladrillo Pavimentado"
#: paving.lua
msgid "Castle Pavement Stair"
msgstr "Escalera de Castillo Pavimentada"
#: paving.lua
msgid "Castle Pavement Slab"
msgstr "Pavimento de Castillo"
#: paving.lua
msgid "Roof Slates"
msgstr "Pizarras de Techo"
#: pillars.lua
msgid "@1 Pillar Base"
msgstr "Base de Pilar de @1"
#: pillars.lua
msgid "@1 Half Pillar Base"
msgstr "Base de Medio Pilar de @1"
#: pillars.lua
msgid "@1 Pillar Top"
msgstr "Parte Superior de Pilar de @1"
#: pillars.lua
msgid "@1 Half Pillar Top"
msgstr "Parte Superior de Medio Pilar @1"
#: pillars.lua
msgid "@1 Pillar Middle"
msgstr "Medio Pilar de @1"
#: pillars.lua
msgid "@1 Half Pillar Middle"
msgstr "Medio del Medio Pilar de @1"
#: pillars.lua
msgid "@1 Crossbrace"
msgstr "Viga de @1"
#: pillars.lua
msgid "@1 Extended Crossbrace"
msgstr "Viga Extendida de @1"
#: stone_wall.lua
msgid "Castle Wall"
msgstr "Pared de Castillo"
#: stone_wall.lua
msgid "Castle Rubble"
msgstr "Escombros de Castillo"
#: stone_wall.lua
msgid "Castle Corner"
msgstr "Esquina de Castillo"
#: stone_wall.lua
msgid "Stone Wall"
msgstr "Pared de Piedra"
#: stone_wall.lua
msgid "Rubble"
msgstr "Escombros"
#: stone_wall.lua
msgid "Castle Stonewall Stair"
msgstr "Escalera de Pared de Castillo"
#: stone_wall.lua
msgid "Castle Stonewall Slab"
msgstr "Losa de Pared de Castillo"
#: stone_wall.lua
msgid "Castle Rubble Stair"
msgstr "Escalera de Escombro de Castillo"
#: stone_wall.lua
msgid "Castle Rubble Slab"
msgstr "Losa de Escombro de Castillo"
#: stone_wall.lua
msgid "Dungeon Stone"
msgstr "Piedra de Mazmorra"
#: stone_wall.lua
msgid "Dungeon Stone Stair"
msgstr "Escalera de Piedra de Mazmorra"
#: stone_wall.lua
msgid "Dungeon Stone Slab"
msgstr "Losa de Piedra de Mazmorra"

View File

@ -1,210 +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: 2019-11-12 13:31+0100\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=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: arrow_slits.lua
msgid "@1 Arrowslit"
msgstr "Meurtrière en @1"
#: arrow_slits.lua
msgid "@1 Arrowslit with Cross"
msgstr "Meurtrière en croix en @1"
#: arrow_slits.lua
msgid "@1 Arrowslit with Hole"
msgstr "Meurtrière avec trou en @1"
#: arrow_slits.lua
msgid "@1 Embrasure"
msgstr "Embrasure en @1"
#: init.lua
msgid "Stonewall"
msgstr "Pierre brune"
#: init.lua
msgid "Cobble"
msgstr "Pavé"
#: init.lua
msgid "Stonebrick"
msgstr "Brique de pierre"
#: init.lua
msgid "Sandstone Brick"
msgstr "Brique de grès"
#: init.lua
msgid "Desert Stone Brick"
msgstr "Brique de pierre du désert"
#: init.lua
#, fuzzy
msgid "Desert Sandstone Brick"
msgstr "Brique de pierre du désert"
#: init.lua
#, fuzzy
msgid "Silver Sandstone Brick"
msgstr "Brique de grès"
#: init.lua
msgid "Stone"
msgstr "Pierre"
#: init.lua
msgid "Sandstone"
msgstr "Grès"
#: init.lua
msgid "Desert Stone"
msgstr "Pierre du désert"
#: init.lua
#, fuzzy
msgid "Desert Sandstone"
msgstr "Pierre du désert"
#: init.lua
#, fuzzy
msgid "Silver Sandstone"
msgstr "Grès"
#: init.lua
msgid "Wood"
msgstr "Bois"
#: init.lua
msgid "Ice"
msgstr "Glace"
#: init.lua
msgid "Snow"
msgstr "Neige"
#: init.lua
msgid "Obsidian Brick"
msgstr "Brique d'obsidienne"
#: murder_holes.lua
msgid "@1 Murder Hole"
msgstr "Trou en @1"
#: murder_holes.lua
msgid "@1 Machicolation"
msgstr "Machicoulis en @1"
#: paving.lua
msgid "Paving Stone"
msgstr "Pierre de pavage"
#: paving.lua
msgid "Pavement Brick"
msgstr "Brique de pavage"
#: paving.lua
msgid "Castle Pavement Stair"
msgstr "Escaliers de chateau pavé"
#: paving.lua
msgid "Castle Pavement Slab"
msgstr "Dalle de chateau pavé"
#: paving.lua
msgid "Roof Slates"
msgstr "Toiture en ardoise"
#: pillars.lua
msgid "@1 Pillar Base"
msgstr "Base de pilier en @1"
#: pillars.lua
msgid "@1 Half Pillar Base"
msgstr "Base de demi pilier en @1"
#: pillars.lua
msgid "@1 Pillar Top"
msgstr "Haut de pilier en @1"
#: pillars.lua
msgid "@1 Half Pillar Top"
msgstr "Haut de demi pilier en @1"
#: pillars.lua
msgid "@1 Pillar Middle"
msgstr "Milieu de pilier en @1"
#: pillars.lua
msgid "@1 Half Pillar Middle"
msgstr "Milieu de demi pilier en @1"
#: pillars.lua
msgid "@1 Crossbrace"
msgstr "Travers en @1"
#: pillars.lua
msgid "@1 Extended Crossbrace"
msgstr "Travers entendu en @1"
#: stone_wall.lua
msgid "Castle Wall"
msgstr "Pierre brune"
#: stone_wall.lua
msgid "Castle Rubble"
msgstr "Gravats de chateau"
#: stone_wall.lua
msgid "Castle Corner"
msgstr "Angle de chateau"
#: stone_wall.lua
msgid "Stone Wall"
msgstr "Mur de pierre"
#: stone_wall.lua
msgid "Rubble"
msgstr "Décombre"
#: stone_wall.lua
msgid "Castle Stonewall Stair"
msgstr "Escalier en pierre brune"
#: stone_wall.lua
msgid "Castle Stonewall Slab"
msgstr "Dalle en pierre brune"
#: stone_wall.lua
msgid "Castle Rubble Stair"
msgstr "Escalier en gravats de chateau"
#: stone_wall.lua
msgid "Castle Rubble Slab"
msgstr "Dalle en gravats de chateau"
#: stone_wall.lua
msgid "Dungeon Stone"
msgstr "Pierre de dongeon"
#: stone_wall.lua
msgid "Dungeon Stone Stair"
msgstr "Escalier en pierre de dongeon"
#: stone_wall.lua
msgid "Dungeon Stone Slab"
msgstr "Dalle en pierre de dongeon"

View File

@ -1,207 +0,0 @@
# ITALIAN LOCALE FILE FOR THE CASTLE MASONRY MODULE
# Copyright (C) 2017 Philipbenr And DanDuncombe
# This file is distributed under the same license as the CASTLE MASONRY package.
# Hamlet <54187342+h4ml3t@users.noreply.github.com> 2017, 2019.
#
msgid ""
msgstr ""
"Project-Id-Version: Castle Masonry\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-11-12 12:13+0100\n"
"PO-Revision-Date: 2019-11-12 12:24+0100\n"
"Last-Translator: Hamlet <54187342+h4ml3t@users.noreply.github.com>\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 2.2.1\n"
#: arrow_slits.lua
msgid "@1 Arrowslit"
msgstr "Feritoia per frecce di @1"
#: arrow_slits.lua
msgid "@1 Arrowslit with Cross"
msgstr "Feritoia a croce per frecce di @1"
#: arrow_slits.lua
msgid "@1 Arrowslit with Hole"
msgstr "Feritoia a foro per frecce di @1"
#: arrow_slits.lua
msgid "@1 Embrasure"
msgstr "Feritoia di @1"
#: init.lua
msgid "Stonewall"
msgstr "muro di pietra"
#: init.lua
msgid "Cobble"
msgstr "ciottoli"
#: init.lua
msgid "Stonebrick"
msgstr "mattone di pietra"
#: init.lua
msgid "Sandstone Brick"
msgstr "mattone d'arenaria del deserto"
#: init.lua
msgid "Desert Stone Brick"
msgstr "mattone di pietra del deserto"
#: init.lua
msgid "Desert Sandstone Brick"
msgstr "mattone d'arenaria del deserto"
#: init.lua
msgid "Silver Sandstone Brick"
msgstr "mattone d'arenaria argentata"
#: init.lua
msgid "Stone"
msgstr "pietra"
#: init.lua
msgid "Sandstone"
msgstr "arenaria"
#: init.lua
msgid "Desert Stone"
msgstr "pietra del deserto"
#: init.lua
msgid "Desert Sandstone"
msgstr "arenaria del deserto"
#: init.lua
msgid "Silver Sandstone"
msgstr "arenaria argentata"
#: init.lua
msgid "Wood"
msgstr "legno"
#: init.lua
msgid "Ice"
msgstr "ghiaccio"
#: init.lua
msgid "Snow"
msgstr "neve"
#: init.lua
msgid "Obsidian Brick"
msgstr "mattone d'ossidiana"
#: murder_holes.lua
msgid "@1 Murder Hole"
msgstr "Buca assassina di @1"
#: murder_holes.lua
msgid "@1 Machicolation"
msgstr "Caditoia di @1"
#: paving.lua
msgid "Paving Stone"
msgstr "Pietra pavimentale"
#: paving.lua
msgid "Pavement Brick"
msgstr "Mattone pavimentale"
#: paving.lua
msgid "Castle Pavement Stair"
msgstr "Scala pavimentale del castello"
#: paving.lua
msgid "Castle Pavement Slab"
msgstr "Lastra pavimentale del castello"
#: paving.lua
msgid "Roof Slates"
msgstr "Tegole d'ardesia"
#: pillars.lua
msgid "@1 Pillar Base"
msgstr "Base della colonna di @1"
#: pillars.lua
msgid "@1 Half Pillar Base"
msgstr "Mezza base della colonna di @1"
#: pillars.lua
msgid "@1 Pillar Top"
msgstr "Capitello di @1"
#: pillars.lua
msgid "@1 Half Pillar Top"
msgstr "Mezzo capitello di @1"
#: pillars.lua
msgid "@1 Pillar Middle"
msgstr "Fusto della colonna di @1"
#: pillars.lua
msgid "@1 Half Pillar Middle"
msgstr "Mezzo fusto della colonna di @1"
#: pillars.lua
msgid "@1 Crossbrace"
msgstr "Costolone di @1"
#: pillars.lua
msgid "@1 Extended Crossbrace"
msgstr "Costolone esteso di @1"
#: stone_wall.lua
msgid "Castle Wall"
msgstr "Muro del castello"
#: stone_wall.lua
msgid "Castle Rubble"
msgstr "Detriti del castello"
#: stone_wall.lua
msgid "Castle Corner"
msgstr "Angolo del castello"
#: stone_wall.lua
msgid "Stone Wall"
msgstr "Muro di pietra"
#: stone_wall.lua
msgid "Rubble"
msgstr "Detriti"
#: stone_wall.lua
msgid "Castle Stonewall Stair"
msgstr "Scala del castello in muro di pietra"
#: stone_wall.lua
msgid "Castle Stonewall Slab"
msgstr "Lastra del castello in muro di pietra"
#: stone_wall.lua
msgid "Castle Rubble Stair"
msgstr "Scala del castello in detriti"
#: stone_wall.lua
msgid "Castle Rubble Slab"
msgstr "Lastra del castello in detriti"
#: stone_wall.lua
msgid "Dungeon Stone"
msgstr "Pietra del sotterraneo"
#: stone_wall.lua
msgid "Dungeon Stone Stair"
msgstr "Scala di pietra del sotterraneo"
#: stone_wall.lua
msgid "Dungeon Stone Slab"
msgstr "Lastra di pietra del sotterraneo"

View File

@ -1,206 +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: 2019-11-12 13:31+0100\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"
#: arrow_slits.lua
msgid "@1 Arrowslit"
msgstr ""
#: arrow_slits.lua
msgid "@1 Arrowslit with Cross"
msgstr ""
#: arrow_slits.lua
msgid "@1 Arrowslit with Hole"
msgstr ""
#: arrow_slits.lua
msgid "@1 Embrasure"
msgstr ""
#: init.lua
msgid "Stonewall"
msgstr ""
#: init.lua
msgid "Cobble"
msgstr ""
#: init.lua
msgid "Stonebrick"
msgstr ""
#: init.lua
msgid "Sandstone Brick"
msgstr ""
#: init.lua
msgid "Desert Stone Brick"
msgstr ""
#: init.lua
msgid "Desert Sandstone Brick"
msgstr ""
#: init.lua
msgid "Silver Sandstone Brick"
msgstr ""
#: init.lua
msgid "Stone"
msgstr ""
#: init.lua
msgid "Sandstone"
msgstr ""
#: init.lua
msgid "Desert Stone"
msgstr ""
#: init.lua
msgid "Desert Sandstone"
msgstr ""
#: init.lua
msgid "Silver Sandstone"
msgstr ""
#: init.lua
msgid "Wood"
msgstr ""
#: init.lua
msgid "Ice"
msgstr ""
#: init.lua
msgid "Snow"
msgstr ""
#: init.lua
msgid "Obsidian Brick"
msgstr ""
#: murder_holes.lua
msgid "@1 Murder Hole"
msgstr ""
#: murder_holes.lua
msgid "@1 Machicolation"
msgstr ""
#: paving.lua
msgid "Paving Stone"
msgstr ""
#: paving.lua
msgid "Pavement Brick"
msgstr ""
#: paving.lua
msgid "Castle Pavement Stair"
msgstr ""
#: paving.lua
msgid "Castle Pavement Slab"
msgstr ""
#: paving.lua
msgid "Roof Slates"
msgstr ""
#: pillars.lua
msgid "@1 Pillar Base"
msgstr ""
#: pillars.lua
msgid "@1 Half Pillar Base"
msgstr ""
#: pillars.lua
msgid "@1 Pillar Top"
msgstr ""
#: pillars.lua
msgid "@1 Half Pillar Top"
msgstr ""
#: pillars.lua
msgid "@1 Pillar Middle"
msgstr ""
#: pillars.lua
msgid "@1 Half Pillar Middle"
msgstr ""
#: pillars.lua
msgid "@1 Crossbrace"
msgstr ""
#: pillars.lua
msgid "@1 Extended Crossbrace"
msgstr ""
#: stone_wall.lua
msgid "Castle Wall"
msgstr ""
#: stone_wall.lua
msgid "Castle Rubble"
msgstr ""
#: stone_wall.lua
msgid "Castle Corner"
msgstr ""
#: stone_wall.lua
msgid "Stone Wall"
msgstr ""
#: stone_wall.lua
msgid "Rubble"
msgstr ""
#: stone_wall.lua
msgid "Castle Stonewall Stair"
msgstr ""
#: stone_wall.lua
msgid "Castle Stonewall Slab"
msgstr ""
#: stone_wall.lua
msgid "Castle Rubble Stair"
msgstr ""
#: stone_wall.lua
msgid "Castle Rubble Slab"
msgstr ""
#: stone_wall.lua
msgid "Dungeon Stone"
msgstr ""
#: stone_wall.lua
msgid "Dungeon Stone Stair"
msgstr ""
#: stone_wall.lua
msgid "Dungeon Stone Slab"
msgstr ""

View File

@ -1,7 +1,7 @@
name = castle_masonry
depends = default
optional_depends = moreblocks, stairs, building_blocks, asphalt, streets, intllib
optional_depends = moreblocks, stairs, building_blocks, asphalt, streets
description = """
This is a mod all about creating castles and castle dungeons.
Many of the nodes are used for the outer-walls or dungeons.
"""
"""

View File

@ -1,17 +1,5 @@
-- Used for localization, choose either built-in or intllib.
local MP, S, NS = nil
if (minetest.get_modpath("intllib") == nil) then
S = minetest.get_translator("castle_masonry")
else
-- internationalization boilerplate
MP = minetest.get_modpath(minetest.get_current_modname())
S, NS = dofile(MP.."/intllib.lua")
end
local S = minetest.get_translator("castle_masonry")
-------------------------------------------------------------------------------------
@ -99,4 +87,4 @@ end
castle_masonry.register_murderhole_alias_force = function(old_mod_name, old_material_name, new_mod_name, new_material_name)
minetest.register_alias_force(old_mod_name..":hole_"..old_material_name, new_mod_name..":hole_"..new_material_name)
minetest.register_alias_force(old_mod_name..":machicolation_"..old_material_name, new_mod_name..":machicolation_"..new_material_name)
end
end

View File

@ -2,20 +2,8 @@ minetest.register_alias("castle:pavement", "castle_masonry:pavement_brick"
minetest.register_alias("castle:pavement_brick", "castle_masonry:pavement_brick")
minetest.register_alias("castle:roofslate", "castle_masonry:roofslate")
local S = minetest.get_translator("castle_masonry")
-- Used for localization, choose either built-in or intllib.
local MP, S, NS = nil
if (minetest.get_modpath("intllib") == nil) then
S = minetest.get_translator("castle_masonry")
else
-- internationalization boilerplate
MP = minetest.get_modpath(minetest.get_current_modname())
S, NS = dofile(MP.."/intllib.lua")
end
minetest.register_node("castle_masonry:pavement_brick", {

View File

@ -1,17 +1,5 @@
-- Used for localization, choose either built-in or intllib.
local MP, S, NS = nil
if (minetest.get_modpath("intllib") == nil) then
S = minetest.get_translator("castle_masonry")
else
-- internationalization boilerplate
MP = minetest.get_modpath(minetest.get_current_modname())
S, NS = dofile(MP.."/intllib.lua")
end
local S = minetest.get_translator("castle_masonry")
castle_masonry.register_pillar = function(material)
@ -323,4 +311,4 @@ castle_masonry.register_arrowslit_alias_force = function(old_mod_name, old_mater
minetest.register_alias_force(old_mod_name..":pillar_"..old_material_name.."_middle_half", new_mod_name..":pillar_"..new_material_name.."_middle_half")
minetest.register_alias_force(old_mod_name..":pillar_"..old_material_name.."_top", new_mod_name..":pillar_"..new_material_name.."_top")
minetest.register_alias_force(old_mod_name..":pillar_"..old_material_name.."_top_half", new_mod_name..":pillar_"..new_material_name.."_top_half")
end
end

View File

@ -1,17 +1,5 @@
-- Used for localization, choose either built-in or intllib.
local MP, S, NS = nil
if (minetest.get_modpath("intllib") == nil) then
S = minetest.get_translator("castle_masonry")
else
-- internationalization boilerplate
MP = minetest.get_modpath(minetest.get_current_modname())
S, NS = dofile(MP.."/intllib.lua")
end
local S = minetest.get_translator("castle_masonry")
minetest.register_alias("castle:stonewall", "castle_masonry:stonewall")
@ -169,4 +157,4 @@ elseif minetest.get_modpath("stairs") then
S("Dungeon Stone Slab"),
default.node_sound_stone_defaults()
)
end
end