Hi,

I'm modifying Thai locale data (th_TH.xml) to add more localized
number formats. I have questions about the currency formats.

1) In the XML file, I see entries like
<FormatCode>[$?-41E]#,##0;-[$?-41E]#,##0</FormatCode>
Where ? is Thai currency (Baht) sign and (as of my understanding)
41E is Thai locale code (right?).
I also see this format code in Calc
#,##0.00 [$THB];-#,##0.00 [$THB]

I'm wondering whether [$ and ] is needed. That is,
in the above case, I can't just say
#,##0.00 THB;-#,##0.00 THB

Since I want to have a format that say
#,##0.00 ???;-#,##0.00 ???
(??? is Baht in Thai)
Should I write it like this?
#,##0.00 [$???];-#,##0.00 [$???]

2) In the locale XML files, I see
<FormatElement msgid="CurrencyFormatskey5" default="false" type="medium"
usage="CURRENCY"  formatindex="16">
<FormatCode>#,##0.00 CCC</FormatCode>
<DefaultName></DefaultName>
</FormatElement>

But I don't see a corresponding entry in Calc?

3) In Calc I see two format code
#,##0.00 [$THB];-#,##0.00 [$THB]
#,##0.00 [$THB];[RED]-#,##0.00 [$THB]

Which I don't see in the locale data file.
Where they come from?

Thanks.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to