Skip to content

Commit

Permalink
Merge pull request #7199 from tk0miya/autosummary_i18n
Browse files Browse the repository at this point in the history
autosummary: make a message translatable
  • Loading branch information
tk0miya authored Feb 23, 2020
2 parents d54571d + 170699e commit bd28aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/ext/autosummary/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def generate_autosummary_docs(sources: List[str], output_dir: str = None,
try:
name, obj, parent, mod_name = import_by_name(name)
except ImportError as e:
_warn('[autosummary] failed to import %r: %s' % (name, e))
_warn(__('[autosummary] failed to import %r: %s') % (name, e))
continue

content = generate_autosummary_content(name, obj, parent, template, template_name,
Expand Down

0 comments on commit bd28aa5

Please sign in to comment.