/** * @deprecated As of build 4512, replaced by {@link #getInstance() and #getString(String, String, * String, String, String, String)} */ @Deprecated public static String getSystemString( String key, String param1, String param2, String param3, String param4, String param5) { try { return GlobalMessageUtil.getString( getBundle(langChoice.getFailoverLocale(), buildBundleName(SYSTEM_BUNDLE_PACKAGE)), key, param1, param2, param3, param4, param5); } catch (MissingResourceException e) { try { return GlobalMessageUtil.getString( getBundle(langChoice.getFailoverLocale(), buildBundleName(SYSTEM_BUNDLE_PACKAGE)), key, param1, param2, param3, param4, param5); } catch (MissingResourceException fe) { LogWriter.getInstance() .logError("Internationalisation/Translation error", Const.getStackTracker(e)); return '!' + key + '!'; } } }
/** @deprecated As of build 4512, replaced by {@link #getInstance() and #getString(String)} */ @Deprecated public static String getSystemString(String key) { try { return GlobalMessageUtil.getString( getBundle(langChoice.getDefaultLocale(), buildBundleName(SYSTEM_BUNDLE_PACKAGE)), key); } catch (MissingResourceException e) { try { return GlobalMessageUtil.getString( getBundle(langChoice.getFailoverLocale(), buildBundleName(SYSTEM_BUNDLE_PACKAGE)), key); } catch (MissingResourceException fe) { LogWriter.getInstance() .logError("Internationalisation/Translation error", Const.getStackTracker(e)); return '!' + key + '!'; } } /* try { ResourceBundle bundle = getBundle(langChoice.getDefaultLocale(), buildBundleName(SYSTEM_BUNDLE_PACKAGE)); return bundle.getString(key); } catch (MissingResourceException e) { // OK, try to find the key in the alternate failover locale try { ResourceBundle bundle = getBundle(langChoice.getFailoverLocale(), buildBundleName(SYSTEM_BUNDLE_PACKAGE)); return bundle.getString(key); } catch (MissingResourceException fe) { LogWriter.getInstance().logError("Internationalisation/Translation error", Const.getStackTracker(e)); return '!' + key + '!'; } } */ }