From 38be0b973e0406e69a710c412a292657afc37162 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 18 Oct 2022 19:11:14 +0100 Subject: [PATCH] Add new locales for certain teleport result types --- .../net/william278/huskhomes/teleport/TeleportResult.java | 4 ++-- common/src/main/resources/locales/bg-bg.yml | 2 ++ common/src/main/resources/locales/de-de.yml | 2 ++ common/src/main/resources/locales/en-gb.yml | 2 ++ common/src/main/resources/locales/es-es.yml | 2 ++ common/src/main/resources/locales/it-it.yml | 2 ++ common/src/main/resources/locales/pl.yml | 2 ++ common/src/main/resources/locales/uk-ua.yml | 2 ++ common/src/main/resources/locales/zh-cn.yml | 2 ++ common/src/main/resources/locales/zh-tw.yml | 2 ++ 10 files changed, 20 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/net/william278/huskhomes/teleport/TeleportResult.java b/common/src/main/java/net/william278/huskhomes/teleport/TeleportResult.java index 5b926f2d..9ae2fe0a 100644 --- a/common/src/main/java/net/william278/huskhomes/teleport/TeleportResult.java +++ b/common/src/main/java/net/william278/huskhomes/teleport/TeleportResult.java @@ -55,12 +55,12 @@ public enum TeleportResult { /** * Returns if the {@link Teleport} failed because the teleporter could not be resolved or was offline */ - FAILED_TELEPORTER_NOT_RESOLVED(false), //todo error message + FAILED_TELEPORTER_NOT_RESOLVED(false, "error_teleport_target_not_resolved"), /** * Returns if the {@link Teleport} failed because the target {@link Position} could not be resolved */ - FAILED_TARGET_NOT_RESOLVED(false), //todo error message + FAILED_TARGET_NOT_RESOLVED(false, "error_teleport_teleporter_not_resolved"), /** * Returns if the teleport was cancelled, for example if a {@link TimedTeleport} in progress is cancelled diff --git a/common/src/main/resources/locales/bg-bg.yml b/common/src/main/resources/locales/bg-bg.yml index 657341cc..3d4532e4 100644 --- a/common/src/main/resources/locales/bg-bg.yml +++ b/common/src/main/resources/locales/bg-bg.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[Error:](#ff3300) [%1% does not have a home set named error_edit_home_maximum_public_homes: '[Грешка:](#ff3300) [Можете да правите максимум до %1% публичен(и) дом(ове).](#ff7e5e)' error_illegal_target_coordinates: '[Error:](#ff3300) [Cancelled teleport as it exceeds the possible game world limits.](#ff7e5e)' error_no_players_online: '[Error:](#ff3300) [There are no players online who could teleport to you.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: 'Телепортирайте се до някой от Вашите домове' sethome_command_description: 'Поставете нов дом с дадено име' delhome_command_description: 'Изтриете дом, който преди сте поставили' diff --git a/common/src/main/resources/locales/de-de.yml b/common/src/main/resources/locales/de-de.yml index 7455ab7d..27e6b761 100644 --- a/common/src/main/resources/locales/de-de.yml +++ b/common/src/main/resources/locales/de-de.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[Fehler:](#ff3300) [%1% hat kein Home namens "%2%"!]( error_edit_home_maximum_public_homes: '[Fehler:](#ff3300) [Du kannst maximal %1% Home(s) öffentlich sichtbar machen.](#ff7e5e)' error_illegal_target_coordinates: '[Fehler:](#ff3300) [Teleportation abgebrochen, da sie die möglichen Grenzen der Spielwelt überschreitet.](#ff7e5e)' error_no_players_online: '[Fehler:](#ff3300) [Es sind keine Spieler online, die sich zu dir teleportieren könnten.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: 'Teleportiere dich zu einem deiner Homes' sethome_command_description: 'Setze ein neues Home mit dem angegebenen Namen' delhome_command_description: 'Lösche ein Home, welches du vorher gesetzt hast' diff --git a/common/src/main/resources/locales/en-gb.yml b/common/src/main/resources/locales/en-gb.yml index f70d76f4..19b03813 100644 --- a/common/src/main/resources/locales/en-gb.yml +++ b/common/src/main/resources/locales/en-gb.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[Error:](#ff3300) [%1% does not have a home set named error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)' error_illegal_target_coordinates: '[Error:](#ff3300) [Cancelled teleport as it exceeds the possible game world limits.](#ff7e5e)' error_no_players_online: '[Error:](#ff3300) [There are no players online who could teleport to you.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: 'Teleport to one of your homes' sethome_command_description: 'Set a new home with given name' delhome_command_description: 'Delete a home you previously set' diff --git a/common/src/main/resources/locales/es-es.yml b/common/src/main/resources/locales/es-es.yml index 7e011c0d..091db469 100644 --- a/common/src/main/resources/locales/es-es.yml +++ b/common/src/main/resources/locales/es-es.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[Error:](#ff3300) [%1% no tiene una casa llamada "%2% error_edit_home_maximum_public_homes: '[Error:](#ff3300) [Sólo se puede hacer público un máximo de %1% de Casas.](#ff7e5e)' error_illegal_target_coordinates: '[Error:](#ff3300) [Cancelado el teletransporte ya que excede los límites posibles del mundo del juego.](#ff7e5e)' error_no_players_online: '[Error:](#ff3300) [No hay jugadores en línea que puedan teletransportarse hacia ti.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: 'Teletransporte a una de sus casas' sethome_command_description: 'Establecer un nuevo hogar con un nombre determinado' delhome_command_description: 'Borrar una casa propia' diff --git a/common/src/main/resources/locales/it-it.yml b/common/src/main/resources/locales/it-it.yml index 1914a8c8..37f61707 100644 --- a/common/src/main/resources/locales/it-it.yml +++ b/common/src/main/resources/locales/it-it.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[Errore:](#ff3300) [%1% non ha nessuna home chiamata error_edit_home_maximum_public_homes: '[Errore:](#ff3300) [Puoi creare un messimo di %1% home pubbliche.](#ff7e5e)' error_illegal_target_coordinates: '[Errore:](#ff3300) [Richiesta di teletrasporto cancellata: superate le coordinate limite di gioco.](#ff7e5e)' error_no_players_online: '[Errore:](#ff3300) [Non ci sono giocatori online.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: 'Teletrasportati in una delle tue home' sethome_command_description: 'Crea un nuova home col nome dato' delhome_command_description: 'Cancella una delle tue home' diff --git a/common/src/main/resources/locales/pl.yml b/common/src/main/resources/locales/pl.yml index a53100bf..a2e31f72 100644 --- a/common/src/main/resources/locales/pl.yml +++ b/common/src/main/resources/locales/pl.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[Error:](#ff3300) [%1% does not have a home set named error_edit_home_maximum_public_homes: '[Błąd:](#ff3300) [Możesz maksymalnie utworzyć %1% publicznych domów.](#ff7e5e)' error_illegal_target_coordinates: '[Error:](#ff3300) [Cancelled teleport as it exceeds the possible game world limits.](#ff7e5e)' error_no_players_online: '[Error:](#ff3300) [There are no players online who could teleport to you.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: 'Teleport to one of your homes' sethome_command_description: 'Set a new home with given name' delhome_command_description: 'Delete a home you previously set' diff --git a/common/src/main/resources/locales/uk-ua.yml b/common/src/main/resources/locales/uk-ua.yml index 2f738a39..15f1fe62 100644 --- a/common/src/main/resources/locales/uk-ua.yml +++ b/common/src/main/resources/locales/uk-ua.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[Error:](#ff3300) [%1% does not have a home set named error_edit_home_maximum_public_homes: '[Помилка:](#ff3300) [Ви можете зробити публічними лише %1% домівок.](#ff7e5e)' error_illegal_target_coordinates: '[Error:](#ff3300) [Cancelled teleport as it exceeds the possible game world limits.](#ff7e5e)' error_no_players_online: '[Error:](#ff3300) [There are no players online who could teleport to you.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: 'Телепорт до вашої домівки' sethome_command_description: 'Створити нову домівку із заданою назвою' delhome_command_description: 'Видалити раніше створену доміку' diff --git a/common/src/main/resources/locales/zh-cn.yml b/common/src/main/resources/locales/zh-cn.yml index 43c99bac..b9c7713a 100644 --- a/common/src/main/resources/locales/zh-cn.yml +++ b/common/src/main/resources/locales/zh-cn.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[错误:](#ff3300) [%1% 没有名为 %2% 的家](#ff7 error_edit_home_maximum_public_homes: '[错误:](#ff3300) [您最多只能公开 %1% 个家.](#ff7e5e)' error_illegal_target_coordinates: '[错误:](#ff3300) [已取消传送, 因为它超出了可能的游戏世界限制.](#ff7e5e)' error_no_players_online: '[错误:](#ff3300) [没有在线玩家可以传送到过来.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: '传送回家或显示所有家' sethome_command_description: '设置一个新的家' delhome_command_description: '删除家' diff --git a/common/src/main/resources/locales/zh-tw.yml b/common/src/main/resources/locales/zh-tw.yml index 5ae72ac1..cb824e8f 100644 --- a/common/src/main/resources/locales/zh-tw.yml +++ b/common/src/main/resources/locales/zh-tw.yml @@ -141,6 +141,8 @@ error_home_invalid_other: '[錯誤:](#ff3300) [%1% 沒有名為 %2% 的家](#ff7 error_edit_home_maximum_public_homes: '[錯誤:](#ff3300) [您最多只能公開 %1% 個家.](#ff7e5e)' error_illegal_target_coordinates: '[錯誤:](#ff3300) [已取消傳送, 因為它超出了可能的遊戲世界限制.](#ff7e5e)' error_no_players_online: '[錯誤:](#ff3300) [沒有在線玩家可以傳送過來.](#ff7e5e)' +error_teleport_target_not_resolved: '[Error:](#ff3300) [Cancelled teleport as a target position could not be found.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Error:](#ff3300) [Cancelled teleport as the user to teleport could not be found](#ff7e5e)' home_command_description: '傳送回家或顯示所有家' sethome_command_description: '設置一個新的家' delhome_command_description: '刪除家'