info.magnolia.i18nsystem.tools
Class GenerateTranslationFilesImpl
java.lang.Object
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, ...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenerateTranslationFilesImpl
public GenerateTranslationFilesImpl()
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.