<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Where to find documentation on this.msg() in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/where-to-find-documentation-on-this-msg/m-p/133822#M36036</link>
    <description>&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;This is something related to i18n. As far as I remember, you'll need to define your own show-custom-message.properties, which contains the definition of your own custom properties, something like e.g.:&lt;/P&gt;&lt;PRE&gt;alfresco.tutorials.doclib.action.showCustomMessage.text=Showing custom message for {0} and {1}
alfresco.tutorials.doclib.action.showCustomMessage.label=Show Message&lt;/PRE&gt;&lt;P&gt;Then from your development, you can access like this:&lt;/P&gt;&lt;PRE&gt;fn: function org_alfresco_training_onShowCustomMessage(file) {
                Alfresco.util.PopupManager.displayMessage(
                    {
                        text: this.msg("alfresco.tutorials.doclib.action.showCustomMessage.text",
                            file.displayName, Alfresco.constants.USERNAME)
                    });
            }&lt;/PRE&gt;&lt;P&gt;I think there's no specific documentation for this but you can find more info of these examples &lt;A href="https://docs.alfresco.com/content-services/5.2/tutorial/share/doclib/" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt; and &lt;A href="https://docs.alfresco.com/content-services/5.2/develop/share-ext-points/share-config/" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt;. You can find some documentation &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-hub/i18n/ba-p/291606" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt; as well.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cristina.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 09:44:39 GMT</pubDate>
    <dc:creator>cristinamr</dc:creator>
    <dc:date>2021-09-03T09:44:39Z</dc:date>
    <item>
      <title>Where to find documentation on this.msg()</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/where-to-find-documentation-on-this-msg/m-p/133821#M36035</link>
      <description>&lt;P&gt;In an Alfresco Share javascript file (my-tasks.js) they use this.msg() all over the place. I was wondering where I can find any documentation on this function. More specifically I would want to know how and where the labels are defined (and how to define custom ones).&lt;/P&gt;&lt;P&gt;Some examples:&lt;/P&gt;&lt;PRE&gt;this.msg("title.editTask");
this.msg("label.taskSummary);
this.msg("workflow.no_message");&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Sep 2021 07:55:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/where-to-find-documentation-on-this-msg/m-p/133821#M36035</guid>
      <dc:creator>kenneth-venken</dc:creator>
      <dc:date>2021-09-03T07:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Where to find documentation on this.msg()</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/where-to-find-documentation-on-this-msg/m-p/133822#M36036</link>
      <description>&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;This is something related to i18n. As far as I remember, you'll need to define your own show-custom-message.properties, which contains the definition of your own custom properties, something like e.g.:&lt;/P&gt;&lt;PRE&gt;alfresco.tutorials.doclib.action.showCustomMessage.text=Showing custom message for {0} and {1}
alfresco.tutorials.doclib.action.showCustomMessage.label=Show Message&lt;/PRE&gt;&lt;P&gt;Then from your development, you can access like this:&lt;/P&gt;&lt;PRE&gt;fn: function org_alfresco_training_onShowCustomMessage(file) {
                Alfresco.util.PopupManager.displayMessage(
                    {
                        text: this.msg("alfresco.tutorials.doclib.action.showCustomMessage.text",
                            file.displayName, Alfresco.constants.USERNAME)
                    });
            }&lt;/PRE&gt;&lt;P&gt;I think there's no specific documentation for this but you can find more info of these examples &lt;A href="https://docs.alfresco.com/content-services/5.2/tutorial/share/doclib/" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt; and &lt;A href="https://docs.alfresco.com/content-services/5.2/develop/share-ext-points/share-config/" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt;. You can find some documentation &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-hub/i18n/ba-p/291606" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt; as well.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cristina.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 09:44:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/where-to-find-documentation-on-this-msg/m-p/133822#M36036</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2021-09-03T09:44:39Z</dc:date>
    </item>
  </channel>
</rss>

