Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Using oLanguage in CDE Table Component

  1. #1
    Join Date
    Aug 2010
    Posts
    4

    Default Using oLanguage in CDE Table Component

    Hi guys. Here's my first (and very rookie) question on this forum. I want to change the properties of my table component and translate some text to spanish using oLanguage. Some time ago (far far away...) I remember doing this directly in the code of the dash using something like this:

    oLanguage : {
    "sProcessing" : "Ejecutando...",
    "sLengthMenu" : "Mostrar _MENU_ registos",
    "sZeroRecords" : "No se han encontrado resultados",
    ...
    }

    Now I want to do the same using CDE, which in the Advanced Properties has a Javascript Wizard for oLanguage, but I can't get it to work. I tried putting "sProcessing" : "Ejecutando...", "sProcessing"="Ejecutando...", function() {"sProcessing" : "Ejecutando..."}, and so on.

    As you probable know by now, my knowledge of JavaScript compares to my knowledge of Hungarian Poetry of the XIX Century.

    Thanks for your replays!

  2. #2

    Default

    Dear Everyone,

    In 2013 I have the same problem.
    I could not use advanced option -"oLanguage" on my Table components.

    I tried to add script component and give the next solution (but didn't work):
    $(document).ready( function() {
    $("#tblResultTable").dataTable( {
    "oLanguage" : {
    "sProcessing": "Feldolgozás...",
    "sLengthMenu": "_MENU_ találat oldalanként",
    "sZeroRecords": "Nincs a keresésnek megfelelő találat",
    "sInfo": "Találatok: _START_ - _END_ Összesen: _TOTAL_",
    "sInfoEmpty": "Nulla találat",
    "sInfoFiltered": "(_MAX_ összes rekord közül szűrve)",
    "sInfoPostFix": "",
    "sSearch": "Keresés:",
    "sUrl": "",
    "oPaginate": {
    "sFirst": "Első",
    "sPrevious": "Előző",
    "sNext": "Következő",
    "sLast": "Utolsó"
    }
    }
    } );

    } );


    Please help me!
    How can I use that "simple option" - oLanguage ?

  3. #3

    Default

    Solution

    1.) Add Script Component to your Dashboard
    2.) create one Javascript variable with name your Language
    3.) At the table Component -->Advanced Oprtions --> oLanguage (Edit) give JS varname (in my case: hungarian)
    -------------------
    var hungarian ={
    "sProcessing": "Feldolgozás...",
    "sLengthMenu": "_MENU_ találat oldalanként",
    "sZeroRecords": "Nincs a keresésnek megfelelő találat",
    "sInfo": "Találatok: _START_ - _END_ Összesen: _TOTAL_",
    "sInfoEmpty": "Nulla találat",
    "sInfoFiltered": "(_MAX_ összes rekord közül szűrve)",
    "sInfoPostFix": "",
    "sSearch": "Keresés:",
    "sUrl": "",
    "oPaginate": {
    "sFirst": "Első",
    "sPrevious": "Előző",
    "sNext": "Következő",
    "sLast": "Utolsó"
    }
    }

    In my projekt I don't need to dynamically change the UI language. So the coplex solution may be different.

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.