O'Reilly logo

PhoneGap 3.x Mobile Application Development HOTSHOT by Kerri Shotts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Translating text

Adding translatable text to your app is, in some ways, much easier than handling all the various rules when formatting numbers and dates. There's only one function that is provided by YASMF to do any translation. The bigger problem comes into view when one realizes that various translations often have different length strings and, as such, can appear very different on the screen. Of course, the ultimate hurdle is often finding a native-language translator; Google Translate simply will not cut it for a production deployment.

Getting on with it

Fundamentally, the technology behind supporting multiple text translations is simple. All you need is a list of keys that represent words and phrases and the corresponding translations in each ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required