LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   Set system language to spanish and set time of the system correctly. (https://www.linuxquestions.org/questions/arch-29/set-system-language-to-spanish-and-set-time-of-the-system-correctly-4175433504/)

nando321 10-22-2012 10:07 AM

Set system language to spanish and set time of the system correctly.
 
Greetings folks. Today I have two things I want to solve on my freshly installed Arch system.
First something I consider you need to know about my system is that I installed the KDE desktop environment and now to the point.
I would like to know if is there a package that can be installed to set the whole system to the spanish language or how to add it to the locale and set it as default.
Another thing I want to correct is the time of the system, it happens that everytime I restart the system it goes two hours back and I have to manually set it and I think it is because I setted the time to UTC, now I need to set the time manually and get rid of the UTC thing (if it is even possible).

That's all the information I posses right now, if any extra information is required just let me know.
Thank you for your time and in advance, thank you, any help will be very appreciated.

TruongAn 10-23-2012 03:30 AM

Quote:

Originally Posted by nando321 (Post 4812229)
Greetings folks. Today I have two things I want to solve on my freshly installed Arch system.
First something I consider you need to know about my system is that I installed the KDE desktop environment and now to the point.
I would like to know if is there a package that can be installed to set the whole system to the spanish language or how to add it to the locale and set it as default.
Another thing I want to correct is the time of the system, it happens that everytime I restart the system it goes two hours back and I have to manually set it and I think it is because I setted the time to UTC, now I need to set the time manually and get rid of the UTC thing (if it is even possible).

That's all the information I posses right now, if any extra information is required just let me know.
Thank you for your time and in advance, thank you, any help will be very appreciated.

To set the time, you have to specify correct time zone ans pointed out in archlinux wiki:
Quote:

Time Zone

Be sure that /etc/localtime is linked to the correct zone file. This is necessary not only for the localtime to be set correctly but also for other
programs you may use. You can do this by:
$ ls -l /etc/localtime

You can find the time zones listed in /usr/share/zoneinfo/ and then you will need to find a major city that exists to your time zone. If you live
in a specialized time zone area these will be listed in sub-directories.

To change your time zone, link /etc/localtime to the new zone file:
# ln -sf /usr/share/zoneinfo/<Zone>/<SubZone> /etc/localtime

Example:
# ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime

When you set the hardware clock the new time zone will be used; you can check your system's hardware clock within your BIOS.
To set the language you have to enable the necessary locale first, as pointed out in archlinux wiki:
Quote:

Enabling necessary locales

Before a locale can be used on the system, it has to be enabled first. To list all available locales, use:
$ locale -a

To enable a locale, uncomment the name of the locale in the file /etc/locale.gen. This file contains all the available locales that can be used
on the system. Revert the process to disable a locale. After the necessary locales are enabled, the system needs to be updated with the new locales:
# locale-gen

To display the locales now currently in use, use:
$ locale
Tip: Though it's most likely that just one language is used use on your computer, it can be helpful or even necessary to enable other locales as well. If you're running a multi-user system with users that do not speak en_US, their individual locale should at least be supported by your system.
US English example

First uncomment the following locales in /etc/locale.gen:
en_US.UTF-8 UTF-8

Then update the system as root:
# locale-gen
In short: read this (https://wiki.archlinux.org/index.php/Locale) and this (https://wiki.archlinux.org/index.php/Time)

nando321 10-24-2012 10:30 AM

Hi all. I also looked for help at the archlinux forum and had some extra help.
Now I've got everything set properly and here are the solutions:

Solution for the time: right click over the clock on the panel and go to "Preferences of the Digital Clock". In the window that pops up go to "Time zones" and search for "Default configuration of the clock" and set it to "UTC" and check in on the list your City/Country and UTC as well.

Solution to have the system in spanish language: go to the terminal and login as root, then type "pacman -S kde-l10n-es" and press Enter, wait until the package is downloaded and installed, go to "System Preferences" and find "locale", once there on the "Language" tab select "Spanish" and click on the arrow to send Spanish to prefered language, click "Apply" restart your system and the next time you login to your system the language will be set to spanish.

And that's it. Thank you everyone for your support.
This thread is now solved


All times are GMT -5. The time now is 02:48 PM.