Skip to content

Commit

Permalink
2019-11-11
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ml3t committed Nov 11, 2019
1 parent c07ac77 commit 6f0ace0
Show file tree
Hide file tree
Showing 15 changed files with 88 additions and 29 deletions.
18 changes: 15 additions & 3 deletions doors.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")

-- 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_gates")

else
-- internationalization boilerplate
MP = minetest.get_modpath(minetest.get_current_modname())
S, NS = dofile(MP.."/intllib.lua")

end


if minetest.get_modpath("doors") then
doors.register("castle_gates:oak_door", {
Expand Down
15 changes: 12 additions & 3 deletions gate_slots.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local MP, S, NS = nil

if (minetest.get_modpath("intllib") == nil) then
S = minetest.get_translator("castle_gates")

else
-- internationalization boilerplate
MP = minetest.get_modpath(minetest.get_current_modname())
S, NS = dofile(MP.."/intllib.lua")

end


-- copied from castle_masonry in case that mod is not loaded
local get_material_properties = function(material)
Expand Down
15 changes: 12 additions & 3 deletions gates.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local MP, S, NS = nil

if (minetest.get_modpath("intllib") == nil) then
S = minetest.get_translator("castle_gates")

else
-- internationalization boilerplate
MP = minetest.get_modpath(minetest.get_current_modname())
S, NS = dofile(MP.."/intllib.lua")

end


minetest.register_alias("castle_gates:gate_edge", "castle_gates:wood_gate_edge")
minetest.register_alias("castle_gates:gate_edge_handle", "castle_gates:wood_gate_edge_handle")
Expand Down
16 changes: 16 additions & 0 deletions locale/castle_gates.it.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# textdomain:castle_gates

Oak Door=Porta di quercia
Jail Door=Porta della prigione
Jail Bars=Sbarre della prigione
@1 Portcullis Bars=Sbarre della saracinesca di @1
@1 Portcullis Bottom=Estremità inferiore della saracinesca di @1
@1 Gate Door=Porta di @1 del cancello
@1 Gate Door Edge=Estremità della porta di @1 del cancello
@1 Gate Door With Handle=Porta di @1 con maniglia del cancello
@1 Gate Door With Hinge=Porta di @1 con cardine del cancello
Wooden=legno
Steel=acciaio
Stonebrick=mattone di pietra
@1 Gate Slot=Alloggio di @1 del cancello
@1 Gate Slot Reverse=Rovescio dell'alloggio di @1 del cancello
34 changes: 14 additions & 20 deletions locale/it.po
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# ITALIAN LOCALE FILE FOR THE CASTLE GATES MODULE
# Copyright (C) 2017 Philipbenr And DanDuncombe
# This file is distributed under the same license as the CASTLE GATES package.
# Hamlet <[email protected]>, 2017.
# Hamlet <[email protected]> 2017, 2019.
#
msgid ""
msgstr ""
"Project-Id-Version: Castle Gates\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-14 22:15-0600\n"
"PO-Revision-Date: 2017-09-26 23:51+0100\n"
"Last-Translator: Hamlet <[email protected]>\n"
"PO-Revision-Date: 2019-11-11 23:23+0100\n"
"Last-Translator: Hamlet <[email protected]>\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"
"X-Generator: Poedit 2.2.1\n"

#: doc.lua:11
msgid "Heavy wooden bars designed to prevent entry even to siege equipment."
Expand Down Expand Up @@ -237,46 +237,40 @@ msgid "Jail Bars"
msgstr "Sbarre della prigione"

#: gates.lua:23
#, fuzzy
msgid "@1 Portcullis Bars"
msgstr "Sbarre della saracinesca"
msgstr "Sbarre della saracinesca di @1"

#: gates.lua:53
#, fuzzy
msgid "@1 Portcullis Bottom"
msgstr "Estremità inferiore della saracinesca"
msgstr "Estremità inferiore della saracinesca di @1"

#: gates.lua:113
#, fuzzy
msgid "@1 Gate Door"
msgstr "Segmento di cancello, porta o portone"
msgstr "Porta di @1 del cancello"

#: gates.lua:145
#, fuzzy
msgid "@1 Gate Door Edge"
msgstr "Estremità di cancello, porta o portone"
msgstr "Estremità della porta di @1 del cancello"

#: gates.lua:184
#, fuzzy
msgid "@1 Gate Door With Handle"
msgstr "Cancello, porta o portone con maniglia"
msgstr "Porta di @1 con maniglia del cancello"

#: gates.lua:227
#, fuzzy
msgid "@1 Gate Door With Hinge"
msgstr "Cancello, porta o portone con cardine"
msgstr "Porta di @1 con cardine del cancello"

#: gates.lua:256
msgid "Wooden"
msgstr ""
msgstr "legno"

#: gates.lua:268
msgid "Steel"
msgstr ""
msgstr "acciaio"

#: gate_slots.lua:36
msgid "Stonebrick"
msgstr "Mattoni di pietra"
msgstr "mattone di pietra"

#: gate_slots.lua:45
msgid "@1 Gate Slot"
Expand All @@ -285,4 +279,4 @@ msgstr "Alloggio di @1 per cancelli, porte, portoni e saracinesche"
#: gate_slots.lua:70
msgid "@1 Gate Slot Reverse"
msgstr ""
"Rovescio dell'alloggio di @1 per cancelli, porte, portoni e saracinesche."
"Rovescio dell'alloggio di @1 per cancelli, porte, portoni e saracinesche"
16 changes: 16 additions & 0 deletions locale/template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# textdomain:castle_gates

Oak Door=
Jail Door=
Jail Bars=
@1 Portcullis Bars=
@1 Portcullis Bottom=
@1 Gate Door=
@1 Gate Door Edge=
@1 Gate Door With Handle=
@1 Gate Door With Hinge=
Wooden=
Steel=
Stonebrick=
@1 Gate Slot=
@1 Gate Slot Reverse=
3 changes: 3 additions & 0 deletions mod.conf
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
name = castle_gates
description = This is a mod all about creating castles and castle dungeons. Many of the nodes are used for the outer-walls or dungeons.
depends = default
optional_depends = castle_masonry, doors, xpanes, intllib, doc
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified textures/castle_door_edge_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified textures/castle_door_handle_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified textures/castle_door_jail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified textures/castle_door_side_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified textures/castle_jail_door_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified textures/castle_jailbars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified textures/castle_portcullis_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6f0ace0

Please sign in to comment.