1 package net.sourceforge.phpeclipse.phpmanual;
4 //import java.text.MessageFormat;
5 import java.util.MissingResourceException;
6 import java.util.ResourceBundle;
8 public class PHPManualUiMessages {
10 private static final String BUNDLE_NAME = PHPManualUiMessages.class
13 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
14 .getBundle(BUNDLE_NAME);
16 private PHPManualUiMessages() {
19 public static String getString(String key) {
21 return RESOURCE_BUNDLE.getString(key);
22 } catch (MissingResourceException e) {
23 return '!' + key + '!';
27 // public static String getFormattedString(String key, Object arg) {
28 // return MessageFormat.format(getString(key), new Object[] { arg });
31 // public static String getFormattedString(String key, Object[] args) {
32 // return MessageFormat.format(getString(key), args);