From 19e4e555010ae9d84dd938b4fd00662858edfc64 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Sat, 7 Oct 2017 19:30:19 +0200 Subject: [PATCH] Fix translation of tooltips on web resource buttons --- src/manjaro_hello.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index a3c4a1d..f35489f 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -152,14 +152,24 @@ class Hello(): "welcometitle", "wiki" }, - "tooltip_text": { "about", "home" } + "tooltip_text": { + "about", + "home", + "development", + "chat", + "donate", + "forum", + "mailling", + "wiki" + } } for method in elts: + self.default_texts[method] = {} for elt in elts[method]: - if elt not in self.default_texts: - self.default_texts[elt] = getattr( + if elt not in self.default_texts[method]: + self.default_texts[method][elt] = getattr( self.builder.get_object(elt), "get_" + method)() - getattr(self.builder.get_object(elt), "set_" + method)(_(self.default_texts[elt])) + getattr(self.builder.get_object(elt), "set_" + method)(_(self.default_texts[method][elt])) # Change content of pages for page in self.pages: