[follow-up PATCH] Do not try to get "" translated

Chris Lumens clumens at redhat.com
Fri Apr 4 15:48:45 UTC 2014


> diff --git a/pyanaconda/i18n.py b/pyanaconda/i18n.py
> index 12ace35..3e6c248 100644
> --- a/pyanaconda/i18n.py
> +++ b/pyanaconda/i18n.py
> @@ -23,7 +23,7 @@ __all__ = ["_", "N_", "P_", "C_", "CN_", "CP_"]
>  
>  import gettext
>  
> -_ = lambda x: gettext.ldgettext("anaconda", x)
> +_ = lambda x: gettext.ldgettext("anaconda", x) if x else ""
>  N_ = lambda x: x
>  P_ = lambda x, y, z: gettext.ldngettext("anaconda", x, y, z)
>  

I like the big hammer approach here.  With luck, we'll never see this
problem again (except, maybe, if glade is involved).

- Chris


More information about the anaconda-patches mailing list