1 --- pysshfs.py 2011-11-07 16:57:19.000000000 +0100
2 +++ pysshfs_fr.py 2011-11-07 16:57:21.000000000 +0100
6 self.profil_combo = gtk.combo_box_new_text()
7 - self.profil_combo.append_text('New Connection')
8 + self.profil_combo.append_text('Nouvelle Connection')
10 home = os.environ['HOME']
14 self.User_entry = gtk.Entry()
16 - label = gtk.Label('User :')
17 + label = gtk.Label('Identifiant :')
18 label.set_alignment(0, 1)
19 table.attach(label, 0, 1, 1, 2)
20 table.attach(self.User_entry, 1, 2, 1, 2)
23 self.Password_entry = gtk.Entry()
24 self.Password_entry.set_visibility(False)
25 - label = gtk.Label('Password :')
26 + label = gtk.Label('Mot de passe :')
27 label.set_alignment(0, 1)
28 table.attach(label, 0, 1, 2, 3)
29 table.attach(self.Password_entry, 1, 2, 2, 3)
32 self.Host_entry = gtk.Entry()
33 - label = gtk.Label('Host :')
34 + label = gtk.Label('Serveur :')
35 label.set_alignment(0, 1)
36 table.attach(label, 0, 1, 3, 4)
37 table.attach(self.Host_entry, 1, 2, 3, 4)
40 self.Dir_entry = gtk.Entry()
41 - label = gtk.Label('Dir :')
42 + label = gtk.Label('Dossier Distant :')
43 label.set_alignment(0, 1)
44 table.attach(label, 0, 1, 4, 5)
45 table.attach(self.Dir_entry, 1, 2, 4, 5)
48 self.Mountpoint_entry = gtk.Entry()
49 - label = gtk.Label('Mountpoint :')
50 + label = gtk.Label('Dossier de montage :')
51 label.set_alignment(0, 1)
52 table.attach(label, 0, 1, 5, 6)
53 table.attach(self.Mountpoint_entry, 1, 2, 5, 6)
55 table.attach(self.Port_entry, 1, 2, 6, 7)
58 - self.OpenDir_checkbox = gtk.CheckButton('Open directory')
59 + self.OpenDir_checkbox = gtk.CheckButton('Ouvrir le dossier')
60 ## cocher/decocher par defaut l'ouverture du dossier
61 self.OpenDir_checkbox.set_active(False)
62 table.attach(self.OpenDir_checkbox, 0, 1, 7, 8)
67 - label.set_markup("<b>Mountpoint</b>")
68 + label.set_markup("<b>Dossiers de montage</b>")
69 label.set_alignment(0, 1)
70 table.attach(label, 0, 2, 9, 10)
73 #table.attach(self.Umount_Bt, 0, 2, 16, 17)
76 - self.check_remove = gtk.CheckButton('delete mountpoint when disconnect')
77 + self.check_remove = gtk.CheckButton('supprimer le dossiers de montage lors de la deconnection')
78 table.attach(self.check_remove, 0, 2, 12, 13)
82 def update_mountedfs(self):
83 self.mounted_fs_tab = get_mounted_fs()
84 self.Mounted_fs_combo.get_model().clear()
85 - self.Mounted_fs_combo.insert_text(0, 'Choose')
86 + self.Mounted_fs_combo.insert_text(0, 'Choisir')
89 for mounted_fs in self.mounted_fs_tab:
92 if User == '' or Password == '' or Host == '' or Mountpoint =='' or Port =='':
94 - debug_info('Error : please check your config')
95 - show_msg('Error : please check your config')
96 + debug_info('Erreur : vérifier vos reglages')
97 + show_msg('Erreur : vérifier vos reglages')
104 ## Three responses we might expect.
105 - self.Initial_Responses = ['Are you sure you want to continue connecting (yes/no)?',
106 + self.Initial_Responses = ['Etes vous sur de vouloir vous connecter (oui/non)?',
107 'password:', pexpect.EOF]
109 def mount(self, User="", Password="", Host="", Dir="", Mountpoint="", Port=22, Timeout=120):