Liferay portlet adding properties contains translations without redeploy -
i want create , save file language_mylang.properties contains translations on line. when it, liferay doesn't see changes , uses default language .properties file. problem disappeares after restart liferay (redeploy portlet). know how add own properties file , achieve liferay see it, without redeploy ?
regards
if stick properties files, redeployment feature of app server: doesn't pick changes files you're changing in running system without redeploy. jsps 1 noteable difference, shouldn't rely on feature available in production systems: it's rather development time feature.
that said, if want dynamically update liferay's translation, @ deployment processes or try com.liferay.portal.language.languageresources, though class not available plugins. can try access classloading magic (see com.liferay.portal.kernel.util.portalclassinvoker, prepare ugly code (e.g. it's reflection-like) dynamically update translation.
i'm sure there other possibilities (they might better), these first found.
Comments
Post a Comment