Search PalmPower Enterprise Edition's 188 Palm-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
A beginners guide to developing localized applications (continued)

Traditionally, C code uses a character pointer or byte counter to iterate through a string character by character. On systems with multi-byte characters, however, such code won't work properly. There are text manager functions that you'll need to use instead.

Dynamically determining a string's contents
You should never hard code strings in a localized application. Rather, you should store them in a resource and use the resource to display the text. In order to create the contents of the string at runtime, you should store a template for the string as a resource. Then you can substitute values as needed.

Dates
If dates and times are used in your application, it will need to abide by the values set in the system preference by the user. Keep in mind that the default date and time preferences at startup are different for different languages. However, they can be overridden.

Numbers
Another thing to be careful of is that if your application displays large numbers or floating-point numbers, such as currency figures, you have to make sure you're using the appropriate thousands separator and decimal separator for the country in which the device is being used.

Using overlays to localize resources
There's added support for localizing resource databases through overlays in version 3.5 and above of the Palm OS. With localization, you can localize a software module without a recompile or modification of the software. Each overlay database is a separate resource database, providing a localized set of resources for a single software module (the PRC [Palm Resource File], or base database) and a single target locale (language and country). A single locale is supported by each Palm OS device.

When a PRC file is opened, the overlay manager determines what the locale is for this device and looks for an overlay matching the base database and the locale. According to the information provided on Palm's localized applications page, "The overlay database's name must match the base database's name, its suffix must match the locale's suffix, and it must have an 'ovly'=1000 resource that matches the base database." It goes on to say that the overlay is opened in addition to the PRC file if the name, suffix, and overlay resource are all correct. The overlay is closed when the PRC file is closed.

Opened in read-only mode, the overlay is hidden from the programmer. You'll receive a pointer to the base database, not the overlay, when you request a database pointer. Make resource manager calls like you normally would, and the resource manager will access the overlay where appropriate.

For more information on the overlay manager, visit http://oasis.palm.com/dev/kb/manuals/1760.cfm.

Japanese implementation
Currently, Japanese users must enter Japanese text into their Palm devices using Latin ASCII characters. An FEP (Front-End Processor) then transliterates this text into Hiragana or Katakana characters. The user can then use the FEP to phonetically convert Hiragana characters into a mixture of Hiragana and Kanji (Kana-Kanji conversion).


« Previous  ·  1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Phones and PDAs > Palm and Treo > Programming (24 articles)
   How PDA software is born
   Program with Simplicity
   Kinectivity 2.0 brings enterprise application developers new tools
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
More from the ZATZ journals
Computing Unplugged: Make Mafia Wars an offer it can't refuse
David Gewirtz Online: CNN commentary and analysis
DominoPower: Application development, William Shatner, and the origin of the universe
OutlookPower: Removing an Office installation that doesn't want to go away
-- Advertisement --

EASY DEDICATED AND VIRTUAL DEDICATED SERVERS FOR AS LOW AS $67.99 PER MONTH
Customize and configure your own dedicated server. Simply choose one of our popular plans or select your own Linux or Windows server and plan options.

NO LONG WAITS. Server provisioned within hours.

Tap here now and be up and running with your own server tonight.

-- Advertisement --

Sent Items Organizer
When you need to file your sent email into their proper folders based on keywords or who it's to. It's also perfect for shared mailboxes.

It also adds a "Send And File" toolbar button while you're composing (similar to the way Lotus Notes used to work) for quick and easy filing.

Find out more!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 2000-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login