diff --git a/G-Earth/src/main/java/gearth/GEarth.java b/G-Earth/src/main/java/gearth/GEarth.java index 25ae10a..361c69c 100644 --- a/G-Earth/src/main/java/gearth/GEarth.java +++ b/G-Earth/src/main/java/gearth/GEarth.java @@ -3,15 +3,12 @@ package gearth; import gearth.misc.AdminValidator; import gearth.misc.Cacher; import gearth.misc.UpdateChecker; -import gearth.misc.listenerpattern.Observable; import gearth.misc.listenerpattern.ObservableObject; import gearth.ui.GEarthController; -import gearth.ui.subforms.logger.loggerdisplays.PacketLogger; import gearth.ui.themes.Theme; import gearth.ui.themes.ThemeFactory; import gearth.ui.titlebar.TitleBarConfig; import gearth.ui.titlebar.TitleBarController; -import gearth.ui.translations.LanguageBundle; import javafx.application.Application; import javafx.application.Platform; import javafx.fxml.FXMLLoader; @@ -28,7 +25,6 @@ public class GEarth extends Application { public static String version = "1.5.2"; public static String gitApi = "https://api.github.com/repos/sirjonasxx/G-Earth/releases/latest"; public static ObservableObject observableTheme; - public static LanguageBundle translation; private Stage stage; private GEarthController controller; @@ -46,9 +42,7 @@ public class GEarth extends Application { main = this; stage = primaryStage; - translation = new LanguageBundle(); - - FXMLLoader loader = new FXMLLoader(getClass().getResource("/gearth/ui/G-Earth.fxml"), translation); + FXMLLoader loader = new FXMLLoader(getClass().getResource("/gearth/ui/G-Earth.fxml")); Parent root = loader.load(); controller = loader.getController(); controller.setStage(primaryStage); diff --git a/G-Earth/src/main/java/gearth/misc/AdminValidator.java b/G-Earth/src/main/java/gearth/misc/AdminValidator.java index 91300eb..8b1c81e 100644 --- a/G-Earth/src/main/java/gearth/misc/AdminValidator.java +++ b/G-Earth/src/main/java/gearth/misc/AdminValidator.java @@ -1,12 +1,11 @@ package gearth.misc; -import gearth.GEarth; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; import javafx.scene.control.Label; -import javafx.scene.layout.Region; import java.io.IOException; import java.io.PrintStream; @@ -48,7 +47,7 @@ public class AdminValidator { if (!AdminValidator.isAdmin()) { Platform.runLater(() -> { Alert alert = new Alert(Alert.AlertType.WARNING, "", ButtonType.OK); - alert.getDialogPane().setContent(new Label(GEarth.translation.getString("alert.adminvalidator.content").replaceAll("\\\\n", System.lineSeparator()))); + alert.getDialogPane().setContent(new Label(LanguageBundle.get("alert.adminvalidator.content").replaceAll("\\\\n", System.lineSeparator()))); try { TitleBarController.create(alert).showAlert(); } catch (IOException e) { diff --git a/G-Earth/src/main/java/gearth/misc/UpdateChecker.java b/G-Earth/src/main/java/gearth/misc/UpdateChecker.java index 4adb34c..ec001b8 100644 --- a/G-Earth/src/main/java/gearth/misc/UpdateChecker.java +++ b/G-Earth/src/main/java/gearth/misc/UpdateChecker.java @@ -2,6 +2,7 @@ package gearth.misc; import gearth.GEarth; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; @@ -37,10 +38,10 @@ public class UpdateChecker { String body = (String)object.get("body"); boolean isForcedUpdate = body.contains("(!)"); - Alert alert = new Alert(isForcedUpdate ? Alert.AlertType.ERROR : Alert.AlertType.INFORMATION, GEarth.translation.getString("alert.outdated.title"), ButtonType.OK); + Alert alert = new Alert(isForcedUpdate ? Alert.AlertType.ERROR : Alert.AlertType.INFORMATION, LanguageBundle.get("alert.outdated.title"), ButtonType.OK); FlowPane fp = new FlowPane(); - Label lbl = new Label(GEarth.translation.getString("alert.outdated.content.newversion") + " ("+gitv+")" + System.lineSeparator()+ System.lineSeparator() + GEarth.translation.getString("alert.outdated.content.update") + ":"); + Label lbl = new Label(LanguageBundle.get("alert.outdated.content.newversion") + " ("+gitv+")" + System.lineSeparator()+ System.lineSeparator() + LanguageBundle.get("alert.outdated.content.update") + ":"); Hyperlink link = new Hyperlink("https://github.com/sirjonasxx/G-Earth/releases"); fp.getChildren().addAll( lbl, link); link.setOnAction(event -> { @@ -51,7 +52,7 @@ public class UpdateChecker { WebView webView = new WebView(); - webView.getEngine().loadContent(String.format("%s (%s)

%s:
https://github.com/sirjonasxx/G-Earth/releases", GEarth.translation.getString("alert.outdated.content.newversion"), gitv, GEarth.translation.getString("alert.outdated.content.update"))); + webView.getEngine().loadContent(String.format("%s (%s)

%s:
https://github.com/sirjonasxx/G-Earth/releases", LanguageBundle.get("alert.outdated.content.newversion"), gitv, LanguageBundle.get("alert.outdated.content.update"))); webView.setPrefSize(500, 200); alert.setResizable(false); diff --git a/G-Earth/src/main/java/gearth/protocol/connection/proxy/ProxyProviderFactory.java b/G-Earth/src/main/java/gearth/protocol/connection/proxy/ProxyProviderFactory.java index daf7c7a..9070132 100644 --- a/G-Earth/src/main/java/gearth/protocol/connection/proxy/ProxyProviderFactory.java +++ b/G-Earth/src/main/java/gearth/protocol/connection/proxy/ProxyProviderFactory.java @@ -1,6 +1,5 @@ package gearth.protocol.connection.proxy; -import gearth.GEarth; import gearth.misc.Cacher; import gearth.misc.OSValidator; import gearth.protocol.HConnection; @@ -10,6 +9,7 @@ import gearth.protocol.connection.proxy.flash.NormalFlashProxyProvider; import gearth.protocol.connection.proxy.flash.unix.LinuxRawIpFlashProxyProvider; import gearth.protocol.connection.proxy.flash.windows.WindowsRawIpFlashProxyProvider; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; @@ -108,7 +108,7 @@ public class ProxyProviderFactory { Platform.runLater(() -> { Alert alert = new Alert(Alert.AlertType.ERROR, "", ButtonType.OK); - alert.getDialogPane().getChildren().add(new Label(GEarth.translation.getString("alert.alreadyconnected.content").replaceAll("\\\\n", System.lineSeparator()))); + alert.getDialogPane().getChildren().add(new Label(LanguageBundle.get("alert.alreadyconnected.content").replaceAll("\\\\n", System.lineSeparator()))); alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); alert.setResizable(false); try { diff --git a/G-Earth/src/main/java/gearth/protocol/connection/proxy/flash/FlashProxyProvider.java b/G-Earth/src/main/java/gearth/protocol/connection/proxy/flash/FlashProxyProvider.java index 7ed7681..6df5f7a 100644 --- a/G-Earth/src/main/java/gearth/protocol/connection/proxy/flash/FlashProxyProvider.java +++ b/G-Earth/src/main/java/gearth/protocol/connection/proxy/flash/FlashProxyProvider.java @@ -1,6 +1,5 @@ package gearth.protocol.connection.proxy.flash; -import gearth.GEarth; import gearth.protocol.HConnection; import gearth.protocol.connection.HProxy; import gearth.protocol.connection.HProxySetter; @@ -12,6 +11,7 @@ import gearth.protocol.packethandler.flash.IncomingFlashPacketHandler; import gearth.protocol.packethandler.flash.OutgoingFlashPacketHandler; import gearth.protocol.packethandler.flash.FlashPacketHandler; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; @@ -126,7 +126,7 @@ public abstract class FlashProxyProvider implements ProxyProvider { protected void showInvalidConnectionError() { Platform.runLater(() -> { Alert alert = new Alert(Alert.AlertType.ERROR, "", ButtonType.OK); - alert.getDialogPane().getChildren().add(new Label(GEarth.translation.getString("alert.invalidconnection.content"))); + alert.getDialogPane().getChildren().add(new Label(LanguageBundle.get("alert.invalidconnection.content"))); alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); alert.setResizable(false); try { diff --git a/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/http/NitroHttpProxy.java b/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/http/NitroHttpProxy.java index 4fcc833..75ebbd9 100644 --- a/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/http/NitroHttpProxy.java +++ b/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/http/NitroHttpProxy.java @@ -1,11 +1,11 @@ package gearth.protocol.connection.proxy.nitro.http; -import gearth.GEarth; import gearth.misc.ConfirmationDialog; import gearth.protocol.connection.proxy.nitro.NitroConstants; import gearth.protocol.connection.proxy.nitro.os.NitroOsFunctions; import gearth.protocol.connection.proxy.nitro.os.NitroOsFunctionsFactory; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; @@ -53,12 +53,12 @@ public class NitroHttpProxy { Platform.runLater(() -> { Alert alert = ConfirmationDialog.createAlertWithOptOut(Alert.AlertType.WARNING, ADMIN_WARNING_KEY, - GEarth.translation.getString("alert.rootcertificate.title"), null, - "", GEarth.translation.getString("alert.rootcertificate.remember"), + LanguageBundle.get("alert.rootcertificate.title"), null, + "", LanguageBundle.get("alert.rootcertificate.remember"), ButtonType.YES, ButtonType.NO ); - alert.getDialogPane().setContent(new Label(GEarth.translation.getString("alert.rootcertificate.content").replaceAll("\\\\n", System.lineSeparator()))); + alert.getDialogPane().setContent(new Label(LanguageBundle.get("alert.rootcertificate.content").replaceAll("\\\\n", System.lineSeparator()))); try { shouldInstall.set(TitleBarController.create(alert).showAlertAndWait() diff --git a/G-Earth/src/main/java/gearth/protocol/memory/Rc4Obtainer.java b/G-Earth/src/main/java/gearth/protocol/memory/Rc4Obtainer.java index 4797158..616354c 100644 --- a/G-Earth/src/main/java/gearth/protocol/memory/Rc4Obtainer.java +++ b/G-Earth/src/main/java/gearth/protocol/memory/Rc4Obtainer.java @@ -10,6 +10,7 @@ import gearth.protocol.packethandler.PayloadBuffer; import gearth.protocol.packethandler.flash.BufferChangeListener; import gearth.protocol.packethandler.flash.FlashPacketHandler; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; @@ -72,10 +73,10 @@ public class Rc4Obtainer { System.err.println("COULD NOT FIND RC4 TABLE"); Platform.runLater(() -> { - Alert alert = new Alert(Alert.AlertType.WARNING, GEarth.translation.getString("alert.somethingwentwrong.title"), ButtonType.OK); + Alert alert = new Alert(Alert.AlertType.WARNING, LanguageBundle.get("alert.somethingwentwrong.title"), ButtonType.OK); FlowPane fp = new FlowPane(); - Label lbl = new Label(GEarth.translation.getString("alert.somethingwentwrong.content").replaceAll("\\\\n", System.lineSeparator())); + Label lbl = new Label(LanguageBundle.get("alert.somethingwentwrong.content").replaceAll("\\\\n", System.lineSeparator())); Hyperlink link = new Hyperlink("https://github.com/sirjonasxx/G-Earth/wiki/Troubleshooting"); fp.getChildren().addAll(lbl, link); link.setOnAction(event -> { diff --git a/G-Earth/src/main/java/gearth/services/extension_handler/extensions/implementations/network/authentication/Authenticator.java b/G-Earth/src/main/java/gearth/services/extension_handler/extensions/implementations/network/authentication/Authenticator.java index 1eb6946..7c67f49 100644 --- a/G-Earth/src/main/java/gearth/services/extension_handler/extensions/implementations/network/authentication/Authenticator.java +++ b/G-Earth/src/main/java/gearth/services/extension_handler/extensions/implementations/network/authentication/Authenticator.java @@ -1,9 +1,9 @@ package gearth.services.extension_handler.extensions.implementations.network.authentication; -import gearth.GEarth; import gearth.misc.ConfirmationDialog; import gearth.services.extension_handler.extensions.implementations.network.NetworkExtension; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; @@ -69,12 +69,12 @@ public class Authenticator { boolean[] done = {false}; Platform.runLater(() -> { Alert alert = ConfirmationDialog.createAlertWithOptOut(Alert.AlertType.WARNING, connectExtensionKey - , GEarth.translation.getString("alert.confirmation.windowtitle"), null, - "", GEarth.translation.getString("alert.confirmation.button.remember"), + , LanguageBundle.get("alert.confirmation.windowtitle"), null, + "", LanguageBundle.get("alert.confirmation.button.remember"), ButtonType.YES, ButtonType.NO ); - alert.getDialogPane().setContent(new Label(String.format(GEarth.translation.getString("alert.extconnection.content"), extension.getTitle()).replaceAll("\\\\n", System.lineSeparator()))); + alert.getDialogPane().setContent(new Label(String.format(LanguageBundle.get("alert.extconnection.content"), extension.getTitle()).replaceAll("\\\\n", System.lineSeparator()))); try { if (!(TitleBarController.create(alert).showAlertAndWait() diff --git a/G-Earth/src/main/java/gearth/services/g_python/GPythonShell.java b/G-Earth/src/main/java/gearth/services/g_python/GPythonShell.java index a776f50..080ddb9 100644 --- a/G-Earth/src/main/java/gearth/services/g_python/GPythonShell.java +++ b/G-Earth/src/main/java/gearth/services/g_python/GPythonShell.java @@ -3,6 +3,7 @@ package gearth.services.g_python; import gearth.GEarth; import gearth.ui.subforms.extra.ExtraController; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; @@ -170,11 +171,11 @@ public class GPythonShell { private void showError() { Platform.runLater(() -> { - Alert alert = new Alert(Alert.AlertType.ERROR, GEarth.translation.getString("alert.gpythonerror.title"), ButtonType.OK); - alert.setTitle(GEarth.translation.getString("alert.gpythonerror.title")); + Alert alert = new Alert(Alert.AlertType.ERROR, LanguageBundle.get("alert.gpythonerror.title"), ButtonType.OK); + alert.setTitle(LanguageBundle.get("alert.gpythonerror.title")); FlowPane fp = new FlowPane(); - Label lbl = new Label(GEarth.translation.getString("alert.gpythonerror.content").replaceAll("\\\\n", System.lineSeparator())); + Label lbl = new Label(LanguageBundle.get("alert.gpythonerror.content").replaceAll("\\\\n", System.lineSeparator())); Hyperlink link = new Hyperlink(ExtraController.INFO_URL_GPYTHON); fp.getChildren().addAll(lbl, link); link.setOnAction(event -> { diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/WebUtils.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/WebUtils.java index 8e3aa9d..7e45109 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/WebUtils.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/WebUtils.java @@ -1,6 +1,7 @@ package gearth.services.internal_extensions.extensionstore.application; import gearth.GEarth; +import gearth.ui.translations.LanguageBundle; import org.w3c.dom.Element; import java.time.LocalDateTime; @@ -44,19 +45,19 @@ public class WebUtils { } public static String elapsedTime(long time) { - if (time < 60) return time + " " + GEarth.translation.getString("ext.store.elapsedtime.second." + (time == 1 ? "single": "multiple")); + if (time < 60) return time + " " + LanguageBundle.get("ext.store.elapsedtime.second." + (time == 1 ? "single": "multiple")); time = time/60; - if (time < 60) return time + " " + GEarth.translation.getString("ext.store.elapsedtime.minute." + (time == 1 ? "single": "multiple")); + if (time < 60) return time + " " + LanguageBundle.get("ext.store.elapsedtime.minute." + (time == 1 ? "single": "multiple")); time = time/60; - if (time < 24) return time + " " + GEarth.translation.getString("ext.store.elapsedtime.hour." + (time == 1 ? "single": "multiple")); + if (time < 24) return time + " " + LanguageBundle.get("ext.store.elapsedtime.hour." + (time == 1 ? "single": "multiple")); long days = time/24; - if (days < 7) return days + " " + GEarth.translation.getString("ext.store.elapsedtime.day." + (days == 1 ? "single": "multiple")); + if (days < 7) return days + " " + LanguageBundle.get("ext.store.elapsedtime.day." + (days == 1 ? "single": "multiple")); long weeks = days/7; - if (weeks < 6) return weeks + " " + GEarth.translation.getString("ext.store.elapsedtime.week." + (weeks == 1 ? "single": "multiple")); + if (weeks < 6) return weeks + " " + LanguageBundle.get("ext.store.elapsedtime.week." + (weeks == 1 ? "single": "multiple")); long months = days/31; - if (months < 12) return months + " " + GEarth.translation.getString("ext.store.elapsedtime.month." + (months == 1 ? "single": "multiple")); + if (months < 12) return months + " " + LanguageBundle.get("ext.store.elapsedtime.month." + (months == 1 ? "single": "multiple")); long years = days/365; - return years + " " + GEarth.translation.getString("ext.store.elapsedtime.year." + (years == 1 ? "single": "multiple")); + return years + " " + LanguageBundle.get("ext.store.elapsedtime.year." + (years == 1 ? "single": "multiple")); } public static String escapeMessage(String text) { diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/StoreExtensionItem.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/StoreExtensionItem.java index 9a38348..d859bbc 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/StoreExtensionItem.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/StoreExtensionItem.java @@ -10,6 +10,7 @@ import gearth.services.internal_extensions.extensionstore.application.entities.e import gearth.services.internal_extensions.extensionstore.application.entities.queriedoverviews.CategorizedOverview; import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; +import gearth.ui.translations.LanguageBundle; import netscape.javascript.JSObject; public class StoreExtensionItem implements ContentItem { @@ -57,12 +58,12 @@ public class StoreExtensionItem implements ContentItem { .append("
") .append("
").append(WebUtils.escapeMessage(storeExtension.getTitle())).append("
") - .append("
").append(String.format(GEarth.translation.getString("ext.store.extension.madeby"), storeExtension.getAuthors().get(0).getName())).append(", ").append(String.format(GEarth.translation.getString("ext.store.extension.lastupdated"), WebUtils.elapsedSince(storeExtension.getUpdateDate()))).append("
") + .append("
").append(String.format(LanguageBundle.get("ext.store.extension.madeby"), storeExtension.getAuthors().get(0).getName())).append(", ").append(String.format(LanguageBundle.get("ext.store.extension.lastupdated"), WebUtils.elapsedSince(storeExtension.getUpdateDate()))).append("
") .append("
") .append("
") - .append("
").append(GEarth.translation.getString("ext.store.extension.version")).append(": ").append(displayVersion()).append("
") - .append("
").append(GEarth.translation.getString("ext.store.extension.rating")).append(": ").append(storeExtension.getRating()).append("
") + .append("
").append(LanguageBundle.get("ext.store.extension.version")).append(": ").append(displayVersion()).append("
") + .append("
").append(LanguageBundle.get("ext.store.extension.rating")).append(": ").append(storeExtension.getRating()).append("
") // .append("
").append(storeExtension.getFramework().getFramework().getName().replace("Native", "")).append("
") .append("
") diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/categories/CategoryItem.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/categories/CategoryItem.java index 55736fc..abf0a8c 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/categories/CategoryItem.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/categories/CategoryItem.java @@ -1,6 +1,5 @@ package gearth.services.internal_extensions.extensionstore.application.entities.categories; -import gearth.GEarth; import gearth.services.internal_extensions.extensionstore.GExtensionStore; import gearth.services.internal_extensions.extensionstore.application.GExtensionStoreController; import gearth.services.internal_extensions.extensionstore.application.WebUtils; @@ -9,6 +8,7 @@ import gearth.services.internal_extensions.extensionstore.application.entities.q import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.models.ExtCategory; import gearth.services.internal_extensions.extensionstore.repository.querying.ExtensionOrdering; +import gearth.ui.translations.LanguageBundle; import netscape.javascript.JSObject; import java.util.Arrays; @@ -59,7 +59,7 @@ public class CategoryItem implements ContentItem { .append("") .append("
") - .append("
").append(releasesCount).append(" ").append(GEarth.translation.getString("ext.store.extension.author.releases")).append("
") + .append("
").append(releasesCount).append(" ").append(LanguageBundle.get("ext.store.extension.author.releases")).append("
") // .append("
").append(storeExtension.getFramework().getFramework().getName().replace("Native", "")).append("
") .append("
") diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/categories/CategoryOverview.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/categories/CategoryOverview.java index fc9eb9c..4222c75 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/categories/CategoryOverview.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/categories/CategoryOverview.java @@ -6,6 +6,7 @@ import gearth.services.internal_extensions.extensionstore.application.entities.C import gearth.services.internal_extensions.extensionstore.application.entities.HOverview; import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.models.ExtCategory; +import gearth.ui.translations.LanguageBundle; import java.util.List; import java.util.stream.Collectors; @@ -58,17 +59,17 @@ public class CategoryOverview extends HOverview { @Override public String title() { - return GEarth.translation.getString("ext.store.categories.title"); + return LanguageBundle.get("ext.store.categories.title"); } @Override public String description() { - return GEarth.translation.getString("ext.store.categories.description"); + return LanguageBundle.get("ext.store.categories.description"); } @Override public String contentTitle() { - return GEarth.translation.getString("ext.store.categories.contenttitle"); + return LanguageBundle.get("ext.store.categories.contenttitle"); } }; } diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/extensiondetails/StoreExtensionDetailsItem.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/extensiondetails/StoreExtensionDetailsItem.java index 4d17e92..3668be0 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/extensiondetails/StoreExtensionDetailsItem.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/extensiondetails/StoreExtensionDetailsItem.java @@ -1,6 +1,5 @@ package gearth.services.internal_extensions.extensionstore.application.entities.extensiondetails; -import gearth.GEarth; import gearth.services.internal_extensions.extensionstore.GExtensionStore; import gearth.services.internal_extensions.extensionstore.application.GExtensionStoreController; import gearth.services.internal_extensions.extensionstore.application.WebUtils; @@ -9,6 +8,7 @@ import gearth.services.internal_extensions.extensionstore.application.entities.H import gearth.services.internal_extensions.extensionstore.repository.models.ExtCategory; import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; import gearth.services.internal_extensions.extensionstore.tools.EncodingUtil; +import gearth.ui.translations.LanguageBundle; import netscape.javascript.JSObject; import org.apache.commons.io.IOUtils; import org.json.JSONObject; @@ -46,32 +46,32 @@ public class StoreExtensionDetailsItem implements ContentItem { contentBuilder .append(String.format("*%s*", storeExtension.getTitle())).append(" - v").append(storeExtension.getVersion()).append("\n\n") - .append("*").append(GEarth.translation.getString("ext.store.extension.details.description")).append(":*\n").append(descriptionQuoted).append("\n \n") - .append("*").append(GEarth.translation.getString("ext.store.extension.details.authors")).append(":* ").append(storeExtension.getAuthors().stream().map(StoreExtension.Author::getName).collect(Collectors.joining(", "))).append("\n\n") - .append("*").append(GEarth.translation.getString("ext.store.extension.details.categories")).append(":* ").append(storeExtension.getCategories().stream().map(ExtCategory::getName).collect(Collectors.joining(", "))).append("\n\n"); + .append("*").append(LanguageBundle.get("ext.store.extension.details.description")).append(":*\n").append(descriptionQuoted).append("\n \n") + .append("*").append(LanguageBundle.get("ext.store.extension.details.authors")).append(":* ").append(storeExtension.getAuthors().stream().map(StoreExtension.Author::getName).collect(Collectors.joining(", "))).append("\n\n") + .append("*").append(LanguageBundle.get("ext.store.extension.details.categories")).append(":* ").append(storeExtension.getCategories().stream().map(ExtCategory::getName).collect(Collectors.joining(", "))).append("\n\n"); - contentBuilder.append("*").append(GEarth.translation.getString("ext.store.extension.details.technical_information")).append("*").append("\n"); + contentBuilder.append("*").append(LanguageBundle.get("ext.store.extension.details.technical_information")).append("*").append("\n"); if(storeExtension.getReleases() != null) - contentBuilder.append("> ").append(GEarth.translation.getString("ext.store.extension.details.releases")).append(": --url:").append(GEarth.translation.getString("ext.store.extension.details.click_here")).append("-").append(storeExtension.getReleases()).append("\n"); + contentBuilder.append("> ").append(LanguageBundle.get("ext.store.extension.details.releases")).append(": --url:").append(LanguageBundle.get("ext.store.extension.details.click_here")).append("-").append(storeExtension.getReleases()).append("\n"); - contentBuilder.append("> ").append(GEarth.translation.getString("ext.store.extension.details.language")).append(": ").append(storeExtension.getLanguage()).append("\n") - .append("> ").append(GEarth.translation.getString("ext.store.extension.details.source")).append(": --url:").append(GEarth.translation.getString("ext.store.extension.details.click_here")).append("-").append(storeExtension.getSource()).append("\n") - .append("> ").append(GEarth.translation.getString("ext.store.extension.details.framework")).append(": ").append(storeExtension.getFramework().getFramework().getName()).append(" - v").append(storeExtension.getFramework().getVersion()).append("\n") - .append("> ").append(GEarth.translation.getString("ext.store.extension.details.systems")).append(": ").append(String.join(", ", storeExtension.getCompatibility().getSystems())).append("\n \n"); + contentBuilder.append("> ").append(LanguageBundle.get("ext.store.extension.details.language")).append(": ").append(storeExtension.getLanguage()).append("\n") + .append("> ").append(LanguageBundle.get("ext.store.extension.details.source")).append(": --url:").append(LanguageBundle.get("ext.store.extension.details.click_here")).append("-").append(storeExtension.getSource()).append("\n") + .append("> ").append(LanguageBundle.get("ext.store.extension.details.framework")).append(": ").append(storeExtension.getFramework().getFramework().getName()).append(" - v").append(storeExtension.getFramework().getVersion()).append("\n") + .append("> ").append(LanguageBundle.get("ext.store.extension.details.systems")).append(": ").append(String.join(", ", storeExtension.getCompatibility().getSystems())).append("\n \n"); - contentBuilder.append("*").append(GEarth.translation.getString("ext.store.extension.details.clients")).append(":* ").append(String.join(", ", storeExtension.getCompatibility().getClients())).append("\n\n"); + contentBuilder.append("*").append(LanguageBundle.get("ext.store.extension.details.clients")).append(":* ").append(String.join(", ", storeExtension.getCompatibility().getClients())).append("\n\n"); if (storeExtension.getFramework().getFramework().isInstallationRequired()) { - contentBuilder.append(GEarth.translation.getString("ext.store.extension.warning.requirement")) + contentBuilder.append(LanguageBundle.get("ext.store.extension.warning.requirement")) .append(storeExtension.getFramework().getFramework().getInstallationInstructions()).append(" !\n\n"); } if (!storeExtension.isStable()) { - contentBuilder.append(GEarth.translation.getString("ext.store.extension.warning.unstable")).append("\n\n"); + contentBuilder.append(LanguageBundle.get("ext.store.extension.warning.unstable")).append("\n\n"); } contentBuilder.append("--startdiv--") - .append("\n*").append(GEarth.translation.getString("ext.store.extension.details.screenshot")).append(": *").append("\n") + .append("\n*").append(LanguageBundle.get("ext.store.extension.details.screenshot")).append(": *").append("\n") .append("--img:").append(gExtensionStore.getRepository().getResourceUrl("store", "extensions", storeExtension.getTitle(), "screenshot.png")) .append(" --enddiv--"); @@ -152,8 +152,8 @@ public class StoreExtensionDetailsItem implements ContentItem { .append("
") .append("
") .append("
").append(WebUtils.escapeMessage(mainAuthor.getName())).append("
") - .append("
").append(mainAuthor.getReputation()).append(" ").append(GEarth.translation.getString("ext.store.extension.author.reputation")).append("
") - .append("
").append(mainAuthor.getExtensionsCount()).append(" ").append(GEarth.translation.getString("ext.store.extension.author.releases")).append("
") + .append("
").append(mainAuthor.getReputation()).append(" ").append(LanguageBundle.get("ext.store.extension.author.reputation")).append("
") + .append("
").append(mainAuthor.getExtensionsCount()).append(" ").append(LanguageBundle.get("ext.store.extension.author.releases")).append("
") .append("
\"\"
") // todo look .append("
") .append("
").append(contentsInHtml()).append("
") diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/extensiondetails/StoreExtensionDetailsOverview.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/extensiondetails/StoreExtensionDetailsOverview.java index 8b0fad4..1f928f8 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/extensiondetails/StoreExtensionDetailsOverview.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/extensiondetails/StoreExtensionDetailsOverview.java @@ -13,6 +13,7 @@ import gearth.services.internal_extensions.extensionstore.repository.models.Stor import gearth.services.internal_extensions.extensionstore.tools.InstalledExtension; import gearth.services.internal_extensions.extensionstore.tools.StoreExtensionTools; import gearth.ui.titlebar.TitleBarController; +import gearth.ui.translations.LanguageBundle; import javafx.application.Platform; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; @@ -63,7 +64,7 @@ public class StoreExtensionDetailsOverview extends HOverview { public String buttonText() { int mode = mode(); // return mode == 2 ? "Update" : "Install"; - return GEarth.translation.getString("ext.store.button." + (mode == 0 ? "install" : (mode == 1 ? "installed" : "update"))); + return LanguageBundle.get("ext.store.button." + (mode == 0 ? "install" : (mode == 1 ? "installed" : "update"))); } @Override @@ -92,23 +93,23 @@ public class StoreExtensionDetailsOverview extends HOverview { private void awaitPopup(String mode) { popup(Alert.AlertType.WARNING, - GEarth.translation.getString(String.format("ext.store.extension.status.start.%s", mode)), - String.format("%s [%s]", GEarth.translation.getString(String.format("ext.store.extension.status.start.%s", mode)), extension.getTitle()), - GEarth.translation.getString(String.format("ext.store.extension.status.start.%s.message", mode))); + LanguageBundle.get(String.format("ext.store.extension.status.start.%s", mode)), + String.format("%s [%s]", LanguageBundle.get(String.format("ext.store.extension.status.start.%s", mode)), extension.getTitle()), + LanguageBundle.get(String.format("ext.store.extension.status.start.%s.message", mode))); } private void successPopup(String mode) { popup(Alert.AlertType.INFORMATION, - GEarth.translation.getString(String.format("ext.store.extension.status.success.%s", mode)), - String.format("%s [%s]", GEarth.translation.getString(String.format("ext.store.extension.status.success.%s", mode)), extension.getTitle()), - GEarth.translation.getString(String.format("ext.store.extension.status.success.%s.message", mode))); + LanguageBundle.get(String.format("ext.store.extension.status.success.%s", mode)), + String.format("%s [%s]", LanguageBundle.get(String.format("ext.store.extension.status.success.%s", mode)), extension.getTitle()), + LanguageBundle.get(String.format("ext.store.extension.status.success.%s.message", mode))); } private void errorPopup(String mode, String error) { popup(Alert.AlertType.ERROR, - GEarth.translation.getString(String.format("ext.store.extension.status.success.%s", mode)), - String.format("%s [%s]", GEarth.translation.getString(String.format("ext.store.extension.status.success.%s", mode)), extension.getTitle()), - String.format("%s: %s", GEarth.translation.getString(String.format("ext.store.extension.status.success.%s.message", mode)), error)); + LanguageBundle.get(String.format("ext.store.extension.status.success.%s", mode)), + String.format("%s [%s]", LanguageBundle.get(String.format("ext.store.extension.status.success.%s", mode)), extension.getTitle()), + String.format("%s: %s", LanguageBundle.get(String.format("ext.store.extension.status.success.%s.message", mode)), error)); } private void popup(Alert.AlertType alertType, String title, String header, String context) { diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/installed/InstalledOverview.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/installed/InstalledOverview.java index 6e7886c..4d0b10e 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/installed/InstalledOverview.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/installed/InstalledOverview.java @@ -1,6 +1,5 @@ package gearth.services.internal_extensions.extensionstore.application.entities.installed; -import gearth.GEarth; import gearth.services.internal_extensions.extensionstore.GExtensionStore; import gearth.services.internal_extensions.extensionstore.application.entities.ContentItem; import gearth.services.internal_extensions.extensionstore.application.entities.HOverview; @@ -8,6 +7,7 @@ import gearth.services.internal_extensions.extensionstore.repository.StoreReposi import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; import gearth.services.internal_extensions.extensionstore.tools.InstalledExtension; import gearth.services.internal_extensions.extensionstore.tools.StoreExtensionTools; +import gearth.ui.translations.LanguageBundle; import org.apache.maven.artifact.versioning.ComparableVersion; import java.awt.*; @@ -31,7 +31,7 @@ public class InstalledOverview extends HOverview { @Override public String buttonText() { - return GEarth.translation.getString("ext.store.overview.folder"); + return LanguageBundle.get("ext.store.overview.folder"); } @Override @@ -76,17 +76,17 @@ public class InstalledOverview extends HOverview { @Override public String title() { - return GEarth.translation.getString("ext.store.overview.title"); + return LanguageBundle.get("ext.store.overview.title"); } @Override public String description() { - return GEarth.translation.getString("ext.store.overview.description"); + return LanguageBundle.get("ext.store.overview.description"); } @Override public String contentTitle() { - return GEarth.translation.getString("ext.store.overview.contenttitle"); + return LanguageBundle.get("ext.store.overview.contenttitle"); } }; } diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/installed/StoreExtensionInstalledItem.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/installed/StoreExtensionInstalledItem.java index 7d54bd0..84cb3ff 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/installed/StoreExtensionInstalledItem.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/installed/StoreExtensionInstalledItem.java @@ -1,12 +1,12 @@ package gearth.services.internal_extensions.extensionstore.application.entities.installed; -import gearth.GEarth; import gearth.services.internal_extensions.extensionstore.GExtensionStore; import gearth.services.internal_extensions.extensionstore.application.GExtensionStoreController; import gearth.services.internal_extensions.extensionstore.application.WebUtils; import gearth.services.internal_extensions.extensionstore.application.entities.StoreExtensionItem; import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; import gearth.services.internal_extensions.extensionstore.tools.InstalledExtension; +import gearth.ui.translations.LanguageBundle; import org.apache.maven.artifact.versioning.ComparableVersion; public class StoreExtensionInstalledItem extends StoreExtensionItem { @@ -56,11 +56,11 @@ public class StoreExtensionInstalledItem extends StoreExtensionItem { .append("
") .append("
").append(WebUtils.escapeMessage(installedExtension.getName())).append("
") - .append("
").append(GEarth.translation.getString("ext.store.extension.notinstore")).append("
") + .append("
").append(LanguageBundle.get("ext.store.extension.notinstore")).append("
") .append("
") .append("
") - .append("
").append(GEarth.translation.getString("ext.store.extension.version")).append(": ").append(displayVersion()).append("
") + .append("
").append(LanguageBundle.get("ext.store.extension.version")).append(": ").append(displayVersion()).append("
") .append("
") .append("
") diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByDateOverview.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByDateOverview.java index ab321ae..acd0906 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByDateOverview.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByDateOverview.java @@ -1,12 +1,11 @@ package gearth.services.internal_extensions.extensionstore.application.entities.queriedoverviews; -import gearth.GEarth; import gearth.misc.OSValidator; -import gearth.services.internal_extensions.extensionstore.application.GExtensionStoreController; import gearth.services.internal_extensions.extensionstore.application.entities.HOverview; import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; import gearth.services.internal_extensions.extensionstore.repository.querying.ExtensionOrdering; +import gearth.ui.translations.LanguageBundle; import java.util.Collections; import java.util.List; @@ -33,17 +32,17 @@ public class ByDateOverview extends QueriedExtensionOverview { @Override public String title() { - return GEarth.translation.getString("ext.store.search.ordering.bydate.title"); + return LanguageBundle.get("ext.store.search.ordering.bydate.title"); } @Override public String description() { - return GEarth.translation.getString("ext.store.search.ordering.bydate.description"); + return LanguageBundle.get("ext.store.search.ordering.bydate.description"); } @Override public String contentTitle() { - return GEarth.translation.getString("ext.store.search.ordering.bydate.contenttitle"); + return LanguageBundle.get("ext.store.search.ordering.bydate.contenttitle"); } }; } diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByRatingOverview.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByRatingOverview.java index fa3f9e1..de8d8d9 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByRatingOverview.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByRatingOverview.java @@ -1,12 +1,11 @@ package gearth.services.internal_extensions.extensionstore.application.entities.queriedoverviews; -import gearth.GEarth; import gearth.misc.OSValidator; -import gearth.services.internal_extensions.extensionstore.application.GExtensionStoreController; import gearth.services.internal_extensions.extensionstore.application.entities.HOverview; import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; import gearth.services.internal_extensions.extensionstore.repository.querying.ExtensionOrdering; +import gearth.ui.translations.LanguageBundle; import java.util.Collections; import java.util.List; @@ -33,17 +32,17 @@ public class ByRatingOverview extends QueriedExtensionOverview { @Override public String title() { - return GEarth.translation.getString("ext.store.search.ordering.byrating.title"); + return LanguageBundle.get("ext.store.search.ordering.byrating.title"); } @Override public String description() { - return GEarth.translation.getString("ext.store.search.ordering.byrating.description"); + return LanguageBundle.get("ext.store.search.ordering.byrating.description"); } @Override public String contentTitle() { - return GEarth.translation.getString("ext.store.search.ordering.byrating.contenttitle"); + return LanguageBundle.get("ext.store.search.ordering.byrating.contenttitle"); } }; } diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByUpdateOverview.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByUpdateOverview.java index 83629ec..cb87d34 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByUpdateOverview.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/ByUpdateOverview.java @@ -1,11 +1,11 @@ package gearth.services.internal_extensions.extensionstore.application.entities.queriedoverviews; -import gearth.GEarth; import gearth.misc.OSValidator; import gearth.services.internal_extensions.extensionstore.application.entities.HOverview; import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; import gearth.services.internal_extensions.extensionstore.repository.querying.ExtensionOrdering; +import gearth.ui.translations.LanguageBundle; import java.util.Collections; import java.util.List; @@ -32,17 +32,17 @@ public class ByUpdateOverview extends QueriedExtensionOverview { @Override public String title() { - return GEarth.translation.getString("ext.store.search.ordering.byupdate.title"); + return LanguageBundle.get("ext.store.search.ordering.byupdate.title"); } @Override public String description() { - return GEarth.translation.getString("ext.store.search.ordering.byupdate.description"); + return LanguageBundle.get("ext.store.search.ordering.byupdate.description"); } @Override public String contentTitle() { - return GEarth.translation.getString("ext.store.search.ordering.byupdate.contenttitle"); + return LanguageBundle.get("ext.store.search.ordering.byupdate.contenttitle"); } }; } diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/CategorizedOverview.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/CategorizedOverview.java index 3f1b695..3829d6c 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/CategorizedOverview.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/CategorizedOverview.java @@ -1,13 +1,12 @@ package gearth.services.internal_extensions.extensionstore.application.entities.queriedoverviews; -import gearth.GEarth; import gearth.misc.OSValidator; -import gearth.services.internal_extensions.extensionstore.application.WebUtils; import gearth.services.internal_extensions.extensionstore.application.entities.HOverview; import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.models.ExtCategory; import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; import gearth.services.internal_extensions.extensionstore.repository.querying.ExtensionOrdering; +import gearth.ui.translations.LanguageBundle; import java.util.Collections; import java.util.List; @@ -48,7 +47,7 @@ public class CategorizedOverview extends QueriedExtensionOverview { @Override public String contentTitle() { - return GEarth.translation.getString("ext.store.category") + ": " + category.getName(); + return LanguageBundle.get("ext.store.category") + ": " + category.getName(); } }; } diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/SearchedQueryOverview.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/SearchedQueryOverview.java index 2226602..cf951a9 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/SearchedQueryOverview.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/queriedoverviews/SearchedQueryOverview.java @@ -1,11 +1,11 @@ package gearth.services.internal_extensions.extensionstore.application.entities.queriedoverviews; -import gearth.GEarth; import gearth.misc.OSValidator; import gearth.services.internal_extensions.extensionstore.application.entities.HOverview; import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.models.StoreExtension; import gearth.services.internal_extensions.extensionstore.repository.querying.ExtensionOrdering; +import gearth.ui.translations.LanguageBundle; import java.util.Collections; import java.util.List; @@ -49,17 +49,17 @@ public class SearchedQueryOverview extends QueriedExtensionOverview { @Override public String title() { - return GEarth.translation.getString("ext.store.search.title"); + return LanguageBundle.get("ext.store.search.title"); } @Override public String description() { - return GEarth.translation.getString("ext.store.search.description"); + return LanguageBundle.get("ext.store.search.description"); } @Override public String contentTitle() { - return GEarth.translation.getString("ext.store.search.results"); + return LanguageBundle.get("ext.store.search.results"); } }; } diff --git a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/search/SearchComponent.java b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/search/SearchComponent.java index d50800f..a8f462f 100644 --- a/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/search/SearchComponent.java +++ b/G-Earth/src/main/java/gearth/services/internal_extensions/extensionstore/application/entities/search/SearchComponent.java @@ -6,6 +6,7 @@ import gearth.services.internal_extensions.extensionstore.application.GExtension import gearth.services.internal_extensions.extensionstore.application.entities.ContentItem; import gearth.services.internal_extensions.extensionstore.repository.StoreRepository; import gearth.services.internal_extensions.extensionstore.repository.querying.ExtensionOrdering; +import gearth.ui.translations.LanguageBundle; import netscape.javascript.JSObject; import java.util.ArrayList; @@ -93,13 +94,13 @@ public class SearchComponent implements ContentItem { .append("
") .append("
") - .append("") + .append("") .append(String.format("", searchKeyword, id)) .append("
") .append("
") - .append(""); + .append(""); // add ordering stuff htmlBuilder.append(String.format("