Changeset 5581


Ignore:
Timestamp:
Jul 24, 2017, 8:59:44 AM (22 months ago)
Author:
jrpelegrina
Message:

Show notification when cache is updated

Location:
lliurex-gdrive/trunk/fuentes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • lliurex-gdrive/trunk/fuentes/debian/changelog

    r5575 r5581  
     1lliurex-gdrive (0.3.6) xenial; urgency=medium
     2
     3  * Show notification when cache is updated
     4
     5 -- Juan Ramon Pelegrina <juapesai@hotmail.com>  Mon, 24 Jul 2017 08:58:30 +0200
     6
    17lliurex-gdrive (0.3.5) xenial; urgency=medium
    28
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator

    r5574 r5581  
    1515import random
    1616import notify2
     17import time
    1718
    1819
     
    402403        def refresh_cache (self,widget,profile):
    403404
    404                 cmd="google-drive-ocamlfuse -cc -label %s"%profile
    405                 os.system(cmd) 
     405                try:
     406                        cmd="google-drive-ocamlfuse -cc -label %s"%profile
     407                        os.system(cmd)
     408                        message=_("Cache updated successfully")
     409                               
     410                except Exception as e:
     411                        message=_("An error occurred updating the cache. Try again")
     412               
     413                message=message.decode("UTF-8")
     414
     415                time.sleep(0.5)
     416                self.show_message(profile + ": " + message)     
    406417
    407418        #def refresh_cache     
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/ca_ES@valencia.po

    r5574 r5581  
    99"Project-Id-Version: \n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-07-20 09:26+0200\n"
    12 "PO-Revision-Date: 2017-07-21 10:29+0200\n"
     11"POT-Creation-Date: 2017-07-24 08:25+0200\n"
     12"PO-Revision-Date: 2017-07-24 08:42+0200\n"
    1313"Last-Translator: Jose A. Murcia <joamruan@gmail.com>\n"
    1414"Language-Team: LliureX\n"
     
    5959
    6060#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    61 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:424
     61#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:432
    6262msgid "Without connection. Clicked to update"
    6363msgstr "No hi ha connexió. Feu clic per a actualitzar"
    6464
    6565#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:516
    66 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:429
     66#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:437
    6767msgid "Mounted. Clicked to dismount now"
    6868msgstr "Muntat. Feu clic per a desmuntar ara."
    6969
    7070#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:520
    71 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:434
     71#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:442
    7272msgid "Dismounted. Clicked to mount now"
    7373msgstr "Desmuntat. Feu clic per a muntar ara."
     
    190190#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:232
    191191msgid "Click if do not see all the files in the Google Drive account"
    192 msgstr "Polseu ací si no es mostren tots els fitxers del compte sincronitzat del Google Drive"
     192msgstr ""
     193"Polseu ací si no es mostren tots els fitxers del compte sincronitzat del "
     194"Google Drive"
    193195
    194196#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
     
    208210msgstr "Error: No s'ha pogut "
    209211
    210 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:425
    211 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:435
     212#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:407
     213msgid "Cache updated successfully"
     214msgstr "Memòria cau actualitzada correctament"
     215
     216#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:410
     217msgid "An error occurred updating the cache. Try again"
     218msgstr ""
     219"S'ha produït un error actualitzant la memòria cau. Intente-ho novament"
     220
     221#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:433
     222#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:443
    212223msgid "Used: not available"
    213224msgstr "En ús: no disponible"
    214225
    215 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:430
     226#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
    216227#, python-format
    217228msgid "Used: %s of %s"
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/es.po

    r5574 r5581  
    99"Project-Id-Version: \n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-07-20 09:25+0200\n"
    12 "PO-Revision-Date: 2017-07-20 09:31+0200\n"
     11"POT-Creation-Date: 2017-07-24 08:23+0200\n"
     12"PO-Revision-Date: 2017-07-24 08:43+0200\n"
    1313"Last-Translator: lliurex <lliurex@gva.es>\n"
    1414"Language-Team: Spanish <es@li.org>\n"
     
    5959
    6060#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    61 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:424
     61#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:432
    6262msgid "Without connection. Clicked to update"
    6363msgstr "Sin conexión. Pulse para actualizar"
    6464
    6565#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:516
    66 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:429
     66#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:437
    6767msgid "Mounted. Clicked to dismount now"
    6868msgstr "Montado. Pulse para desmontar ahora"
    6969
    7070#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:520
    71 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:434
     71#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:442
    7272msgid "Dismounted. Clicked to mount now"
    7373msgstr "Desmontado. Pulse para montar ahora"
     
    190190#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:232
    191191msgid "Click if do not see all the files in the Google Drive account"
    192 msgstr "Pulse aqui si no se muestran todos los ficheros de la cuenta sincronizada de Google Drive"
     192msgstr ""
     193"Pulse aqui si no se muestran todos los ficheros de la cuenta sincronizada de "
     194"Google Drive"
    193195
    194196#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
     
    208210msgstr "Error: Imposible de "
    209211
    210 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:425
    211 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:435
     212#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:407
     213msgid "Cache updated successfully"
     214msgstr "Caché actualizada correctamente"
     215
     216#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:410
     217msgid "An error occurred updating the cache. Try again"
     218msgstr "Se ha producido un error actualizando la caché. Inténtelo de nuevo"
     219
     220#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:433
     221#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:443
    212222msgid "Used: not available"
    213223msgstr "Usado: no disponible"
    214224
    215 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:430
     225#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
    216226#, python-format
    217227msgid "Used: %s of %s"
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/lliurex-gdrive.pot

    r5574 r5581  
    99"Project-Id-Version: PACKAGE VERSION\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-07-20 09:24+0200\n"
     11"POT-Creation-Date: 2017-07-24 08:22+0200\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    5757
    5858#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    59 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:424
     59#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:432
    6060msgid "Without connection. Clicked to update"
    6161msgstr ""
    6262
    6363#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:516
    64 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:429
     64#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:437
    6565msgid "Mounted. Clicked to dismount now"
    6666msgstr ""
    6767
    6868#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:520
    69 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:434
     69#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:442
    7070msgid "Dismounted. Clicked to mount now"
    7171msgstr ""
     
    206206msgstr ""
    207207
    208 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:425
    209 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:435
     208#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:407
     209msgid "Cache updated successfully"
     210msgstr ""
     211
     212#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:410
     213msgid "An error occurred updating the cache. Try again"
     214msgstr ""
     215
     216#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:433
     217#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:443
    210218msgid "Used: not available"
    211219msgstr ""
    212220
    213 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:430
     221#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
    214222#, python-format
    215223msgid "Used: %s of %s"
Note: See TracChangeset for help on using the changeset viewer.