1 Reply Latest reply: Jul 15, 2011 8:38 AM by a.medina RSS

    Language Use

      Godd morning,

       

      I would like to use a translatios funtion betwen English and Spanish, in the Qlick View examples they are using the function below:

       

      Languages:

      LOAD Sprache as Language,

      Sprache_Kurz as Language_Abbrev,

      Sprache_Flag as Language_Flag

      FROM Languages.qvd (qvd);

      Translations:

      LOAD EintragNr,

      EN,

      ES

      FROM Word_List.qvd (qvd);

       

       

      there is some way to find this file?

           Languages.qvd

           Word_List.qvd

       

       

      I´ll appreciate your help...

        • Language Use

          Hi,

           

          Using translations is easy.  You have to create a table with an  Id Column and as many columns as different languages:

           

          Id     English     Spanish

          1     Hello          Hola

          2     ....               ...

           

          Then, inside your application, use a variable to store the active language. When associating a string to an object, use the Id value instead of the string to refer the desired row of the table, and place and if to select the language depending on variable's value.