@Test public void testGetBundleNewUTF8() throws Exception { res = GlobalMessages.getBundle( Locale.JAPAN, "org/pentaho/di/i18n/messages/test_utf8_messages" ); assertEquals( "環境変数の選択", res.getString( "System.Dialog.SelectEnvironmentVar.Title" ) ); res = GlobalMessages.getBundle( Locale.CHINA, "org/pentaho/di/i18n/messages/test_utf8_messages" ); assertEquals( "选择一个环境变量", res.getString( "System.Dialog.SelectEnvironmentVar.Title" ) ); }
public static ResourceBundle getBundle( String packageName ) throws MissingResourceException { return getBundle( packageName, GlobalMessages.getInstance().getClass() ); }
GlobalMessages extends AbstractMessageHandler { public static ResourceBundle getBundle( String packageName ) throws MissingResourceException { return getBundle( packageName, GlobalMessages.getInstance().getClass() ); } }
GlobalMessages extends AbstractMessageHandler { public static ResourceBundle getBundle( String packageName ) throws MissingResourceException { return getBundle( packageName, GlobalMessages.getInstance().getClass() ); } GlobalMessages(); }
GlobalMessages extends AbstractMessageHandler { public static ResourceBundle getBundle( String packageName ) throws MissingResourceException { return getBundle( packageName, GlobalMessages.getInstance().getClass() ); } GlobalMessages(); static synchronized MessageHandler getInstance(); static synchronized Locale getLocale(); static synchronized void setLocale( Locale newLocale ); static ResourceBundle getBundle( String packageName ); static ResourceBundle getBundle( String packageName, Class<?> resourceClass ); static ResourceBundle getBundle( Locale locale, String packageName ); static ResourceBundle getBundle( Locale locale, String packageName, Class<?> resourceClass ); @Override String getString( String key ); @Override String getString( String packageName, String key ); @Override String getString( String packageName, String key, String... parameters ); @Override String getString( String packageName, String key, Class<?> resourceClass, String... parameters ); }
GlobalMessages extends AbstractMessageHandler { public static ResourceBundle getBundle( String packageName ) throws MissingResourceException { return getBundle( packageName, GlobalMessages.getInstance().getClass() ); } GlobalMessages(); static synchronized MessageHandler getInstance(); static synchronized Locale getLocale(); static synchronized void setLocale( Locale newLocale ); static ResourceBundle getBundle( String packageName ); static ResourceBundle getBundle( String packageName, Class<?> resourceClass ); static ResourceBundle getBundle( Locale locale, String packageName ); static ResourceBundle getBundle( Locale locale, String packageName, Class<?> resourceClass ); @Override String getString( String key ); @Override String getString( String packageName, String key ); @Override String getString( String packageName, String key, String... parameters ); @Override String getString( String packageName, String key, Class<?> resourceClass, String... parameters ); static final String[] localeCodes; static final String[] localeDescr; }