Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2129  / 3 Years ago, wed, may 12, 2021, 8:11:06

I use ubuntu 11.10 with Unity/GNOME 3 and I want to make the Metric System the default. Is
there a United States Metric System format?
in Ubuntu in the System Settings under keyboard layouts there is Format but I see no way to change it to Metric, with out changing from United States.


More From » 11.10

 Answers
1

While it is possible to create new locale data, it is a fair bit of work. You can however select different locales for different uses through the various LC_* environment variables (this is what the Language Settings control panel does when you choose a different language). This may be enough for what you want.



The locale man page provides some details of the various locale categories (see the Environment Variables section). Some variables you might be interested in include:




  • LC_MEASUREMENT - Measurement units (Metric or Other).

  • LC_PAPER - Paper size.

  • LC_NUMERIC - Non-monetary numeric formats. I'm not sure whether this one would be relevant though, since I don't think there is much difference in the way US writes their numbers.



If you want to change any of these, I would suggest doing it by editing ~/.profile and adding a line like:



export LC_XXX="YYY"


Since that is how the current language selector stores its preferences.



Setting any of these environment variables to a locale that uses metric measurements (e.g. en_AU.utf-8 or en_NZ.utf-8) should help change the defaults various applications use.



There will probably still be a few applications that default to US measurement formats though, since I've seen a few that effectively use LC_MESSAGES to pick units (usually by attempting to translate a special string and rely on the translator to translate it in a way that indicates the desired units). For those you'll either have to live with the US default, or change the messages locale to something else (which will probably have the side effect of switching to British English).


[#41229] Friday, May 14, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
utonmbo

Total Points: 134
Total Questions: 104
Total Answers: 118

Location: Argentina
Member since Mon, Jan 3, 2022
2 Years ago
;