Hi,

On Thu, Mar 28, 2024 at 12:22 AM Alex Samorukov <[email protected]> wrote:
> 2. Problem itself - trac is broken with zh_TW locale. How to validate:
>
> - switch locale to zh_TW.
> - try to create new ticket. Error would occur
>
> Error is not related to the locale itself, but to the 
> get_time_format_jquery_ui() function.
>
> This is a trace:
>
> Internal Server Error: <RequestWithSession "GET '/newticket'">, referrer 
> 'https://www.smartmontools.org/admin/general/logging' Traceback (most recent 
> call last):   File "/usr/local/lib/python3.9/site-packages/trac/web/main.py", 
> line 609, in dispatch_request
> dispatcher.dispatch(req)   File 
> "/usr/local/lib/python3.9/site-packages/trac/web/main.py", line 301, in 
> dispatch
> raise e   File "/usr/local/lib/python3.9/site-packages/trac/web/main.py", 
> line 247, in dispatch
> resp = chosen_handler.process_request(req)   File 
> "/usr/local/lib/python3.9/site-packages/trac/ticket/web_ui.py",
> line 162, in process_request     return self._process_newticket_request(req)
> File "/usr/local/lib/python3.9/site-packages/trac/ticket/web_ui.py", line 
> 547, in _process_newticket_request     chrome.add_jquery_ui(req)
> File "/usr/local/lib/python3.9/site-packages/trac/web/chrome.py", line 1135, 
> in add_jquery_ui     'time_format': get_time_format_jquery_ui(req.lc_time),
> File "/usr/local/lib/python3.9/site-packages/trac/util/datefmt.py", line 450, 
> in get_time_format_jquery_ui     return f % values KeyError: 'B'

I just added comment of #13482 about your report in
https://trac.edgewall.org/ticket/13482#comment:9.

Also, workaround is to downgrade Babel to 2.9.1.

-- 
Jun Omae <[email protected]> (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMagPrF67rk6y%3DU%2Ba%3DYfOuy5RC5HSXm1sDem8XwkYf4xyoA%40mail.gmail.com.

Reply via email to