https://issues.apache.org/ooo/show_bug.cgi?id=125980
--- Comment #17 from Ariel Constenla-Haile <[email protected]> --- (In reply to Aivaras Stepukonis from comment #16) > > That's (a) because the locale files attached here have only two currencies, > > but mainly (b) because that won't be possible, there is no ISO 4217 code for > > your third currency, it seems there is no such thing as "Lithuanian Euro", > > see > > http://www.iso.org/iso/home/standards/currency_codes.htm > > http://en.wikipedia.org/wiki/ISO_4217 > > > > The file won't compile without a valid ISO code in CurrencyID. > > I'm I understanding this correctly: > > One (1) can localize the format for currency numerals but (2) not the > abbreviation of the name of the currency? I assume that the reasoning behind this is that the currency code is not localizable because it is a standard, just like you don't translate ISO country codes and the like. > In other words, the correct and most widely used > way to write 35,27 € in Lithuanian is "35,27 Eur" and AOO, even after having > been completely localized, has no means to do this. I didn't try, but that might be possible with a User-defined number format. >From the source code perspective, the only possible hack/workaround is defining the currency as follows: <Currency legacyOnly="true" default="false" usedInCompatibleFormatCodes="false"> <CurrencyID>Eur</CurrencyID> <CurrencySymbol>€</CurrencySymbol> <BankSymbol>EUR</BankSymbol> <CurrencyName>Euras</CurrencyName> <DecimalPlaces>2</DecimalPlaces> </Currency> The currency ID is allowed to be an invalid ISO currency code only is it is declared as legacy https://svn.apache.org/viewvc/openoffice/trunk/main/i18npool/source/localedata/LocaleNode.cxx?revision=1468386&view=markup#l1416 And if it is legacy, it must not be default nor used in compatible format codes https://svn.apache.org/viewvc/openoffice/trunk/main/i18npool/source/localedata/LocaleNode.cxx?revision=1468386&view=markup#l1400 But this is a hack. If I understood you correctly, you argument that Eur should be the default; that's not possible because it's not a valid ISO currency code. -- You are receiving this mail because: You are the assignee for the issue. You are watching all issue changes.
