Package org.pentaho.cdf.localization

Examples of org.pentaho.cdf.localization.MessageBundlesHelper


    // Merge dashboard related message file with global message file and save it in the dashboard cache
    String path = StringUtils.defaultIfEmpty( FilenameUtils.getPathNoEndSeparator( dashboardTemplateFile.getPath() ),
      CdfEngine.getEnvironment().getCdfPluginRepositoryDir() );
    path = !path.startsWith( String.valueOf( RepositoryHelper.SEPARATOR ) ) ? RepositoryHelper.SEPARATOR + path : path;

    MessageBundlesHelper mbh =
      new MessageBundlesHelper( path, dashboardsMessagesBaseFilename );

    intro = replaceIntroParameters( intro, mbh, i18nTagsList, dashboardsMessagesBaseFilename );

    /*
     * Add cdf libraries
View Full Code Here


        is.close();
        dashboardContent = sb.toString();

        String messageSetPath = null;
        // Merge dashboard related message file with global message file and save it in the dashboard cache
        MessageBundlesHelper mbh = new MessageBundlesHelper(solution, path, dashboardsMessagesBaseFilename);
        mbh.saveI18NMessageFilesToCache();
        messageSetPath = mbh.getMessageFilesCacheUrl() + "/";

        // If dashboard specific files aren't specified set message filename in cache to the global messages file filename
        if (dashboardsMessagesBaseFilename == null) {
            dashboardsMessagesBaseFilename = CdfConstants.BASE_GLOBAL_MESSAGE_SET_FILENAME;
        }
View Full Code Here

TOP

Related Classes of org.pentaho.cdf.localization.MessageBundlesHelper

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.