On Thu, 2014-11-13 at 21:51 +0100, Vojtech Trefny wrote:
---
blivet/i18n.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/i18n.py b/blivet/i18n.py
index 1f07266..1042688 100644
--- a/blivet/i18n.py
+++ b/blivet/i18n.py
@@ -45,8 +45,8 @@ N_ = lambda x: x
# evaluated on every call.
# pylint: disable=unnecessary-lambda
if six.PY2:
- _ = lambda x: _get_translations().ugettext(x)
+ _ = lambda x: _get_translations().ugettext(x) if x != "" else
u""
P_ = lambda x, y, z: _get_translations().ungettext(x, y, z)
else:
- _ = lambda x: _get_translations().gettext(x)
+ _ = lambda x: _get_translations().gettext(x) if x != "" else ""
P_ = lambda x, y, z: _get_translations().ngettext(x, y, z)
Please make the
commit message a bit shorter (e.g. by removing the (...)
part). Otherwise this looks good to me. Feel free to push it.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic