[orca/new-settings] Added i18n markups to profile-related dialogs
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Added i18n markups to profile-related dialogs
- Date: Sun, 7 Nov 2010 22:53:34 +0000 (UTC)
commit cae84b4ea2643526004a4ea67a0fc9024480ee1a
Author: Javier Hernández Antúnez <jhernandez emergya es>
Date: Fri Nov 5 20:16:32 2010 +0100
Added i18n markups to profile-related dialogs
src/orca/orca_gui_prefs.py | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index 4e95c25..b6d1fc3 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -4539,18 +4539,18 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
# We're here because given profile name exists, so we have
# to give that info to the user and give him the chance
# to continue, or not saving the profile
- message = "Profile <b>%s</b> already exists.\n" % \
- profileToSaveLabel + \
- "Continue updating existent profile with these new changes?"
-
+ message = _("Profile <b>%s</b> already exists.\n" \
+ "Continue updating existent profile with " \
+ "these new changes?") % profileToSaveLabel
+
dialog = gtk.MessageDialog(None,
gtk.DIALOG_MODAL,
type=gtk.MESSAGE_INFO,
buttons=gtk.BUTTONS_YES_NO)
- dialog.set_markup("<b>User Profile Conflict!</b>")
+ dialog.set_markup(_("<b>User Profile Conflict!</b>"))
dialog.format_secondary_markup(message)
- dialog.set_title('Save Profile As Conflict')
+ dialog.set_title(_("Save Profile As Conflict"))
response = dialog.run()
if response == gtk.RESPONSE_YES:
@@ -4567,19 +4567,19 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
return
# First of all, we give a chance of cancel profile change
- message = "You are about to change the active profile. If you\n" + \
- "have just make changes in your preferences, it will\n" + \
- "be dropped at profile load\n\n" + \
- "Continue loading profile discarding previous changes?"
+ message = _("You are about to change the active profile. If you\n" \
+ "have just make changes in your preferences, it will\n" \
+ "be dropped at profile load.\n\n" \
+ "Continue loading profile discarding previous changes?")
dialog = gtk.MessageDialog(None,
gtk.DIALOG_MODAL,
type=gtk.MESSAGE_INFO,
buttons=gtk.BUTTONS_YES_NO)
- dialog.set_markup("<b>Load user profile info</b>")
+ dialog.set_markup(_("<b>Load user profile info</b>"))
dialog.format_secondary_markup(message)
- dialog.set_title('Load User Profile')
+ dialog.set_title(_("Load User Profile"))
response = dialog.run()
if response == gtk.RESPONSE_YES:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]