Changeset 5661


Ignore:
Timestamp:
Aug 7, 2017, 2:41:40 PM (22 months ago)
Author:
jrpelegrina
Message:

Wip in check empty folder when profile is created or updated

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

Legend:

Unmodified
Added
Removed
  • lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py

    r4042 r5661  
    575575                check_form=self.core.LliurexGoogleDriveManager.check_profile_info(self.new_profile,self.new_mountpoint,self.edition)
    576576
     577               
    577578                if not check_form["result"]:
    578579                        if check_form["code"]==1:
     
    585586                                msg_check=_("Profile already exists")
    586587                       
    587                         else:
     588                        elif check_form["code"]==4:
    588589                                msg_check=_("Mount point already used by another profile")     
     590
     591                        elif check_form["code"]==5:
     592                                msg_check=_("The mount point must be an empty folder") 
     593
     594                        elif check_form["code"]==6:
     595                                msg_check=_("Mount point is not owned by user")
    589596
    590597
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/ca_ES@valencia.po

    r5581 r5661  
    99"Project-Id-Version: \n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-07-24 08:25+0200\n"
    12 "PO-Revision-Date: 2017-07-24 08:42+0200\n"
     11"POT-Creation-Date: 2017-08-07 10:40+0200\n"
     12"PO-Revision-Date: 2017-08-07 10:42+0200\n"
    1313"Last-Translator: Jose A. Murcia <joamruan@gmail.com>\n"
    1414"Language-Team: LliureX\n"
     
    3434
    3535#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:214
    36 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:279
     36#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:283
    3737msgid "Close"
    3838msgstr "Tanca"
     
    5050#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:325
    5151#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:558
    52 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:335
     52#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:339
    5353msgid "Applying changes..."
    5454msgstr "S'estan aplicant els canvis..."
     
    5959
    6060#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    61 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:432
     61#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
    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:437
     66#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:443
    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:442
     71#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:448
    7272msgid "Dismounted. Clicked to mount now"
    7373msgstr "Desmuntat. Feu clic per a muntar ara."
     
    7777msgstr "S'està connectant amb Google per a accedir al compte..."
    7878
    79 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:579
     79#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:580
    8080msgid "You must indicate a profile"
    8181msgstr "Cal que indiqueu un perfil"
    8282
    83 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:582
     83#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:583
    8484msgid "Profile can not contain blanks"
    8585msgstr "El perfil no pot contindre espais en blanc"
    8686
    87 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:585
     87#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:586
    8888msgid "Profile already exists"
    8989msgstr "El perfil ja existeix"
    9090
    91 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:588
     91#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:589
    9292msgid "Mount point already used by another profile"
    9393msgstr "El punt de muntatge ja s'està utilitzant per un altre perfil"
    9494
    95 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:610
     95#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:592
     96msgid "The mount point must be an empty folder"
     97msgstr "El punt de muntatge ha de ser una carpeta buida"
     98
     99#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:595
     100msgid "Mount point is not owned by user"
     101msgstr "El punt de muntatge no és propietat de l'usuari"
     102
     103#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:617
    96104msgid "Creating profile... "
    97105msgstr "S'està creant el perfil..."
    98106
    99 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:619
     107#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:626
    100108msgid "Profile created successfully"
    101109msgstr "El perfil s'ha creat correctament"
    102110
    103 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:647
    104 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:356
     111#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:654
     112#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:360
    105113msgid "Changes applied successfully"
    106114msgstr "Els canvis s'han aplicat correctament"
    107115
    108 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:650
     116#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:657
    109117msgid "Error: Unable to create mount point"
    110118msgstr "Error: No s'ha pogut crear el punt de muntatge"
    111119
    112 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:653
     120#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:660
    113121msgid "Error: unable to mount mount point"
    114122msgstr "Error: No s'ha pogut muntar el punt de muntatge"
    115123
    116 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:656
     124#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:663
    117125msgid "Error: Mount point is not owned by user"
    118126msgstr "Error: El punt de muntatge no és propietat de l'usuari"
    119127
    120 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:659
     128#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:666
    121129msgid "Error: No mount point indicated"
    122130msgstr "Error: No s'ha especificat un punt de muntatge"
    123131
    124 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:662
     132#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:669
    125133msgid "Error: Profile is not authorized to Google Drive"
    126134msgstr "Error: El perfil no té autorització a Google Drive"
    127135
    128 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:665
     136#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:672
    129137msgid "Error: Unknow profile"
    130138msgstr "Error: perfil desconegut"
    131139
    132 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:668
     140#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:675
    133141msgid "Error: Unable to dismount mount point"
    134142msgstr "Error: No s'ha pogut desmuntar el punt de muntatge"
    135143
    136 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:671
    137 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:344
     144#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:678
     145#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
    138146msgid "Error: Unable to connect with google"
    139147msgstr "Error: No s'ha pogut connectar amb Google"
    140148
    141 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:674
    142 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
     149#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:681
     150#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:358
    143151msgid "Status updated. Now you can change it"
    144152msgstr "S'ha actualitzat l'estat. Ara podeu canviar-lo"
    145153
    146 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:687
     154#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:694
    147155msgid "Error getting authorization"
    148156msgstr "S'ha produït un error mentre s'obtenia autorització"
    149157
    150 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py:46
     158#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py:49
    151159msgid "Lliurex GDrive is now running."
    152160msgstr "LliureX GDrive s'està executant."
     
    180188msgstr "Afig perfil"
    181189
    182 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:221
     190#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:225
    183191msgid "Open folder"
    184192msgstr "Obri la carpeta"
    185193
    186 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:230
     194#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:234
    187195msgid "Update cache"
    188196msgstr "Actualitza la memòria cau"
    189197
    190 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:232
     198#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:236
    191199msgid "Click if do not see all the files in the Google Drive account"
    192200msgstr ""
     
    194202"Google Drive"
    195203
    196 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
     204#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:266
    197205msgid "Open Lliurex GDrive"
    198206msgstr "Obri el LliureX GDrive"
    199207
    200 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
     208#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:352
    201209msgid "dismount"
    202210msgstr "desmunta"
    203211
    204 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:350
     212#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
    205213msgid "mount"
    206214msgstr "munta"
    207215
    208 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:351
     216#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:355
    209217msgid "Error: Unable to "
    210218msgstr "Error: No s'ha pogut "
    211219
    212 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:407
     220#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:411
    213221msgid "Cache updated successfully"
    214222msgstr "Memòria cau actualitzada correctament"
    215223
    216 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:410
     224#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:414
    217225msgid "An error occurred updating the cache. Try again"
    218 msgstr ""
    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
     226msgstr "S'ha produït un error actualitzant la memòria cau. Intente-ho novament"
     227
     228#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:439
     229#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:449
    223230msgid "Used: not available"
    224231msgstr "En ús: no disponible"
    225232
    226 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
     233#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:444
    227234#, python-format
    228235msgid "Used: %s of %s"
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/es.po

    r5581 r5661  
    99"Project-Id-Version: \n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-07-24 08:23+0200\n"
    12 "PO-Revision-Date: 2017-07-24 08:43+0200\n"
     11"POT-Creation-Date: 2017-08-07 10:39+0200\n"
     12"PO-Revision-Date: 2017-08-07 10:43+0200\n"
    1313"Last-Translator: lliurex <lliurex@gva.es>\n"
    1414"Language-Team: Spanish <es@li.org>\n"
     
    3434
    3535#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:214
    36 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:279
     36#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:283
    3737msgid "Close"
    3838msgstr "Cerrar"
     
    5050#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:325
    5151#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:558
    52 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:335
     52#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:339
    5353msgid "Applying changes..."
    5454msgstr "Aplicando cambios..."
     
    5959
    6060#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    61 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:432
     61#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
    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:437
     66#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:443
    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:442
     71#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:448
    7272msgid "Dismounted. Clicked to mount now"
    7373msgstr "Desmontado. Pulse para montar ahora"
     
    7777msgstr "Conectando con google para obtener acceso a la cuenta..."
    7878
    79 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:579
     79#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:580
    8080msgid "You must indicate a profile"
    8181msgstr "Debes indicar un perfil"
    8282
    83 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:582
     83#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:583
    8484msgid "Profile can not contain blanks"
    8585msgstr "El perfil no puede contener espacios en blanco"
    8686
    87 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:585
     87#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:586
    8888msgid "Profile already exists"
    8989msgstr "El perfil ya existe"
    9090
    91 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:588
     91#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:589
    9292msgid "Mount point already used by another profile"
    93 msgstr "El punto de montaje ya esta siendo usado por otro perfile"
    94 
    95 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:610
     93msgstr "El punto de montaje ya esta siendo usado por otro perfil"
     94
     95#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:592
     96msgid "The mount point must be an empty folder"
     97msgstr "El punto de montaje debe ser una carpeta vacía"
     98
     99#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:595
     100msgid "Mount point is not owned by user"
     101msgstr "El punto de montaje no pertenece al usuario"
     102
     103#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:617
    96104msgid "Creating profile... "
    97105msgstr "Creando perfil..."
    98106
    99 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:619
     107#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:626
    100108msgid "Profile created successfully"
    101109msgstr "Perfil creado correctamente"
    102110
    103 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:647
    104 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:356
     111#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:654
     112#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:360
    105113msgid "Changes applied successfully"
    106114msgstr "Cambios aplicados correctamente"
    107115
    108 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:650
     116#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:657
    109117msgid "Error: Unable to create mount point"
    110118msgstr "Error: Imposible crear el punto de montaje"
    111119
    112 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:653
     120#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:660
    113121msgid "Error: unable to mount mount point"
    114122msgstr "Error: imposible montar el punto de montaje"
    115123
    116 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:656
     124#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:663
    117125msgid "Error: Mount point is not owned by user"
    118126msgstr "Error: Punto de montaje no pertenece al usurio"
    119127
    120 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:659
     128#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:666
    121129msgid "Error: No mount point indicated"
    122130msgstr "Error: No se ha indicado un punto de montaje"
    123131
    124 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:662
     132#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:669
    125133msgid "Error: Profile is not authorized to Google Drive"
    126134msgstr "Error: El perfil no tiene autorización para Google Drive"
    127135
    128 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:665
     136#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:672
    129137msgid "Error: Unknow profile"
    130138msgstr "Error: Perfil desconocido"
    131139
    132 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:668
     140#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:675
    133141msgid "Error: Unable to dismount mount point"
    134142msgstr "Error: Imposible desmontar el punto de montaje"
    135143
    136 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:671
    137 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:344
     144#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:678
     145#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
    138146msgid "Error: Unable to connect with google"
    139147msgstr "Error: Imposible conectar con Google"
    140148
    141 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:674
    142 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
     149#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:681
     150#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:358
    143151msgid "Status updated. Now you can change it"
    144152msgstr "Estado actualizado. Ahora puedes cambiarlo"
    145153
    146 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:687
     154#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:694
    147155msgid "Error getting authorization"
    148156msgstr "Error obteniendo autorización"
    149157
    150 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py:46
     158#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py:49
    151159msgid "Lliurex GDrive is now running."
    152160msgstr "Lliurex Gdrive ya esta ejecutando"
     
    180188msgstr "Añadir perfil"
    181189
    182 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:221
     190#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:225
    183191msgid "Open folder"
    184192msgstr "Abrir carpeta"
    185193
    186 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:230
     194#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:234
    187195msgid "Update cache"
    188196msgstr "Actualizar caché"
    189197
    190 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:232
     198#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:236
    191199msgid "Click if do not see all the files in the Google Drive account"
    192200msgstr ""
     
    194202"Google Drive"
    195203
    196 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
     204#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:266
    197205msgid "Open Lliurex GDrive"
    198206msgstr "Abrir Lliurex GDrive"
    199207
    200 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
     208#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:352
    201209msgid "dismount"
    202210msgstr "desmontar"
    203211
    204 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:350
     212#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
    205213msgid "mount"
    206214msgstr "montar"
    207215
    208 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:351
     216#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:355
    209217msgid "Error: Unable to "
    210218msgstr "Error: Imposible de "
    211219
    212 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:407
     220#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:411
    213221msgid "Cache updated successfully"
    214222msgstr "Caché actualizada correctamente"
    215223
    216 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:410
     224#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:414
    217225msgid "An error occurred updating the cache. Try again"
    218226msgstr "Se ha producido un error actualizando la caché. Inténtelo de nuevo"
    219227
    220 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:433
    221 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:443
     228#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:439
     229#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:449
    222230msgid "Used: not available"
    223231msgstr "Usado: no disponible"
    224232
    225 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
     233#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:444
    226234#, python-format
    227235msgid "Used: %s of %s"
  • lliurex-gdrive/trunk/fuentes/lliurex-po/lliurex-gdrive-gui/lliurex-gdrive.pot

    r5581 r5661  
    99"Project-Id-Version: PACKAGE VERSION\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2017-07-24 08:22+0200\n"
     11"POT-Creation-Date: 2017-08-07 10:37+0200\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    3232
    3333#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:214
    34 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:279
     34#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:283
    3535msgid "Close"
    3636msgstr ""
     
    4848#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:325
    4949#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:558
    50 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:335
     50#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:339
    5151msgid "Applying changes..."
    5252msgstr ""
     
    5757
    5858#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:511
    59 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:432
     59#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
    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:437
     64#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:443
    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:442
     69#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:448
    7070msgid "Dismounted. Clicked to mount now"
    7171msgstr ""
     
    7575msgstr ""
    7676
    77 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:579
     77#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:580
    7878msgid "You must indicate a profile"
    7979msgstr ""
    8080
    81 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:582
     81#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:583
    8282msgid "Profile can not contain blanks"
    8383msgstr ""
    8484
    85 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:585
     85#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:586
    8686msgid "Profile already exists"
    8787msgstr ""
    8888
    89 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:588
     89#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:589
    9090msgid "Mount point already used by another profile"
    9191msgstr ""
    9292
    93 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:610
     93#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:592
     94msgid "The mount point must be an empty folder"
     95msgstr ""
     96
     97#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:595
     98msgid "Mount point is not owned by user"
     99msgstr ""
     100
     101#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:617
    94102msgid "Creating profile... "
    95103msgstr ""
    96104
    97 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:619
     105#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:626
    98106msgid "Profile created successfully"
    99107msgstr ""
    100108
    101 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:647
    102 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:356
     109#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:654
     110#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:360
    103111msgid "Changes applied successfully"
    104112msgstr ""
    105113
    106 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:650
     114#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:657
    107115msgid "Error: Unable to create mount point"
    108116msgstr ""
    109117
    110 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:653
     118#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:660
    111119msgid "Error: unable to mount mount point"
    112120msgstr ""
    113121
    114 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:656
     122#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:663
    115123msgid "Error: Mount point is not owned by user"
    116124msgstr ""
    117125
    118 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:659
     126#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:666
    119127msgid "Error: No mount point indicated"
    120128msgstr ""
    121129
    122 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:662
     130#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:669
    123131msgid "Error: Profile is not authorized to Google Drive"
    124132msgstr ""
    125133
    126 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:665
     134#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:672
    127135msgid "Error: Unknow profile"
    128136msgstr ""
    129137
    130 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:668
     138#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:675
    131139msgid "Error: Unable to dismount mount point"
    132140msgstr ""
    133141
    134 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:671
    135 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:344
     142#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:678
     143#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
    136144msgid "Error: Unable to connect with google"
    137145msgstr ""
    138146
    139 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:674
    140 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
     147#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:681
     148#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:358
    141149msgid "Status updated. Now you can change it"
    142150msgstr ""
    143151
    144 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:687
     152#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py:694
    145153msgid "Error getting authorization"
    146154msgstr ""
    147155
    148 #: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py:46
     156#: ../lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py:49
    149157msgid "Lliurex GDrive is now running."
    150158msgstr ""
     
    178186msgstr ""
    179187
    180 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:221
     188#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:225
    181189msgid "Open folder"
    182190msgstr ""
    183191
    184 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:230
     192#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:234
    185193msgid "Update cache"
    186194msgstr ""
    187195
    188 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:232
     196#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:236
    189197msgid "Click if do not see all the files in the Google Drive account"
    190198msgstr ""
    191199
    192 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:262
     200#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:266
    193201msgid "Open Lliurex GDrive"
    194202msgstr ""
    195203
    196 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:348
     204#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:352
    197205msgid "dismount"
    198206msgstr ""
    199207
    200 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:350
     208#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:354
    201209msgid "mount"
    202210msgstr ""
    203211
    204 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:351
     212#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:355
    205213msgid "Error: Unable to "
    206214msgstr ""
    207215
    208 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:407
     216#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:411
    209217msgid "Cache updated successfully"
    210218msgstr ""
    211219
    212 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:410
     220#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:414
    213221msgid "An error occurred updating the cache. Try again"
    214222msgstr ""
    215223
    216 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:433
    217 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:443
     224#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:439
     225#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:449
    218226msgid "Used: not available"
    219227msgstr ""
    220228
    221 #: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:438
     229#: ../lliurex-gdrive-indicator.install/usr/bin/lliurexGdriveIndicator:444
    222230#, python-format
    223231msgid "Used: %s of %s"
  • lliurex-gdrive/trunk/fuentes/python-lliurex-gdrive/lliurex/lliurexgdrive/__init__.py

    r5645 r5661  
    273273                        code=3: Profile duplicate
    274274                        code=4: Mountpoint duplicate
     275                        code=5: Mountpoint not empty
     276                        code=6: Mountpoint not owned by user
    275277
    276278                '''     
     
    296298                for item in self.profiles_config:
    297299                        if profile!=item:
     300
     301                                if not os.access(mountpoint,os.W_OK):
     302                                        return {"result":False,"code":6}
     303
     304                                if os.listdir(mountpoint):
     305                                        return {"result":False,"code":5}       
     306
    298307                                if mountpoint==self.profiles_config[item]["mountpoint"]:
    299308                                        return {"result":False,"code":4}
     309                       
    300310
    301311                return {"result":True,"code":0}                                                         
Note: See TracChangeset for help on using the changeset viewer.