Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cover all i18n strings and french translation #3

Merged
merged 2 commits into from
Oct 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions gSpeech.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ def __init__(self, config):

button = Gtk.Button()
button.set_image(Gtk.Image.new_from_stock(Gtk.STOCK_EXECUTE,Gtk.IconSize.MENU))
button.set_label(_(u"Read clipboard content"))
button.set_label(_("Read clipboard content"))
button.connect("clicked", self.onExecute)
button.add_accelerator("clicked",self.accelgroup , ord('c'), Gdk.ModifierType.SHIFT_MASK, Gtk.AccelFlags.VISIBLE)
hbox.pack_start(button, False, False,0)

button = Gtk.Button()
button.set_image(Gtk.Image.new_from_stock(Gtk.STOCK_EXECUTE, Gtk.IconSize.MENU))
button.set_label(_(u"Read selected text"))
button.set_label(_("Read selected text"))
button.connect("clicked", self.onExecute)
button.add_accelerator("clicked",self.accelgroup , ord('x'),Gdk.ModifierType.SHIFT_MASK, Gtk.AccelFlags.VISIBLE)
hbox.pack_start(button, False, False,0)
Expand Down Expand Up @@ -186,32 +186,32 @@ def onRightClick(self, icon=None, event_button=None, event_time=None):
menu = Gtk.Menu()

# Execute menu item : execute speeching from Desktop clipboard
rmItem = Gtk.MenuItem.new_with_label(_(u"Read clipboard content"))
rmItem = Gtk.MenuItem.new_with_label(_("Read clipboard content"))
rmItem.connect('activate', self.onExecute)
rmItem.show()
menu.append(rmItem)

# Execute menu item : execute speeching from X.org clipboard
rmItem = Gtk.MenuItem.new_with_label(_(u"Read selected text"))
rmItem = Gtk.MenuItem.new_with_label(_("Read selected text"))
rmItem.connect('activate', self.onExecute)
rmItem.show()
menu.append(rmItem)

# Play item menu
self.MenuPlayPause = Gtk.CheckMenuItem.new_with_label("Pause")
self.MenuPlayPause = Gtk.CheckMenuItem.new_with_label(_("Pause"))
self.MenuPlayPause.set_active(False)
self.MenuPlayPause.connect('toggled', self.onPlayPause)
self.MenuPlayPause.show()
menu.append(self.MenuPlayPause)

# Stop item menu
rmItem = Gtk.MenuItem.new_with_label("Stop")
rmItem = Gtk.MenuItem.new_with_label(_("Stop"))
rmItem.connect('activate', self.onStop)
rmItem.show()
menu.append(rmItem)

# Save item menu
rmItem = Gtk.MenuItem.new_with_label("Save")
rmItem = Gtk.MenuItem.new_with_label(_("Save"))
rmItem.connect('activate', self.onSave)
rmItem.show()
menu.append(rmItem)
Expand All @@ -221,7 +221,7 @@ def onRightClick(self, icon=None, event_button=None, event_time=None):
rmItem.show()
menu.append(rmItem)

mediawin = Gtk.MenuItem.new_with_label(_(u"Multimedia window"))
mediawin = Gtk.MenuItem.new_with_label(_("Multimedia window"))
mediawin.connect('activate', self.onMediaDialog)
mediawin.show()
menu.append(mediawin)
Expand Down Expand Up @@ -264,13 +264,13 @@ def onRightClick(self, icon=None, event_button=None, event_time=None):
menu.append(rmItem)

## Reload item menu
item = Gtk.MenuItem.new_with_label("Refresh")
item = Gtk.MenuItem.new_with_label(_("Refresh"))
item.connect('activate', self.onReload)
item.show()
menu.append(item)

# About item menu : show About dialog
about = Gtk.MenuItem.new_with_label("About")
about = Gtk.MenuItem.new_with_label(_("About"))
about.connect('activate', self.onAbout)
about.show()
menu.append(about)
Expand All @@ -282,7 +282,7 @@ def onRightClick(self, icon=None, event_button=None, event_time=None):
menu.append(options)

# Quit item menu
item = Gtk.MenuItem.new_with_label("Quit")
item = Gtk.MenuItem.new_with_label(_("Quit"))
item.connect('activate', self.destroy)
item.show()
menu.append(item)
Expand Down Expand Up @@ -358,15 +358,15 @@ def onLeftClick(self, widget, data=None):

# on Execute item function : execute speech
def onExecute(self, widget, data=None):
if widget.get_label() == _(u"Read selected text") :
if widget.get_label() == _("Read selected text") :
text = Gtk.Clipboard.get(Gdk.SELECTION_PRIMARY).wait_for_text()
else :
text = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD).wait_for_text()

