Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions resources/es_ES.yml
Original file line number Diff line number Diff line change
@@ -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"
26 changes: 26 additions & 0 deletions resources/ja_JP.yml
Original file line number Diff line number Diff line change
@@ -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: "派閥のお金"
8 changes: 7 additions & 1 deletion src/FactionMasterBank.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
];
}

Expand Down