[gedit-plugins] Make Color schemer error messages localizable
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Make Color schemer error messages localizable
- Date: Tue, 14 May 2019 19:39:35 +0000 (UTC)
commit 575769f5919676f1250e29ffa9f43848bb9e09f7
Author: Jordi Mas <jmas softcatala org>
Date: Tue May 14 19:47:55 2019 +0200
Make Color schemer error messages localizable
plugins/colorschemer/schemer/schemer.py | 16 ++++++++--------
po/POTFILES.in | 1 +
2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/plugins/colorschemer/schemer/schemer.py b/plugins/colorschemer/schemer/schemer.py
index 980f8e9..d602c7b 100644
--- a/plugins/colorschemer/schemer/schemer.py
+++ b/plugins/colorschemer/schemer/schemer.py
@@ -260,10 +260,10 @@ class GUI:
for thisSchemeId in schemeIds:
if self.entryId.get_text() == thisSchemeId or self.entryName.get_text() ==
self.schemeManager.get_scheme(thisSchemeId).get_name():
- text = '<span weight="bold" size="larger">There was a problem saving the scheme</span>' \
- '\n\nYou have choosen to create a new scheme' \
+ text = '<span weight="bold" size="larger">' + _('There was a problem saving the scheme') +
'</span>\n\n'
+ text += _('You have choosen to create a new scheme' \
'\nbut the Name or ID you are using is being used already.' \
- '\n\nPlease be sure to choose a Name and ID that are not already in use.\n'
+ '\n\nPlease be sure to choose a Name and ID that are not already in use.\n')
message_dialog(Gtk.MessageType.ERROR, text, parent=self.window,
buttons=Gtk.ButtonsType.NONE,
additional_buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
@@ -307,10 +307,10 @@ class GUI:
for thisSchemeId in schemeIds:
if self.entryId.get_text() == thisSchemeId or self.entryName.get_text() ==
self.schemeManager.get_scheme(thisSchemeId).get_name():
- text = '<span weight="bold" size="larger">There was a problem saving the scheme</span>' \
- '\n\nYou do not have permission to overwrite the scheme you have choosen.' \
+ text = '<span weight="bold" size="larger">' + _('There was a problem saving the scheme') +
'</span>\n\n'
+ text += _('You do not have permission to overwrite the scheme you have choosen.' \
'\nInstead a copy will be created.' \
- '\n\nPlease be sure to choose a Name and ID that are not already in use.\n'
+ '\n\nPlease be sure to choose a Name and ID that are not already in use.\n')
message_dialog(Gtk.MessageType.ERROR, text, parent=self.window,
buttons=Gtk.ButtonsType.NONE,
additional_buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
@@ -367,8 +367,8 @@ class GUI:
if testFilename != schemeIdOrFile:
# there must have been some conflict, since it opened the wrong file
- text = '<span weight="bold" size="larger">There was a problem opening the file</span>' \
- '\n\nYou appear to have schemes with the same IDs in different directories\n'
+ text = '<span weight="bold" size="larger">' + _('There was a problem opening the file') +
'</span>\n\n'
+ text += _('You appear to have schemes with the same IDs in different directories\n')
message_dialog(Gtk.MessageType.ERROR, text,
parent=self.window, buttons=Gtk.ButtonsType.NONE,
additional_buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0b5641a..fa9d927 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -17,6 +17,7 @@ plugins/colorpicker/gedit-colorpicker.metainfo.xml.in
plugins/colorschemer/colorschemer.plugin.desktop.in.in
plugins/colorschemer/gedit-colorschemer.metainfo.xml.in
plugins/colorschemer/schemer/__init__.py
+plugins/colorschemer/schemer/schemer.py
plugins/colorschemer/schemer.ui
plugins/commander/commander/appactivatable.py
plugins/commander/commander.plugin.desktop.in.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]