How to change gnome applet "cal" to show start day from monday

Tagged:  

Default Linux US locale configured to have Sunday as a first day of the week. I don't live in USA, however I want to use US locale in Gnome. Everything except first day of the week satisfies me. So we will change this.

For this we need to modify out linux locale. We will copy it to $PWD and modify it using your favourite editor (mine is vi)

bash# cp /usr/share/i18n/locales/en_US en_US_modified
bash# vi en_US_modified

We should change

week    7;19971130;7
to
week    7;19971130;5

and add 2 lines just after it

first_weekday 2
first_workday 2

and put back as different name

bash# localedef -c -i en_US_modified -f UTF-8 locale/en_US.utf8@iso
bash# cp -r locale/en_US.utf8\@iso /usr/lib/locale/

Then we should open /etc/sysconfig/i18n and change LANG variable to

LANG="en_US.utf8\@iso"

or you can just copy it instead of original

bash# rsync -va locale/en_US.utf8\@iso/ /usr/lib/locale/en_US.utf8/

And reboot the system

bash# reboot

Now you can see that in your system (especially gnome cal, calendar) shows weeks correctly.

Taken from http://gentoo-wiki.com/HOWTO_localedef

AttachmentSize
en_US_modified.5.39 KB

Your rating: None