mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 02:44:50 +00:00
broken merge
This commit is contained in:
1
.idea/resourceBundles.xml
generated
1
.idea/resourceBundles.xml
generated
@@ -18,6 +18,7 @@
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/resources/assets/localization/localization_ka.properties" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/resources/assets/localization/localization_ko.properties" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/resources/assets/localization/localization_nl.properties" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/resources/assets/localization/localization_ru.properties" />
|
||||
<file url="file://$PROJECT_DIR$/app/src/main/resources/assets/localization/localization_zh.properties" />
|
||||
<custom-resource-bundle>
|
||||
<file value="file://$PROJECT_DIR$/app/src/main/resources/assets/localization/Localization_de.properties" />
|
||||
|
||||
@@ -4,8 +4,6 @@ import org.toop.app.App;
|
||||
import org.toop.app.layer.Container;
|
||||
import org.toop.app.layer.Layer;
|
||||
import org.toop.app.layer.containers.VerticalContainer;
|
||||
import org.toop.framework.asset.ResourceManager;
|
||||
import org.toop.framework.asset.resources.LocalizationAsset;
|
||||
import org.toop.framework.asset.resources.SettingsAsset;
|
||||
import org.toop.framework.audio.events.AudioEvents;
|
||||
import org.toop.framework.eventbus.EventFlow;
|
||||
@@ -18,9 +16,6 @@ import org.toop.local.AppSettings;
|
||||
import java.util.Locale;
|
||||
|
||||
public final class OptionsLayer extends Layer {
|
||||
private Locale currentLocale = AppContext.getLocale();
|
||||
private LocalizationAsset locale = ResourceManager.get("localization");
|
||||
|
||||
AppSettings appSettings = new AppSettings();
|
||||
SettingsAsset settings = appSettings.getPath();
|
||||
|
||||
@@ -69,10 +64,6 @@ public final class OptionsLayer extends Layer {
|
||||
}
|
||||
|
||||
AppContext.setLocale(locale);
|
||||
|
||||
this.currentLocale = AppContext.getLocale();
|
||||
this.locale = ResourceManager.get("localization");
|
||||
|
||||
App.reloadAll();
|
||||
});
|
||||
|
||||
@@ -93,7 +84,6 @@ public final class OptionsLayer extends Layer {
|
||||
});
|
||||
|
||||
languageBox.setValue(AppContext.getLocale());
|
||||
languageBox.setValue(currentLocale);
|
||||
}
|
||||
|
||||
private void addVolumeSlider(Container container) {
|
||||
|
||||
Reference in New Issue
Block a user