Added code to show the version of the Pygments source highlighter and which variant is used (built-in or external).

Wed, 20 Oct 2010 19:04:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 20 Oct 2010 19:04:48 +0200
changeset 686
b672b36f3efb
parent 684
2f29a0b6e1c7
child 687
385014bda8ec

Added code to show the version of the Pygments source highlighter and which variant is used (built-in or external).

Preferences/ProgramsDialog.py file | annotate | diff | comparison | revisions
i18n/eric5_cs.ts file | annotate | diff | comparison | revisions
i18n/eric5_de.qm file | annotate | diff | comparison | revisions
i18n/eric5_de.ts file | annotate | diff | comparison | revisions
i18n/eric5_en.ts file | annotate | diff | comparison | revisions
i18n/eric5_es.ts file | annotate | diff | comparison | revisions
i18n/eric5_fr.ts file | annotate | diff | comparison | revisions
i18n/eric5_it.ts file | annotate | diff | comparison | revisions
i18n/eric5_ru.ts file | annotate | diff | comparison | revisions
i18n/eric5_tr.ts file | annotate | diff | comparison | revisions
i18n/eric5_zh_CN.GB2312.ts file | annotate | diff | comparison | revisions
--- a/Preferences/ProgramsDialog.py	Wed Oct 20 08:39:56 2010 +0200
+++ b/Preferences/ProgramsDialog.py	Wed Oct 20 19:04:48 2010 +0200
@@ -174,6 +174,22 @@
             version = ""
         self.__createEntry(self.trUtf8("Spell Checker - PyEnchant"), text, version)
         
+        # 8. do the pygments entry
+        try:
+            import pygments
+            try:
+                text = os.path.dirname(pygments.__file__)
+            except AttributeError:
+                text = "pygments"
+            try:
+                version = pygments.__version__
+            except AttributeError:
+                version = self.trUtf8("(unknown)")
+        except (ImportError, AttributeError, OSError):
+            text = "pygments"
+            version = ""
+        self.__createEntry(self.trUtf8("Source Highlighter - Pygments"), text, version)
+        
         # do the plugin related programs
         pm = e5App().getObject("PluginManager")
         for info in pm.getPluginExeDisplayData():
--- a/i18n/eric5_cs.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_cs.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -23874,22 +23874,22 @@
         <translation>CORBA IDL kompilátor</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation>(nezkonfigurováno)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation>(nevykonavatelný)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation>(nenalezeno)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation>(neznámý)</translation>
     </message>
@@ -23923,6 +23923,11 @@
         <source>Eric5 Forms Previewer</source>
         <translation>Eric5 prohlížeč formulářů</translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>Project</name>
Binary file i18n/eric5_de.qm has changed
--- a/i18n/eric5_de.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_de.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -23576,17 +23576,17 @@
         <translation>CORBA IDL Compiler</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation>(nicht konfiguriert)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation>(nicht ausführbar)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation>(nicht gefunden)</translation>
     </message>
@@ -23596,7 +23596,7 @@
         <translation>Externe Programme</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation>(unbekannt)</translation>
     </message>
@@ -23630,6 +23630,11 @@
         <source>Eric5 Forms Previewer</source>
         <translation>Eric5 Formularbetrachter</translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation>Quelltextfärber - Pygments</translation>
+    </message>
 </context>
 <context>
     <name>Project</name>
--- a/i18n/eric5_en.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_en.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -23485,7 +23485,7 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation type="unfinished"></translation>
     </message>
@@ -23495,20 +23495,25 @@
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>Project</name>
--- a/i18n/eric5_es.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_es.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -23930,22 +23930,22 @@
         <translation>Compilador CORBA IDL</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation>(no configurado)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation>(no ejecutable)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation>(no encontrado)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation>(desconocido)</translation>
     </message>
@@ -23979,6 +23979,11 @@
         <source>Eric5 Forms Previewer</source>
         <translation>Previsualizador de formularios de Eric5</translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>Project</name>
--- a/i18n/eric5_fr.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_fr.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -25748,22 +25748,22 @@
         <translation>Compilateur CORBA IDL</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation>(non configuré)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation>(non executable)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation>(non trouvé)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation>(inconnu)</translation>
     </message>
@@ -25797,6 +25797,11 @@
         <source>Eric5 Forms Previewer</source>
         <translation type="unfinished">Visionneur de feuilles Eric4 {5 ?}</translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>Project</name>
--- a/i18n/eric5_it.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_it.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -23934,22 +23934,22 @@
         <translation>Compilatore CORBA IDL</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation>(non configurato)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation>(non eseguibile)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation>(non trovato)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation>(sconosciuto)</translation>
     </message>
@@ -23983,6 +23983,11 @@
         <source>Eric5 Forms Previewer</source>
         <translation>Anteprima form di Eric5</translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>Project</name>
--- a/i18n/eric5_ru.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_ru.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -23993,17 +23993,17 @@
         <translation>Компилятор CORBA IDL</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation>(не настроено)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation>(не исполняемый)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation>(не найдено)</translation>
     </message>
@@ -24013,7 +24013,7 @@
         <translation>Внешние программы</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation>(неизвестный)</translation>
     </message>
@@ -24047,6 +24047,11 @@
         <source>Eric5 Forms Previewer</source>
         <translation>Предпросмотрщик форм Eric5</translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>Project</name>
--- a/i18n/eric5_tr.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_tr.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -25584,7 +25584,7 @@
         <translation>CORBA IDL Derleyicisi</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation>(bilinmeyen)</translation>
     </message>
@@ -25594,17 +25594,17 @@
         <translation>YAzım Denetimi - PyEnchant</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation>(ayarlanmadı)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation>(yürütülemez)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation>(bulunamadı)</translation>
     </message>
@@ -25633,6 +25633,11 @@
         <source>Eric5 Forms Previewer</source>
         <translation type="unfinished">Eric4 formları Önizleme {5 ?}</translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>Project</name>
--- a/i18n/eric5_zh_CN.GB2312.ts	Wed Oct 20 08:39:56 2010 +0200
+++ b/i18n/eric5_zh_CN.GB2312.ts	Wed Oct 20 19:04:48 2010 +0200
@@ -25721,22 +25721,22 @@
         <translation>CORBA IDL 编译器</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="231"/>
+        <location filename="Preferences/ProgramsDialog.py" line="247"/>
         <source>(not configured)</source>
         <translation>(未配置)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="266"/>
+        <location filename="Preferences/ProgramsDialog.py" line="282"/>
         <source>(not executable)</source>
         <translation>(不可执行)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="293"/>
+        <location filename="Preferences/ProgramsDialog.py" line="309"/>
         <source>(not found)</source>
         <translation>(未找到)</translation>
     </message>
     <message>
-        <location filename="Preferences/ProgramsDialog.py" line="264"/>
+        <location filename="Preferences/ProgramsDialog.py" line="280"/>
         <source>(unknown)</source>
         <translation type="unfinished"></translation>
     </message>
@@ -25770,6 +25770,11 @@
         <source>Eric5 Forms Previewer</source>
         <translation type="unfinished">Eric4 窗体预览器 {5 ?}</translation>
     </message>
+    <message>
+        <location filename="Preferences/ProgramsDialog.py" line="191"/>
+        <source>Source Highlighter - Pygments</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>Project</name>

eric ide

mercurial