Enhancement request: please add `locale` to list of allowed \write18 binaries

peacecop kalmer: kalmer at test.tennis24.ee
Fri Jul 29 01:37:12 CEST 2022


"Language: English. Region: United States. Today: July 29, 2022. (Com-
pare with July 29, 2022.) Time: 2:34:39 AM. Currency Symbol: $Integer:
123,456 Decimal: 123,456.78 Percentage: 65% Currency: $1,234,567.00"

Actually, my language is Estonian. Actually, my region is Estonia. 
Actually, the currency used here is euro.

On 28.07.22 10:51, David Carlisle wrote:
> \documentclass{article}
> \usepackage{tex-locale}
> \begin{document}
> Language: \CurrentLocaleLanguageNativeName.
> Region: \CurrentLocaleRegionNativeName.
> Today: \CurrentLocaleDate. (Compare with \today.)
> Time: \CurrentLocaleTime.
> Currency Symbol: \CurrentLocaleCurrency
> Integer:
> \texosqueryfmtnumber{\CurrentLocaleIntegerPattern}{123456}{0}{0}
> Decimal:
> \texosqueryfmtnumber{\CurrentLocaleDecimalPattern}{123456}{78}{0}
> Percentage:
> \texosqueryfmtnumber{\CurrentLocalePercentPattern}{0}{65}{0}
> Currency:
> \texosqueryfmtnumber{\CurrentLocaleCurrencyPattern}{1234567}{0}{0}
> \end{document}


More information about the tex-live mailing list.