You Are Here:

S60 Platform: Localisation Example

Register Today

Register with Forum Nokia now and you'll enjoy the full benefits of the Forum Nokia membership.

Register Login
Forum Nokia Events

MobileMonday Italy: The User Applications
November 23, 2009
Rome

Nokia Developer Days in South Africa
December 01, 2009
Johannesburg, South Africa

Forum Nokia Developer Conference ’09, India
December 07, 2009
Bangalore, India

LeWeb
December 09, 2009
Paris

Web Runtime Coding With Aptana WRT Plug-in
December 09, 2009
9am New York | 2pm London | 4pm Helsinki


View all
description: This C++ code example demonstrates how to localise an application to adapt to the selected phone language. The example application has two sets of localised strings (English and German) for the application name, labels, text, and image. The application also includes number, currency, date, and time localisation, in which the TLocale method is used for localisation even if the selected phone language is neither one of the two application languages. The updated example has been tested to support S60 5th Edition and touch UI.

Main classes: TLocale, TTime, TRealFormat, StringLoader.

type: Example
topics: Localization
S60
     S60 3rd Edition
     S60 5th Edition
Symbian C++
intended audience: Intermediate

http://sw.nokia.com/FN-1/Type/Example S60 Platform: Localisation Example v1.1

This updated C++ code example demonstrates how to localise an application to adapt to the selected phone language. The example application has two sets of localised strings (English and German) for the application name, labels, text, and image. The application also includes number, currency, date, and time localisation, in which the TLocale method is used for localisation even if the selected phone language is neither one of the two application languages. This updated example has been tested to support S60 5th Edition and touch UI.

17-Mar-2009


Download



Additional information

distribution: Forum Nokia Global Web Site
S60 Web Site
publication rights: Copyright © 2006-2009 Nokia Corporation.

<< Back to Previous Page

 

