Package com.google.sitebricks.i18n

Examples of com.google.sitebricks.i18n.ResourceBundle


    @Override
    public void render(Object bound, Respond respond) {
        if (!respond.getErrors().isEmpty()) {
            Localizer.Localization localization = null;
            ResourceBundle resourceBundle = bound.getClass().getAnnotation(ResourceBundle.class);
            if (resourceBundle != null) {
                Map<Locale, Localizer.Localization> localizerMap = localizationsMap.get(resourceBundle.value());
                if (localizerMap != null) {
                    localization = localizerMap.get(locale);
                }
                if (localization == null) {
                    localization = Localizer.defaultLocalizationFor(resourceBundle.value());
                }
            }
            respond.write("<div class=\"errors\">");
            respond.write("<ul>");
            for (String errorKey : respond.getErrors()) {
View Full Code Here

TOP

Related Classes of com.google.sitebricks.i18n.ResourceBundle

Copyright © 2018 www.massapicom. 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.