/** Returns common I18N bundle. If current bundle is null, a default bundle is set and returned */ public static I18NBundle getCommonBundle () { if (commonBundle == null) commonBundle = getBundle("com/kotcrab/vis/ui/i18n/Common"); return commonBundle; }
private static I18NBundle getBundle () { return Locales.getColorPickerBundle(); }
private static I18NBundle getBundle () { return Locales.getCommonBundle(); }
@Override public void run() { Locale locale = localeService.getCurrentLocale(); Locales.setButtonBarBundle(I18NBundle.createBundle(Gdx.files.internal("i18n/visui/buttonbar"), locale)); Locales.setColorPickerBundle(I18NBundle.createBundle(Gdx.files.internal("i18n/visui/colorpicker"), locale)); Locales.setDialogsBundle(I18NBundle.createBundle(Gdx.files.internal("i18n/visui/dialogs"), locale)); Locales.setFileChooserBundle(I18NBundle.createBundle(Gdx.files.internal("i18n/visui/filechooser"), locale)); Locales.setTabbedPaneBundle(I18NBundle.createBundle(Gdx.files.internal("i18n/visui/tabbedpane"), locale)); } });
private static I18NBundle getBundle () { return Locales.getTabbedPaneBundle(); }
private static I18NBundle getBundle () { return Locales.getDialogsBundle(); }
private static I18NBundle getBundle () { return Locales.getFileChooserBundle(); }
public final String getText () { return Locales.getButtonBarBundle().get(key); }
/** Returns I18N bundle used by {@link ColorPicker}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getColorPickerBundle () { if (colorPickerBundle == null) colorPickerBundle = getBundle("com/kotcrab/vis/ui/i18n/ColorPicker"); return colorPickerBundle; }
/** Returns I18N bundle used by {@link TabbedPane}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getTabbedPaneBundle () { if (tabbedPaneBundle == null) tabbedPaneBundle = getBundle("com/kotcrab/vis/ui/i18n/TabbedPane"); return tabbedPaneBundle; }
/** Returns I18N bundle used by {@link FileChooser}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getFileChooserBundle () { if (fileChooserBundle == null) fileChooserBundle = getBundle("com/kotcrab/vis/ui/i18n/FileChooser"); return fileChooserBundle; }
/** Returns I18N bundle used by {@link ButtonBar}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getButtonBarBundle () { if (buttonBarBundle == null) buttonBarBundle = getBundle("com/kotcrab/vis/ui/i18n/ButtonBar"); return buttonBarBundle; }
/** Returns I18N bundle used by {@link Dialogs}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getDialogsBundle () { if (dialogsBundle == null) dialogsBundle = getBundle("com/kotcrab/vis/ui/i18n/Dialogs"); return dialogsBundle; }