Rate This:

Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
RDF Facets: qdcZdescriptionQSxThisE20CE2bE2bE20codeE20eE78ampleE20demonstratesE20howE20toE20localiseE20anE20applicationE20toE20adaptE20toE20theE20selectedE20phoneE20languageE2eE20TheE20eE78ampleE20applicationE20hasE20twoE20setsE20ofE20localisedE20stringsE20E28E45nglishE20andE20GermanE29E20forE20theE20applicationE20nameE2cE20labelsE2cE20teE78tE2cE20andE20imageE2eE20TheE20applicationE20alsoE20includesE20numberE2cE20currencyE2cE20dateE2cE20andE20timeE20localisationE2cE20inE20whichE20theE20TE4cocaleE20methodE20isE20usedE20forE20localisationE20evenE20ifE20theE20selectedE20phoneE20languageE20isE20neitherE20oneE20ofE20theE20twoE20applicationE20languagesE2eE20TheE20updatedE20eE78ampleE20hasE20beenE20testedE20toE20supportE20S60E205thE20E45ditionE20andE20touchE20UIE2eX qdcZidentifierQSxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2f49077bdaE2d9903E2d49ecE2d827dE2d3f284f8bbb98E2fS60E5fPlatformE5fE4cocalisationE5fE45E78ampleX qdcZtitleQSxS60E20PlatformE3aE20E4cocalisationE20E45E78ampleX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfnZE45E78cludedFromSearchQ qdcZtypeQUqfnZPrimaryE52esourceQ qdcZtypeQUqfntypeZApplicationQ qdcZtypeQUqfntypeZE45E78ampleQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqmarsZMediaObjectQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qrssZdescriptionQSxThisE20CE2bE2bE20codeE20eE78ampleE20demonstratesE20howE20toE20localiseE20anE20applicationE20toE20adaptE20toE20theE20selectedE20phoneE20languageE2eE20TheE20eE78ampleE20applicationE20hasE20twoE20setsE20ofE20localisedE20stringsE20E28E45nglishE20andE20GermanE29E20forE20theE20applicationE20nameE2cE20labelsE2cE20teE78tE2cE20andE20imageE2eE20TheE20applicationE20alsoE20includesE20numberE2cE20currencyE2cE20dateE2cE20andE20timeE20localisationE2cE20inE20whichE20theE20TE4cocaleE20methodE20isE20usedE20forE20localisationE20evenE20ifE20theE20selectedE20phoneE20languageE20isE20neitherE20oneE20ofE20theE20twoE20applicationE20languagesE2eE20TheE20updatedE20eE78ampleE20hasE20beenE20testedE20toE20supportE20S60E205thE20E45ditionE20andE20touchE20UIE2eX qrssZtitleQSxS60E20PlatformE3aE20E4cocalisationE20E45E78ampleX qeditorZdescriptionE5fcreatedQDx2009E2d01E2d19T09E3a32E3a45E5aX qeditorZdescriptionE5fmodifiedQDx2009E2d03E2d17T07E3a28E3a03E5aX qeditorZtypeQUqfntypeZApplicationQ qeditorZtypeQUqfntypeZE45E78ampleQ qeditorZtypeQUqfntypeZE52esourceQ qfnZallowedE5fcountryE5fgroupQUqfnCountryGroupZBQ qfnZaudienceQUqfnAudienceZintermediateQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZaudienceQUqfnAudienceZtechnicalQRqmarsZrelevanceQNx100X qfnZdistributionQUxhttpE3aE2fE2fforumE2enokiaE2ecomE2fX qfnZdistributionQUxhttpE3aE2fE2fwwwE2es60E2ecomE2fX qfnZeE78portE5fcontrolE5fcommodityE5fnumberQSx99X qfnZpublishedQDx2009E2d03E2d17T00E3a00E3a00E5aX qfnZtopicQUqfnTopicZcppQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtopicQUqfnTopicZlocalizationQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtopicQUqfnTopicZseriesE5f60QRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtopicQUqfnTopicZseriesE5f60E5f3edQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtopicQUqfnTopicZseriesE5f60E5f5edQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtypeQUqfntypeZApplicationQ qfnZtypeQUqfntypeZE45E78ampleQ qfnZtypeQUqfntypeZE52esourceQ qfnZusE5foriginQLqE78sdZbooleanQxtrueX qfnZE78mlE5fdescriptionQXxE0aE3cspanE20E78mlnsE3dE22httpE3aE2fE2fwwwE2ew3E2eorgE2f1999E2fE78htmlE22E3eThisE20CE2bE2bE20codeE20eE78ampleE20demonstratesE20howE20toE20localiseE20anE20applicationE20toE20adaptE20toE20theE20selectedE20phoneE20languageE2eE20TheE20eE78ampleE20applicationE20hasE20twoE20setsE20ofE20localisedE20stringsE20E28E45nglishE20andE20GermanE29E20forE20theE20applicationE20nameE2cE20labelsE2cE20teE78tE2cE20andE20imageE2eE20TheE20applicationE20alsoE20includesE20numberE2cE20currencyE2cE20dateE2cE20andE20timeE20localisationE2cE20inE20whichE20theE20TE4cocaleE20methodE20isE20usedE20forE20localisationE20evenE20ifE20theE20selectedE20phoneE20languageE20isE20neitherE20oneE20ofE20theE20twoE20applicationE20languagesE2eE20TheE20updatedE20eE78ampleE20hasE20beenE20testedE20toE20supportE20S60E205thE20E45ditionE20andE20touchE20UIE2eE3cbrE3eE3cE2fbrE3eE3cbrE3eE3cE2fbrE3eMainE20classesE3aE20TE4cocaleE2cE20TTimeE2cE20TE52ealFormatE2cE20StringE4coaderE2eE3cE2fspanE3eE20E20E20E20E20E20X qmarsZdescriptionQSxThisE20CE2bE2bE20codeE20eE78ampleE20demonstratesE20howE20toE20localiseE20anE20applicationE20toE20adaptE20toE20theE20selectedE20phoneE20languageE2eE20TheE20eE78ampleE20applicationE20hasE20twoE20setsE20ofE20localisedE20stringsE20E28E45nglishE20andE20GermanE29E20forE20theE20applicationE20nameE2cE20labelsE2cE20teE78tE2cE20andE20imageE2eE20TheE20applicationE20alsoE20includesE20numberE2cE20currencyE2cE20dateE2cE20andE20timeE20localisationE2cE20inE20whichE20theE20TE4cocaleE20methodE20isE20usedE20forE20localisationE20evenE20ifE20theE20selectedE20phoneE20languageE20isE20neitherE20oneE20ofE20theE20twoE20applicationE20languagesE2eE20TheE20updatedE20eE78ampleE20hasE20beenE20testedE20toE20supportE20S60E205thE20E45ditionE20andE20touchE20UIE2eX qmarsZhasInstanceQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2f1a9fdecfE2d080fE2d4f7cE2d8689E2d9b337f2abc6cE2fS60E5fPlatformE5fE4cocalisationE5fE45E78ampleE5fv1E5f1E5fenE2ezipX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qmarsZtitleQSxS60E20PlatformE3aE20E4cocalisationE20E45E78ampleX qncZrightsQSxCopyrightE20Ea9E202006E2d2009E20NokiaE20CorporationE2eX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfnZE45E78cludedFromSearchQ qrdfZtypeQUqfnZPrimaryE52esourceQ qrdfZtypeQUqfntypeZApplicationQ qrdfZtypeQUqfntypeZE45E78ampleQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqmarsZMediaObjectQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