Class TemplateLanguageProcessor

java.lang.Object
ch.autumo.beetroot.plant.TemplateLanguageProcessor

public class TemplateLanguageProcessor extends Object
Extract translatable text from templates. Note this overwrites existing templates and columns.cfg files in 'web/html' and template language translation files in 'web/lang/tmpl'. It always looks up these files in 'web'-folder, unless a specific folder is defined, which must point should a similar beetRoot web-folder structure.
  • Constructor Details

    • TemplateLanguageProcessor

      public TemplateLanguageProcessor()
  • Method Details

    • process

      public void process(String templateBaseDir, String templateLangBaseDir)
      Process.
      Parameters:
      templateBaseDir - HTML template base directory, usually 'web/', but if could be more specific if not all templates should be translated
      templateLangBaseDir - language template base directory, usually 'web/', reads 'lang/tmpl_lang_default.properties' from there.