[CalendarServer-users] Using Locales

Morgen Sagen sagen at apple.com
Thu Mar 21 09:14:43 PDT 2013


Interesting.  It works with the .mo files we generate on OS X, but those are actually generated by calendar server itself from .strings files, and not using msgfmt.  I'll send you a sample .mo file that's working for me and you can try it.

On Mar 18, 2013, at 7:31 AM, Robert Bruce <rbruce at celsiusinc.com> wrote:

> Hi, 
> 
> I've got calendarserver 4.2 up and running but I'm having issues with locales... 
> 
> I've edited the the caledndarserver.po with my translations and then convert to calendarserver.mo
> 
> sudo msgfmt calendarserver.po -o calendarserver.mo
> 
> When I send external invitations I see my translations... so it's working...  but if I use any non ascii characters I calendarserver will crash.  
> 
> The document is utf-8... any ideas? 
> 
> Thank you
> 
> 3-03-18 10:28:27-0400 [-] [mailgateway] 2013-03-18 10:28:27-0400 [-] [twext.web2.server#info] Exception rendering:
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 2013-03-18 10:28:27-0400 [-] [twext.web2.server#error] [Failure instance: Traceback: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:397:errback
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:464:_startRunCallbacks
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:551:_runCallbacks
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1101:gotResult
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	--- <exception caught here> ---
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1043:_inlineCallbacks
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/python/failure.py:382:throwExceptionIntoGenerator
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twistedcaldav/resource.py:342:renderHTTP
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1043:_inlineCallbacks
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/python/failure.py:382:throwExceptionIntoGenerator
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twext/web2/static.py:128:renderHTTP
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1043:_inlineCallbacks
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/python/failure.py:382:throwExceptionIntoGenerator
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twext/web2/resource.py:112:renderHTTP
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1045:_inlineCallbacks
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twistedcaldav/mail.py:560:http_POST
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twistedcaldav/mail.py:1369:outbound
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twistedcaldav/mail.py:1462:generateEmail
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/dist-packages/twistedcaldav/mail.py:304:localizedLabels
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	/usr/lib/python2.7/encodings/utf_8.py:16:decode
> 2013-03-18 10:28:27-0400 [-] [mailgateway] 	]
> 
> 
> 
> _______________________________________________
> calendarserver-users mailing list
> calendarserver-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/calendarserver-users



More information about the calendarserver-users mailing list