Hitachi Vantara Pentaho Community Forums
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: How to do i18n in CDE?

  1. #11
    Join Date
    Oct 2013
    Posts
    20

    Default

    Hi Pedro,

    Can you please let us know the steps or refer some documentation on how to use the i18n / localization in CDE?

    Thanks!

  2. #12
    Join Date
    Oct 2012
    Posts
    6

    Default

    Hello Pedro,

    have you a quick documentation (link) to how does i18n in CDE works ?

    Thanks,
    Best regards

  3. #13

    Default

    Hi all,

    here's a Quick&Simple how-to that demonstrates the usage of i18n in a CDE dashboard:

    1 - create a new cde dashboard and apply the 2-column template


    2 - make a new text component
    - name: text01
    - htmlObject: Panel_1
    - expression: function f(){ return Dashboards.i18nSupport.prop('XmlStructure.ERROR_001_LOAD_FILE_NOT_FOUND_EXCEPTION'); }


    3 - save dashboard with name i18nTest


    4 - open i18nTest CDE dash: http://imagebin.org/303184
    - with no specific properties file, value was loaded from global messages.properties file at /pentaho-solutions/system/pentaho-cdf-dd/lang/


    5 - create a message_<locale>.properties (ex: messages_pt.properties, messages_de.properties, ...)
    - add line: XmlStructure.ERROR_001_LOAD_FILE_NOT_FOUND_EXCEPTION=This message is now coming from my localized messages.properties file


    6 - upload this message_<locale>.properties file to the same directory where you saved i18nTest dashboard : http://imagebin.org/303187
    - properties files are hidden by default; on the menu bar click "View > Show hidden files"


    7 - (refresh browser's cache) open i18nTest CDE dash: http://imagebin.org/303193




    Hope this helps!

    Best regards,

    Pedro Teixeira

  4. #14
    Join Date
    Jan 2013
    Posts
    135

    Default

    Hi Pedro,

    thanks a lo t for your description. I will try it next week. Can you please load pictures to your thread - currently there are links to not existing pictures

    Thank and have a nice day,
    timfu83

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.