#1 2016-06-06 19:54:52

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Best way use mORMoti18n for application server

Hi @ab, how i can use i18n on my mORMot application server generating only my resource strings ? and how I can invoke the translation from a line code ? for example:

(pseudocode)

...
if <condition> then
   raise ESynException.CreateUTF8(sResStrMessage, [params]);
...

I have not forms.

Maybe is a stupid question but ...

Thanks in advance.


Esteban

Offline

#2 2016-06-07 06:50:46

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

Re: Best way use mORMoti18n for application server

The mORMoti18n.pas is indeed focused on VCL apps.

I may try to get rid of any dependency to VCL in the unit.

But on our side, we rather never translate the message, but let it on the presentation layer.
For errors, we use enumerates are error results, which are converted to plain translated easy-to-understand text, with a technical explanation in English, containing all details.

Offline

#3 2016-06-07 10:22:05

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: Best way use mORMoti18n for application server

Thanks, I will consider that.


Esteban

Offline

Board footer

Powered by FluxBB