Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: OVERRIDING A MODULE’S LANGUAGE KEYS (LR 7.1) in calendar portlet
I'm following this tutorial https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-1/overriding-a-modules-language-keys
I'm stuck in the creation of the component, in "IMPLEMENT A RESOURCE BUNDLE LOADER".
I do not know where to create it. It's for the Calendar portlet.
Attachments:
Hi Miguel
Here you have a complete sample (just the same described in the dev.liferay.com) https://github.com/liferay/liferay-blade-samples/tree/master/gradle/overrides/resource-bundle-override
And this is the class, take in account it does not matter the name of the class, the important here is code inside, making reference to the module host whose translations will be "overwritten": https://github.com/liferay/liferay-blade-samples/blob/master/gradle/overrides/resource-bundle-override/src/main/java/com/liferay/blade/samples/hook/resourcebundle/ResourceBundleLoaderComponent.java
However it seems you want to overwrite a calendar key, if this is the case, you need to wait for the LPS-83494 fix because currently some translation in modules can not be overwritten.
Best regards,
Jose
Powered by Liferay™