Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Review

Lingua

Issue: 4.5 (May/June 2006)
Author: Toby Rush
Article Description: No description available.
Article Length (in bytes): 3,685
Starting Page Number: 9
RBD Number: 4504
Resource File(s): None
Related Link(s): None
Known Limitations: None

Full text of article...

As part of the second 90-day release REALbasic 2006, Real Software announced an update to Lingua, a free utility first included as part of REALbasic 2006 Release 1 which simplifies the process of localizing software to different languages.

One of the most attractive characteristics of Lingua is that does not require re-compiling an application for each localization; once set up, Lingua facilitates the management of translated values and then allows you to save those values directly into a compiled application.

Of course, the application must be designed with localization in mind; localizable values must be stored as constants, and windows must be arranged to allow for text of varying size, depending on the language.

To take advantage of Lingua for an existing application, you need to go through your application and find any values that will need to be translated. These should include any text visible by the user: menu items, control captions, window titles, dialog box text, and so forth. For each element of text, create a constant. These constants can be stored throughout your program, or you may wish to create a single module to hold them all.

Each of these constants should then be named uniquely and given a default value that corresponds to what appears in the interface. The value in the interface can then be replaced with the unique constant name preceded by a pound sign ("#"). For example, for the "Save" button in your Save dialog box, you might create a constant called "saveDialogSaveButtonCaption" with a default value of "Save." In the properties list for the button, set the caption to "#saveDialogSaveButtonCaption".

To allow Lingua to do its magic, each of these constants must have the Dynamic checkbox checked in the Constants Editor. This allows Lingua to edit these values in the compiled application.

Once all of you constants have been created, Choose "Export Localizable Values..." from REALbasic's File menu to create a file containing your constants. Open this file in Lingua to begin entering translations.

Lingua's window is very simple; each localizable value appears on the left, and clicking on one of them shows the default value and allows you to enter a translated value. Once every translated value is entered, choosing "Export > To Application and Run" allows you to save the localized strings to your compiled application and immediately run the new, localized application.

The combination of REALbasic 2006 and Lingua allow you to easily localize four different types of values: Strings, Numbers, Booleans and Colors. More complicated data types -- like pictures -- are not supported. While this would be a nice addition to Lingua, text is always the lion's share of any localization project, and Lingua makes that portion a lot more convenient.

IN BRIEF
 
Product
Lingua
 
Manufacturer
REAL Software, Inc.
 
Price
Free
 
Contact Info
http://www.realsoftware.com/
 
Pros
Easy to use

Does not require recompiling

 
Cons
Handles only basic data types
 
Rating (1.0-5.0):
4.5

End of article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com