Returns the localized message for the given message key

@param key
the message key
@return The localized message for the key
502409
public static String getString(String key)
    {
        if (RESOURCE_BUNDLE == null)
            throw new RuntimeException("Localized messages from resource bundle '" + BUNDLE_NAME + "' not loaded during initialization of driver.");

        try
        {
            if (key == null)
                throw new IllegalArgumentException("Message key can not be null");

            String message = RESOURCE_BUNDLE.getString(key);
            if (message == null)
                message = "Missing error message for key '" + key + "'";

            return message;
        }
        catch (MissingResourceException e)
        {
            return '!' + key + '!';
        }
    }
99414
public static String get(String key, Object... args) {
        try {
            String msg = MessageFormat.format(bundle.getString(key), args);
            if (REPLACE_LINESEP) {
                msg = msg.replace("\n", System.lineSeparator());
            }
            return msg;
        } catch (MissingResourceException e) {
            throw new InternalError("Missing message: " + key, e);
        }
    }
101556
@Override
    protected Object handleGetObject(String key) {
        try {
            return this.messageSource.getMessage(key, null, this.locale);
        } catch (NoSuchMessageException ex) {
            return null;
        }
    }
612967
public String getMessage(MyfacesLogKey key)
    {
        try
        {
            String name = key.name();
            return _log.getResourceBundle().getString(name);
        }
        catch (MissingResourceException mre)
        {
            return key.name();
        }
    }
389864
public String getLocalizedString(String key, Object... args) {
        return getLocalizedString(currentLocale, key, args);
    }
1076958
public String getString(String messageKey) {

		String retVal = messageKey;
		ResourceBundle rb = getResourceBundle();

		if (null != rb) {
			try {
				String tmpRetVal = rb.getString(messageKey);

				if (null != tmpRetVal) {
					retVal = tmpRetVal;
					// } else {
					// if (quiet) {
					//
					// logger.log(Level.FINEST,
					// "Cannot find message key {2}, in resource bundle {0} for locale {1}, will return the message key.",
					// new Object[] { ivBundleName, ivLocale.toString(),
					// messageKey });
					// if (logger.isLoggable(Level.FINEST)) {
					// logger.log(Level.FINEST, "stack trace is ", new
					// Exception());
					// }
					// }
				}

			} catch (MissingResourceException e) {
				// if (quiet) {
				//
				// logger.log(Level.FINEST,
				// "Cannot find message key {2}, in resource bundle {0} for locale {1}, due to exception {3}, will return the message key.",
				// new Object[] { ivBundleName, ivLocale.toString(), messageKey,
				// e });
				// }
			}
			// } else {
			// if (quiet) {
			//
			// // info so this can be fixed
			// logger.log(Level.FINEST,
			// "Cannot find message key {2}, in resource bundle {0} for locale {1}, will return the message key.",
			// new Object[] { ivBundleName, ivLocale.toString(), messageKey });
			// if (logger.isLoggable(Level.FINEST)) {
			// logger.log(Level.FINEST, "stack trace is ", new Exception());
			// }
			// }
		}

		return retVal;
	}
679603
public String getMessage(String key) {
		try {
			String overlayed = this.getOverlayMessage(key);
			if (!GeneralUtils.isEmpty(overlayed)) {
				return overlayed;
			}
			return this.bundle.getString(key);
		} catch (MissingResourceException ex) {
			return "???"+key+"???";
		}
	}
1070528
public String getMessage(String key, Object param)
    {
        return getMessage(key, new Object[]{param});
    }
772022
public static function getTranslation($key)
  {
    $_key = strtoupper($key);
    if ( isset(self::$translations[$_key]) ){
      return self::$translations[$_key];
    }
    
    return $key;
  }
671559
function get(key) {
  for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }

  var msg = MESSAGES[key];
  if (!msg) throw new ReferenceError("Unknown message " + JSON.stringify(key));

  // stringify args
  args = parseArgs(args);

  // replace $0 placeholders with args
  return msg.replace(/\$(\d+)/g, function (str, i) {
    return args[--i];
  });
}
1075321
protected final String getPackageMessage(String packageName, String key) {
    Option<TextBundle> bundle = registry.load(locale, packageName + ".package");
    return bundle.isDefined() ? bundle.get().getText(key) : null;
  }
855033
private String getDefaultMessage(String key) {
        if(_defaultResourceBundle == null)
            _defaultResourceBundle = createResourceBundle(DEFAULT_RESOURCE_BUNDLE);
        return _defaultResourceBundle.getString(key);
    }
607313
@Trivial
    public static final String getMessage(String key, Object... params) {
        return Tr.formatMessage(tc, key, params);
    }
834285
protected String getMessage(String key, Object... args) {

        return Messages.get().getBundle().key(key, args);
    }
1097212
public String getText(String key, Object... args) throws MissingResourceException {
        ResourceBundle bundle = initRB();
        String message = bundle.getString(key);
        return MessageFormat.format(message, args);
    }
320186
public static LocalCall<String> get(String key) {
        return new LocalCall<>(
            "config.get",
            Optional.of(Arrays.asList(key)),
            Optional.empty(),
            new TypeToken<String>() { });
    }
353561
String getResourceString(String key) {
        if (outputRB == null) {
            try {
                outputRB = ResourceBundle.getBundle(L10N_RB_NAME, locale);
            } catch (MissingResourceException mre) {
                error("Cannot find ResourceBundle: %s for locale: %s", L10N_RB_NAME, locale);
                return "";
            }
        }
        String s;
        try {
            s = outputRB.getString(key);
        } catch (MissingResourceException mre) {
            error("Missing resource: %s in %s", key, L10N_RB_NAME);
            return "";
        }
        return s;
    }