Sign in Join

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

Mailing lists / lazarus / 2008-09

Enumerating resourcestring

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Benito van der Zander

Hi,
Where are the strings like resourcestring a='bcd' stored? With
for i:=0 to LazarusResources.Count-1do

  ShowMessage(LazarusResources.Items[i].Name);

they aren't showed.

Benito

Reply by email

Bogusław Brandys
to Benito van der Zander

Benito van der Zander pisze:

Show quoted text 8 lines
Hi, Where are the strings like resourcestring a='bcd' stored? With for i:=0 to LazarusResources.Count-1do ShowMessage(LazarusResources.Items[i].Name); they aren't showed. Benito

UTF8 problem ?

Reply by email

Vincent Snijders
to Benito van der Zander: Where are the strings like resourcestring a='bcd' stored? With for i:=0 to…
Benito van der Zander wrote 6 lines
Hi, Where are the strings like resourcestring a='bcd' stored? With for i:=0 to LazarusResources.Count-1do ShowMessage(LazarusResources.Items[i].Name); they aren't showed.

Did you read the programmers manual:
http://www.freepascal.org/docs-html/prog/progse38.html http://www.freepascal.org/docs-html/prog/progse39.html http://www.freepascal.org/docs-html/prog/progse40.html

They are not lazarus resources.

Vincent

Reply by email

Graeme Geldenhuys
to Benito van der Zander: Where are the strings like resourcestring a='bcd' stored? With for i:=0 to…
Benito van der Zander wrote 6 lines
Hi, Where are the strings like resourcestring a='bcd' stored? With for i:=0 to LazarusResources.Count-1do ShowMessage(LazarusResources.Items[i].Name); they aren't showed.

ResourceString constants are not part of the "lazarus resources". Resourcestring constants are stored in external *.rst files that normally get converted via the "rstconv" program to .po files for translation (though the PO file format is optional as any other format could be used). The source code for the "rstconv" program is included with the FPC source.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email