From a0e996586e4c20ae20060e044c105fc7cc0bed54 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 18 Aug 2011 19:06:39 +0200 Subject: Translations and typo --- MANIFEST.in | 2 +- locale/fr/LC_MESSAGES/gui.po | 162 ++++++++++++++++++++++++++++++++++++++++++ locale/fr/LC_MESSAGES/gui.pot | 162 ------------------------------------------ mat-cli | 6 +- mat-gui | 17 +++-- mat.desktop | 6 +- 6 files changed, 178 insertions(+), 177 deletions(-) create mode 100644 locale/fr/LC_MESSAGES/gui.po delete mode 100644 locale/fr/LC_MESSAGES/gui.pot diff --git a/MANIFEST.in b/MANIFEST.in index da862c7..a57c6d0 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ -include README FORMAT LICENSE mat-cli mat-gui +include README FORMATS LICENSE mat-cli mat-gui recursive-include mat *.py recursive-include test *.py clean.* dirty.* diff --git a/locale/fr/LC_MESSAGES/gui.po b/locale/fr/LC_MESSAGES/gui.po new file mode 100644 index 0000000..f98372f --- /dev/null +++ b/locale/fr/LC_MESSAGES/gui.po @@ -0,0 +1,162 @@ +# Metadata ANonymisation Toolkit : GUI +# Copyright (C) 2011 Julien (jvoisin) Voisin +# This file is distributed under the same license as the MAT package. +# Julien (jvoisin) Voisin , 2011 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 0.1\n" +"Report-Msgid-Bugs-To: Julien (jvoisin) Voisin \n" +"POT-Creation-Date: 2011-08-10 15:41+0200\n" +"PO-Revision-Date: 2011-08-10 15:41+0200\n" +"Last-Translator: Julien (jvoisin) Voisin \n" +"Language-Team: Fr Julien (jvoisin) Voisin \n" +"Language: FR_fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: gui.py:81 +msgid "Ready" +msgstr "Prêt" + +#: gui.py:93 +msgid "Add" +msgstr "Ajouter" + +#: gui.py:95 gui.py:171 +msgid "Add files" +msgstr "Ajouter fichiers" + +#: gui.py:99 gui.py:187 +msgid "Clean" +msgstr "Nettoyer" + +#: gui.py:101 +msgid "Clean selected files without data loss" +msgstr "Nettoyer les fichiers séléctionnés sans pertes possibles d'informations" + +#: gui.py:105 +msgid "Brute Clean" +msgstr "Nettoyer avec pertes possibles" + +#: gui.py:107 +msgid "Clean selected files with possible data loss" +msgstr "Nettoyer avec pertes possibles d'informations" + +#: gui.py:112 gui.py:203 +msgid "Check" +msgstr "Vérifier" + +#: gui.py:114 +msgid "Check selected files for harmful meta" +msgstr "Vérifier l'état actuel des fichiers selectionnés" + +#: gui.py:118 gui.py:173 +msgid "Quit" +msgstr "Quitter" + +#: gui.py:130 +msgid "Filename" +msgstr "Nom" + +#: gui.py:130 +msgid "Mimetype" +msgstr "Type mime" + +#: gui.py:130 +msgid "State" +msgstr "État" + +#: gui.py:170 +msgid "Files" +msgstr "Fichiers" + +#: gui.py:176 +msgid "Edit" +msgstr "Edition" + +#: gui.py:177 +msgid "Clear the filelist" +msgstr "Vider la liste de fichiers" + +#: gui.py:179 gui.py:331 +msgid "Preferences" +msgstr "Préférences" + +#: gui.py:182 +msgid "Process" +msgstr "Traiter" + +#: gui.py:195 +msgid "Clean (lossy way)" +msgstr "Nettoyer (avec pertes possibles)" + +#: gui.py:208 +msgid "Help" +msgstr "Aide" + +#: gui.py:209 gui.py:289 +msgid "Supported formats" +msgstr "Formats supportés" + +#: gui.py:211 +msgid "About" +msgstr "A propos" + +#: gui.py:219 +msgid "Choose files" +msgstr "Sélection de fichiers" + +#: gui.py:226 +msgid "All files" +msgstr "Tous" + +#: gui.py:233 +msgid "Supported files" +msgstr "Supportés" + +#: gui.py:266 +msgid "unknow" +msgstr "inconnu" + +#: gui.py:276 +msgid "This software was coded during the GSoC 2011" +msgstr "Ce logiciel a été produit lors du GSoC 2011" + +#: gui.py:278 +msgid "Website" +msgstr "Site internet" + +#: gui.py:342 +msgid "Force Clean" +msgstr "Forcer traitement" + +#: gui.py:345 +msgid "Do not check if already clean before cleaning" +msgstr "Ne pas vérifier l'état avant de traiter" + +#: gui.py:349 +msgid "Backup" +msgstr "Copie de sauvegarde" + +#: gui.py:352 +msgid "Keep a backup copy" +msgstr "Garde une copie de sauvegarde du fichier original" + +#: gui.py:355 +msgid "Add unsupported file to archives" +msgstr "Ajout des formats non supportés" + +#: gui.py:359 +msgid "Add non-supported (and so non-anonymised) file to output archive" +msgstr "Ajouter les fichiers de formats non-supportés (et donc, non traités) aux archives anonymisées" + +#: gui.py:395 gui.py:409 gui.py:412 gui.py:422 gui.py:425 +msgid "clean" +msgstr "propre" + +#: gui.py:397 +msgid "dirty" +msgstr "compromettant" diff --git a/locale/fr/LC_MESSAGES/gui.pot b/locale/fr/LC_MESSAGES/gui.pot deleted file mode 100644 index 50daecd..0000000 --- a/locale/fr/LC_MESSAGES/gui.pot +++ /dev/null @@ -1,162 +0,0 @@ -# Metadata ANonymisation Toolkit : GUI -# Copyright (C) 2011 Julien (jvoisin) Voisin -# This file is distributed under the same license as the MAT package. -# Julien (jvoisin) Voisin , 2011 -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: 0.1\n" -"Report-Msgid-Bugs-To: Julien (jvoisin) Voisin \n" -"POT-Creation-Date: 2011-08-10 15:41+0200\n" -"PO-Revision-Date: 2011-08-10 15:41+0200\n" -"Last-Translator: Julien (jvoisin) Voisin \n" -"Language-Team: Fr Julien (jvoisin) Voisin \n" -"Language: FR_fr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: gui.py:81 -msgid "Ready" -msgstr "Prêt" - -#: gui.py:93 -msgid "Add" -msgstr "Ajouter" - -#: gui.py:95 gui.py:171 -msgid "Add files" -msgstr "Ajouter fichiers" - -#: gui.py:99 gui.py:187 -msgid "Clean" -msgstr "Nettoyer" - -#: gui.py:101 -msgid "Clean selected files without data loss" -msgstr "Nettoyer les fichiers séléctionnés sans pertes possibles d'informations" - -#: gui.py:105 -msgid "Brute Clean" -msgstr "Nettoyer avec pertes possibles" - -#: gui.py:107 -msgid "Clean selected files with possible data loss" -msgstr "Nettoyer avec pertes possibles d'informations" - -#: gui.py:112 gui.py:203 -msgid "Check" -msgstr "Vérifier" - -#: gui.py:114 -msgid "Check selected files for harmful meta" -msgstr "Vérifier l'état actuel des fichiers selectionnés" - -#: gui.py:118 gui.py:173 -msgid "Quit" -msgstr "Quitter" - -#: gui.py:130 -msgid "Filename" -msgstr "Nom" - -#: gui.py:130 -msgid "Mimetype" -msgstr "Type mime" - -#: gui.py:130 -msgid "State" -msgstr "État" - -#: gui.py:170 -msgid "Files" -msgstr "Fichiers" - -#: gui.py:176 -msgid "Edit" -msgstr "Edition" - -#: gui.py:177 -msgid "Clear the filelist" -msgstr "Vider la liste de fichiers" - -#: gui.py:179 gui.py:331 -msgid "Preferences" -msgstr "Préférences" - -#: gui.py:182 -msgid "Process" -msgstr "Traiter" - -#: gui.py:195 -msgid "Clean (lossy way)" -msgstr "Nettoyer (avec pertes possibles)" - -#: gui.py:208 -msgid "Help" -msgstr "Aide" - -#: gui.py:209 gui.py:289 -msgid "Supported formats" -msgstr "Formats supportés" - -#: gui.py:211 -msgid "About" -msgstr "A propos" - -#: gui.py:219 -msgid "Choose files" -msgstr "Sélection de fichiers" - -#: gui.py:226 -msgid "All files" -msgstr "Tous" - -#: gui.py:233 -msgid "Supported files" -msgstr "Supportés" - -#: gui.py:266 -msgid "unknow" -msgstr "inconnu" - -#: gui.py:276 -msgid "This software was coded during the GSoC 2011" -msgstr "Ce logiciel a été produit lors du GSoC 2011" - -#: gui.py:278 -msgid "Website" -msgstr "Site internet" - -#: gui.py:342 -msgid "Force Clean" -msgstr "Forcer traitement" - -#: gui.py:345 -msgid "Do not check if already clean before cleaning" -msgstr "Ne pas vérifier l'état avant de traiter" - -#: gui.py:349 -msgid "Backup" -msgstr "Copie de sauvegarde" - -#: gui.py:352 -msgid "Keep a backup copy" -msgstr "Garde une copie de sauvegarde du fichier original" - -#: gui.py:355 -msgid "Add unsupported file to archives" -msgstr "Ajout des formats non supportés" - -#: gui.py:359 -msgid "Add non-supported (and so non-anonymised) file to outputed archive" -msgstr "Ajouter les fichiers de formats non-supportés (et donc, non traités) aux archives anonymisées" - -#: gui.py:395 gui.py:409 gui.py:412 gui.py:422 gui.py:425 -msgid "clean" -msgstr "propre" - -#: gui.py:397 -msgid "dirty" -msgstr "compromettant" diff --git a/mat-cli b/mat-cli index 804c4cf..c0f2d72 100755 --- a/mat-cli +++ b/mat-cli @@ -20,11 +20,11 @@ def parse(): ''' parser = optparse.OptionParser(usage='%prog [options] files') parser.add_option('--add2archive', '-a', action='store_true', - default=False, help='Add to outputed archive non-supported filetypes') + default=False, help='Add to output archive non-supported filetypes') parser.add_option('--backup', '-b', action='store_true', default=False, help='Keep a backup copy') parser.add_option('--check', '-c', action='store_true', default=False, - help='Check if a file is free of harmfull metadatas') + help='Check if a file is free of harmful metadatas') parser.add_option('--display', '-d', action='store_true', default=False, help='List all the meta of a file without removing them') parser.add_option('--force', '-f', action='store_true', default=False, @@ -32,7 +32,7 @@ def parse(): parser.add_option('--list', '-l', action='store_true', default=False, help='List all supported fileformat') parser.add_option('--ugly', '-u', action='store_true', default=False, - help='Remove harmful meta, but loss can occure') + help='Remove harmful meta, but loss can occur') parser.add_option('--version', '-v', action='callback', callback=display_version, help='Display version and exit') diff --git a/mat-gui b/mat-gui index 092353d..d85ddc9 100755 --- a/mat-gui +++ b/mat-gui @@ -54,6 +54,9 @@ class GUI: self.window.connect('destroy', gtk.main_quit) self.window.set_default_size(800, 600) + self.accelerator = gtk.AccelGroup() + self.window.add_accel_group(self.accelerator) + vbox = gtk.VBox() self.window.add(vbox) @@ -391,7 +394,7 @@ non-anonymised) file to output archive')) Check if selected elements are clean ''' for line in iterator: # for each file in selection - self.statusbar.push(0, 'Checking %s...' % self.liststore[line][1]) + self.statusbar.push(0, _('Checking %s...') % self.liststore[line][1]) if self.liststore[line][0].file.is_clean(): string = _('clean') else: @@ -399,7 +402,7 @@ non-anonymised) file to output archive')) logging.info('%s is %s' % (self.liststore[line][1], string)) self.liststore[line][3] = string yield True - self.statusbar.push(0, 'Ready') + self.statusbar.push(0, _('Ready')) yield False def mat_clean(self, iterator): @@ -408,13 +411,13 @@ non-anonymised) file to output archive')) ''' for line in iterator: # for each file in selection logging.info('Cleaning %s' % self.liststore[line][1]) - self.statusbar.push(0, 'Cleaning %s...' % self.liststore[line][1]) + self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) if self.liststore[line][3] is not _('clean'): if self.force or not self.liststore[line][0].file.is_clean(): self.liststore[line][0].file.remove_all() self.liststore[line][3] = _('clean') yield True - self.statusbat.push(0, 'Ready') + self.statusbat.push(0, _('Ready')) yield False def mat_clean_dirty(self, iterator): @@ -422,14 +425,14 @@ non-anonymised) file to output archive')) Clean selected elements (ugly way) ''' for line in iterator: # for each file in selection - logging.info('Cleaning (lossy way) %s' % self.liststore[line][1]) - self.statusbar.push(0, 'Cleaning %s...' % self.liststore[line][1]) + logging.info(_('Cleaning (lossy way) %s') % self.liststore[line][1]) + self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) if self.liststore[line][3] is not _('clean'): if self.force or not self.liststore[line][0].file.is_clean(): self.liststore[line][0].file.remove_all_ugly() self.liststore[line][3] = _('clean') yield True - self.statusbar.push(0, 'Ready') + self.statusbar.push(0, _('Ready')) yield False 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 GenericName=Metadata Anonymisation Toolkit Version=1.0 Type=Application -Comment=Metadata Anonymisation Toolkit -Comment[Fr]=Kit d'anonymisation de metadata -TryExec=mat-gui +Exec=mat-gui Terminal=false -Categories=Applications;Utility;Security +Categories=Application;Utility;Security -- cgit v1.3