public class GenerateTranslationFilesImpl extends Object
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 and Description |
---|
GenerateTranslationFilesImpl() |
public GeneratorResults generateFor(Locale locale, Object o) throws InvocationTargetException, IllegalAccessException
jcrPathForBootstrapFile
- if the bootstrap file contains parent objectsInvocationTargetException
IllegalAccessException
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.