Search code examples
trac

change default language of trac to german


I installed trac v1.0.10. The language of the trac-system (e.g. navigation) is English.

The content of the trac is in German. So how can I change the default_language to German, as well?

The default language of the server is German.

BR Christian


Solution

  • Install Babel (python-babel in some package managers). Set default_language in the [trac] section of trac.ini.

    After installing Babel you can set your session preference from the language preference page (/prefs/language). The default_language setting controls the default. If the language setting can't be changed, then the language catalogs haven't been compiled. Often it's necessary to uninstall Trac, install babel and then reinstall Trac. The point is, Babel must be installed when Trac is installed.