Skip to content

Commit

Permalink
Merge pull request #168 from genboy/Translations
Browse files Browse the repository at this point in the history
Translations radius area
  • Loading branch information
genboy committed May 25, 2019
2 parents 8964939 + f00d2ec commit 70ad0e5
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
4 changes: 4 additions & 0 deletions resources/en.json
Expand Up @@ -9,12 +9,16 @@
"cmd-noperms-msg": "You can not use this Festival command",
"cmd-noperms-subcommand": "You do not have permission to use this subcommand.",

"new-radius-variable": "! New radius integer variable added to create sphere type area's.",

"pos-select-active": "You're already selecting a position!",
"select-both-pos-first":"Please select both positions first.",
"pos1": "position 1",
"pos2": "position 2",
"make-pos1": "Please place or break the first position.",
"make-pos2": "Please place or break the second position.",
"make-radius-distance": "Please place or break to select the radius distance.",
"radius-distance-to-position": "Radius distance to position",
"give-area-name": "Please specify a name for this area.",

"in-unknown-area": "You are in an unknown area",
Expand Down
4 changes: 4 additions & 0 deletions resources/es.json
Expand Up @@ -9,12 +9,16 @@
"cmd-noperms-msg": "No puedes usar este comando del Festival.",
"cmd-noperms-subcommand": "No tienes permiso para usar este subcomando.",

"new-radius-variable": "! Se agregó una nueva variable de entero de radio para crear el área de tipo de esfera.",

"pos-select-active": "¡Ya estás seleccionando una posición!",
"select-both-pos-first":"Por favor, seleccione ambas posiciones primero.",
"pos1": "posición 1",
"pos2": "posición 2",
"make-pos1": "Por favor coloque o rompa la primera posición.",
"make-pos2": "Por favor coloque o rompa la segunda posición.",
"make-radius-distance": "Romper o colocar un bloque para determinar el radio grande.",
"radius-distance-to-position": "Radio distancia a la posición",
"give-area-name": "Por favor, especifique un nombre para esta área.",

"in-unknown-area": "Estas en un area desconocida",
Expand Down
12 changes: 8 additions & 4 deletions resources/nl.json
Expand Up @@ -9,12 +9,16 @@
"cmd-noperms-msg": "Je kunt dit commando niet gebruiken",
"cmd-noperms-subcommand": "Je hebt geen toestemming om dit subcommando te gebruiken.",

"new-radius-variable": "! Nieuwe radius integer-variabele toegevoegd om gebieden van het bol-type te maken.",

"pos-select-active": "Je bent al een coordinaat aan het selecteren!",
"select-both-pos-first":"Je moet eerst allebei de coordinaten selecteren.",
"pos1": "coordinaat 1",
"pos2": "coordinaat 2",
"make-pos1": "Breek of plaats een blok voor het eerste coordinaat.",
"make-pos2": "Breek of plaats een blok voor het tweede coordinaat.",
"make-radius-distance": "Breek of plaats een blok om de radius grote te bepalen.",
"radius-distance-to-position": "Radius afstand tot positie",
"give-area-name": "Geef het gebied een naam.",

"in-unknown-area": "Je ben in onbekend gebied",
Expand Down Expand Up @@ -72,12 +76,12 @@
"allready-used-for": "al in gebruik voor",
"allready-set-for-area": "al toegevoegd aan gebied",
"edit-id-or-other": ", bewerk deze id of bewerk een andere id",
"cmd-specify-id-and-command-usage": "Geef een uniek id en commando regel om toe te voegen. Gebruik: /fe command <areaname> add <COMMANDID> <COMMANDSTRING>",
"cmd-specify-id-and-command-usage": "Geef een uniek id en comando regel om toe te voegen. Gebruik: /fe command <areaname> add <COMMANDID> <COMMANDSTRING>",

"cmd-valid-areaname": "Gebier niet gevinden, geef een bestande naam op. Gebruik: /fe command <areaname> <add/list/edit/del> <commandID> <commandstring>.",
"cmd-id-not-found": "Command ID niet gevonden. Bekijk de commando's met /fe event command <areaname> list",
"cmd-valid-areaname": "Gebied niet gevonden, geef een bestaande naam op. Gebruik: /fe command <areaname> <add/list/edit/del> <commandID> <commandstring>.",
"cmd-id-not-found": "Comando ID niet gevonden. Bekijk de comando's met /fe event command <areaname> list",
"cmd-specify-id-to-delete": "Geef het comando ID om het te verwijderen. Gebruik /fe event command <areaname> del <COMMANDID>",
"cmd-specify-action": "Voeg een actie toe voor het commando. Geruik: /fe command <areaname> <add/list/edit/del> <commandID> <commandstring>.",
"cmd-specify-action": "Voeg een actie toe voor het comando. Geruik: /fe command <areaname> <add/list/edit/del> <commandID> <commandstring>.",

