#1 2018-07-19 08:29:54

gd
Member
Registered: 2018-07-19
Posts: 3

i18n and Firemonkey

Hello
I tried to use SQLite3i18n.pas in a simple Firemonkey application but it looks like it doesn't support FMX. I made a few changes in SQLite3i18n and it compiled. But still not everything works now.

The project compiled with EXTRACTALLRESOURCES extracted some resourcestrings and a few properties (TForm.Caption, TMemo.Lines.Text) but it hasn't extracted all captions from FMX controls (i.e. TButton.Text). Probably some more changes are needed to find all FMX controls and get all strings.
Now, the procedure i18nAddLanguageCombo works fine and I can change the language but when I change it, not all strings are translated.
Did anyone try it before me and succeded?

I can share my changed version of mORMoti18n.pas to show my changes for FMX.

Offline

#2 2018-07-19 11:50:31

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

Re: i18n and Firemonkey

Those units are VCL only - they won't work with FMX.

Offline

#3 2018-07-19 13:26:15

gd
Member
Registered: 2018-07-19
Posts: 3

Re: i18n and Firemonkey

I can see that. Is there any chance that feature will be made in a near future? I think it shouldn't be very hard to made because I didn't change much and it partially works. But I'm not sure if I can finish it alone.

Offline

#4 2018-07-19 20:56:26

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

Re: i18n and Firemonkey

Sadly, we don't use FMX here at all.
We rather use LCL (Lazarus) instead... and even LCL is not supported by our i18n units.

But as with any Open Source project, any input is warmly welcome!
smile

Offline

Board footer

Powered by FluxBB