summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-11-01 08:39:10 +0100
committerGeorg Brandl <georg@python.org>2011-11-01 08:39:10 +0100
commit063c82e58ecbe3a707fc60a3d61fd8713fd4a93a (patch)
tree002e68a2219160055f5921dde87c7fa6bc2a35fd
parent1b90c8371a357c4aa57b3ba5d0e4143680b40275 (diff)
parent0306c3bbc249fcd350c6a6644f899c2868896ea8 (diff)
downloadsphinx-063c82e58ecbe3a707fc60a3d61fd8713fd4a93a.tar.gz
Merge stable into default
-rw-r--r--sphinx/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py
index ae353ad4..54d9ee15 100644
--- a/sphinx/environment.py
+++ b/sphinx/environment.py
@@ -198,7 +198,7 @@ class Locale(Transform):
settings, source = self.document.settings, self.document['source']
# XXX check if this is reliable
assert source.startswith(env.srcdir)
- docname = path.splitext(path.relpath(source, env.srcdir))[0]
+ docname = path.splitext(relative_path(source, env.srcdir))[0]
textdomain = find_catalog(docname,
self.document.settings.gettext_compact)