10.5: Set custom number and currency formats |
|
|
You can set custom number and currency formats using the defaults system. For example, entering the following code in Terminal sets the thousands separator to a space, and the decimal separator to a comma, leaving the currency symbol as set in International preference pane:
defaults write -g AppleICUNumberSymbols -dict 0 ',' 1 ' ' 10 ',' 17 ' '
Some useful keys for the AppleICUNumberSymbols:
0 -- decimal separator for numbers
1 -- thousands separator for numbers
4 -- starting character for numbers; for example, if you set the value to a, instead of numbers 0-9 you will see characters a-j (well, this is not that useful!).
8 -- currency symbol; don't set this to honor the settings in the International preference pane
10 -- decimal separator for currency
17 -- thousands separator for ...
|