[PATCH 02/10] The initial welcome screen is the only one that needs to do retranslation.

Vratislav Podzimek vpodzime at redhat.com
Mon Dec 3 20:40:29 UTC 2012


On Fri, 2012-11-30 at 11:28 -0500, Chris Lumens wrote:
> diff --git a/pyanaconda/ui/gui/spokes/welcome.py b/pyanaconda/ui/gui/spokes/welcome.py
> index 71093c7..5668d1e 100644
> --- a/pyanaconda/ui/gui/spokes/welcome.py
> +++ b/pyanaconda/ui/gui/spokes/welcome.py
> @@ -136,7 +136,26 @@ class LanguageMixIn(object):
>  
>          self._languageStoreFilter.set_visible_func(self._matchesEntry, None)
>  
> +    def _retranslate_one(self, widgetName):
> +            widget = self.builder.get_object(widgetName)
> +            if not widget:
> +                return
> +
> +            if not widget in self._origStrings:
> +                self._origStrings[widget] = widget.get_label()
> +
> +            before = self._origStrings[widget]
> +            widget.set_label(_(before))
> +
Too much indentation here?

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list