Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: [SOLVED] Calendar - how to set Monday 1st day

  1. #11
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Calendar - how to set Monday 1st day

    Here is how to change the gnome calendar first day of the week to Monday:

    Check which locale you are using (mine is en_US, don't worry about the .UTF ending):
    Code:
    locale
    Next, edit the applicable locale file (for me, en_US, use the result of the previous command if not en_US):
    Code:
    gksudo gedit /usr/share/i18n/locales/en_US
    Locate the following line and change the value to 2:
    Code:
    first_weekday 2
    Save the file and then:

    Update the locales:
    Code:
    sudo locale-gen
    Refresh the desktop:
    Code:
    killall gnome-panel
    The first day should now be Monday
    Last edited by drs305; May 31st, 2008 at 02:53 PM. Reason: typo

  2. #12
    Join Date
    Oct 2007
    Beans
    441

    Re: Calendar - how to set Monday 1st day

    Woah, maybe this should be a feature request or something to do this a bit more easily. I don't think you can really say that people from country X think the week starts on day Y. If you asked people in the UK, half would say Monday, half would say Saturday and anyone from my uni would say Thursday! (don't ask) So it shouldn't really be a localisation issue.

    I had a look in gconf editor thinking it would be in there, that would make much more sense. But really you should just be able to right click and select preferences.

  3. #13
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Calendar - how to set Monday 1st day

    Quote Originally Posted by mister_pink View Post
    Woah, maybe this should be a feature request or something to do this a bit more easily.
    I agree - it would be nice to just right click and set it in the calendar. If you use the command line instructions above, you can probably accomplish it in less a minute or two. The problem is finding the commands ...

  4. #14
    Join Date
    Mar 2008
    Location
    Poland, Europe
    Beans
    211
    Distro
    Ubuntu

    Talking Re: Calendar - how to set Monday 1st day

    @drs305 YES ! Thank you for your helpful post! Finally there was someone who actually knew where to look for that option ^-^ This will make my life easier haha Your post has been thanked!

    Have a lovely day ^_^

    // I prefer using en_US locale, although I'm a Pole, and Monday is the first day in Poland by default

  5. #15
    Join Date
    Apr 2008
    Beans
    268

    Re: Calendar - how to set Monday 1st day

    Quote Originally Posted by drs305 View Post
    Here is how to change the gnome calendar first day of the week to Monday:

    Check which locale you are using (mine is en_US, don't worry about the .UTF ending):
    Code:
    locale
    Next, edit the applicable locale file (for me, en_US, use the result of the previous command if not en_US):
    Code:
    gksudo gedit /usr/share/i18n/locales/en_US
    Locate the follwoing line and change the value to 2:
    Code:
    first_weekday 2
    Save the file and then:

    Update the locales:
    Code:
    sudo locale-gen
    Refresh the desktop:
    Code:
    killall gnome-panel
    The first day should now be Monday
    this is great, you should post it in the subforum "tutorials and tips" and it should be made tutorial of the week

  6. #16
    Join Date
    Aug 2008
    Location
    Sofia, Bulgaria
    Beans
    4
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] Calendar - how to set Monday 1st day

    Well, I hope someone reads this.

    For example, I do not want to change the global settings.
    How to do this locally for me only.

    I have done the following on the commandline:
    Code:
    berov@berov-laptop:~$ vim ~/.profile
    #added the following line in my .profile file
    export  LC_TIME="bg_BG.UTF-8"
    #OR if you want the clock to be in english
    export  LC_TIME="en_GB.UTF-8"
    #save the file and exit
    :x
    Log Out and then Log In again

    Now Monday is the first day of the week.
    It is still a hack but does not change the global settings.

  7. #17
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [SOLVED] Calendar - how to set Monday 1st day

    berov,

    thanks for sharing that. the more options the better.
    Back to Xorg...

    Retired.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •