Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: HOWTO: Set Gnome Calendar First Day of Week

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

    HOWTO: Set Gnome Calendar First Day of Week

    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, backup and edit the applicable locale file (use the result of the previous command if not en_US).
    Code:
    sudo cp /usr/share/i18n/locales/en_US /usr/share/i18n/locales/en_US.bak
    gksudo gedit /usr/share/i18n/locales/en_US
    Locate the following line and change the value. The value for Monday in en_US was 2. Select the appropriate number if you desire another day to be the start day.
    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; August 3rd, 2009 at 06:54 PM.

  2. #2
    Join Date
    Dec 2006
    Beans
    1

    Wink Re: HOWTO: Set Gnome Calendar First Day of Week

    Magnificently useful! Thank you.

  3. #3
    Join Date
    Dec 2006
    Location
    Norway
    Beans
    45
    Distro
    Ubuntu Development Release

    Re: HOWTO: Set Gnome Calendar First Day of Week

    Thank you
    Asus K95VM

  4. #4
    Join Date
    Jun 2008
    Location
    Saudi Arabia
    Beans
    12
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Set Gnome Calendar First Day of Week

    Is saturday weekday number 7?

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

    Re: HOWTO: Set Gnome Calendar First Day of Week

    Quote Originally Posted by malath View Post
    Is saturday weekday number 7?
    Yes, in the US en at least. Sunday is the first day and Saturday is day 7.

  6. #6
    Join Date
    Dec 2005
    Location
    Kosice, Slovakia
    Beans
    48
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Set Gnome Calendar First Day of Week

    perfect, i didn't wanted to use slovak localisation because its very incomplete, and this week start from sunday was driving me crazy. (btw, its possible to set 24h time, celsius temperatures, kilometers per hour for wind - why not start of week????)

    thanks a lot

  7. #7
    Join Date
    May 2008
    Location
    Bulgaria
    Beans
    303
    Distro
    Ubuntu Development Release

    Re: HOWTO: Set Gnome Calendar First Day of Week

    Thanks! That was simple but really usefull at the same time. Just when I thought that I would never find a fix for it

  8. #8
    Join Date
    Mar 2008
    Beans
    32

    Re: HOWTO: Set Gnome Calendar First Day of Week

    While this is usefull and will do the trick temporarily, it will only work until the "locales" package (which contains the /usr/share/i18n/locales/en_US file) is updated or reinstalled, because then this file will be overwritten/replaced with a new one from the locales package again.

    Is there a bug / changerequest for this issue? I think it should be something one can change in the calendar applet, as Selmi pointed out: "its possible to set 24h time, celsius temperatures, kilometers per hour for wind - why not start of week????"

    And FYI: This is not just a cosmetic thing; it affects week numbers too. Some years will have an offset of one for week numbers, depending on what the first day of the week is. I think in years where the first day is a monday (although I'm not 100% sure exactly when/how this offset occurs)

    Peter

  9. #9
    Join Date
    Jan 2009
    Beans
    1

    Re: HOWTO: Set Gnome Calendar First Day of Week

    Hi,

    I happened to have the same problem with openSUSE, which doesn't include locale-gen. Instead of doing this:

    $ sudo locale-gen

    I had to do this:

    $ gunzip -c /usr/share/i18n/charmaps/UTF-8.gz > /tmp/UTF-8
    $ sudo localedef -i /usr/share/i18n/locales/en_US --charmap /tmp/UTF-8 /usr/lib/locale/en_US.utf8
    $ rm /tmp/UTF-8

    I know, not really Ubuntu-related, but hopefully useful

    Best regards,
    jaume
    Last edited by jaumellarden; January 20th, 2009 at 02:17 PM.

  10. #10
    Join Date
    May 2007
    Beans
    131

    Re: HOWTO: Set Gnome Calendar First Day of Week

    Quote Originally Posted by Selmi View Post
    perfect, i didn't wanted to use slovak localisation because its very incomplete, and this week start from sunday was driving me crazy. (btw, its possible to set 24h time, celsius temperatures, kilometers per hour for wind - why not start of week????)

    thanks a lot
    Because it's Gnome, and the Gnome philosophy seems to be "Remove as many options from the user as possible! Then we get a better and cleaner interface!!". From what I've heard the option to change first day of week was included before, but they REMOVED it.

    Anyway, thanks a million for the tip! I like running my OS in English, but starting the week on a Sunday is not for me.

Page 1 of 3 123 LastLast

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
  •