summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2011-08-18 19:06:39 +0200
committerjvoisin2011-08-18 19:06:39 +0200
commita0e996586e4c20ae20060e044c105fc7cc0bed54 (patch)
tree925a83764a3c87ee42c8d72bb342bdf3c66a766f
parent04282676d9d235a5d9e304f206b11ee09ae82dad (diff)
Translations and typo
Diffstat (limited to '')
-rw-r--r--MANIFEST.in2
-rw-r--r--locale/fr/LC_MESSAGES/gui.po (renamed from locale/fr/LC_MESSAGES/gui.pot)2
-rwxr-xr-xmat-cli6
-rwxr-xr-xmat-gui17
-rw-r--r--mat.desktop6
5 files changed, 17 insertions, 16 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index da862c7..a57c6d0 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,3 @@
1include README FORMAT LICENSE mat-cli mat-gui 1include README FORMATS LICENSE mat-cli mat-gui
2recursive-include mat *.py 2recursive-include mat *.py
3recursive-include test *.py clean.* dirty.* 3recursive-include test *.py clean.* dirty.*
diff --git a/locale/fr/LC_MESSAGES/gui.pot b/locale/fr/LC_MESSAGES/gui.po
index 50daecd..f98372f 100644
--- a/locale/fr/LC_MESSAGES/gui.pot
+++ b/locale/fr/LC_MESSAGES/gui.po
@@ -150,7 +150,7 @@ msgid "Add unsupported file to archives"
150msgstr "Ajout des formats non supportés" 150msgstr "Ajout des formats non supportés"
151 151
152#: gui.py:359 152#: gui.py:359
153msgid "Add non-supported (and so non-anonymised) file to outputed archive" 153msgid "Add non-supported (and so non-anonymised) file to output archive"
154msgstr "Ajouter les fichiers de formats non-supportés (et donc, non traités) aux archives anonymisées" 154msgstr "Ajouter les fichiers de formats non-supportés (et donc, non traités) aux archives anonymisées"
155 155
156#: gui.py:395 gui.py:409 gui.py:412 gui.py:422 gui.py:425 156#: gui.py:395 gui.py:409 gui.py:412 gui.py:422 gui.py:425
diff --git a/mat-cli b/mat-cli
index 804c4cf..c0f2d72 100755
--- a/mat-cli
+++ b/mat-cli
@@ -20,11 +20,11 @@ def parse():
20 ''' 20 '''
21 parser = optparse.OptionParser(usage='%prog [options] files') 21 parser = optparse.OptionParser(usage='%prog [options] files')
22 parser.add_option('--add2archive', '-a', action='store_true', 22 parser.add_option('--add2archive', '-a', action='store_true',
23 default=False, help='Add to outputed archive non-supported filetypes') 23 default=False, help='Add to output archive non-supported filetypes')
24 parser.add_option('--backup', '-b', action='store_true', default=False, 24 parser.add_option('--backup', '-b', action='store_true', default=False,
25 help='Keep a backup copy') 25 help='Keep a backup copy')
26 parser.add_option('--check', '-c', action='store_true', default=False, 26 parser.add_option('--check', '-c', action='store_true', default=False,
27 help='Check if a file is free of harmfull metadatas') 27 help='Check if a file is free of harmful metadatas')
28 parser.add_option('--display', '-d', action='store_true', default=False, 28 parser.add_option('--display', '-d', action='store_true', default=False,
29 help='List all the meta of a file without removing them') 29 help='List all the meta of a file without removing them')
30 parser.add_option('--force', '-f', action='store_true', default=False, 30 parser.add_option('--force', '-f', action='store_true', default=False,
@@ -32,7 +32,7 @@ def parse():
32 parser.add_option('--list', '-l', action='store_true', default=False, 32 parser.add_option('--list', '-l', action='store_true', default=False,
33 help='List all supported fileformat') 33 help='List all supported fileformat')
34 parser.add_option('--ugly', '-u', action='store_true', default=False, 34 parser.add_option('--ugly', '-u', action='store_true', default=False,
35 help='Remove harmful meta, but loss can occure') 35 help='Remove harmful meta, but loss can occur')
36 parser.add_option('--version', '-v', action='callback', 36 parser.add_option('--version', '-v', action='callback',
37 callback=display_version, help='Display version and exit') 37 callback=display_version, help='Display version and exit')
38 38
diff --git a/mat-gui b/mat-gui
index 092353d..d85ddc9 100755
--- a/mat-gui
+++ b/mat-gui
@@ -54,6 +54,9 @@ class GUI:
54 self.window.connect('destroy', gtk.main_quit) 54 self.window.connect('destroy', gtk.main_quit)
55 self.window.set_default_size(800, 600) 55 self.window.set_default_size(800, 600)
56 56
57 self.accelerator = gtk.AccelGroup()
58 self.window.add_accel_group(self.accelerator)
59
57 vbox = gtk.VBox() 60 vbox = gtk.VBox()
58 self.window.add(vbox) 61 self.window.add(vbox)
59 62
@@ -391,7 +394,7 @@ non-anonymised) file to output archive'))
391 Check if selected elements are clean 394 Check if selected elements are clean
392 ''' 395 '''
393 for line in iterator: # for each file in selection 396 for line in iterator: # for each file in selection
394 self.statusbar.push(0, 'Checking %s...' % self.liststore[line][1]) 397 self.statusbar.push(0, _('Checking %s...') % self.liststore[line][1])
395 if self.liststore[line][0].file.is_clean(): 398 if self.liststore[line][0].file.is_clean():
396 string = _('clean') 399 string = _('clean')
397 else: 400 else:
@@ -399,7 +402,7 @@ non-anonymised) file to output archive'))
399 logging.info('%s is %s' % (self.liststore[line][1], string)) 402 logging.info('%s is %s' % (self.liststore[line][1], string))
400 self.liststore[line][3] = string 403 self.liststore[line][3] = string
401 yield True 404 yield True
402 self.statusbar.push(0, 'Ready') 405 self.statusbar.push(0, _('Ready'))
403 yield False 406 yield False
404 407
405 def mat_clean(self, iterator): 408 def mat_clean(self, iterator):
@@ -408,13 +411,13 @@ non-anonymised) file to output archive'))
408 ''' 411 '''
409 for line in iterator: # for each file in selection 412 for line in iterator: # for each file in selection
410 logging.info('Cleaning %s' % self.liststore[line][1]) 413 logging.info('Cleaning %s' % self.liststore[line][1])
411 self.statusbar.push(0, 'Cleaning %s...' % self.liststore[line][1]) 414 self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1])
412 if self.liststore[line][3] is not _('clean'): 415 if self.liststore[line][3] is not _('clean'):
413 if self.force or not self.liststore[line][0].file.is_clean(): 416 if self.force or not self.liststore[line][0].file.is_clean():
414 self.liststore[line][0].file.remove_all() 417 self.liststore[line][0].file.remove_all()
415 self.liststore[line][3] = _('clean') 418 self.liststore[line][3] = _('clean')
416 yield True 419 yield True
417 self.statusbat.push(0, 'Ready') 420 self.statusbat.push(0, _('Ready'))
418 yield False 421 yield False
419 422
420 def mat_clean_dirty(self, iterator): 423 def mat_clean_dirty(self, iterator):
@@ -422,14 +425,14 @@ non-anonymised) file to output archive'))
422 Clean selected elements (ugly way) 425 Clean selected elements (ugly way)
423 ''' 426 '''
424 for line in iterator: # for each file in selection 427 for line in iterator: # for each file in selection
425 logging.info('Cleaning (lossy way) %s' % self.liststore[line][1]) 428 logging.info(_('Cleaning (lossy way) %s') % self.liststore[line][1])
426 self.statusbar.push(0, 'Cleaning %s...' % self.liststore[line][1]) 429 self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1])
427 if self.liststore[line][3] is not _('clean'): 430 if self.liststore[line][3] is not _('clean'):
428 if self.force or not self.liststore[line][0].file.is_clean(): 431 if self.force or not self.liststore[line][0].file.is_clean():
429 self.liststore[line][0].file.remove_all_ugly() 432 self.liststore[line][0].file.remove_all_ugly()
430 self.liststore[line][3] = _('clean') 433 self.liststore[line][3] = _('clean')
431 yield True 434 yield True
432 self.statusbar.push(0, 'Ready') 435 self.statusbar.push(0, _('Ready'))
433 yield False 436 yield False
434 437
435 438
diff --git a/mat.desktop b/mat.desktop
index d405199..4515c3f 100644
--- a/mat.desktop
+++ b/mat.desktop
@@ -4,8 +4,6 @@ Name=Metadata Anonymisation Toolkit
4GenericName=Metadata Anonymisation Toolkit 4GenericName=Metadata Anonymisation Toolkit
5Version=1.0 5Version=1.0
6Type=Application 6Type=Application
7Comment=Metadata Anonymisation Toolkit 7Exec=mat-gui
8Comment[Fr]=Kit d'anonymisation de metadata
9TryExec=mat-gui
10Terminal=false 8Terminal=false
11Categories=Applications;Utility;Security 9Categories=Application;Utility;Security