Examples of localize()


Examples of com.sun.istack.localization.Localizer.localize()

        return null;
    }

    public String getMessage() {
        Localizer localizer = new Localizer();
        return localizer.localize(this);
    }

    /**
     * Gets the default resource bundle name for this kind of exception.
     * Used for {@link #JAXWSExceptionBase(String, Object[])}.
View Full Code Here

Examples of com.sun.tools.javac.util.Log.localize()

            if (j == recognizedOptions.length) {
                if (fileManager.handleOption(flag, flags)) {
                    continue;
                } else {
                    String msg = log.localize(PrefixKind.JAVAC, "err.invalid.flag", flag);
                    throw new IllegalArgumentException(msg);
                }
            }

            Option option = recognizedOptions[j];
View Full Code Here

Examples of com.sun.tools.javac.util.Log.localize()

            }

            Option option = recognizedOptions[j];
            if (option.hasArg()) {
                if (!flags.hasNext()) {
                    String msg = log.localize(PrefixKind.JAVAC, "err.req.arg", flag);
                    throw new IllegalArgumentException(msg);
                }
                String operand = flags.next();
                if (option.process(optionHelper, flag, operand))
                    // should not happen as the GrumpyHelper will throw exceptions
View Full Code Here

Examples of com.sun.xml.internal.ws.util.localization.Localizer.localize()

        return null;
    }

    public String getMessage() {
        Localizer localizer = new Localizer();
        return localizer.localize(this);
    }

    /**
     * Gets the default resource bundle name for this kind of exception.
     * Used for {@link #JAXWSExceptionBase(String, Object[])}.
View Full Code Here

Examples of com.sun.xml.ws.util.localization.Localizer.localize()

        return null;
    }

    public String getMessage() {
        Localizer localizer = new Localizer();
        return localizer.localize(this);
    }

    /**
     * Gets the default resource bundle name for this kind of exception.
     * Used for {@link #JAXWSExceptionBase(String, Object[])}.
View Full Code Here

Examples of de.odysseus.calyxo.forms.Checker.localize()

  Validator getValidator(CheckConfig config, Locale locale) {
    String key = getKey(config, locale);
    Validator validator = (Validator)validators.get(key);
    if (validator == null) {
      Checker checker = (Checker)create(config);
      checker.localize(locale);
      validator = new Validator.Check(config, checker);
      if (checker.isSharable()) {
        validators.put(key, validator);
      }
    }
View Full Code Here

Examples of de.odysseus.calyxo.forms.Converter.localize()

  Validator getValidator(ConvertConfig config, Locale locale) {
    String key = getKey(config, locale);
    Validator validator = (Validator)validators.get(key);
    if (validator == null) {
      Converter converter = (Converter)create(config);
      converter.localize(locale);
      validator = new Validator.Convert(config, converter);
      if (converter.isSharable()) {
        validators.put(key, validator);
      }
    }
View Full Code Here

Examples of de.odysseus.calyxo.forms.Matcher.localize()

  Validator getValidator(MatchConfig config, Locale locale) {
    String key = getKey(config, locale);
    Validator validator = (Validator)validators.get(key);
    if (validator == null) {
      Matcher matcher = (Matcher)create(config);
      matcher.localize(locale);
      validator = new Validator.Match(config, matcher);
      if (matcher.isSharable()) {
        validators.put(key, validator);
      }
    }
View Full Code Here

Examples of org.jboss.dashboard.LocaleManager.localize()

        String name = (String) nameI18nMap.get(l);
        if (name != null) return name;

        // Get name in default locale.
        LocaleManager lm = LocaleManager.lookup();
        name = (String) lm.localize(nameI18nMap);
        if (name != null) return name;

        // Use formatter to get the name.
        DataPropertyFormatter df = DataFormatterRegistry.lookup().getPropertyFormatter(id);
        if (df != null) return df.formatName(this, l);
View Full Code Here

Examples of org.jboss.dashboard.LocaleManager.localize()

     * Sample: Workspace de procesos > Tareas pendientes > Lista de tareas [id=13456]
     */
    public String getFullDescription() {
        LocaleManager localeManager = LocaleManager.lookup();
        StringBuffer buf = new StringBuffer();
        if (getSection() != null) buf.append(localeManager.localize(getSection().getWorkspace().getTitle())).append(" \u003E ");
        if (getSection() != null) buf.append(localeManager.localize(getSection().getTitle())).append(" \u003E ");
        if (getInstance() != null) buf.append(localeManager.localize(getInstance().getTitle())).append(" [id=").append(getPanelId()).append("]");
        return buf.toString();
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.