Add privilege translations and update translations (#49)

+ Add new french translation strings
This commit is contained in:
Louis Royer 2020-09-07 17:47:18 +02:00 committed by GitHub
parent c167b30ebf
commit 4018c0d204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 11 deletions

View File

@ -21,18 +21,20 @@ dofile(areas.modpath.."/hud.lua")
areas:load() areas:load()
local S = minetest.get_translator("areas")
minetest.register_privilege("areas", { minetest.register_privilege("areas", {
description = "Can administer areas.", description = S("Can administer areas."),
give_to_singleplayer = false give_to_singleplayer = false
}) })
minetest.register_privilege("areas_high_limit", { minetest.register_privilege("areas_high_limit", {
description = "Can protect more, bigger areas.", description = S("Can protect more, bigger areas."),
give_to_singleplayer = false give_to_singleplayer = false
}) })
if not minetest.registered_privileges[areas.config.self_protection_privilege] then if not minetest.registered_privileges[areas.config.self_protection_privilege] then
minetest.register_privilege(areas.config.self_protection_privilege, { minetest.register_privilege(areas.config.self_protection_privilege, {
description = "Can protect areas.", description = S("Can protect areas."),
}) })
end end

View File

@ -1,9 +1,11 @@
# textdomain: areas # textdomain: areas
### chatcommands.lua ### ### chatcommands.lua ###
<AreaName>=<NomZone> <AreaName>=<NomZone>
<ID> [faction_name]=<ID> [nom_de_faction]
<NewOwner>=<NouveauPropriétaire> <NewOwner>=<NouveauPropriétaire>
<ParentID>=<IDZonePrincipale> <ParentID>=<IDZonePrincipale>
<PlayerName>=<NomJoueur> <PlayerName>=<NomJoueur>
@ -12,17 +14,16 @@
@1 spanning up to @2x@3x@4.=@1 sétendant jusquà @2x@3x@4. @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. 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 nexiste pas ou ne vous appartient pas. Area @1 does not exist or is not owned by you.=La zone @1 nexiste 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 for faction members.=Zone fermée aux membres de la faction.
Area closed.=Zone fermée. Area closed.=Zone fermée.
Area does not exist.=La zone nexiste pas. Area does not exist.=La zone nexiste 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 is open for members of: @1=Zone ouverte aux membres de ces factions : @1
Area opened.=Zone ouverte. Area opened.=Zone ouverte.
Area protected. ID: @1=Zone protégée. ID : @1 Area protected. ID: @1=Zone protégée. ID : @1
Area renamed.=Zone renommée. Area renamed.=Zone renommée.
Area successfully moved.=Zone déplacée avec succès. Area successfully moved.=Zone déplacée avec succès.
Change the owner of an area using its ID=Change le propriétaire dune zone en utilisant son ID. Change the owner of an area using its ID=Change le propriétaire dune zone en utilisant son ID.
Faction doesn't exists=La faction n'existe pas
Find areas using a Lua regular expression=Trouve les zones en utilisant une expression régulière Lua. Find areas using a Lua regular expression=Trouve les zones en utilisant une expression régulière Lua.
Get information about area configuration and usage.=Obtient des informations sur la configuration des zones et lutilisation des zones. Get information about area configuration and usage.=Obtient des informations sur la configuration des zones et lutilisation des zones.
@ -45,6 +46,7 @@ Recursively remove areas using an ID=Supprime les zones récursivement en utilis
Remove an area using an ID=Supprime une zone en utilisant son ID. Remove an area using an ID=Supprime une zone en utilisant son ID.
Removed area @1=Zone @1 supprimée. Removed area @1=Zone @1 supprimée.
Removed area @1 and it's sub areas.=Zone @1 et ses sous-zones supprimées. Removed area @1 and it's sub areas.=Zone @1 et ses sous-zones supprimées.
Removes all ownerless areas=Supprime toutes les zones sans propriétaire
Rename an area that you own=Renomme une zone qui vous appartient. Rename an area that you own=Renomme une zone qui vous appartient.
Self protection is disabled.=Lautoprotection est désactivée. Self protection is disabled.=Lautoprotection est désactivée.
Self protection is enabled.=Lautoprotection est activée. Self protection is enabled.=Lautoprotection est activée.
@ -78,6 +80,12 @@ Invalid usage, see /help @1.=Utilisation incorrecte, voir /help @1.
:open= : ouverte :open= : ouverte
Areas:=Zones : Areas:=Zones :
### init.lua ###
Can administer areas.=Permet dadministrer des zones.
Can protect areas.=Permet de protéger des zones.
Can protect more, bigger areas.=Permet de protéger plus, et de plus grandes zones.
### interact.lua ### ### interact.lua ###
@1 is protected by @2.=@1 est protégée par @2. @1 is protected by @2.=@1 est protégée par @2.

View File

@ -1,9 +1,11 @@
# textdomain: areas # textdomain: areas
### chatcommands.lua ### ### chatcommands.lua ###
<AreaName>=<NomeArea> <AreaName>=<NomeArea>
<ID> [faction_name]= <ID> [nome_fazione]
<NewOwner>=<NuovoProprietario> <NewOwner>=<NuovoProprietario>
<ParentID>=<IDparent> <ParentID>=<IDparent>
<PlayerName>=<NomeGiocatore> <PlayerName>=<NomeGiocatore>
@ -12,17 +14,16 @@
@1 spanning up to @2x@3x@4.=@1 si estende fino a @2x@3@4. @1 spanning up to @2x@3x@4.=@1 si estende fino a @2x@3@4.
A regular expression is required.=È necessaria una espressione regolare. 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à. 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 for faction members.=Area chiusa per i membri della fazione.
Area closed.=Area chiusa. Area closed.=Area chiusa.
Area does not exist.=L'area non esiste. 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 is open for members of: @1=L'area è aperta ai membri di: @1
Area opened.=Area aperta. Area opened.=Area aperta.
Area protected. ID: @1=Area protetta. ID: @1 Area protected. ID: @1=Area protetta. ID: @1
Area renamed.=Area rinominata. Area renamed.=Area rinominata.
Area successfully moved.=Area spostata con successo. Area successfully moved.=Area spostata con successo.
Change the owner of an area using its ID=Cambia il proprietario di un'area usando il suo ID Change the owner of an area using its ID=Cambia il proprietario di un'area usando il suo ID
Faction doesn't exists=La fazione non esiste
Find areas using a Lua regular expression=Trova aree usando una espressione regolare Lua Find areas using a Lua regular expression=Trova aree usando una espressione regolare Lua
Get information about area configuration and usage.=Ottieni informazioni sulla configurazione e l'uso delle aree. Get information about area configuration and usage.=Ottieni informazioni sulla configurazione e l'uso delle aree.
@ -45,6 +46,7 @@ Recursively remove areas using an ID=Elimina ricorsivamente delle aree usando un
Remove an area using an ID=Elimina un'area usando un ID Remove an area using an ID=Elimina un'area usando un ID
Removed area @1=Eliminata l'area @1 Removed area @1=Eliminata l'area @1
Removed area @1 and it's sub areas.=Eliminata l'area @1 e le sue sotto-aree. Removed area @1 and it's sub areas.=Eliminata l'area @1 e le sue sotto-aree.
Removes all ownerless areas=
Rename an area that you own=Rinomina un'area che ti appartiene Rename an area that you own=Rinomina un'area che ti appartiene
Self protection is disabled.=L'auto-protezione è disattivata. Self protection is disabled.=L'auto-protezione è disattivata.
Self protection is enabled.=L'auto-protezione è attivata. Self protection is enabled.=L'auto-protezione è attivata.
@ -78,6 +80,12 @@ Invalid usage, see /help @1.=Utilizzo non valido, si veda /help @1.
:open=:aperta :open=:aperta
Areas:=Aree: Areas:=Aree:
### init.lua ###
Can administer areas.=
Can protect areas.=
Can protect more, bigger areas.=
### interact.lua ### ### interact.lua ###
@1 is protected by @2.=@1 è protetta da @2. @1 is protected by @2.=@1 è protetta da @2.

View File

@ -1,9 +1,11 @@
# textdomain: areas # textdomain: areas
### chatcommands.lua ### ### chatcommands.lua ###
<AreaName>= <AreaName>=
<ID> [faction_name]=
<NewOwner>= <NewOwner>=
<ParentID>= <ParentID>=
<PlayerName>= <PlayerName>=
@ -12,17 +14,16 @@
@1 spanning up to @2x@3x@4.= @1 spanning up to @2x@3x@4.=
A regular expression is required.= A regular expression is required.=
Area @1 does not exist or is not owned by you.= Area @1 does not exist or is not owned by you.=
Faction doesn't exists=
Area closed for faction members.= Area closed for faction members.=
Area closed.= Area closed.=
Area does not exist.= Area does not exist.=
Area opened for faction members.=
Area is open for members of: @1= Area is open for members of: @1=
Area opened.= Area opened.=
Area protected. ID: @1= Area protected. ID: @1=
Area renamed.= Area renamed.=
Area successfully moved.= Area successfully moved.=
Change the owner of an area using its ID= Change the owner of an area using its ID=
Faction doesn't exists=
Find areas using a Lua regular expression= Find areas using a Lua regular expression=
Get information about area configuration and usage.= Get information about area configuration and usage.=
@ -45,6 +46,7 @@ Recursively remove areas using an ID=
Remove an area using an ID= Remove an area using an ID=
Removed area @1= Removed area @1=
Removed area @1 and it's sub areas.= Removed area @1 and it's sub areas.=
Removes all ownerless areas=
Rename an area that you own= Rename an area that you own=
Self protection is disabled.= Self protection is disabled.=
Self protection is enabled.= Self protection is enabled.=
@ -67,8 +69,6 @@ You have extended area protection limits ("areas_high_limit" privilege).=
You have the necessary privilege ("@1").= You have the necessary privilege ("@1").=
You need to select an area first.= You need to select an area first.=
Removes all ownerless areas.=
### chatcommands.lua ### ### chatcommands.lua ###
### pos.lua ### ### pos.lua ###
@ -80,6 +80,12 @@ Invalid usage, see /help @1.=
:open= :open=
Areas:= Areas:=
### init.lua ###
Can administer areas.=
Can protect areas.=
Can protect more, bigger areas.=
### interact.lua ### ### interact.lua ###
@1 is protected by @2.= @1 is protected by @2.=