[fpc-pascal] The format of LongDateFormat?
Graeme Geldenhuys
graemeg.lists at gmail.com
Tue Apr 22 16:50:24 CEST 2008
Michael Van Canneyt wrote:
>
> On Tue, 22 Apr 2008, Graeme Geldenhuys wrote:
>
>> By default under Linux, the LongDateFormat is defined in SysUtils as follows:
>> LongDateFormat: 'dd" "mmmm" "yyyy';
>>
>> Must there be double quotes in the string? If so, what purpose do they serve?
>> I've tried with or without the double quotes and the output is exactly the
>> same on my Linux system.
>>
>>
>> dd" "mmmm" "yyyy = 22 April 2008
>> dd mmmm yyyy = 22 April 2008
>
> The quotes are just a safety measure; In this particular case, they serve no
> purpose. But in general, so substitution is performed on parts that are in
> double quotes.
OK thanks. The reason I ask, is because I define the Lond Date Format
in a resourcestring constant. Translating that to a .PO file I end up
with the following.... It works, but just doesn't look so nice. :)
#: gfx_constants:rslongdateformat
msgid "dd\" \"mmmm\" \"yyyy"
msgstr ""
Regards,
- Graeme -
_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list