Commits

aelmahmoudy committed 4b9a6c9

noor.desktop: use X-Islamic-Software category instead of Application

Comments (0)

Files changed (4)

contrib/noor.desktop

 [Desktop Entry]
 Exec=noorgtk.pyw
 Icon=noor
-Categories=Application;Education;GTK;
+Categories=X-Islamic-Software;Education;GTK;
 Type=Application
 
 Comment=A python Quran viewer
     def name(self):
         return self.data['name']
 
+    @property
+    def english_name(self):
+        return self.data['tname']
+
 
 def _get_data_path():
     noordir = os.path.dirname(sys.modules['noor'].__file__)

noor/uihelpers.py

 
 # should noor use arabic aya numbers
 #arabic_numbers = 1
+# should noor use arabic sura names
+#arabic_sura_names = 1
 
 # the language to use; it can be one of: ar, en, fa, ml, ps, tr
 #lang = en
 
     def _displayed_page_name(self):
         if self.current_sura is not None:
-            return self.sura.name
+            if uihelpers.get_option(self.config,
+                                    'common.arabic_sura_names', True):
+                return self.sura.name
+            else:
+                return self.sura.english_name
         else:
             return _('About')