cairo-dock-team team mailing list archive
-
cairo-dock-team team
-
Mailing list archive
-
Message #02701
[Merge] lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator into lp:cairo-dock-plug-ins-extras
Eduardo Mucelli Rezende Oliveira has proposed merging lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator into lp:cairo-dock-plug-ins-extras.
Requested reviews:
Cairo-Dock Team (cairo-dock-team)
For more details, see:
https://code.launchpad.net/~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator/+merge/46362
Using markup to differentiate the categories in the dictionary
--
https://code.launchpad.net/~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator/+merge/46362
Your team Cairo-Dock Team is requested to review the proposed merge of lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator into lp:cairo-dock-plug-ins-extras.
=== modified file 'Translator/Translator'
--- Translator/Translator 2011-01-14 11:42:23 +0000
+++ Translator/Translator 2011-01-14 23:42:44 +0000
@@ -321,12 +321,12 @@
if len(sentence.split()) == 1: # Just one word, dictionary was returned
message = ""
for category, words in dictionary.iteritems():
- message += "%s\n\n" % category
+ message += "<i>%s</i>\n\n" % category
message += "%s\n\n" % "\n".join(words[1:]) # array of words com with the category name in first position
else: # Sentence, only the translation was returned
message = translated
try:
- self.icon.PopupDialog({'message':message, "buttons":"cancel;stock_new;stock_edit"}, {})
+ self.icon.PopupDialog({'message':message, "use-markup":True, "buttons":"cancel;stock_new;stock_edit"}, {})
except Exception:
log("Error caused PopupDialog not be shown, ShowDialog was used instead")
self.icon.ShowDialog(message, self.dialog_active_time)
Follow ups