Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-04

Unicode resource strings again

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Schreiber

Hi,
In 2008 there was a thread about FPC and Unicode resoure strings with the conclusion that FPC does not support them.

Has the situation changed in the meantime?
Does anybody know if Delphi supports Unicode resource strings?

Thanks, Martin

Reply by email

Hans-Peter Diettrich
to Martin Schreiber: In 2008 there was a thread about FPC and Unicode resoure strings with the conclusion that…
Show quoted text 6 lines
Hi, In 2008 there was a thread about FPC and Unicode resoure strings with the conclusion that FPC does not support them. Has the situation changed in the meantime? Does anybody know if Delphi supports Unicode resource strings?

AFAIK Delphi uses Windows string resources, which are UTF-16. This convention allows to patch or edit the resources with standard resource editors, and to share resources across applications.

DoDi

Reply by email

Martin Schreiber
to Jonas Maebe: No: http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=6477 Jonas
Jonas Maebe wrote 10 lines
On 29 Apr 2011, at 09:43, Martin Schreiber wrote: > In 2008 there was a thread about FPC and Unicode resoure strings with the > conclusion that FPC does not support them. > > Has the situation changed in the meantime? No: http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=6477

What do you suggest as a replacement of Unicode resource strings? MSEide+MSEgui has the localisation tool MSEi18n which exports the form resources and resource strings to a dll/so which can be switched on runtime. Although because of FPC bug
http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=18831 it can be switched only once on Linux...

Martin

Reply by email

Jonas Maebe
to Martin Schreiber
Martin Schreiber wrote 12 lines
Am 29.04.2011 08:52, schrieb Jonas Maebe: > > On 29 Apr 2011, at 09:43, Martin Schreiber wrote: > >> In 2008 there was a thread about FPC and Unicode resoure strings with the >> conclusion that FPC does not support them. >> >> Has the situation changed in the meantime? > > No: http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=6477 > What do you suggest as a replacement of Unicode resource strings?

It also seems that current Delphi versions support unicode resourcestrings: http://qc.embarcadero.com/wc/qcmain.aspx?d=3427 (at least that issue has been closed as resolved), so it should be fixed in FPC. I'm not aware of anyone working on it though.

A bit of googling on "delphi unicode resourcestring" shows this as an example of a workaround: http://dybdahl.dk/dxgettext/docs/online/gettextfunction.html

Jonas

Reply by email