<?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 Webscript internazionalizables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92865#M63516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to internationalize the web script using a resource bundle and tags JSP with freemarker. I probe that this option work correct in a application web with only freemarker (freemarker.jar) but when I aplied this solution to the webscript don't work properly, I think the freemarker .jar of alfresco it's different of the official freemarker. How can I internationalize the text in the template of webscript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 08:31:38 GMT</pubDate>
    <dc:creator>djimenez</dc:creator>
    <dc:date>2007-08-02T08:31:38Z</dc:date>
    <item>
      <title>Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92865#M63516</link>
      <description>Hello,I try to internationalize the web script using a resource bundle and tags JSP with freemarker. I probe that this option work correct in a application web with only freemarker (freemarker.jar) but when I aplied this solution to the webscript don't work properly, I think the freemarker .jar of a</description>
      <pubDate>Thu, 02 Aug 2007 08:31:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92865#M63516</guid>
      <dc:creator>djimenez</dc:creator>
      <dc:date>2007-08-02T08:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92866#M63517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you clarify?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you mean you've successfully used the message() method in a standalone freemarker template, but not when used in conjunction with a web script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use an official freemarker jar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 09:34:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92866#M63517</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-02T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92867#M63518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to internazionalize a webscript, How can I do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see in the freemarker documentation I see I can use jsp tag, in this case I probe use the FMT tag library and a language files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See this page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://freemarker.org/docs/pgui_misc_servlet.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.org/docs/pgui_misc_servlet.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In alfresco don't work this option because in the web.xml you have to define servlet and a maping to ftl extension. The webscripts don't have extension .ftl, then this servlet don't process the petition of webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched as internationalize freemarker and did't found other manner. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know how internationalize the webscript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank u.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 13:37:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92867#M63518</guid>
      <dc:creator>djimenez</dc:creator>
      <dc:date>2007-08-03T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92868#M63519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The page you refer to describes how to use Freemarker instead of JSP - which if setup correctly, injects JSP tag access into Freemarker templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco does not use this approach - instead it calls the Freemarker engine directly and therefore JSP tags are not accessible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Template_Guide#Methods" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Template_Guide#Methods&lt;/A&gt;&lt;SPAN&gt; (in particular the message() method which support I18N strings).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 14:09:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92868#M63519</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-03T14:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92869#M63520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. Now, I need to know How can I change the language (locale) through the webscript?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 12:18:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92869#M63520</guid>
      <dc:creator>djimenez</dc:creator>
      <dc:date>2007-08-08T12:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92870#M63521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you mean you want to change the locale in the script itself, or for the web&amp;nbsp; script to execute in a locale specified in the request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:59:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92870#M63521</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-08T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92871#M63522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Change the locale in the script itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank u.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 20:50:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92871#M63522</guid>
      <dc:creator>djimenez</dc:creator>
      <dc:date>2007-08-09T20:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92872#M63523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think we offer that right now.&amp;nbsp;&amp;nbsp; What are you trying to achieve?&amp;nbsp; Perhaps there's another way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 10:30:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92872#M63523</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-10T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92873#M63524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try show the webscript in different languages, I see that with Java you can change the language with the setLocale and setContentLocale methods of the I18NUtil class. I like to know if the webscript will have something like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank u.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 07:11:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92873#M63524</guid>
      <dc:creator>djimenez</dc:creator>
      <dc:date>2007-08-16T07:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript internazionalizables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92874#M63525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I still don't understand what you're trying to achieve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In most cases, you should not need to change the locale during your output rendering.&amp;nbsp; Instead the output rendering just relies on the locale set elsewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, in a freemarker template you use the message(String) method - see &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Template_Guide#Methods" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Template_Guide#Methods&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you execute your web script via the /wcservice url mapping, this should pick the locale of the web client user (i.e. the one they pick on the login screen).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 09:56:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-internazionalizables/m-p/92874#M63525</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-16T09:56:58Z</dc:date>
    </item>
  </channel>
</rss>

