mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-09 21:19:25 +02:00
Workaround for gettext bug in windows ce
git-svn-id: trunk@17661 -
This commit is contained in:
parent
4b344f137a
commit
27ef199c26
@ -40,8 +40,9 @@ uses
|
||||
Classes, SysUtils, Types, TypInfo, Math,
|
||||
AvgLvlTree, Maps, LCLVersion, LCLStrConsts, LCLType, LCLProc, LCLIntf,
|
||||
FileUtil, InterfaceBase, LResources, GraphType, Graphics, Menus, LMessages,
|
||||
CustomTimer, ActnList, ClipBrd, CustApp, HelpIntfs, LCLClasses, Controls,
|
||||
gettext;
|
||||
CustomTimer, ActnList, ClipBrd, CustApp, HelpIntfs, LCLClasses, Controls
|
||||
{$ifndef wince},gettext{$endif}// remove ifdefs when gettext is fixed and a new fpc is released
|
||||
;
|
||||
|
||||
type
|
||||
TProcedure = procedure;
|
||||
|
@ -125,11 +125,15 @@ begin
|
||||
FFindGlobalComponentEnabled:=true;
|
||||
RegisterFindGlobalComponentProc(@FindApplicationComponent);
|
||||
|
||||
{$ifndef wince}// remove ifdef when gettext is fixed
|
||||
GetLanguageIDs(LangDefault, LangFallback);
|
||||
if LangDefault <> '' then
|
||||
FBidiMode := BidiModeMap[IsRTLLang(LangDefault)]
|
||||
else
|
||||
FBidiMode := BidiModeMap[IsRTLLang(LangFallback)];
|
||||
{$else}
|
||||
FBidiMode := bdLeftToRight;
|
||||
{$endif}
|
||||
|
||||
inherited Create(AOwner);
|
||||
CaptureExceptions:=true;
|
||||
|
Loading…
Reference in New Issue
Block a user