O'Reilly logo

Palm OS Programming, 2nd Edition by Neil Rhodes, Julie McKeehan

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

International Support

PilRC supports a limited form of international tokenization. It works by substituting strings in the resource definitions with replacements specified in a TRANSLATION section. Multiple translation blocks may be specified in a resource script. The active language is specified with the -L flag to PilRC.

Positioning of controls is a large problem if absolute values are used. It is recommended that you use AUTO, CENTER, and PREVRIGHT, and others when defining the contents of your forms.

Example

pilrc -L FRENCH myscript.rcp res

TRANSLATION

TRANSLATION <Language.s>
BEGIN
  <STRINGTRANSLATIONS>
END

Where <STRINGTRANSLATIONS> is one or more of:

<Original.s> = <Translated.ss>

Notes:

  • Declare a short keyword for long strings, and define native and foreign translations for it.

Example

</u>

TRANSLATION "FRENCH"
BEGIN
  "Repeat Datebook alarm sound" = "Répétitions Alarme Agenda"
  "Ring again every" = "Rappel tous les"
END

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