AS1/2 Add new frame script

This commit is contained in:
Jindra Petřík
2021-02-14 14:01:42 +01:00
parent 03f033035f
commit 21e4afa790
6 changed files with 215 additions and 1 deletions

View File

@@ -59,6 +59,10 @@ public abstract class AppDialog extends JDialog {
return resourceBundle.getString(key);
}
public static String translateForDialog(String key, Class cls) {
return ResourceBundle.getBundle(AppStrings.getResourcePath(cls)).getString(key);
}
public void updateLanguage() {
resourceBundle = ResourceBundle.getBundle(AppStrings.getResourcePath(getClass()));
}