Package org.bladerunnerjs.plugin

Examples of org.bladerunnerjs.plugin.Locale


  }

  public void pageLoaded(StringBuffer pageResponse, String locale) throws ConfigException, IOException, ModelOperationException, NoTagHandlerFoundException, RequirePathException
  {
    StringWriter writer = new StringWriter()
    TagPluginUtility.filterContent(fileUtil.readFileToString(workbench.file("index.html")), workbench.getBundleSet(), writer, RequestMode.Dev, new Locale(locale), workbench.root().getAppVersionGenerator().getDevVersion());
    pageResponse.append(writer.toString());
  }
View Full Code Here


  public BuilderChainer hasSupportedLocales(String locales) throws ConfigException
  {
    List<Locale> createdLocales = new ArrayList<Locale>();
    for (String locale : locales.split(",")) {
      createdLocales.add( new Locale(locale) );
    }
    app.appConf().setLocales( createdLocales.toArray(new Locale[0]) );
    app.appConf().write();
   
    return builderChainer;
View Full Code Here

  }
 
  public CommanderChainer indexPageLoadedInDev(final StringBuffer pageResponse, final String locale) throws ConfigException, IOException, ModelOperationException, NoTagHandlerFoundException {
    call(new Command() {
      public void call() throws Exception {
        pageLoaded(pageResponse, new Locale(locale), RequestMode.Dev);
      }
    });
   
    return commanderChainer;
  }
View Full Code Here

  }

  public CommanderChainer indexPageLoadedInProd(final StringBuffer pageResponse, final String locale) throws ConfigException, IOException, ModelOperationException, NoTagHandlerFoundException {
    call(new Command() {
      public void call() throws Exception {
        pageLoaded(pageResponse, new Locale(locale), RequestMode.Prod);
      }
    });
   
    return commanderChainer;
  }
View Full Code Here

  }
 
  public BuilderChainer supportsLocales(String... locales) throws Exception {
    List<Locale> createdLocales = new ArrayList<Locale>();
    for (String locale : locales) {
      createdLocales.add( new Locale(locale) );
    }
    appConf.setLocales( createdLocales.toArray(new Locale[0]) );
    appConf.write();
   
    return builderChainer;
View Full Code Here

 
  public Locale[] getLocales() throws ConfigException {
    String[] localeStrings = getConf().locales.split("\\s*,\\s*");
    Locale[] locales = new Locale[localeStrings.length];
    for (int i = 0; i < localeStrings.length; i++) {
      locales[i] = new Locale(localeStrings[i]);
    }
    return locales;
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.plugin.Locale

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.