Merge lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator into lp:~cairo-dock-team/cairo-dock-plug-ins-extras/third-party

Proposed by Eduardo Mucelli Rezende Oliveira
Status: Merged
Merged at revision: 124
Proposed branch: lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator
Merge into: lp:~cairo-dock-team/cairo-dock-plug-ins-extras/third-party
Diff against target: 18 lines (+2/-2)
1 file modified
Translator/Translator (+2/-2)
To merge this branch: bzr merge lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator
Reviewer Review Type Date Requested Status
Cairo-Dock Devs Pending
Review via email: mp+46362@code.launchpad.net

Commit message

Using markup to differentiate the categories in the dictionary

Description of the change

Using markup to differentiate the categories in the dictionary

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Translator/Translator'
2--- Translator/Translator 2011-01-14 11:42:23 +0000
3+++ Translator/Translator 2011-01-14 23:42:44 +0000
4@@ -321,12 +321,12 @@
5 if len(sentence.split()) == 1: # Just one word, dictionary was returned
6 message = ""
7 for category, words in dictionary.iteritems():
8- message += "%s\n\n" % category
9+ message += "<i>%s</i>\n\n" % category
10 message += "%s\n\n" % "\n".join(words[1:]) # array of words com with the category name in first position
11 else: # Sentence, only the translation was returned
12 message = translated
13 try:
14- self.icon.PopupDialog({'message':message, "buttons":"cancel;stock_new;stock_edit"}, {})
15+ self.icon.PopupDialog({'message':message, "use-markup":True, "buttons":"cancel;stock_new;stock_edit"}, {})
16 except Exception:
17 log("Error caused PopupDialog not be shown, ShowDialog was used instead")
18 self.icon.ShowDialog(message, self.dialog_active_time)

Subscribers

People subscribed via source and target branches