Ticket #2756 (closed Bug: fixed)

Opened 8 years ago

portlet_calendar localisation

Reported by: song Owned by:
Priority: minor Milestone: 2.1
Component: Internationalization Version:
Severity: Keywords:
Cc:

Description

in win2000 and python 2.3.3 , "python:DateTime(date).strftime('%B')" well get locale's full month name. in my case, it's well be a big5 string. and weekdays same.

the big5 string can't get correct translation word with placelesstranslationservice, so the monthname and weekdays get incorrect response when /portal_properties/site_properties/default_charset was set utf-8.

Change History

comment:1 Changed 8 years ago by limi

The date/time format cleanup is scheduled for 2.0.1.

comment:2 Changed 7 years ago by Kruegi

This patch should help:

bash-2.05b$ diff ../../../CMFPlone/skins/plone_portlets/portlet_calendar.pt portlet_calendar.pt 36c36,37 < tal:define="monthstring python:date.strftime('%B').capitalize();" ---

tal:define="monthslist python:('january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december');

monthstring python:monthslist[date.month()-1].capitalize();"

comment:3 Changed 7 years ago by hannosch

This should be rewritten using the new localized_time method introduced in PLIP 98.

comment:4 Changed 7 years ago by hannosch

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in Plone 2.1 SVN.

Note: See TracTickets for help on using tickets.