 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Vedge2000 Guest
|
Posted: Thu Sep 28, 2006 8:11 am Post subject: MessageDlg, ResourceString and Delphi 2005 |
|
|
Hello,
My software is in French but I want to use in german and English. I
woulnd't use the translator of Delphi because the user can't increase
the dictionary himselft.
I wouldn't use a composant (problem with migration, version between
developper computer).
I fund how to force the translate of ResourceString
Function ChangeResourceString( resstring: PResStringRec; newvalue:
Pchar ): Boolean;
Var
oldprotect: DWORD;
Begin
Result := false;
{$IFDEF LINUX}This function does not work in Kylix!{$ENDIF}
If resstring = nil Then Exit;
Assert( Assigned( newvalue ),
'ChangeResourceString: newvalue must be <> nil');
Result := VirtualProtect(
resstring,
Sizeof( resstring^ ),
PAGE_EXECUTE_READWRITE,
@oldProtect );
If Result Then Begin
resstring^.Identifier := Integer( newvalue );
VirtualProtect( resstring,
Sizeof( resstring^ ),
oldProtect,
@oldProtect );
End; { If }
End;
I use like this :
Function ChangeResourceString( MY_RESOURCESTRING,
NEW_MY_RESOURCESTRING);
But i can't translate the const of Yes, No, All,.. of all MessageDlg?
Somebody know how to do it?
Thanks |
|
| Back to top |
|
 |
Riki Wiki Guest
|
Posted: Thu Oct 05, 2006 4:25 am Post subject: Re: MessageDlg, ResourceString and Delphi 2005 |
|
|
On 27 Sep 2006 23:12:29 -0700, Vedge2000 wrote:
| Quote: | Somebody know how to do it?
|
Hoi
This newsgroup do not officially exist, that is why there is so few
messages here. Rather use b.p.d.internationalization.win32. Further you
need to repost your message/question on the Borland news server to make
everybody see it.
How to post to Delphi newsgroups:
<http://delphi.wikia.com/wiki/Delphi_Newsgroups> |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|