Language Module-Tutorial not workingLanguage Module-Tutorial not workinghttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=839535832024-03-29T11:11:00Z2024-03-29T11:11:00ZRE: Language Module-Tutorial not workingJim Hinkeyhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1060267412018-03-30T14:21:53Z2018-03-30T14:21:53ZYou're welcome Zarko. So glad you found success!<br /><br />JimJim Hinkey2018-03-30T14:21:53ZRE: Language Module-Tutorial not workingZarko Ajdukovichttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1060149482018-03-30T07:36:26Z2018-03-30T07:36:26ZHi Jim, Hi James,<br /><br />thank you very much for your aswer - it works!<br />You guys are the best, thank you.<br /><br />ZarkoZarko Ajdukovic2018-03-30T07:36:26ZRE: Language Module-Tutorial not workingDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1059440552018-03-28T17:57:22Z2018-03-28T17:57:22ZYep, James is right.<br /><br />You can add the BND-ish directives to liferay-plugin-package.properties and, during the WAR->WAB conversion, will be added to your OSGi bundle manifest.David H Nebinger2018-03-28T17:57:22ZRE: Language Module-Tutorial not workingJim Hinkeyhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1059453322018-03-28T17:48:35Z2018-03-28T17:48:35ZHi Zarko,<br /><br />I *think* specifying the same header in your Spring portlet's liferay-plugin-package.properties file does the same thing. I'm confirming that with the subject matter expert.<br /><br />JimJim Hinkey2018-03-28T17:48:35ZRE: Language Module-Tutorial not workingZarko Ajdukovichttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1059154022018-03-28T07:50:24Z2018-03-28T07:50:24ZHi James,<br /><br />Thank you for your quick answer.<br />Thanks to the documentation link that you provided me with, I have managed to get it working.<br />Now I have another question related to this one.<br />Now that I have my language module working for all liferay modules, <br />what would be the best and the easiest way to share this module with the spring-portlets that are in the same workspace as well.<br /><br />Thanks,<br />ZarkoZarko Ajdukovic2018-03-28T07:50:24ZRE: Language Module-Tutorial not workingJim Hinkeyhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1058786912018-03-27T14:11:35Z2018-03-27T14:11:35ZHi Zarko,<br /><br />Thank you for bringing up the issue you're facing. There is much easier way to use language modules in your current module. <br /><br />The <em>shared-language-keys</em> liferay-blade-sample demonstrates using the <em>-liferay-aggregate-resource-bundles</em> manifest header to aggregate language keys from multiple modules for the current module to use. <br /><br />The sample reference article is here: <a href="https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/shared-language-keys">https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/shared-language-keys<br /></a><br />I've created <a href="https://issues.liferay.com/browse/LRDOCS-5085">https://issues.liferay.com/browse/LRDOCS-5085</a> for updating the current documentation. <br /><br />Thank you for reporting the issue.<br />JimJim Hinkey2018-03-27T14:11:35ZRE: Language Module-Tutorial not workingZarko Ajdukovichttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1058765482018-03-27T13:11:35Z2018-03-27T13:11:35ZHi James,<br />I would just be very grateful if you could let me know if the tutorial is already updated, because I am trying to make it work exactly like it was stated in it, but without success.<br />Could you please, let me know if this <a href="https://issues.liferay.com/browse/LRDOCS-3490">issue </a>may be related to this problem, as it is still open.<br />I am running the Liferay Community Edition Portal 7.0.4 GA5 (Wilberforce / Build 7004 / October 23, 2017)<br /><br />Thank you very much,<br />ZarkoZarko Ajdukovic2018-03-27T13:11:35ZRE: Language Module-Tutorial not workingJim Hinkeyhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=856188582017-02-04T12:37:03Z2017-02-04T12:37:03ZHi Julian,<br /><br />Thank you for your constructive feedback. We're stepping up our efforts to make sure tutorials are correct and that their steps are comprehensive. This tutorial slipped through the cracks and wasn't updated per the new steps for sharing language keys. Once we've completed reviewing the changes, we'll publish them to the tutorial. <br /><br />Here's content from the drafted changes:<br /><br /><strong>Using a Language Module</strong><br /><a href="http://blog.osgi.org/2015/12/using-requirements-and-capabilities.html">OSGi requirement and provision contracts</a> allow you to use language modules in other modules. <em>Requirements </em>are capabilities a module needs from another module. <em>Provisions </em>are services a module offers.<br /><br />Your web modules require the language module's resource bundle services. To use the language module's resource bundle along with Liferay Portal core's, each web module must inform Liferay Portal that it's aggregating them.<br /><br /><em>Integrate the language module:</em><br /><br />1. In the web module's bnd.bnd file, add a Require-Capability header that filters on the language module's resource bundle. For example, if the module's bundle symbolic name is com.liferay.my.editor.lang, you'd specify this header:<br /><br />Require-Capability: liferay.resource.bundle;filter:="(bundle.symbolic.name=com.liferay.my.editor.lang)"<br /><br />2. Add a Provide-Capability header that declares you're aggregating the language module's resource bundle with Liferay Portal core's resource bundle:<br /><br />Provide-Capability: liferay.resource.bundle;resource.bundle.aggregate:String="(bundle.symbolic.name=com.liferay.my.editor.lang)";resource.bundle.base.name="content.Language"<br /><br />Now your web module is using localized language keys from the language module and Liferay Portal core.Jim Hinkey2017-02-04T12:37:03ZRE: Language Module-Tutorial not workingJulian Pfeilhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=840114142016-12-21T18:02:50Z2016-12-21T18:02:50Z<div class="quote-title">James Hinkey:</div><blockquote>Hi Julian,<br /><br />Thank you for bringing this issue to our attention. We're investigating it and will resolve it shortly.<br /><br />It's tracked to this issue: https://issues.liferay.com/browse/LRDOCS-3235<br /><br />Thank you for your patience and sorry for any inconvenience.<br /><br />Jim</blockquote><br /><br />Hey Jim,<br /><br />thank you for the fast response. <br /><br />This post's issue is, that the <strong>tutorial </strong>is missing the (kinda crucial) information, that one has to create a resource bundle component in order to make the language properties accessible (at least that's what Abhishek Suthar's answer suggests - and after trying though it works somewhat).<br />I don't know wether the tutorials are written by "Liferay-People" or all of the community, but the more and more i work with the tutorials, i sadly get the impression that people are highly motivated to write tutorials (which is very nice) but they seem not try those tutorial steps themselves and thus don't realize that information required to reproduce the tutorial steps are missing. This makes it really hard to get things right and makes people wait around in the forum before they can be productive (at least in my case - i know that some of my questions are really silly, but by asking them i hopefully help others, that come across those issues, too).<br /><br />Kind Regards,<br />JulianJulian Pfeil2016-12-21T18:02:50ZRE: Language Module-Tutorial not workingJim Hinkeyhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=840052342016-12-21T16:09:45Z2016-12-21T16:09:45ZHi Julian,<br /><br />Thank you for bringing this issue to our attention. We're investigating it and will resolve it shortly.<br /><br />It's tracked to this issue: https://issues.liferay.com/browse/LRDOCS-3235<br /><br />Thank you for your patience and sorry for any inconvenience.<br /><br />JimJim Hinkey2016-12-21T16:09:45ZLanguage Module-Tutorial not workingJulian Pfeilhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=839535822016-12-20T14:19:27Z2016-12-20T14:19:27Z