gnome calendar first week day

One damn disgusting thing about using Gnome with an English locale is, that shows me the first day of the week Sunday. It is terribly uncomfortable and irritating. The solution is damn simple to change the order of the localization file from

first_weekday 1 на first_weekday 2. And because I'm lazy to do it by hand every time I did it in a script 😉 That when I update the localizations and the situation is blurred ugly. The script must be run root.

#!/bin/bash

if [ $EUID -ne 0 ]
then
 echo -en "\n \033[1;31m Must be a root \033[0m \n"
 exit 0
fi

LOCAL=$(locale | grep LANG | cut -d"=" -f2 | cut -d"." -f1)
FILE="/usr/share/i18n/locales/$LOCAL"

if [ -f $FILE ]
then
 sed -i 's/^first_weekday.*/first_weekday 2/' $FILE

 locale-gen
 killall gnome-panel

 echo -en "\n \n \n \033[44;1;33m Done \033[0m \n \n \n"
else
 echo -en "\n \033[1;31m File doesent exixst \033[0m \n"
fi

If you eventually use another type of localization, the script will intercept it. And will do it on Monday if it is not и Here is a link to script.

2 comments

  1. Аз бях се справил с това (преди да стана мързелив и да не ми хука), като смених локала на Датскитака не с притеснявам от обновяванията 😉

    1. ами това не е нещо ново просто наскоро ми се обновиха локалите и си намерих скрипта 😀

Leave a Reply

Your email address will not be published. Required fields are marked *

Anti SPAM *