6 Replies Latest reply: Dec 12, 2013 7:36 AM by Alex Pupin
umigliore Level 1 Level 1

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)
Solved by teo_from_bg on Feb 14, 2012 3:42 AM Solved

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







Reply by umigliore on Feb 14, 2012 5:14 AM Helpful

It works, thanks!

 

Just a little correction to files addresses, that are:

 

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

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

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

All replies

  • teo_from_bg Level 1 Level 1

    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

    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







  • umigliore Level 1 Level 1

    It works, thanks!

     

    Just a little correction to files addresses, that are:

     

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

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

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

  • fraela Level 1 Level 1

    Great!

     

    This solved also my server problem, THANKS!!

  • Studio Chillè Level 1 Level 1

    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

    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