mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix relative_path() argument order.
This commit is contained in:
parent
21cfc46dc3
commit
c6833609c0
@ -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(relative_path(source, env.srcdir))[0]
|
||||
docname = path.splitext(relative_path(env.srcdir, source))[0]
|
||||
textdomain = find_catalog(docname,
|
||||
self.document.settings.gettext_compact)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user