Adding Locale support

Discuss any general programming issues here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Adding Locale support

Post by djrikki »

Code:

Code: Select all

DimStr locale[1]
Locale[1] ="Hello"

;; Catalog Handler
OpenCatalog("Application Name")
For Local c = 0 To 0
	Locale[c] = GetCatalogString(c,Locale[c])
Next

CloseCatalog()
Drawer Structure:

Code: Select all

Catalogs/
     french/
           Application Name.catalog
     spanish/
           Application Name.catalog
Does this seem correct to you? Not sure if I read documentation correctly.. are these language drawers named correctly? Do I really really need to mess about and make the drawer name's locale sensitive e.g 'francais', 'espanol', deutsch etc?
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Adding Locale support

Post by airsoftsoftwair »

On OS4, English names are used for the catalog drawers but on OS3 and MorphOS (not sure about AROS), locale.library expects translated drawer names, i.e. on OS4 you would have to use "german" and "french" whereas on OS3 and MorphOS the equivalent would be "deutsch" and "français" (mind the accent cedille). OS4 also might have some sort of compatibility layer which allows you to use the old-style names, but I'm not sure about that. Try it.
Post Reply