if text == None:
if self.config.show_notification:
try:
Notify.Notification.new(APPNAME, _(u"No text selected."), self.icon).show()
Notify.Notification.new(APPNAME, _("No text selected."), self.icon).show()
except:
pass
else :
Expand Down Expand Up @@ -533,7 +533,7 @@ def on_checked(self, checkBox, config):
class SaveFile:
""" the class to save the speech .wav file """
def __init__(self):
dialog = Gtk.FileChooserDialog(_(u"Save the speech"),
dialog = Gtk.FileChooserDialog(_("Save the speech"),
None,
Gtk.FileChooserAction.SAVE,
(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
Expand Down
Binary file modified locale/fr_FR/LC_MESSAGES/gSpeech.mo
Binary file not shown.
76 changes: 55 additions & 21 deletions po/gSpeech-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,49 +12,83 @@ msgstr
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: BIETTE LAHIRE <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: it-IT\n"
"Language: fr-FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "Languages"
msgstr "Langues"

msgid "Open dictionary"
msgstr "Ouvrir le dictionnaire"
#: gSpeech.py:29
msgid "A little script to read SVOX Pico texts selected with the mouse."
msgstr "Un petit script pour lire avec SVOX Pico les textes sélectionnés à la souris."

#: gSpeech.py:56
#: gSpeech.py:33
msgid "Developers :"
msgstr "Développeurs :"

#: gSpeech.py:61
#: gSpeech.py:103
msgid "SVOX Pico simple GUI"
msgstr "Interface simple pour SVOX Pico"

#: gSpeech.py:109,233
#: gSpeech.py:122 gSpeech.py:187
msgid "Read clipboard content"
msgstr "Lire le contenu du presse-papiers"

#: gSpeech.py:129 gSpeech.py:193 gSpeech.py:350
msgid "Read selected text"
msgstr "Lire le texte sélectionné"

#: gSpeech.py:116,235
msgid "Read clipboard content"
msgstr "Lire le contenu du presse-papiers"
#: gSpeech.py:199
msgid "Pause"
msgstr "Pause"

#: gSpeech.py:188
msgid "I'm reading the text. One moment please."
msgstr "Je suis en train de lire le texte."
#: gSpeech.py:206
msgid "Stop"
msgstr "Stop"

#: gSpeech.py:212
msgid "Save"
msgstr "Sauvegarder"

#: gSpeech.py:190
#: gSpeech.py:222
msgid "Multimedia window"
msgstr "Fenêtre multimédia"

#: gSpeech.py:28
msgid "A little script to read SVOX Pico texts selected with the mouse."
msgstr "Un petit script pour lire avec SVOX Pico les textes sélectionnés à la souris."
#: gSpeech.py:233
msgid "Open dictionary"
msgstr "Ouvrir le dictionnaire"

#: gSpeech.py:239
msgid "Languages"
msgstr "Langues"

#: gSpeech.py:265
msgid "Refresh"
msgstr "Rafraichir"

#: gSpeech.py:271
msgid "About"
msgstr "À propos"

#: gSpeech.py:277
msgid "Quit"
msgstr "Quitter"

#: gSpeech.py:357
msgid "No text selected."
msgstr "Aucun texte sélectionné."

#: gSpeech.py:363
msgid "I'm reading the text. One moment please."
msgstr "Je suis en train de lire le texte."

#: gSpeech.py:492
msgid "%s's Website"
msgstr "Le site internet de %s"

#: gSpeech.py:259
#: gSpeech.py:503
msgid "Save the speech"
msgstr "Sauvegarder la lecture"

#: gSpeech.py:267
#: gSpeech.py:516
msgid "Wave file (*.wav)"
msgstr "Fichier wave (*.wav)"
68 changes: 51 additions & 17 deletions po/gSpeech.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,52 +9,86 @@ msgstr ""
"Project-Id-Version: 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-08 10:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: BIETTE LAHIRE <[email protected]>\n"
"PO-Revision-Date: 2018-10-28 17:37+0100\n"
"Last-Translator: Jérémie Ferry <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: it-IT\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "Languages"
#: gSpeech.py:29
msgid "A little script to read SVOX Pico texts selected with the mouse."
msgstr ""

msgid "Open dictionary"
#: gSpeech.py:33
msgid "Developers :"
msgstr ""

#: gSpeech.py:56
msgid "Developers:"
#: gSpeech.py:103
msgid "SVOX Pico simple GUI"
msgstr ""

#: gSpeech.py:61
msgid "SVOX Pico simple GUI"
#: gSpeech.py:122 gSpeech.py:187
msgid "Read clipboard content"
msgstr ""

#: gSpeech.py:109,233
#: gSpeech.py:129 gSpeech.py:193 gSpeech.py:350
msgid "Read selected text"
msgstr ""

#: gSpeech.py:116,235
msgid "Read clipboard content"
#: gSpeech.py:199
msgid "Pause"
msgstr ""

#: gSpeech.py:188
msgid "I'm reading the text. One moment please."
#: gSpeech.py:206
msgid "Stop"
msgstr ""

#: gSpeech.py:212
msgid "Save"
msgstr ""

#: gSpeech.py:190
#: gSpeech.py:222
msgid "Multimedia window"
msgstr ""

#: gSpeech.py:233
msgid "Open dictionary"
msgstr ""

#: gSpeech.py:239
msgid "A little script to read SVOX Pico texts selected with the mouse."
msgid "Languages"
msgstr ""

#: gSpeech.py:265
msgid "Refresh"
msgstr ""

#: gSpeech.py:271
msgid "About"
msgstr ""

#: gSpeech.py:277
msgid "Quit"
msgstr ""

#: gSpeech.py:357
msgid "No text selected."
msgstr ""

#: gSpeech.py:363
msgid "I'm reading the text. One moment please."
msgstr ""

#: gSpeech.py:492
msgid "%s's Website"
msgstr ""

#: gSpeech.py:259
#: gSpeech.py:503
msgid "Save the speech"
msgstr ""

#: gSpeech.py:267
#: gSpeech.py:516
msgid "Wave file (*.wav)"
msgstr ""