From 442aabfd933575e30afefb6f30195b78466e1ecd Mon Sep 17 00:00:00 2001 From: BoomEaro <21033866+BoomEaro@users.noreply.github.com> Date: Sun, 21 Jul 2024 23:44:14 +0300 Subject: [PATCH] Move another texts to english --- .../langhelper/versions/DefaultTranslateManager.java | 4 ++-- .../commands/langhelper/CommandTestAll.java | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/src/main/java/ru/boomearo/langhelper/versions/DefaultTranslateManager.java b/common/src/main/java/ru/boomearo/langhelper/versions/DefaultTranslateManager.java index 4b30fcd..02df470 100644 --- a/common/src/main/java/ru/boomearo/langhelper/versions/DefaultTranslateManager.java +++ b/common/src/main/java/ru/boomearo/langhelper/versions/DefaultTranslateManager.java @@ -143,7 +143,7 @@ public void checkAndDownloadLanguages() { Path outputPath = Paths.get(pat); Files.copy(stream, outputPath); - this.plugin.getLogger().info("Скачан язык " + lt.getName() + " для версии " + this.version); + this.plugin.getLogger().info("Language " + lt.getName() + " successfully downloaded for version " + this.version); } } catch (Exception e) { this.plugin.getLogger().log(Level.SEVERE, "Failed to download language " + lt.name() + " for " + this.version, e); @@ -311,7 +311,7 @@ private static InputStream getFileInputStream() { if (stream == null) { stream = classLoader.getResourceAsStream(defaultEnPath + ".json"); if (stream == null) { - throw new IllegalArgumentException("Не найден языковый файл по умолчанию!"); + throw new IllegalArgumentException("Default language file is not found!"); } } return stream; diff --git a/plugin/src/main/java/ru/boomearo/langhelper/commands/langhelper/CommandTestAll.java b/plugin/src/main/java/ru/boomearo/langhelper/commands/langhelper/CommandTestAll.java index e611a5e..ddd4f31 100644 --- a/plugin/src/main/java/ru/boomearo/langhelper/commands/langhelper/CommandTestAll.java +++ b/plugin/src/main/java/ru/boomearo/langhelper/commands/langhelper/CommandTestAll.java @@ -90,7 +90,7 @@ public void onExecute(CommandSender sender, String[] args) { } } - sender.sendMessage((failed.isEmpty() ? "Все предметы присутствует в переводе." : "Следующие предметы не переведены: " + failed)); + sender.sendMessage((failed.isEmpty() ? "All items are present in translation." : "The following items are not translated: " + failed)); } { List failed = new ArrayList<>(); @@ -114,7 +114,7 @@ public void onExecute(CommandSender sender, String[] args) { } } - sender.sendMessage((failed.isEmpty() ? "Все сущности присутствует в переводе." : "Следующие сущности не переведены: " + failed)); + sender.sendMessage((failed.isEmpty() ? "All entities are present in the translation." : "The following entities are not translated: " + failed)); } { List failed = new ArrayList<>(); @@ -135,7 +135,7 @@ public void onExecute(CommandSender sender, String[] args) { } } - sender.sendMessage((failed.isEmpty() ? "Все зачарования присутствует в переводе." : "Следующие зачарования не переведены: " + failed)); + sender.sendMessage((failed.isEmpty() ? "All the enchantments are present in the translation." : "The following enchantments are not translated: " + failed)); } { List failed = new ArrayList<>(); @@ -156,7 +156,7 @@ public void onExecute(CommandSender sender, String[] args) { } } - sender.sendMessage((failed.isEmpty() ? "Все уровни зачарования присутствует в переводе." : "Следующие уровни зачарования не переведены: " + failed)); + sender.sendMessage((failed.isEmpty() ? "All levels of enchantment are present in the translation." : "The following enchantment levels are not translated: " + failed)); } { List failed = new ArrayList<>(); @@ -182,7 +182,7 @@ public void onExecute(CommandSender sender, String[] args) { } } - sender.sendMessage((failed.isEmpty() ? "Все эффекты зелий присутствует в переводе." : "Следующие эффекты зелий не переведены: " + failed)); + sender.sendMessage((failed.isEmpty() ? "All potion effects are present in the translation." : "The following potion effects have not been translated: " + failed)); } { List failed = new ArrayList<>(); @@ -203,7 +203,7 @@ public void onExecute(CommandSender sender, String[] args) { } } - sender.sendMessage((failed.isEmpty() ? "Все биомы присутствует в переводе." : "Следующие биомы не переведены: " + failed)); + sender.sendMessage((failed.isEmpty() ? "All biomes are present in the translation." : "The following biomes are not translated: " + failed)); } }