Fix: Generated i18n sphinx.js files are missing message catalog entries from '.js_t' and '.html'. The issue was introduced from Sphinx-1.1. Closes #1419

This commit is contained in:
Takayuki Shimizukawa
2014-03-21 10:58:41 +09:00
parent d0f18d4131
commit b751d5db52
37 changed files with 39 additions and 36 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ else:
jscatalog = {}
for message in catalog:
if any(x[0].endswith('.js') for x in message.locations):
if any(x[0].endswith(('.js', '.js_t', '.html')) for x in message.locations):
msgid = message.id
if isinstance(msgid, (list, tuple)):
msgid = msgid[0]