From 4a64cd5bd94fd1f147d2e82517ee87621aca568c Mon Sep 17 00:00:00 2001 From: theilqer <96739024+theilqer@users.noreply.github.com> Date: Fri, 31 Dec 2021 07:41:00 +0300 Subject: [PATCH 1/4] Create es_ES.yml --- resources/es_ES.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 resources/es_ES.yml diff --git a/resources/es_ES.yml b/resources/es_ES.yml new file mode 100644 index 0000000..0f0072f --- /dev/null +++ b/resources/es_ES.yml @@ -0,0 +1,26 @@ +# DO NOT EDIT THIS LINE +file-version: 1 +# DO NOT EDIT THIS LINE + +BANK_MAIN_PANEL_TITLE: "Banco de facciones" +BANK_DEPOSIT_TITLE: "Depositar dinero" +BANK_WITHDRAW_TITLE: "Retirar dinero" +BANK_DEPOSIT_INPUT: "Ingrese la cantidad que desea agregar al banco de facciones, ingrese un campo en blanco para regresar" +BANK_WITHDRAW_INPUT: "Ingrese la cantidad que desea quitar la cantidad al banco de la facción, ingrese un campo en blanco para regresar" +BANK_MAIN_CONTENT: "§7Corriente de soldadura: §6{{money}}§7$" +SUCCESS_BANK_DEPOSIT: " §a>> §2Ha depositado con éxito: {{money}}$!" +SUCCESS_BANK_WITHDRAW: " §a>> §2Te has retirado con éxito: {{money}}$!" +NO_ENOUGH_MONEY: " §c>> §4No tienes suficiente dinero" +NO_ENOUGH_MONEY_FACTION: " §c>> §4La facción no tiene suficiente dinero" +NO_TRANSACTION: " §c>> §4No se han realizado transacciones en este momento." + +BUTTON_DEPOSIT_BANK: "Depositar dinero" +BUTTON_WITHDRAW_BANK: "Retirar dinero" +BUTTON_BANK: "Banco de facciones" +BUTTON_HISTORY_BANK: "Historial de transacciones" + +PERMISSION_BANK_WITHDRAW: "Retirar dinero en el banco de facciones" +PERMISSION_BANK_DEPOSIT: "Depositar dinero en el banco de la facción" +PERMISSION_SEE_BANK_HISTORY: "Ver el historial de transacciones del banco de facciones" + +REWARD_MONEY_NAME: "Dinero de facción" From a8a44574da8e762f623611567935df4081088c06 Mon Sep 17 00:00:00 2001 From: theilqer <96739024+theilqer@users.noreply.github.com> Date: Fri, 31 Dec 2021 07:44:45 +0300 Subject: [PATCH 2/4] Create jp_JP.yml --- resources/jp_JP.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 resources/jp_JP.yml diff --git a/resources/jp_JP.yml b/resources/jp_JP.yml new file mode 100644 index 0000000..fdb7587 --- /dev/null +++ b/resources/jp_JP.yml @@ -0,0 +1,26 @@ +# DO NOT EDIT THIS LINE +file-version: 1 +# DO NOT EDIT THIS LINE + +BANK_MAIN_PANEL_TITLE: "派閥銀行" +BANK_DEPOSIT_TITLE: "供託金" +BANK_WITHDRAW_TITLE: "お金を引き出す" +BANK_DEPOSIT_INPUT: "派閥銀行に追加したい金額を入力し、空白のフィールドに戻って戻る" +BANK_WITHDRAW_INPUT: "派閥銀行に削除したい金額を入力し、空白のフィールドに戻って戻る" +BANK_MAIN_CONTENT: "§7現在の販売: §6{{money}}§7$" +SUCCESS_BANK_DEPOSIT: " §a>> §2入金に成功しました: {{money}}$!" +SUCCESS_BANK_WITHDRAW: " §a>> §2正常に撤回しました: {{money}}$!" +NO_ENOUGH_MONEY: " §c>> §4あなたは十分なお金を持っていません" +NO_ENOUGH_MONEY_FACTION: " §c>> §4派閥には十分なお金がありません" +NO_TRANSACTION: " §c>> §4現在、取引は行われていません。" + +BUTTON_DEPOSIT_BANK: "供託金" +BUTTON_WITHDRAW_BANK: "お金を引き出す" +BUTTON_BANK: "派閥銀行" +BUTTON_HISTORY_BANK: "取引履歴" + +PERMISSION_BANK_WITHDRAW: "派閥銀行でお金を引き出す" +PERMISSION_BANK_DEPOSIT: "派閥銀行で" +PERMISSION_SEE_BANK_HISTORY: "派閥銀行の取引履歴を表示する" + +REWARD_MONEY_NAME: "派閥のお金" From 9205c05f6cd5258b67beed004c49d561ae034feb Mon Sep 17 00:00:00 2001 From: theilqer <96739024+theilqer@users.noreply.github.com> Date: Fri, 31 Dec 2021 07:51:43 +0300 Subject: [PATCH 3/4] Rename jp_JP.yml to ja_JP.yml --- resources/{jp_JP.yml => ja_JP.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename resources/{jp_JP.yml => ja_JP.yml} (100%) diff --git a/resources/jp_JP.yml b/resources/ja_JP.yml similarity index 100% rename from resources/jp_JP.yml rename to resources/ja_JP.yml From 4d3eb3926ffd2c9753d573ba9276763c6ce0e26b Mon Sep 17 00:00:00 2001 From: ShockedPlot7560 <66992287+ShockedPlot7560@users.noreply.github.com> Date: Fri, 31 Dec 2021 09:40:41 +0100 Subject: [PATCH 4/4] Update internal loading --- src/FactionMasterBank.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/FactionMasterBank.php b/src/FactionMasterBank.php index 6aca4af..a1473a3 100644 --- a/src/FactionMasterBank.php +++ b/src/FactionMasterBank.php @@ -138,16 +138,22 @@ private function initConfigLang(): void { $this->saveResource('fr_FR.yml'); $this->saveResource('en_EN.yml'); $this->saveResource('tr_TR.yml'); + $this->saveResource('ja_JP.yml'); + $this->saveResource('es_ES.yml'); $this->saveResource('config.yml'); $this->config = new Config($this->getDataFolder() . "config.yml"); ConfigUpdater::checkUpdate($this, $this->config, "file-version", 1); ConfigUpdater::checkUpdate($this, new Config($this->getDataFolder() . "fr_FR.yml", Config::YAML), "file-version", 1); ConfigUpdater::checkUpdate($this, new Config($this->getDataFolder() . "en_EN.yml", Config::YAML), "file-version", 1); ConfigUpdater::checkUpdate($this, new Config($this->getDataFolder() . "tr_TR.yml", Config::YAML), "file-version", 1); + ConfigUpdater::checkUpdate($this, new Config($this->getDataFolder() . "ja_JP.yml", Config::YAML), "file-version", 1); + ConfigUpdater::checkUpdate($this, new Config($this->getDataFolder() . "es_ES.yml", Config::YAML), "file-version", 1); $this->langConfig = [ "FR" => new Config($this->getDataFolder() . "fr_FR.yml", Config::YAML), "EN" => new Config($this->getDataFolder() . "en_EN.yml", Config::YAML), - "TR" => new Config($this->getDataFolder() . "tr_TR.yml", Config::YAML) + "TR" => new Config($this->getDataFolder() . "tr_TR.yml", Config::YAML), + "JP" => new Config($this->getDataFolder() . "ja_JP.yml", Config::YAML), + "ES" => new Config($this->getDataFolder() . "es_ES.yml", Config::YAML) ]; }