Thu, 21 Feb 2019 19:22:11 +0100
PreviewerHTML: added a error handler for docutils SystemMessage exceptions.
UI/Previewers/PreviewerHTML.py | file | annotate | diff | comparison | revisions | |
i18n/eric6_cs.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_de.qm | file | annotate | diff | comparison | revisions | |
i18n/eric6_de.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_empty.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_en.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_es.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_fr.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_it.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_pt.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_ru.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_tr.ts | file | annotate | diff | comparison | revisions | |
i18n/eric6_zh_CN.ts | file | annotate | diff | comparison | revisions |
--- a/UI/Previewers/PreviewerHTML.py Tue Feb 19 19:08:03 2019 +0100 +++ b/UI/Previewers/PreviewerHTML.py Thu Feb 21 19:22:11 2019 +0100 @@ -11,6 +11,7 @@ try: # Only for Py2 import StringIO as io # __IGNORE_EXCEPTION__ + str = unicode except (ImportError, NameError): import io # __IGNORE_WARNING__ @@ -659,6 +660,7 @@ try: import docutils.core # __IGNORE_EXCEPTION__ + import docutils.utils # __IGNORE_EXCEPTION__ except ImportError: return self.tr( """<p>ReStructuredText preview requires the""" @@ -670,8 +672,15 @@ # redirect sys.stderr because we are not interested in it here origStderr = sys.stderr sys.stderr = io.StringIO() - html = docutils.core.publish_string( - text, writer_name=htmlFormat.lower()).decode("utf-8") + try: + html = docutils.core.publish_string( + text, writer_name=htmlFormat.lower()).decode("utf-8") + except docutils.utils.SystemMessage as err: + errStr = str(err).split(":")[-1].replace("\n", "<br/>") + return self.tr( + """<p>Docutils returned an error:</p><p>{0}</p>""" + ).format(errStr) + sys.stderr = origStderr return html
--- a/i18n/eric6_cs.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_cs.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51260,65 +51260,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation type="unfinished">Zapnout JavaScript</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation type="unfinished"></translation> </message>
--- a/i18n/eric6_de.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_de.ts Thu Feb 21 19:22:11 2019 +0100 @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS> -<TS version="2.1" language="de"> +<!DOCTYPE TS><TS version="2.0" language="de" sourcelanguage=""> <context> <name>AboutDialog</name> <message> @@ -1973,8 +1972,8 @@ </message> <message> <location filename="../WebBrowser/Bookmarks/BookmarksMenu.py" line="170"/> - <source>Open in New Tab Ctrl+LMB</source> - <translation>In neuem Register öffnen Strg+LMK</translation> + <source>Open in New Tab<byte value="x9"/>Ctrl+LMB</source> + <translation>In neuem Register öffnen<byte value="x9"/>Strg+LMK</translation> </message> <message> <location filename="../WebBrowser/Bookmarks/BookmarksMenu.py" line="174"/> @@ -2052,8 +2051,8 @@ </message> <message> <location filename="../WebBrowser/Bookmarks/BookmarksToolBar.py" line="91"/> - <source>Open in New Tab Ctrl+LMB</source> - <translation>In neuem Register öffnen Strg+LMK</translation> + <source>Open in New Tab<byte value="x9"/>Ctrl+LMB</source> + <translation>In neuem Register öffnen<byte value="x9"/>Strg+LMK</translation> </message> <message> <location filename="../WebBrowser/Bookmarks/BookmarksToolBar.py" line="95"/> @@ -26026,8 +26025,8 @@ </message> <message> <location filename="../Helpviewer/HelpBrowserWV.py" line="1223"/> - <source>Open Link in New Tab Ctrl+LMB</source> - <translation>Link in neuem Fenster öffnen Strg+LMK</translation> + <source>Open Link in New Tab<byte value="x9"/>Ctrl+LMB</source> + <translation>Link in neuem Fenster öffnen<byte value="x9"/>Strg+LMK</translation> </message> <message> <location filename="../Helpviewer/HelpBrowserWV.py" line="1314"/> @@ -51376,65 +51375,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation><p>Für diesen Dateityp ist keine Vorschau verfügbar.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation><p>Die ReStructuredText-Vorschau erfordert das <b>python-docutils</b>-Paket.<br/>Installiere es mit dem Paketmanager,'pip install docutils' oder siehe <a href="http://pypi.python.org/pypi/docutils">diese Seite.</a></p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation><p>Die ReStructuredText-Vorschau erfordert das <b>sphinx</b>-Paket.<br/>Installiere es mit dem Paketmanager,'pip install Sphinx' oder siehe <a href="http://pypi.python.org/pypi/Sphinx">diese Seite.</a></p><p>Alternativ kann die Verwendung von Sphinx auf der Konfigurationsseite Editor, Dateibehandlung deaktiviert werden.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation><p>Die Markdown-Vorschau erfordert das <b>Markdown</b>-Paket.<br/>Installiere es mit dem Paketmanager, 'pip install Markdown' oder siehe <a href="http://pythonhosted.org/Markdown/install.html">die Installationsanleitung.</a></p></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation><p>Docutils lieferte einen Fehler zurück:</p><p>{0}</p></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation>Auswählen, um JavaScript für die Vorschau zu aktivieren</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation>JavaScript aktivieren</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation>Auswählen, um Unterstützung für Server Side Includes zu aktivieren</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation>Server Side Includes aktivieren</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation><p>Für diesen Dateityp ist keine Vorschau verfügbar.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation>Vorschau – {0}</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation>Vorschau</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation><b>HTML Vorschau ist nicht verfügbar!<br/>Installiere QtWebEngine oder QtWebKit.</b></translation> </message> @@ -85229,8 +85233,8 @@ </message> <message> <location filename="../WebBrowser/WebBrowserView.py" line="650"/> - <source>Open Link in New Tab Ctrl+LMB</source> - <translation>Link in neuem Fenster öffnen Strg+LMK</translation> + <source>Open Link in New Tab<byte value="x9"/>Ctrl+LMB</source> + <translation>Link in neuem Fenster öffnen<byte value="x9"/>Strg+LMK</translation> </message> <message> <location filename="../WebBrowser/WebBrowserView.py" line="656"/>
--- a/i18n/eric6_empty.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_empty.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51121,65 +51121,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation type="unfinished"></translation> </message>
--- a/i18n/eric6_en.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_en.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51168,65 +51168,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation type="unfinished"></translation> </message>
--- a/i18n/eric6_es.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_es.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51378,65 +51378,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation><p>No hay vista previa disponible para este tipo de archivo.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation><p>La previsualización de ReStructuredText requiere el package <b>python-docutils</b> .<br/>Installar con el gestor de paquetes, 'pip install docutils' o ver <a href="http://pypi.python.org/pypi/docutils">esta página .</a></p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation><p>La previsualización de ReStructuredText requiere el package <b>sphinx</b> .<br/>Installar con el gestor de paquetes, 'pip install sphinx' o ver <a href="http://pypi.python.org/pypi/Sphinx">esta página .</a></p><p>Como alternativa, se puede deshabilitar el uso de Sphinx en el Editor, página de configuración de Gestión de Archivos.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation><p>La previsualización de Markdown requiere del package <b>Markdown</b>.<br/>Instalarlo con el gestor de paquetes o ver en <a href="http://pythonhosted.org/Markdown/install.html">las instrucciones de instalación.</a></p></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation>Seleccionar para habilitar JavaScript para las previsualizaciones de HTML</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation>Habilitar JavaScript</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation>Seleccionar para habilitar soporte para includes del Lado del Servidor</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation>Habilitar Includes del Lado del Servidor</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation><p>No hay vista previa disponible para este tipo de archivo.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation>Vista Previa - {0}</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation>Vista Previa</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation><b>¡La Vista Preliminar HTML no está disponible!<br/>Instalar QtWebEngine o QtWebKit.</b></translation> </message>
--- a/i18n/eric6_fr.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_fr.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51261,65 +51261,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation type="unfinished">Activer JavaScript</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation type="unfinished">Aperçu</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation type="unfinished"></translation> </message>
--- a/i18n/eric6_it.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_it.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51299,65 +51299,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation><p>Non è prevista la visualizzazione per questo tipo di flusso.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation type="unfinished">Abilita Javascript</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"><p>Non è prevista la visualizzazione per questo tipo di flusso.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation type="unfinished"></translation> </message>
--- a/i18n/eric6_pt.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_pt.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51303,65 +51303,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation><p>A antevisão para este tipo de ficheiro não está disponível.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation>Habilitar JavaScript</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation><p>A antevisão para este tipo de ficheiro não está disponível.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation>Antevisão - {0}</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation>Antevisão</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation type="unfinished"></translation> </message>
--- a/i18n/eric6_ru.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_ru.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51475,65 +51475,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation><p>Предварительный просмотр не доступен для этого типа файла.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation><p>Для предварительного просмотра ReStructuredText файлов необходим пакет <b>python-docutils</b> package.<br/>Установите его с помощью менеджера пакетов, 'pip install docutils' или ознакомьтесь со страницей <a href="http://pypi.python.org/pypi/docutils">.</a></p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation><p>Для предварительного просмотра ReStructuredText файлов необходим пакет <b>sphinx</b> package.<br/>Установите его с помощью менеджера пакетов,'pip install Sphinx' или ознакомьтесь со срраницей <a href="http://pypi.python.org/pypi/Sphinx">.</a></p><p>В качестве альтернативы можете запретить использование Sphinx во вкладке Редактор, страница Настройка режима работы с файлами.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation><p>Для предварительного просмотра Markdown файлов необходим пакет <b>python-markdown</b>.<br/>Установите его с помощью команды 'pip install docutils' вашего менеджера пакетов или ознакомьтесь с инструкцией <a href="http://pythonhosted.org/Markdown/install.html">.</a></p></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation>Разрешить JavaScript для предварительного просмотра HTML файлов</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation>Использовать JavaScript</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation>Разрешить поддержку Server Side Includes</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation>Разрешить Server Side Includes</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation><p>Предварительный просмотр не доступен для этого типа файла.</p></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation>Предварительный просмотр - {0}</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation>Предварительный просмотр</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation><b>Предварительный просмотр HTML недоступен!<br/>Установите QtWebEngine или QtWebKit.</b></translation> </message>
--- a/i18n/eric6_tr.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_tr.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51235,65 +51235,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation type="unfinished">Javabetiğini etkinleştir</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation type="unfinished"></translation> </message>
--- a/i18n/eric6_zh_CN.ts Tue Feb 19 19:08:03 2019 +0100 +++ b/i18n/eric6_zh_CN.ts Thu Feb 21 19:22:11 2019 +0100 @@ -51207,65 +51207,70 @@ <context> <name>PreviewProcessingThread</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/> <source><p>ReStructuredText preview requires the <b>python-docutils</b> package.<br/>Install it with your package manager, 'pip install docutils' or see <a href="http://pypi.python.org/pypi/docutils">this page.</a></p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/> <source><p>ReStructuredText preview requires the <b>sphinx</b> package.<br/>Install it with your package manager,'pip install Sphinx' or see <a href="http://pypi.python.org/pypi/Sphinx">this page.</a></p><p>Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/> <source><p>Markdown preview requires the <b>Markdown</b> package.<br/>Install it with your package manager, 'pip install Markdown' or see <a href="http://pythonhosted.org/Markdown/install.html">installation instructions.</a></p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/> + <source><p>Docutils returned an error:</p><p>{0}</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>PreviewerHTML</name> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/> <source>Select to enable JavaScript for HTML previews</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/> <source>Enable JavaScript</source> <translation>允许 JavaScript</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/> <source>Select to enable support for Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/> <source>Enable Server Side Includes</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/> <source><p>No preview available for this type of file.</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/> <source>Preview - {0}</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/> <source>Preview</source> <translation>预览</translation> </message> <message> - <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/> + <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/> <source><b>HTML Preview is not available!<br/>Install QtWebEngine or QtWebKit.</b></source> <translation type="unfinished"></translation> </message>