"event": "event",
"event-is-now": "event is nu",
Expand Down
4 changes: 4 additions & 0 deletions resources/pl.json
Expand Up @@ -9,12 +9,16 @@
"cmd-noperms-msg": "Nie możesz użyć tego polecenia Festival",
"cmd-noperms-subcommand": "Nie masz uprawnień do używania tej podkomendy.",

"new-radius-variable": "! Nowa zmienna całkowita promienia dodana w celu utworzenia obszaru typu sfery.",

"pos-select-active": "Już wybrałeś pozycję!",
"select-both-pos-first":"Najpierw wybierz obie pozycje.",
"pos1": "Pozycja 1",
"pos2": "Pozycja 2",
"make-pos1": "Połóż albo zniszcz pierwszą pozycję.",
"make-pos2": "Połóż albo zniszcz drugą pozycję.",
"make-radius-distance": "Przerwij lub umieść blok, aby określić duży promień.",
"radius-distance-to-position": "Odległość promienia do pozycji",
"give-area-name": "Podaj nazwę dla tego obszaru.",

"in-unknown-area": "Jesteś w nieznanym obszarze",
Expand Down
13 changes: 5 additions & 8 deletions src/genboy/Festival/Main.php
Expand Up @@ -355,7 +355,7 @@ public function onEnable() : void{

if( !isset($datum["radius"]) ){ // new radius variable v 1.1.4
$datum["radius"] = 0;
$newchange['Radius'] = "! New radius integer variable added to create sphere type area's.";
$newchange['Radius'] = Language::translate("new-radius-variable");
}

$flags = $datum["flags"];
Expand Down Expand Up @@ -661,12 +661,10 @@ public function onCommand(CommandSender $sender, Command $cmd, string $label, ar
case "radius":
if($sender->hasPermission("festival") || $sender->hasPermission("festival.command") || $sender->hasPermission("festival.command.fe.create")){
if(isset($this->selectingFirst[$playerName]) || isset($this->selectingRadius[$playerName])){
$o = TextFormat::RED . "You're already selecting a position!";
//$o = TextFormat::RED . Language::translate("pos-select-active"); //$o = TextFormat::RED . "You're already selecting a position!";
$o = TextFormat::RED . Language::translate("pos-select-active"); //$o = TextFormat::RED . "You're already selecting a position!";
}else{
$this->selectingRadius[$playerName] = true;
$o = TextFormat::GREEN . "Please place or break to select the radius distance.";
//$o = TextFormat::GREEN . Language::translate("make-pos2"); //$o = TextFormat::GREEN . "Please place or break the second position.";
$o = TextFormat::GREEN . Language::translate("make-radius-distance"); //$o = TextFormat::GREEN . "Please place or break to select the radius distance.";
}
}else{
$o = TextFormat::RED . Language::translate("cmd-noperms-subcommand"); //$o = TextFormat::RED . "You do not have permission to use this subcommand.";
Expand Down Expand Up @@ -1487,16 +1485,15 @@ public function ockockPlace(BlockPlaceEvent $event) : void{
}elseif(isset($this->selectingRadius[$playerName])){
unset($this->selectingRadius[$playerName]);
$this->radiusPosition[$playerName] = $block->asVector3();
$player->sendMessage(TextFormat::GREEN . "Radius distance to position: (" . $block->getX() . ", " . $block->getY() . ", " . $block->getZ() . ")");
$player->sendMessage(TextFormat::GREEN . language::translate("radius-distance-to-position"). ": (" . $block->getX() . ", " . $block->getY() . ", " . $block->getZ() . ")"); // Radius distance to position:
//$player->sendMessage(TextFormat::GREEN . language::translate("pos2")." ". language::translate("set-to"). ": (" . $block->getX() . ", " . $block->getY() . ", " . $block->getZ() . ")");
$event->setCancelled();
}else{
// .. canUseTNT( $player, $block )
if( $block->getID() == Block::TNT && !$this->canUseTNT( $player, $block ) ){
if( $player->hasPermission("festival") || $player->hasPermission("festival.access") ){
}else{
$event->setCancelled();
//$player->sendMessage("TNT not allowed here");
$event->setCancelled(); //$player->sendMessage("TNT not allowed here");
}
}

Expand Down

0 comments on commit 70ad0e5

Please sign in to comment.