Difference between revisions of "Locale"

Marked this version for translation
m (added languages and translate tags)
(Marked this version for translation)
Line 2: Line 2:
__TOC__
__TOC__
<translate>
<translate>
= Locale =
= Locale = <!--T:1-->


<!--T:2-->
The locale is all the settings related to localization, like language, time, currency etc.
The locale is all the settings related to localization, like language, time, currency etc.
In Manjaro you can set the desired locale settings with [[Manjaro Settings Manager]] GUI application.
In Manjaro you can set the desired locale settings with [[Manjaro Settings Manager]] GUI application.
Sometimes, because of complicated setups and often after some user mistakes, you might not be able to have the correct settings for each user. Below you will see how you can check and set properly your configuration manually.
Sometimes, because of complicated setups and often after some user mistakes, you might not be able to have the correct settings for each user. Below you will see how you can check and set properly your configuration manually.


<!--T:3-->
In Linux systems all locales are available for installation, they just need to be enabled and generated. The settings are configured initially system-wide, but it is possible to override them for user-session.
In Linux systems all locales are available for installation, they just need to be enabled and generated. The settings are configured initially system-wide, but it is possible to override them for user-session.


== System ==
== System == <!--T:4-->
Check your current system settings (type in terminal)
Check your current system settings (type in terminal)
<pre>
<pre>
Line 38: Line 40:
Here is a sample
Here is a sample


<!--T:5-->
<pre>
<pre>
  LANG=zh_TW.UTF-8
  LANG=zh_TW.UTF-8
Line 53: Line 56:
</pre>
</pre>


== User ==
== User == <!--T:6-->


<!--T:7-->
The system locale can be overriden for a user that wants a different locale language by creating (or editing if it already exists) a file named `.xprofile` in the home folder `/home/USERNAME/.xprofile`. Edit it with any user specific locale settings as below.   
The system locale can be overriden for a user that wants a different locale language by creating (or editing if it already exists) a file named `.xprofile` in the home folder `/home/USERNAME/.xprofile`. Edit it with any user specific locale settings as below.   
This sample illustrates how to set Traditional Chinese as the UI language while keeping Australian English for the formats.
This sample illustrates how to set Traditional Chinese as the UI language while keeping Australian English for the formats.
Line 69: Line 73:
</pre>
</pre>


== Console fonts ==
== Console fonts == <!--T:8-->
The file '''vconsole.conf''' holds information on your keyboard layout and the font displayed in the TTY - the physical console.
The file '''vconsole.conf''' holds information on your keyboard layout and the font displayed in the TTY - the physical console.


<!--T:9-->
Here is a sample setup for danish keyboard and font.
Here is a sample setup for danish keyboard and font.


Line 79: Line 84:
</pre>
</pre>
    
    
== Troubleshooting ==
== Troubleshooting == <!--T:10-->
If you have followed the above guide and still have issues, there are possibilities of other files conflicting. Xorg, GDM and Plasma may have overriden your settings. The authoritative Archlinux wiki for locale is an excellent place to look for a solution and of course the Manjaro Forum is always the more welcoming community.
If you have followed the above guide and still have issues, there are possibilities of other files conflicting. Xorg, GDM and Plasma may have overriden your settings. The authoritative Archlinux wiki for locale is an excellent place to look for a solution and of course the Manjaro Forum is always the more welcoming community.


<!--T:11-->
Archlinux wiki is an ultimate source of Linux related information.  
Archlinux wiki is an ultimate source of Linux related information.  


<!--T:12-->
Just remember that Arch is not Manjaro so '''please ask Manjaro questions in the Manjaro forum'''.
Just remember that Arch is not Manjaro so '''please ask Manjaro questions in the Manjaro forum'''.


== References ==
== References == <!--T:13-->
Arch Linux Wiki - [https://wiki.archlinux.org/index.php/locale Locale], [https://wiki.archlinux.org/index.php/Xprofile Xprofile]
Arch Linux Wiki - [https://wiki.archlinux.org/index.php/locale Locale], [https://wiki.archlinux.org/index.php/Xprofile Xprofile]


<!--T:14-->
Manjaro Forum Topics [https://forum.manjaro.org/t/one-distinct-language-per-user/37097/6]
Manjaro Forum Topics [https://forum.manjaro.org/t/one-distinct-language-per-user/37097/6]


<!--T:15-->
This guide was copied over to [https://forum.manjaro.org/t/localize-manjaro/42946 Localize Manjaro] Forum Tutorials,  
This guide was copied over to [https://forum.manjaro.org/t/localize-manjaro/42946 Localize Manjaro] Forum Tutorials,  
{02:19, 21 March 2018 (CET)}
{02:19, 21 March 2018 (CET)}