Commits

Damián Nohales  committed 17a157d

Ensure application directories creation and translation fixes.

  • Participants
  • Parent commits 32593a5

Comments (0)

Files changed (10)

File lib/enviroment.py

             'proxy_pass': '',
             'cover_cache_limit': 16 * 1024 * 1024,
         }
+        
+    def _safe_create_dirs(self, dirs):
+        if os.path.isdir(dirs) == False:
+            try:
+                os.makedirs(dirs)
+            except:
+                pass
 
     def initialize(self):
         """
         user_config = ConfigObj(self.get_config_filename())
 
         config.merge(user_config)
-
-        if os.path.exists(self.get_config_filename()) == False:
-            try:
-                os.mkdir(os.path.dirname(self.get_config_filename()))
-            except:
-                pass
-
-        if os.path.isdir(config['down_path']) == False:
-            try:
-                os.makedirs(config['down_path'])
-            except:
-                pass
-                    
+        
+        self._safe_create_dirs(self.get_config_directory())
+        self._safe_create_dirs(config['down_path'])
+        self._safe_create_dirs(os.path.join(self.get_config_directory(), "covers"))
+        
         config.write()
         self.set_config(config)
         

File po/POTFILES.in

 lib/__init__.py
 lib/Song.py
 lib/DownloadList.py
+lib/PlayListStyleWidget.py
 gsharkdown.py
 
 [type: gettext/ini]gsharkdown.desktop.in
 msgstr ""
 "Project-Id-Version: gsharkdown\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-02-13 15:32-0300\n"
+"POT-Creation-Date: 2012-02-13 16:16-0300\n"
 "PO-Revision-Date: 2012-02-13 19:14+0100\n"
 "Last-Translator: Vladimir Kolev <vladimir.r.kolev@gmail.com>\n"
 "Language-Team: Bulgarian\n"
 msgid "Download progress"
 msgstr "Прогрес на изтегляне"
 
+#: ../lib/PlayListStyleWidget.py:13
+msgid "Text below icons"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:14
+msgid "Text beside icons"
+msgstr ""
+
+#. (PlayList.ICONS_BIG, _("Icons only (big)"),),
+#. (PlayList.ICONS_SMALL, _("Icons only (small)"),),
+#: ../lib/PlayListStyleWidget.py:17
+msgid "Not show"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:42
+#, fuzzy
+msgid "Change the playlist style"
+msgstr "Изчисти списъка за изпълнение"
+
+#: ../lib/PlayListStyleWidget.py:45
+msgid ""
+"Please update your version of PyGtk\n"
+"to change the playlist style"
+msgstr ""
+
 #: ../gsharkdown.desktop.in.h:1
 msgid "Play and download songs from Grooveshark"
 msgstr "Слушай и изтегляй песни от Grooveshark"
 #~ msgid "Add >"
 #~ msgstr "Добави >"
 
-#~ msgid "Clear the playlist"
-#~ msgstr "Изчисти списъка за изпълнение"
-
 #~ msgid "Love Song"
 #~ msgstr "Харесай песен"
 
 msgstr ""
 "Project-Id-Version: gsharkdown\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-02-13 15:32-0300\n"
+"POT-Creation-Date: 2012-02-13 16:16-0300\n"
 "PO-Revision-Date: 2012-02-13 19:18+0100\n"
 "Last-Translator: Vladimir Kolev <vladimir.r.kolev@gmail.com>\n"
 "Language-Team: German <de@li.org>\n"
 msgid "Download progress"
 msgstr "Heruntergeladen"
 
+#: ../lib/PlayListStyleWidget.py:13
+msgid "Text below icons"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:14
+msgid "Text beside icons"
+msgstr ""
+
+#. (PlayList.ICONS_BIG, _("Icons only (big)"),),
+#. (PlayList.ICONS_SMALL, _("Icons only (small)"),),
+#: ../lib/PlayListStyleWidget.py:17
+msgid "Not show"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:42
+#, fuzzy
+msgid "Change the playlist style"
+msgstr "Wiedergabeliste leeren"
+
+#: ../lib/PlayListStyleWidget.py:45
+msgid ""
+"Please update your version of PyGtk\n"
+"to change the playlist style"
+msgstr ""
+
 #: ../gsharkdown.desktop.in.h:1
 msgid "Play and download songs from Grooveshark"
 msgstr "Lider von Grooveshark abspielen und herunterladen"
 #~ msgid "Add >"
 #~ msgstr "Einfügen >"
 
-#~ msgid "Clear the playlist"
-#~ msgstr "Wiedergabeliste leeren"
-
 #~ msgid "Love Song"
 #~ msgstr "Lieblingslied"
 
 msgstr ""
 "Project-Id-Version: gsharkdown\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-02-13 15:32-0300\n"
-"PO-Revision-Date: 2012-02-13 15:33-0300\n"
+"POT-Creation-Date: 2012-02-13 16:16-0300\n"
+"PO-Revision-Date: 2012-02-13 16:17-0300\n"
 "Last-Translator: Damián Nohales <damiannohales@gmail.com>\n"
 "Language-Team: Damián Nohales <LL@li.org>\n"
 "Language: es\n"
 "Además, esto puede deberse a una configuración errónea del proxy,\n"
 "por favor revise la configuración del proxy.\n"
 "\n"
-"El error fue: %s\n"
-"\n"
+"El error fue: %s"
 
 #: ../lib/SharkDown.py:284
 msgid "Error while saving the playlist"
 msgid "Download progress"
 msgstr "Progreso de la descarga"
 
+#: ../lib/PlayListStyleWidget.py:13
+msgid "Text below icons"
+msgstr "Texto debajo de los iconos"
+
+#: ../lib/PlayListStyleWidget.py:14
+msgid "Text beside icons"
+msgstr "Texto al lado de los iconos"
+
+#. (PlayList.ICONS_BIG, _("Icons only (big)"),),
+#. (PlayList.ICONS_SMALL, _("Icons only (small)"),),
+#: ../lib/PlayListStyleWidget.py:17
+msgid "Not show"
+msgstr "No mostrar"
+
+#: ../lib/PlayListStyleWidget.py:42
+msgid "Change the playlist style"
+msgstr "Cambiar estilo de la lista de reproducción"
+
+#: ../lib/PlayListStyleWidget.py:45
+msgid ""
+"Please update your version of PyGtk\n"
+"to change the playlist style"
+msgstr ""
+"Por favor actualice su versión de PyGtk\n"
+"para cambiar el estilo de la lista de reproducción"
+
 #: ../gsharkdown.desktop.in.h:1
 msgid "Play and download songs from Grooveshark"
 msgstr "Reproduzca y descargue canciones de Grooveshark"
 #~ msgid "Add >"
 #~ msgstr "Añadir >"
 
-#~ msgid "Clear the playlist"
-#~ msgstr "Limpiar la lista de reproducción"
-
 #~ msgid "Love Song"
 #~ msgstr "Me gusta esta canción"
 
 msgstr ""
 "Project-Id-Version: gsharkdown\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-02-13 15:32-0300\n"
+"POT-Creation-Date: 2012-02-13 16:16-0300\n"
 "PO-Revision-Date: 2012-01-01 16:16+0100\n"
 "Last-Translator: Vladimir Kolev <vladimir.r.kolev@gmail.com>\n"
 "Language-Team: necromoine\n"
 msgid "Download progress"
 msgstr "Téléchargement en cour"
 
+#: ../lib/PlayListStyleWidget.py:13
+msgid "Text below icons"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:14
+msgid "Text beside icons"
+msgstr ""
+
+#. (PlayList.ICONS_BIG, _("Icons only (big)"),),
+#. (PlayList.ICONS_SMALL, _("Icons only (small)"),),
+#: ../lib/PlayListStyleWidget.py:17
+msgid "Not show"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:42
+#, fuzzy
+msgid "Change the playlist style"
+msgstr "Vider la liste de lecture"
+
+#: ../lib/PlayListStyleWidget.py:45
+msgid ""
+"Please update your version of PyGtk\n"
+"to change the playlist style"
+msgstr ""
+
 #: ../gsharkdown.desktop.in.h:1
 msgid "Play and download songs from Grooveshark"
 msgstr ""
 #~ msgid "Add >"
 #~ msgstr "Ajouter"
 
-#~ msgid "Clear the playlist"
-#~ msgstr "Vider la liste de lecture"
-
 #~ msgid "Love Song"
 #~ msgstr "Coup de coeur"
 
 msgstr ""
 "Project-Id-Version: gsharkdown\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-02-13 15:32-0300\n"
+"POT-Creation-Date: 2012-02-13 16:16-0300\n"
 "PO-Revision-Date: 2012-01-01 16:16+0100\n"
 "Last-Translator: Vladimir Kolev <vladimir.r.kolev@gmail.com>\n"
 "Language-Team: antiparvos <LL@li.org>\n"
 msgid "Download progress"
 msgstr "Progreso da descarga"
 
+#: ../lib/PlayListStyleWidget.py:13
+msgid "Text below icons"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:14
+msgid "Text beside icons"
+msgstr ""
+
+#. (PlayList.ICONS_BIG, _("Icons only (big)"),),
+#. (PlayList.ICONS_SMALL, _("Icons only (small)"),),
+#: ../lib/PlayListStyleWidget.py:17
+msgid "Not show"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:42
+#, fuzzy
+msgid "Change the playlist style"
+msgstr "Borrar a lista de reprodución"
+
+#: ../lib/PlayListStyleWidget.py:45
+msgid ""
+"Please update your version of PyGtk\n"
+"to change the playlist style"
+msgstr ""
+
 #: ../gsharkdown.desktop.in.h:1
 #, fuzzy
 msgid "Play and download songs from Grooveshark"
 #~ msgid "Add >"
 #~ msgstr "Engadir >"
 
-#~ msgid "Clear the playlist"
-#~ msgstr "Borrar a lista de reprodución"
-
 #~ msgid "Next"
 #~ msgstr "Seguinte"
 

File po/gsharkdown.pot

 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-02-13 15:32-0300\n"
+"POT-Creation-Date: 2012-02-13 16:16-0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 msgid "Download progress"
 msgstr ""
 
+#: ../lib/PlayListStyleWidget.py:13
+msgid "Text below icons"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:14
+msgid "Text beside icons"
+msgstr ""
+
+#. (PlayList.ICONS_BIG, _("Icons only (big)"),),
+#. (PlayList.ICONS_SMALL, _("Icons only (small)"),),
+#: ../lib/PlayListStyleWidget.py:17
+msgid "Not show"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:42
+msgid "Change the playlist style"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:45
+msgid ""
+"Please update your version of PyGtk\n"
+"to change the playlist style"
+msgstr ""
+
 #: ../gsharkdown.desktop.in.h:1
 msgid "Play and download songs from Grooveshark"
 msgstr ""
 msgstr ""
 "Project-Id-Version: gsharkdown\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-02-13 15:32-0300\n"
+"POT-Creation-Date: 2012-02-13 16:16-0300\n"
 "PO-Revision-Date: 2012-01-01 16:17+0100\n"
 "Last-Translator: Vladimir Kolev <vladimir.r.kolev@gmail.com>\n"
 "Language-Team: Italian\n"
 msgid "Download progress"
 msgstr "Avanzamento download"
 
+#: ../lib/PlayListStyleWidget.py:13
+msgid "Text below icons"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:14
+msgid "Text beside icons"
+msgstr ""
+
+#. (PlayList.ICONS_BIG, _("Icons only (big)"),),
+#. (PlayList.ICONS_SMALL, _("Icons only (small)"),),
+#: ../lib/PlayListStyleWidget.py:17
+msgid "Not show"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:42
+#, fuzzy
+msgid "Change the playlist style"
+msgstr "Pulisci playlist"
+
+#: ../lib/PlayListStyleWidget.py:45
+msgid ""
+"Please update your version of PyGtk\n"
+"to change the playlist style"
+msgstr ""
+
 #: ../gsharkdown.desktop.in.h:1
 msgid "Play and download songs from Grooveshark"
 msgstr ""
 #~ msgid "Add >"
 #~ msgstr "Aggiungi >"
 
-#~ msgid "Clear the playlist"
-#~ msgstr "Pulisci playlist"
-
 #~ msgid "Love Song"
 #~ msgstr "Canzone preferita"
 
 msgstr ""
 "Project-Id-Version: gsharkdown\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-02-13 15:32-0300\n"
+"POT-Creation-Date: 2012-02-13 16:16-0300\n"
 "PO-Revision-Date: 2012-01-01 16:17+0100\n"
 "Last-Translator: Vladimir Kolev <vladimir.r.kolev@gmail.com>\n"
 "Language-Team: darone\n"
 msgid "Download progress"
 msgstr "Postęp pobierania"
 
+#: ../lib/PlayListStyleWidget.py:13
+msgid "Text below icons"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:14
+msgid "Text beside icons"
+msgstr ""
+
+#. (PlayList.ICONS_BIG, _("Icons only (big)"),),
+#. (PlayList.ICONS_SMALL, _("Icons only (small)"),),
+#: ../lib/PlayListStyleWidget.py:17
+msgid "Not show"
+msgstr ""
+
+#: ../lib/PlayListStyleWidget.py:42
+#, fuzzy
+msgid "Change the playlist style"
+msgstr "Wyczyść listę odtwarzania"
+
+#: ../lib/PlayListStyleWidget.py:45
+msgid ""
+"Please update your version of PyGtk\n"
+"to change the playlist style"
+msgstr ""
+
 #: ../gsharkdown.desktop.in.h:1
 msgid "Play and download songs from Grooveshark"
 msgstr ""
 #~ msgid "Add >"
 #~ msgstr "Dodaj >"
 
-#~ msgid "Clear the playlist"
-#~ msgstr "Wyczyść listę odtwarzania"
-
 #~ msgid "Love Song"
 #~ msgstr "Polub utwór"