I have installed trac on my server running Ubuntu 12.04. The problem is that the users cannot change the language in their preferences. Instead, the following message is displayed:
Translations are currently unavailable. Trac has been localized to more than a dozen of languages but in order to be able to use them, the Babel package needs to be present when installing Trac. See TracInstall for details.
The installation has been done using the repositories of Ubuntu, but I could not find any package related to trac and babel, nor trac and anything related to internationalization.
How can I install the translations for trac?
According to Trac On Ubuntu, you need to install Babel (exactly what's the error message states):
One of the important things mentioned on the same page is:
So, if after installing of
python-babel
on top oftrac
localization is still not in place, try to reinstalltrac
with:And if still no result, most likely you'll need to purge both packages:
... and make a clean install of
trac
as per above.It's a packaging bug. Presently,
trac
package (I've checked 0.12.2-1 on oneiric and 0.12.2-1build1 on precise) does not include localization files.See Debian bug #644401 for further details.
For a time being, while the new version propagates to Ubuntu repositories (bug the maintainers), I'd suggest using Debian or Ubuntu Quantal package 0.12.3+, for which the issue is resolved. The following worked for me:
(I believe it's better to put your Trac offline while the package is upgraded.)
I've filed an Ubuntu bug #1016237 on this subject, see the linked Launchpad bug page for its status.