Article # 89, added by Geoworks, historical record
| first | previous | index | next | last |

Making your app localizable.




Question:
What must I do to make my application localizable?

Answer:
You should read Chapter 8 "Localization" of the Concepts
book. This chapter covers many of the concepts and routines
needed to make your application easily localizable.

In a nutshell, here's what you need to consider:

1. Put localizable strings in @chunks so you can use ResEdit
to modify the strings.

2. Use Local...() routines for formatting strings (for date,
currency, measurement, etc.) and other string manipulation.

3. Register for notification of changes to user settings.


Question:
How can my application receive notification of changes in
date/time format or other formatting that the user can
change?

Answer:
Put your application on the
GCNSLT_NOTIFY_INIT_FILE_CHANGE GCN list and watch for
MSG_META_NOTIFY( MANUFACTURER_ID_GEOWORKS,
GWNT_INIT_FILE_CHANGE). The parameter "data" will be the
InitFileEntry that changed. Here are the possible values of
"data":

  IFE_DATE_TIME_FORMAT
  IFE_NUMBER_FORMAT
  IFE_CURRENCY_FORMAT
  IFE_PUNCTUATION 
  IFE_OWNER_INFO
  IFE_SYSTEM_SOUND
  IFE_INK_THICKNESS