<?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>Question Re: Localization for webpages build using SAP UI5 in SAP MII. in Product Lifecycle Management Q&amp;A</title>
    <link>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624475#M60465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the HTML body the localization syntax will work as you mentioned but it will not work in the "Script" section of your page.&amp;nbsp; For this you have to set the localization value in a hidden text field on the page in the body of your HTML and then reference this field via the JS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree there should be a localization function for the i5 objects, please report this feature request via a CSN ticket.&amp;nbsp; Please reference this thread in the ticket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a related side note, if you use JSP you can use the following on your web page to call the localization method directly; here's a page snippet:&lt;/P&gt;&lt;P&gt;&amp;lt;%@ page language="java" %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%@ taglib uri="/tlt" prefix="tlt" %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Localization Using JSP&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;h2&amp;gt;Demo Localization JSP&amp;lt;/h2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hi &amp;lt;tlt:localize key="Name"/&amp;gt;, &amp;lt;tlt:localize key="Greeting"/&amp;gt; !!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;tlt:localize key="Language"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 13:57:43 GMT</pubDate>
    <dc:creator>salvatore_castro</dc:creator>
    <dc:date>2014-09-30T13:57:43Z</dc:date>
    <item>
      <title>Localization for webpages build using SAP UI5 in SAP MII.</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaq-p/10624472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have build a web application using SAP UI5 as fontend in SAP MII.&lt;SPAN style="font-size: 10pt;"&gt;I want to implement the localization for my web application&amp;nbsp; the way it is implemented in SAP MII.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, localization can be using SAPUI5, create i18n.properties files for different languages. But, SAP MII localization usage provide benifits that a non technical person can be giving access and he can create/change the key values pairs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a lot to implement using SAP MII methods, but all failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 15:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaq-p/10624472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-29T15:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Localization for webpages build using SAP UI5 in SAP MII.</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624473#M60463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On your page, if you use the extension .irpt, you can use the syntax of {##LocalizationKey} in the HTML which will return the localized value for your logged in user.&amp;nbsp; Details are outlined here in the help documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_mii150sp00/helpdata/en/4c/8c1960f2bd60c8e10000000a15822d/frameset.htm" title="http://help.sap.com/saphelp_mii150sp00/helpdata/en/4c/8c1960f2bd60c8e10000000a15822d/frameset.htm"&gt;SAP Library - MII Visualization Services&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624473#M60463</guid>
      <dc:creator>salvatore_castro</dc:creator>
      <dc:date>2014-09-29T16:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Localization for webpages build using SAP UI5 in SAP MII.</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624474#M60464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In normal MII, using below mentioned code works,&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt;{##Header}&amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="button" value={##BTN_Click} onclick="load()"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in SAP UI5(code below), using ## Key notation, it generates a error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var header = new sap.ui.commons.TextView({text: {##Header} });&lt;/P&gt;&lt;P&gt;header.placeAt("Content");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the above pages are .irpt pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm doing something wrong. please correct me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 13:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624474#M60464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-30T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Localization for webpages build using SAP UI5 in SAP MII.</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624475#M60465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the HTML body the localization syntax will work as you mentioned but it will not work in the "Script" section of your page.&amp;nbsp; For this you have to set the localization value in a hidden text field on the page in the body of your HTML and then reference this field via the JS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree there should be a localization function for the i5 objects, please report this feature request via a CSN ticket.&amp;nbsp; Please reference this thread in the ticket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a related side note, if you use JSP you can use the following on your web page to call the localization method directly; here's a page snippet:&lt;/P&gt;&lt;P&gt;&amp;lt;%@ page language="java" %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%@ taglib uri="/tlt" prefix="tlt" %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Localization Using JSP&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;h2&amp;gt;Demo Localization JSP&amp;lt;/h2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hi &amp;lt;tlt:localize key="Name"/&amp;gt;, &amp;lt;tlt:localize key="Greeting"/&amp;gt; !!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;tlt:localize key="Language"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 13:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624475#M60465</guid>
      <dc:creator>salvatore_castro</dc:creator>
      <dc:date>2014-09-30T13:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Localization for webpages build using SAP UI5 in SAP MII.</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624476#M60466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sashi,&lt;/P&gt;&lt;P&gt;I second Sam on this. {} placeholder works in htm code not inside script tag.&lt;/P&gt;&lt;P&gt;This is similar to passing a parameter in servlets using param function. Something as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Param name="Param.1" value={propertyName}&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternately, if you use applets or servlets, we do have some methods to get the property values directly in scripts as well. Simple examples as mentioned below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Applet name="App1" class=ClassName viewastext mayscript&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Applet&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can here use, App1.setProperty("abc") and App1.getProperty("abc") for play with properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swaroop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 07:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/localization-for-webpages-build-using-sap-ui5-in-sap-mii/qaa-p/10624476#M60466</guid>
      <dc:creator>swaroop_anasane</dc:creator>
      <dc:date>2014-10-01T07:58:02Z</dc:date>
    </item>
  </channel>
</rss>

