How to provide the Multi-Language support at runtime for Series 60.
18 juill. 2006 - 23:22

I'm going to demonstrate how to make an application supports mutli-language at run time. In the following example I've used three language support, English, French and German.

Change the MMP file.

The first step is to make a modification in the MMP file. In the MMP file you can see one line like this:

Replace that with the following line:

Create three localization files

As we are going to give support for three languages, English, French and German, the localization file extension should be l01, l02 and l03 respectively. You can put all the strings in this localization files.

Change the LOC file.

Now you have to change the LOC file below:

Change the YourAppAif.rss file

YourAppaif.rss should be like this to localize your application's caption:

Change the class derived from CAknApplication

Over-ride ResourceFileName() function from CEikApplication to your CYourApplicationApp calss.

Changes required in the AppUi class

First of all you have to pass ENonStandardResourceFile for the function call of BaseConstructL() in your AppUi class's ConstructL() function.

Next create the following new function in your AppUi class.

Now you can change the language of the application by calling ChooseLanguageL([LanguageIndex]) function.

Changes in the PKG file

Put the following lines to your package file.

Here are the sample images of the application.

MuliLangEnglish.jpg

MuliLangFrench.jpg

MuliLangGerman.jpg

You can download the example application from here.

MultiLang.zip
MultiLang.zip

Users of the S60 3rd Edition platform will find an updated version of the application here.

Tutorial posted juillet 18th, 2006 by vin2ktalks

Soumis par Anonymous le jeu, 2006-07-20 06:58.

Very good stuff. Thanks a lot. Till now I am using two rss file to support runtime multi language support. now I can use only one rss for multilanguage support.

IndVin


Soumis par kishore (non vérifié) le jeu, 2007-03-08 05:35.

Hi Could suggest us how to create the L01,L02,L03 Files for different languages,I want to create localizations files for Indian languages.

Soumis par Anonymous le jeu, 2006-11-23 01:52.

Good job!thanks a lot!

ThinMonkey


Soumis par Anonymous le mer, 2007-01-03 12:48.

with the help of your application i tried for the Marathi language, i made all the chages as per your code.but on the device it is not showing the devnagari script. I can see only the English srings.I have tested this application on Nokia 6600. plz help.

Soumis par vin2ktalks (non vérifié) le lun, 2007-01-08 15:01.

I never tried with a language other than using a Western scripts. You may have to create a localization file with Unicode support for showing this kind of languages I guess.

For those of who're facing similar kind of problem can refer this link from FN for more clarity: Displaying Unicode characters


Soumis par dinesh547 le mar, 2008-04-08 07:49.

Hi all,

i am getting error while implementing multilanguage support in our application.

it always shows cone 14 error while starting.

it is not finiding resource.

same is happening while running this exapmple application as i try to switch the language it gives same error
.



copyright 2003-2009 NewLC SARL