RE: OVERRIDING A MODULE’S LANGUAGE KEYS (LR 7.1) in calendar portlet

Miguel A C, modificado 7 Anos atrás. New Member Postagens: 3 Data de Entrada: 06/04/18 Postagens Recentes

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.

 

 

thumbnail
Jose Jimenez, modificado 7 Anos atrás. Regular Member Postagens: 176 Data de Entrada: 23/08/12 Postagens Recentes

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