mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Look for translations in the system default path as well, for distributions that install the catalogs there.
This commit is contained in:
parent
d132ef67a5
commit
c0e848f0db
3
CHANGES
3
CHANGES
@ -1,6 +1,9 @@
|
|||||||
Release 0.6.2 (in development)
|
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".
|
* Fix the search for methods via "classname.methodname".
|
||||||
|
|
||||||
* #155: Fix Python 2.4 compatibility: exceptions are old-style
|
* #155: Fix Python 2.4 compatibility: exceptions are old-style
|
||||||
|
@ -176,7 +176,8 @@ class Builder(object):
|
|||||||
if self.config.language is not None:
|
if self.config.language is not None:
|
||||||
self.info(bold('loading translations [%s]... ' %
|
self.info(bold('loading translations [%s]... ' %
|
||||||
self.config.language), nonl=True)
|
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]
|
[path.join(self.srcdir, x) for x in self.config.locale_dirs]
|
||||||
for dir_ in locale_dirs:
|
for dir_ in locale_dirs:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user