Question

I have a Trac installation running which was installed on a clean, new virtual server. Unfortunately, the idea to provide Trac in a localized version (German to be specific) came after Trac was up and running.

As far as I understand, I would have had to install Babel before installing Trac in order to provice the software in multiple languages. From http://trac.edgewall.org/wiki/TracL10N :

If you're only interested in using a localized version of Trac, then nothing more than a standard TracInstall is needed, provided you installed Babel before.

Is there any chance to provide a localization when Trac is already running? I was obviously able to install Babel, but I do not know what to do next.

Your help is gladly appreciated, thanks in advance!

Was it helpful?

Solution

For most scenarios you'll need to reinstall Trac after installing Babel. This shouldn't cause you any concern, and should not affect your data (though follow the common advice of always making a backup before doing anything).

If you have installed Trac from the source, you can force the catalogs to compile using the command: python setup.py compile_catalog -f. However, that really should not be necessary and you should be able to just run python setup.py install again. If you installed using easy_install, executing easy_install again should be sufficient.

Edit: When using distribute/setuptool 0.6.29 or later, the locale data is not included in the egg. A fix will be applied for Trac 0.12.6/1.0.2/1.1.2 (#11640). In the meantime, one workaround is to use pip to install Trac.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top