#1 2012-04-08 16:24:41

coblongpamor
Member
From: Bali-Indonesia
Registered: 2010-11-07
Posts: 130
Website

how to extract resource string of custom classes

what the terms of a custom class so rosource string in it can be extracted by the method ExtractAllResource? I tried to extract nextgrid, but no success.

SQLite3i18n.ExtractAllResources(
    // first, all enumerations to be translated
    [TypeInfo(TNumberAction)],
    // then some class instances (including the TSQLModel will handle all TSQLRecord)
    [Client.Model],
    // some custom classes or captions
    [TNxCustomColumn,TNxTextColumn,TColumnHeader],[]);

many thanks.

Offline

#2 2012-04-08 17:36:17

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: how to extract resource string of custom classes

It will handle all published properties of the class, just as if they were TSQLRecord fields, i..e. with UnCamelCasing.
See the documentation about this point (in the SynFile part of the SAD document).

All bounded resourcestring of the executable are automatically added to the internal list.
You do not have anything to do explicitely.

If some texts are not translated, this is either:
- The component did not define the text as resourcestring, but const;
- The internal grid content is not created as expected. You have functions internal to SQLite3UI unit to handle this translation of headers and values. This is automatic if you use the Grid supplied with mORMot.

Offline

#3 2012-04-09 02:58:01

coblongpamor
Member
From: Bali-Indonesia
Registered: 2010-11-07
Posts: 130
Website

Re: how to extract resource string of custom classes

ok, i'll take a look again.

thanks.

Offline

Board footer

Powered by FluxBB