info.magnolia.i18nsystem.tools
Class GenerateTranslationFilesImpl

java.lang.Object
  extended by info.magnolia.i18nsystem.tools.GenerateTranslationFilesImpl

public class GenerateTranslationFilesImpl
extends Object

THIS IS A PROTOTYPE. Sample usage in Groovy:

 g = new info.magnolia.i18nsystem.tools.GenerateTranslationFilesImpl()
 manClass = info.magnolia.ui.api.app.registry.AppDescriptorRegistry.class
 man = info.magnolia.objectfactory.Components.getSingleton(manClass)

 apps = man.getAppDescriptors()
 apps.each { app -> res = g.generateFor(app,null,null); res.actions.each { println it.dump() }; println '' }
 
Tools could also (potentially) do: * manage bootstrap files (load objects off of them, modify them, ...) * inspect objects and report duplicate keys, unused keys, ...


Constructor Summary
GenerateTranslationFilesImpl()
           
 
Method Summary
 GeneratorResults generateFor(Locale locale, Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateTranslationFilesImpl

public GenerateTranslationFilesImpl()
Method Detail

generateFor

public GeneratorResults generateFor(Locale locale,
                                    Object o)
                             throws InvocationTargetException,
                                    IllegalAccessException
Parameters:
jcrPathForBootstrapFile - if the bootstrap file contains parent objects
Throws:
InvocationTargetException
IllegalAccessException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.