-
Notifications
You must be signed in to change notification settings - Fork 8
Localization
Kitto default language is english, but it allows you to localize applications in any language.
In order to Localize an application you have to localize both the standard Kitto interface (i.e. messages), and your application interface (i.e. all fields'captions).
folder ...\Kitto\Home\Locale must contain a subfolder for each language. Italian has been already provided. copy the folder for you language and edit the file Kitto.po. You can use a tool like [poedit] (http://poedit.net/)
folder ...{App}\Home\Locale must contain a subfolder for each language. See the example [HelloKitto] (HelloKitto) and [Taskitto] (Taskitto).
If you intend to write an application ready for localization you have to invoke the _ function any time you write strings, messages and so on , both in Delphi either in .yalm files.
For example: here is the Doll Model in [HelloKitto] (HelloKitto). Pay attention to DisplaLabel and AllowedValues nodes:
ModelName: Doll
ImageName: Doll
Fields:
Doll_Id: String(32) not null primary key
IsVisible: False
DefaultValue: %COMPACT_GUID%
Doll_Name: String(40) not null
DisplayLabel: _(Name)
Rules:
ForceUpperCase:
SubType: alpha_space
Date_Bought: Date
DisplayLabel: _(Birth Date)
DefaultValue: {date}
Hair: Reference(Hair)
Fields:
Hair_Id:
Dress_Size: String(4)
DisplayWidth: 8
AllowedValues:
XS: _(Extra Small)
S: _(Small)
M: _(Medium)
L: _(Large)
XL: _(Extra Large)
Mom: Reference(Girl) not null
Fields:
Mom_Id:
Aspect: Memo
DisplayWidth: 40
Rules:
MaxLength: 1024
Picture: Blob
DisplayLabel: _(Photo)
Hint: _(Select a picture)
MaxUploadSize: 100KB
.DefaultFileName: test.gif
IsPicture: True
Thumbnail:
Width: 150
Height: 150
- Kitto at a glance
- Getting started
- Setup
-
Basic concepts
- Basic Materials
- Controllers
- Panel-Based
- [List] (List)
- [Form] (Form)
- [GridPanel] (GridPanel)
- [ChartPanel] (ChartPanel)
- [Tool Controllers] (Tool)
- [Login] (Login)
- [Logout] (Logout)
- [ChangePassword] (ChangePassword)
- Features
- Examples
- Developer's guide
- Library reference
- Frequently Asked Questions
- Kitto tips & tricks and how-tos
- Other information
- Kitto Enterprise