Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Trac 1.6 datpicker is displayed in Chinese

30 views
Skip to first unread message

Laszlo Elbert

unread,
Jan 22, 2025, 10:49:11 AMJan 22
to Trac Users
Dear Fellow Colleagues.
I migrated our trac projects to Ubuntu 24.04 using the apt provided trac 1.6.1 package.
Everything works fine, apart from the datepicker which is always displayed in Simplified Chinese. What I tried:
  1. tell Apache2 to use en in Default_Language in mime.conf
  2. set trac.ini default_language = en_US - at least this latter converted the date format right.
The Ubuntu default installation missed (bug here) the jquery-ui-i18n.js, so I recreated the symlink from /usr/lib/Python3/dist_packages/trac/htdocs/js and I also did a trac-admin var/trac/env/ deploy /var/trac/htdocs. However, absolutely no luck to get the datepicker in Engish working. Although, it is installed in /usr/share/javascript/ and also jquery-ui-addon.
Any help  would be appreciated to get the datepicker right. Probably the Ubuntu packagee misses a symlink, but I do not which one.
Many thanks in advance for your help.
Laszlo Elbert
lrwxrwxrwx 1 root root    55 Nov 19  2023 jquery.js -> ../../../../../../share/javascript/jquery/jquery.min.js
lrwxrwxrwx 1 root root    82 Nov 19  2023 jquery-ui-addons.js -> ../../../../../../share/javascript/jquery-timepicker/jquery-ui-timepicker-addon.js
lrwxrwxrwx 1 root root    70 Jan 21 22:53 jquery-ui-i18n.js -> ../../../../../../share/javascript/jquery-ui/ui/i18n/jquery-ui-i18n.js
lrwxrwxrwx 1 root root    57 Nov 19  2023 jquery-ui.js -> ../../../../../../share/javascript/jquery-ui/jquery-ui.js


Jun Omae

unread,
Jan 22, 2025, 4:22:12 PMJan 22
to trac-...@googlegroups.com
On 2025/01/23 0:46, Laszlo Elbert wrote:
> Dear Fellow Colleagues.
> I migrated our trac projects to Ubuntu 24.04 using the apt provided trac 1.6.1 package.
> Everything works fine, apart from the datepicker which is always displayed in Simplified Chinese. What I tried:
>
> 1. tell Apache2 to use en in Default_Language in mime.conf
> 2. set trac.ini default_language = en_US - at least this latter converted the date format right.
>
> The Ubuntu default installation missed (bug here) the jquery-ui-i18n.js, so I recreated the symlink from /usr/lib/Python3/dist_packages/trac/htdocs/js and I also did a trac-admin var/trac/env/ deploy /var/trac/htdocs. However, absolutely no luck to get the datepicker in Engish working. Although, it is installed in /usr/share/javascript/ and also jquery-ui-addon.
> Any help  would be appreciated to get the datepicker right. Probably the Ubuntu packagee misses a symlink, but I do not which one.
> Many thanks in advance for your help.
> Laszlo Elbert
> lrwxrwxrwx 1 root root    55 Nov 19  2023 jquery.js -> ../../../../../../share/javascript/jquery/jquery.min.js
> lrwxrwxrwx 1 root root    82 Nov 19  2023 jquery-ui-addons.js -> ../../../../../../share/javascript/jquery-timepicker/jquery-ui-timepicker-addon.js
> lrwxrwxrwx 1 root root    70 Jan 21 22:53 jquery-ui-i18n.js -> ../../../../../../share/javascript/jquery-ui/ui/i18n/jquery-ui-i18n.js
> lrwxrwxrwx 1 root root    57 Nov 19  2023 jquery-ui.js -> ../../../../../../share/javascript/jquery-ui/jquery-ui.js


The jquery-ui-i18n.js file is originally provided by Trac and the same file doesn't exist in the other packages. So that, it is unable to symlink to a file in other packages. Please report to Ubuntu package maintainer of the trac.

--
Jun Omae <jun...@gmail.com> (大前 潤)

Jun Omae

unread,
Jan 22, 2025, 6:01:41 PMJan 22
to trac-...@googlegroups.com
The workaround is to retrieve the file from the repository of Trac and store it:

$ curl -s https://svn.edgewall.org/repos/trac/tags/trac-1.6/trac/htdocs/js/jquery-ui-i18n.js \
>/usr/lib/python3/dist-packages/trac/htdocs/js/jquery-ui-i18n.js

Laszlo Elbert

unread,
Jan 23, 2025, 2:43:09 AMJan 23
to Trac Users
Many thanks, it just worked. I already spent long hours on it, but now you fixed it in 5 minutes.
Really appreciated, thanks again.
Laszlo
Reply all
Reply to author
Forward
0 new messages