Skip navigation

wrong weekday labels in web calendar

1117 Views 6 Replies Latest reply: Dec 12, 2013 7:36 AM by Alex Pupin RSS
umigliore Calculating status...
Currently Being Moderated
Feb 10, 2012 3:58 AM

I just installed Lion Server 10.7.3, I got just a problem with web calendar localization: the day of the week is worng (today friday 10 is showed as saturday 10)

 

I found the the translation file is wrong, i.e.the file for italian strings ( /usr/share/collabd/coreclient/locales/it.lproj/default.strings ) doesn't match the equivalent english key:

 

English default.strings

 


<key>date.abbr_day_names</key>

<string>Sun,Mon,Tues,Wed,Thur,Fri,Sat</string>

 

Italian default.strings

 


<key>date.abbr_day_names</key>

<string>lun,mar,mer,gio,ven,sab,dom</string>

 

The correct translation should be:


<key>date.abbr_day_names</key>

<string>dom,lun,mar,mer,gio,ven,sab</string>

 

 

Of course, I tried to change it and restart the server, but the web cal page is not correct. There is a way to force the webcal to update this file?

OS X Server, Mac OS X (10.7.3)
  • teo_from_bg Calculating status...
    Currently Being Moderated
    Feb 13, 2012 1:43 AM (in response to umigliore)

    Hi unmigliore,

    I also have the same problem, but I have not found a proper solution.

    Only when the localization on the client is in English, webcal show weekday label correctly

    if you have some tips, post it...

    TNX

  • teo_from_bg Level 1 Level 1 (10 points)
    Currently Being Moderated
    Feb 14, 2012 3:42 AM (in response to teo_from_bg)

    Ok! Question Solved

     

    To show the correctly day of week change this files:

     

    /usr/share/collabd/coreclient/locales/it.lproj/default.strings

    /usr/share/collabd/notification/locales/it.lproj/default.strings

    /usr/share/collabd/public/locales/it.lproj/strings.js

     

    1) in files named default.strings must be changed the bellow line (line 38; Line 40):

    <string>lun,mar,mer,gio,ven,sab,dom</string> in to <string>dom,lun,mar,mer,gio,ven,sab</string>


    <string>lunedì,martedì,mercoledì,giovedì,venerdì,sabato,domenica</string> in to <string>domenica,lunedì,martedì,mercoledì,giovedì,venerdì,sabato</string>

     

    2) in files named strings.js must be changed the bellow line (line 435; line 436; line 437):

     

    line 435

    "_Dates.Weekday": "lun,mar,mer,gio,ven,sab,dom-,", in to "_Dates.Weekday": "dom lun,mar,mer,gio,ven,sab,"-,

     

    line 436

    "_Dates.ShortWeekday": "L,M,M,G,V,D,D", in to "_Dates.ShortWeekday": "D,L,M,M,G,V,S",

     

    line 437

    "_Dates.LongWeekday": "lunedì,martedì,mercoledì,giovedì,venerdì,sabato,domenica", in to "_Dates.LongWeekday": "domenica,lunedì,martedì,mercoledì,giovedì,venerdì,sabato",

     

    3) Restart Wiki server

     

    ...it work properly







  • fraela Calculating status...
    Currently Being Moderated
    Jan 7, 2013 3:45 AM (in response to umigliore)

    Great!

     

    This solved also my server problem, THANKS!!

  • Studio Chillè Calculating status...
    Currently Being Moderated
    Nov 19, 2013 8:42 AM (in response to umigliore)

    Could you tell me how can I do same thing in Mac OS X 10.9 (Mavericks) ?

    thank you

    Giancarlo

  • Alex Pupin Level 1 Level 1 (0 points)
    Currently Being Moderated
    Dec 12, 2013 7:36 AM (in response to Studio Chillè)

    Giancarlo,

    you can modify the file:

     

    /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclientbase/pu blic/locales/it.lproj/strings.js

     

    No need to restart Caledar service o Wiki.

     

    Remember to check this file at every Server app update.

     

    Alex

Actions

More Like This

  • Retrieving data ...

Bookmarked By (2)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.