Skip to content

Commit

Permalink
Merge branch 'dev/4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyutsuki committed Aug 15, 2022
2 parents 7ca08a8 + 603d81b commit adcf79d
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 33 deletions.
6 changes: 6 additions & 0 deletions .github/changelogs/4.x/en_us.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## 4.1.x

### 4.1.5

#### :bug: bug fixes

- Fixed an issue where unique identifiers could be changed when editing floating texts (#129)

### 4.1.4

#### :globe_with_meridians: More i18n
Expand Down
6 changes: 6 additions & 0 deletions .github/changelogs/4.x/ja_jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## 4.1.x

### 4.1.5

#### :bug: バグ修正

- 浮き文字の編集時に一意な識別子を変更できてしまう問題を修正しました (#129)

### 4.1.4

#### :globe_with_meridians: 国際化
Expand Down
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Texter
prefix: Texter
main: jp\mcbe\fuyutsuki\Texter\Main
version: 4.1.4
api: 4.6.0
version: 4.1.5
api: 4.7.0
softdepend:
# aieuo/Mineflow
- Mineflow # >= 2.0
Expand Down
4 changes: 2 additions & 2 deletions resources/language/en_us.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ command.txt.remove.success=FloatingText: deleted "{%0}"
form.close=Close
form.ftname=FloatingText name
form.ftname.unique=FloatingText name(unique)
form.ft.name=FloatingText name
form.ft.name.unique=FloatingText name(unique)
form.add.description=Add a FloatingText to the world.
form.add.more.ft=Add more FloatingText
Expand Down
4 changes: 2 additions & 2 deletions resources/language/es_mx.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ command.txt.move.success=TextoFloatante: "{%0}" se movió a {%1}
command.txt.remove=/txt remove <name>
command.txt.remove.success=TextoFloatante:"{%0}" fue eliminado
form.close=Cerrar
form.ftname=Nombre del TextoFloatante
form.ftname.unique=Nombre del TextoFloatante(único)
form.ft.name=Nombre del TextoFloatante
form.ft.name.unique=Nombre del TextoFloatante(único)
form.add.description=Agrega un TextoFloatante al mundo.
form.add.more.ft=Agregar más TextoFloatante
form.add.spacing.description=El espaciado entre TextosFloatantes se puede especificar en coordenadas, donde -0.3 de Y es aproximadamente el espaciado de una línea.
Expand Down
10 changes: 5 additions & 5 deletions resources/language/id_id.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ command.txt.move.success=FloatingText: memindah {%0} ke {%1}
command.txt.remove=/txt r(emove)
command.txt.remove.success=FloatingText: dihapus {%0}

form.ftname=Nama FloatingText
form.ftname.unique=Nama FloatingText(buat unik)
form.ft.name=Nama FloatingText
form.ft.name.unique=Nama FloatingText(buat unik)
form.title=Title
form.text=Text
form.add.description=Menambah teks melayang dengan nama, judul, dan teks spesifik ke dunia.
Expand All @@ -46,8 +46,8 @@ form.list.description.2=nama teks melayang: {%0}\nPilih operasi yang dilakukan u

error.on.enable.not.packaged=Mohon gunakan file .phar yang didownload dari PoggitCI (https://poggit.pmmp.io/p/Texter).
error.on.enable.not.found.libformapi=Tidak dapat menemukan libFormAPI di folder virions. Mohon download libFormAPI dan install secara benar.
error.ftname.not.specified=Nama teks melayang tidak di pilih
error.ftname.exists=Teks melayang dengan nama: {%0} sudah ada.
error.ftname.not.exists=Teks melayang dengan nama: {%0} tidak ada.
error.ft.name.not.specified=Nama teks melayang tidak di pilih
error.ft.name.exists=Teks melayang dengan nama: {%0} sudah ada.
error.ft.name.not.exists=Teks melayang dengan nama: {%0} tidak ada.
error.permission=Anda tidak memiliki izin untuk mengedit teks melayang.
error.console=Mohon menjalankannya di dalam game
10 changes: 5 additions & 5 deletions resources/language/ko_kr.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ command.txt.move.success=FloatingText: {%0} 을 {%1} 로 이동하였읍니다
command.txt.remove=/txt r(삭제)
command.txt.remove.success=FloatingText: {%0} 삭제완료

form.ftname=홀로그램 이름
form.ftname.unique=홀로그램 이름(별개)
form.ft.name=홀로그램 이름
form.ft.name.unique=홀로그램 이름(별개)
form.title=타이틀
form.text=텍스트
form.add.description=홀로그램을 원하는 월드에 추가하세요!
Expand All @@ -46,8 +46,8 @@ form.list.description.2=홀로그램 이름: {%0}\n아래 옵션을 선택하세

error.on.enable.not.packaged=PoggitCI 의 .phar 파일을 사용하세요! (https://poggit.pmmp.io/p/Texter).
error.on.enable.not.found.libformapi=libFormAPI을 virions 폴더에서 찾을수 없습니다. libFormAPI 다운후 제대로 설치해주세요
error.ftname.not.specified=홀로그램 이름을 적어주세요
error.ftname.exists=홀로그램 이름: {%0} 이 이미 있습니다
error.ftname.not.exists=홀로그램 이름: {%0} 이 없습니다
error.ft.name.not.specified=홀로그램 이름을 적어주세요
error.ft.name.exists=홀로그램 이름: {%0} 이 이미 있습니다
error.ft.name.not.exists=홀로그램 이름: {%0} 이 없습니다
error.permission=홀로그램사용 허가가 없습니다. 만약 이것이 에러라면 서버의 어드민과 연락해주세요.
error.console=게임접속후 사용을 해주세요
4 changes: 2 additions & 2 deletions resources/language/ru_ru.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ command.txt.remove.success=Летающий текст: удален "{%0}"

form.close=Закрыть

form.ftname=Название летающего текста
form.ftname.unique=Уникальное название летающего текста
form.ft.name=Название летающего текста
form.ft.name.unique=Уникальное название летающего текста

form.add.description=Добавить летающий текст в мир.
form.add.more.ft=Добавить летающий текст
Expand Down
10 changes: 5 additions & 5 deletions resources/language/tr_tr.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ command.txt.move.success=Uçan Metin: {%0} {%1} klasörüne taşındı
command.txt.remove=/txt remove
command.txt.remove.success=Uçan Metin: {%0} silindi.

form.ftname=UçanMetin adı
form.ftname.unique=UçanMetin adı (benzersiz)
form.ft.name=UçanMetin adı
form.ft.name.unique=UçanMetin adı (benzersiz)
form.title=Başlık
form.text=Metin
form.add.description=Dünyaya belirtilen ad, başlık, metin ile bir UçanMetin ekleyin.
Expand All @@ -46,8 +46,8 @@ form.list.description.2=Belirtilen Uçan Metin metni adı: {%0} \nLütfen bunun

error.on.enable.not.packaged=Lütfen PoggitCI'den indirilen phar dosyasını kullanın (https://poggit.pmmp.io/p/Texter).
error.on.enable.not.found.libformapi=libFormAPI virions klasöründe bulunamadı. Lütfen libFormAPI'yi indirin ve doğru şekilde kurun.
error.ftname.not.specified=Bir UçanMetin adı belirtilmedi
error.ftname.exists=Belirtilen ada sahip bir UçanMetin: {%0} zaten var.
error.ftname.not.exists=Belirtilen ada sahip UçanMetin yok: {%0} mevcut değil.
error.ft.name.not.specified=Bir UçanMetin adı belirtilmedi
error.ft.name.exists=Belirtilen ada sahip bir UçanMetin: {%0} zaten var.
error.ft.name.not.exists=Belirtilen ada sahip UçanMetin yok: {%0} mevcut değil.
error.permission=UçanMetin dosyasını düzenlemek için gerekli izniniz yok.
error.console=Lütfen oyunun içinden yürütün.
4 changes: 2 additions & 2 deletions resources/language/vi_vn.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ command.txt.remove.success=FloatingText: đã xóa "{%0}"
form.close=Đóng dạng
form.ftname=Tên của chữ nổi
form.ftname.unique=Tên của chữ nổi(duy nhất)
form.ft.name=Tên của chữ nổi
form.ft.name.unique=Tên của chữ nổi(duy nhất)
form.add.description=Thêm chữ nổi vào thế giới.
form.add.more.ft=Thêm nhiều chữ nổi
Expand Down
10 changes: 5 additions & 5 deletions resources/language/zh_cn.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ command.txt.remove.success=FloatingText: 删除 {%0}

form.close=关闭

form.ftname=浮空字名称
form.ftname.unique=浮空字名称(唯一)
form.ft.name=浮空字名称
form.ft.name.unique=浮空字名称(唯一)

form.add.description=向世界添加具有指定名称、标题和文本的浮空字。
form.add.more.ft=添加更多浮空字
Expand Down Expand Up @@ -63,8 +63,8 @@ form.list.description.2=指定浮空字名称名称: {%0}\n请为此选择要做

error.on.enable.not.packaged=请使用从PoggitCI下载的phar文件 (https://poggit.pmmp.io/p/Texter).
error.on.enable.not.found.libformapi=无法在病毒粒子文件夹中找到 {%0} 。请下载并正确安装 {%0} 。
error.ftname.not.specified=没有指定浮点文本名称
error.ftname.exists=指定名称的浮空字: {%0} 已经存在。
error.ftname.not.exists=没有指定名称的浮空字: {%0} 不存在。
error.ft.name.not.specified=没有指定浮点文本名称
error.ft.name.exists=指定名称的浮空字: {%0} 已经存在。
error.ft.name.not.exists=没有指定名称的浮空字: {%0} 不存在。
error.permission=您没有编辑浮空字的必要权限。
error.console=请从游戏中运行
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ public function __construct(Player $player) {
}

$elements[] = new Label(Uuid::uuid4()->getBytes(), $lang->translateString("form.add.description"));
$elements[] = new Input(FormLabels::NAME, $inputName, $inputName, $this->session->name());
if ($this->session->isEdit()) {
$elements[] = new Label(Uuid::uuid4()->getBytes(), "$inputName: {$this->session->name()}");
}else {
$elements[] = new Input(FormLabels::NAME, $inputName, $inputName, $this->session->name());
}

if (count($this->session->texts()) >= 2) {
$spacing = $this->session->spacing()->multiply(10)->add(30, 30, 30);
Expand Down Expand Up @@ -78,7 +82,7 @@ public function __construct(Player $player) {
$elements[] = new Toggle(FormLabels::ADD_MORE, $lang->translateString("form.add.more.ft"));

parent::__construct(
Main::prefix() . " txt > " . ($this->session->isEdit() ? "edit" : "add"),
Main::prefix() . " txt > " . ($this->session->isEdit() ? SendType::EDIT()->name() : SendType::ADD()->name()),
$elements,
function(Player $player, CustomFormResponse $response): void {
$this->handleSubmit($player, $response);
Expand Down Expand Up @@ -140,7 +144,7 @@ private function handleSubmit(Player $player, CustomFormResponse $response): voi
$floatingTextData->store($floatingText);
$floatingTextData->save();
FloatingTextSession::remove(strtolower($player->getName()));
$operate = $this->session->isEdit() ? "edit" : "add";
$operate = $this->session->isEdit() ? SendType::EDIT()->name() : SendType::ADD()->name();
$message = TextFormat::GREEN . $this->session->lang()->translateString("command.txt.$operate.success", [
$floatingText->name()
]);
Expand Down

0 comments on commit adcf79d

Please sign in to comment.