Commits

Georg Brandl committed fdae679

Look for translations in the system default path as well, for distributions that install the catalogs there.

  • Participants
  • Parent commits 2309695

Comments (0)

Files changed (2)

 Release 0.6.2 (in development)
 ==============================
 
+* Look for Sphinx message catalogs in the system default path before
+  trying ``sphinx/locale``.
+
 * Fix the search for methods via "classname.methodname".
 
 * #155: Fix Python 2.4 compatibility: exceptions are old-style

File sphinx/builders/__init__.py

         if self.config.language is not None:
             self.info(bold('loading translations [%s]... ' %
                            self.config.language), nonl=True)
-            locale_dirs = [path.join(package_dir, 'locale')] + \
+            # the None entry is the system's default locale path
+            locale_dirs = [None, path.join(package_dir, 'locale')] + \
                 [path.join(self.srcdir, x) for x in self.config.locale_dirs]
             for dir_ in locale_dirs:
                 try: