From 8c98db4da4155bf4b948d2d78349e12a4d07d867 Mon Sep 17 00:00:00 2001 From: Supergoat666 <47240900+Supergoat666@users.noreply.github.com> Date: Tue, 18 Aug 2020 14:24:04 +0200 Subject: [PATCH] Add translations --- chatcommands.lua | 4 ++-- locale/areas.fr.tr | 2 ++ locale/areas.it.tr | 4 +++- locale/template.txt | 2 ++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/chatcommands.lua b/chatcommands.lua index b4d56a6..fc3ae6d 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -315,7 +315,7 @@ if areas.factions_available then if not factions.get_owner(faction_name) then return false, S("Faction doesn't exists") end - local fnames = areas.areas[id].faction_openf + local fnames = areas.areas[id].faction_open if fnames == nil then fnames = {} end @@ -335,7 +335,7 @@ if areas.factions_available then -- Save false as nil to avoid inflating the DB. areas.areas[id].faction_open = fnames areas:save() - return true, fnames and S("Area is open for members of @1",table.concat(fnames,", ")) + return true, fnames and S("Area is open for members of: @1",table.concat(fnames,", ")) or S("Area closed for faction members.") end end diff --git a/locale/areas.fr.tr b/locale/areas.fr.tr index 4ca4c8d..d716e66 100644 --- a/locale/areas.fr.tr +++ b/locale/areas.fr.tr @@ -12,10 +12,12 @@ @1 spanning up to @2x@3x@4.=@1 s’étendant jusqu’à @2x@3x@4. A regular expression is required.=Une expression régulière est requise. Area @1 does not exist or is not owned by you.=La zone @1 n’existe pas ou ne vous appartient pas. +Faction doesn't exists=La faction n'existe pas Area closed for faction members.=Zone fermée aux membres de la faction. Area closed.=Zone fermée. Area does not exist.=La zone n’existe pas. Area opened for faction members.=Zone ouverte aux membres de la faction. +Area is open for members of: @1=Zone ouverte aux membres de ces factions : @1 Area opened.=Zone ouverte. Area protected. ID: @1=Zone protégée. ID : @1 Area renamed.=Zone renommée. diff --git a/locale/areas.it.tr b/locale/areas.it.tr index 009697c..d78b68e 100644 --- a/locale/areas.it.tr +++ b/locale/areas.it.tr @@ -12,10 +12,12 @@ @1 spanning up to @2x@3x@4.=@1 si estende fino a @2x@3@4. A regular expression is required.=È necessaria una espressione regolare. Area @1 does not exist or is not owned by you.=L'area @1 non esiste o non è di tua proprietà. +Faction doesn't exists=La fazione non esiste Area closed for faction members.=Area chiusa per i membri della fazione. Area closed.=Area chiusa. Area does not exist.=L'area non esiste. Area opened for faction members.=Area aperta per i membri della fazione. +Area is open for members of: @1=L'area è aperta ai membri di: @1 Area opened.=Area aperta. Area protected. ID: @1=Area protetta. ID: @1 Area renamed.=Area rinominata. @@ -111,7 +113,7 @@ unnamed=innominato Area @1 selected.=Area @1 selezionata. Area position @1 set to @2=Posizione @1 dell'area impostata a @2 Position @1 set to @2=Posizione @1 impostata a @2 -Position @1: =Posizione @1: +Position @1: =Posizione @1: Select an area by ID.=Scegli un'area tramite l'ID. Select position @1 by punching a node.=Seleziona la posizione @1 colpendo un nodo. Select positions by punching two nodes.=Seleziona le posizioni colpendo due nodi. diff --git a/locale/template.txt b/locale/template.txt index 02b9c77..55f725a 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -12,10 +12,12 @@ @1 spanning up to @2x@3x@4.= A regular expression is required.= Area @1 does not exist or is not owned by you.= +Faction doesn't exists= Area closed for faction members.= Area closed.= Area does not exist.= Area opened for faction members.= +Area is open for members of: @1= Area opened.= Area protected. ID: @1= Area renamed.=