On Thu, Mar 28, 2024 at 12:22 AM Alex Samorukov <
sammn...@gmail.com> 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'