Re: [Trac] Trac 1.6 datpicker is displayed in Chinese

Laszlo Elbert <[email protected]> Wed, 22 Jan 2025 23:43:09 -0800 (PST)
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <[email protected]>
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

On Thursday, January 23, 2025 at 12:01:41 AM UTC+1 Jun Omae wrote:

> On 2025/01/23 6:22, Jun Omae wrote:
> > 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.
> > 
>
> 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
>
> -- 
> 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 trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/4ae1b5e3-0352-4892-a668-b6eb1fb08941n%40googlegroups.com.