Custom language keys in Liferay 7 fragmentCustom language keys in Liferay 7 fragmenthttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=868265532024-03-29T14:56:58Z2024-03-29T14:56:58ZRE: Custom language keys in Liferay 7 fragmentMeszaros Csabahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=870063372017-03-10T14:49:24Z2017-03-10T14:49:24Z<html><head></head><body>I managed to solve the problem thank you: I modified some things for my needs:<br>1. I made a module with custom name minthaka.registration.resource , and the bnd.bnd file looks like:<br><pre><code>
Bundle-Name: minthaka.registration.resource
Bundle-SymbolicName: minthaka.registration.resource
Bundle-Version: 1.0.0
</code></pre><br>And practically it works nearly OK. Just as it does in your example. There's another issue with this, but I am going to open another topic for that separatelly.</body></html>Meszaros Csaba2017-03-10T14:49:24ZRE: Custom language keys in Liferay 7 fragmentMeszaros Csabahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=869023882017-03-08T12:44:52Z2017-03-08T12:44:52Z<html><head></head><body>There are several unclear things:<br><pre><code>
@Component(
immediate = true,
property = {
"bundle.symbolic.name=com.liferay.login.web",
"resource.bundle.base.name=content.Language",
"servlet.context.name=login-web"
}
)
public class LoginResourceBundleLoader implements ResourceBundleLoader {...
</code></pre><br>Where does this servlet.context.name=login-web come from?<br>Then,<br><pre><code>
Bundle-SymbolicName: com.liferay.login.web.fragment
Bundle-Version: 1.0.0
Fragment-Host: com.liferay.login.web;bundle-version="1.0.7"
Web-ContextPath = /login-web-fragment
</code></pre><br>This Web-ContextPath = /login-web-fragment, how do you know that this is correct?<br><br>And finally: can we have other bundle package names other than: com.liferay.login.web.resource ?<br><br>This OSGi way is a bit a woodoo-magic for me.</body></html>Meszaros Csaba2017-03-08T12:44:52ZRE: Custom language keys in Liferay 7 fragmentMeszaros Csabahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=869023422017-03-08T12:32:41Z2017-03-08T12:32:41Z<div class="quote-title">Jamie Sammons:</div><blockquote>Hello, you can find a sample here for Liferay 7 CE GA3: <a href="https://github.com/sammonsjl/liferay-samples-workspace/tree/master/modules">https://github.com/sammonsjl/liferay-samples-workspace/tree/master/modules</a><br /><br />Be sure to refresh the original login module (<strong>refresh <module id></strong> from the Gogo shell) after you deploy the fragment and resource modules. If that doesn't work you may have to stop the Liferay bundle, delete osgi/state and restart the Liferay bundle.</blockquote><br /><br />Unfortunatelly it doesn't work. <br />I made a new module project with resource bundle loader class and Language.properties file. I couldn't find the compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1" dependency as well, so I left with version 2.5<br />the module i made is called hu-registration-resource, and basically everything else is the same as with your example, but the hu-registration-fragment module doesn't recognize the newly added custom string from the hu-registration-resource.Meszaros Csaba2017-03-08T12:32:41ZRE: Custom language keys in Liferay 7 fragmentMeszaros Csabahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=868529502017-03-07T10:22:29Z2017-03-07T10:22:29ZThank you, I will try it!Meszaros Csaba2017-03-07T10:22:29ZRE: Custom language keys in Liferay 7 fragmentJamie Sammonshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=868341572017-03-06T20:47:48Z2017-03-06T20:47:48ZHello, you can find a sample here for Liferay 7 CE GA3: <a href="https://github.com/sammonsjl/liferay-samples-workspace/tree/master/modules">https://github.com/sammonsjl/liferay-samples-workspace/tree/master/modules</a><br /><br />Be sure to refresh the original login module (<strong>refresh <module id></strong> from the Gogo shell) after you deploy the fragment and resource modules. If that doesn't work you may have to stop the Liferay bundle, delete osgi/state and restart the Liferay bundle.Jamie Sammons2017-03-06T20:47:48ZCustom language keys in Liferay 7 fragmentMeszaros Csabahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=868265522017-03-06T16:14:15Z2017-03-06T16:14:15ZHi. I need a detailed so