package org.minimalj.ubersetzung;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.ResourceBundle;

import org.minimalj.application.Application;
import org.minimalj.frontend.action.Action;
import org.minimalj.frontend.impl.swing.Swing;
import org.minimalj.frontend.page.PageAction;
import org.minimalj.ubersetzung.frontend.UbersetzungTablePage;
import org.minimalj.ubersetzung.model.Ubersetzung;

public class UbersetzungApplication extends Application {

	@Override
	public List<Action> getNavigation() {
		List<Action> actions = new ArrayList<>();
		actions.add(new PageAction(new UbersetzungTablePage()));
		return actions;
	}

	@Override
	public Class<?>[] getEntityClasses() {
		return new Class<?>[] { Ubersetzung.class };
	}

	@Override
	public ResourceBundle getResourceBundle(Locale locale) {
		return DynamicResources.getResourceBundle(locale);
	}
	
	public static void main(String[] args) {
		Swing.start(new UbersetzungApplication());
	}

}

@@ -446,16 +446,73 @@
 etzung;%0D
+%0Aimport org.minimalj.util.resources.MultiResourceBundle;%0D
 %0A%0D%0Apubli
@@ -933,58 +933,317 @@
 %0D%0A%09%09
-return DynamicResources.getResourceBundle(locale);
+ResourceBundle resourceBundle = super.getResourceBundle(locale);%0D%0A%09%09ResourceBundle dynamicResourceBundle = DynamicResources.getResourceBundle(locale);%0D%0A%09%09if (dynamicResourceBundle != null) %7B%0D%0A%09%09%09return new MultiResourceBundle(dynamicResourceBundle, resourceBundle);%0D%0A%09%09%7D else %7B%0D%0A%09%09%09return resourceBundle;%0D%0A%09%09%7D
 %0D%0A%09%7D

check for missing ResourceBundle