Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Language Translations

Hi

I want to translate the labels to other language.

This is my sample data

EnglishSpanishDutch
Current selectionsEntre las selecciones actualeshuidige selecties
Trade Sectorsector Comerciohandelssector
Countrypaísland
Branchramatak
Underwriteraseguradorassuradeur

By default it should display ENGLISH. When is select Spanish, Only the labels should be converted into spanish.

Please help me with this. Attached is the QVW

Thanks & Regards,

Keerthi

1 Solution

Accepted Solutions
sudeepkm
Specialist III
Specialist III

I've modified your example like the attached one. Please let me know if you have any questions. Please look at the Sheet2 in xls and in QVW file.

View solution in original post

9 Replies
alexandros17
Partner - Champion III
Partner - Champion III

With a variable you have to hide/show objects (like multiselections), in this way you show the correct Language,

for descriptions use if statement testing the Language ...

Hope it helps

jvishnuram
Partner - Creator III
Partner - Creator III

Hi Keerthi,

Find the attachment hope it will helps you.

Not applicable
Author

Hi Alessandro,

I just took 3 languages. What if i have some 10 languages and also i will be having many fields.

Changing in all the places with if statement reduces the performance.

Thanks & Regards,

keerthi

sudeepkm
Specialist III
Specialist III

I've modified your example like the attached one. Please let me know if you have any questions. Please look at the Sheet2 in xls and in QVW file.

Not applicable
Author

Thanks Sudeep


This is how my data to be displayed.

Anonymous
Not applicable
Author

1. Create and load tables Language and Translation in your data maodel / qvw:

Languages :

load * inline

[

Language, abbrev

English ,  E

Spanish,   S

Dutch,   D

];

Transalation:

LOAD English,

     Spanish,

     Dutch,

     RowNo() as num

FROM

Language.xlsx

(ooxml, embedded labels, table is Sheet1);

2. create two buttons set action select in field Field name Language then Sarch string English like wise for all.

3. create a variable and set Language = $(vLanguage)    where vLanguage = Language    in setting Document properties. 

4.  In your charts go to expression tab  where you see two boxes one definition and other Label

in label box enter expression     fieldvalue($(vLanguage) ,3)  what it will do it will choose the the 3 no transalation

as defined in your transalation table which is Country  if you click English button or país if you click spanish button

and land if dutch button .

anant

Not applicable
Author

Hi

I want to translate the Fields to other language.I have attached the Excel below

Please help me with this.

Thanks in advance,

Soumya

Not applicable
Author

Hi Soumya,

You can use the below expression.

=Only({$<Index={2}>}Fields)


Change the Index number based on the fields.

Hope it helps.

Regards,

Keerthi

Not applicable
Author

Thanks a lot keerthi