#1 2015-03-16 09:37:31

vonH
Member
Registered: 2015-03-06
Posts: 17

Are mORMotUI aind mORMot18n ready for FPC and Lazarus?

mORMoti18n has an unclosed comment at line 64 with triggers a warning in the compiler and turns the whole file into a comment.

uses ini-compatible plain text messages language file format (*.msg)

There are also some comments starting with '((' which trigger further errors, and I am wondering whether their purpose is to disable some code or it is a mismatch between the FreePascal compiler and the Delphi compiler.

The other problem is around line 711 where a group of language Constants are not defined:

const
LANG_MACEDONIAN = $2f;
LANG_DARI = $8c;
LANG_PASHTO = $63;
sPriLang: array[TLanguages] of byte =
(LANG_HEBREW,LANG_GREEK,0,LANG_DARI,0,LANG_CATALAN,0,LANG_CZECH,0,0,0,

Are these constants defined in mORMot or do they come from Delphi?


mORMotUI also uses Windows unit directly I replaced with:

  {$ifdef FPC}
  LCLIntf, LCLType, LMessages,
  {$else}
  Windows,
  {$endif}

I have come across 2 problems:

One is the unit Consts, whose equivalent in Lazarus I don't know, and it is hard to tell whether it is for Windows only.

The other is problems with 2 constants, TWMTimer and WM_TIMER which appear to be Windows related constants. They may be related to the Consts unit.

Last edited by vonH (2015-03-16 09:45:46)

Offline

#2 2015-03-16 15:49:19

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

Re: Are mORMotUI aind mORMot18n ready for FPC and Lazarus?

The mORMotUI and mORMoti18n are purely VCL units by now, indeed...

Comments starting by {{ are in fact a way of markup for the documentation.
Should be replaced by {/ 

LANG_* constants do come from Windows.pas AFAIR.

Unit consts.pas is just a list of resourcestring - so just comment it and try to find out where the resourcestring do exist in the LCL.

I suspect there should be an equivalency for TWMTimer and WM_TIMER, and SetTimer() - which are defined in WIndows.pas for defining a timer.

Offline

Board footer

Powered by FluxBB