More documentation.

This commit is contained in:
Jindra Petřík
2024-08-06 06:17:00 +02:00
parent 68954e714d
commit b57e38e387
286 changed files with 11752 additions and 3576 deletions

View File

@@ -19,17 +19,31 @@ package com.jpexs.decompiler.flash;
import java.util.ResourceBundle;
/**
*
* Application resources
* @author JPEXS
*/
public class AppResources {
/**
* Resource bundle
*/
private static final ResourceBundle resourceBundle = ResourceBundle.getBundle("com.jpexs.decompiler.flash.locales.AppResources");
/**
* Translates a key
* @param key The key
* @return The translated key
*/
public static String translate(String key) {
return resourceBundle.getString(key);
}
/**
* Translates a key from a bundle
* @param bundle The bundle
* @param key The key
* @return The translated key
*/
public static String translate(String bundle, String key) {
ResourceBundle b = ResourceBundle.getBundle(bundle);
return b.getString(key);