Package com.adito.language

Examples of com.adito.language.Language


    protected void activateCore() throws ServletException {

        // Add the default language definition
        LanguagePackDefinition pdef = new LanguagePackDefinition(null, "core");
        pdef.addLanguage(new Language(null, "en", "English"));
        LanguagePackManager.getInstance().addLanguagePackDefinition(pdef);

        // now the databases are registered we need a userdatabase setup so the
        // process can proceed.
        bootProgressMonitor.updateMessage("Initialising user database");
View Full Code Here


                    String description = Util.trimmedBothOrBlank(el.getText());
                    if (Util.isNullOrTrimmedBlank(description)) {
                        throw new ExtensionException(ExtensionException.FAILED_TO_PROCESS_DESCRIPTOR,
                            "The content of the <language> must contain the description of the language in the pack.");
                    }
                    packDefinition.addLanguage(new Language(packDefinition, code, description));
                } else {
                    throw new ExtensionException(ExtensionException.FAILED_TO_PROCESS_DESCRIPTOR,
                        "The <language> element only supports the nested <classpath> elements");
                }
            }
View Full Code Here

TOP

Related Classes of com.adito.language.Language

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.