Hi All,

Please review the attached patch.

Fixes: https://fedorahosted.org/freeipa/ticket/5920

--
Thanks,
Abhijeet Kasurde

IRC: akasurde
http://akasurde.github.io

From f457959ca34768749e5a228532bcd63dcd32fea7 Mon Sep 17 00:00:00 2001
From: Abhijeet Kasurde <akasu...@redhat.com>
Date: Wed, 15 Jun 2016 14:39:02 +0530
Subject: [PATCH] Added missing translation to automount.py method

Fixes: https://fedorahosted.org/freeipa/ticket/5920

Signed-off-by: Abhijeet Kasurde <akasu...@redhat.com>
---
 ipaclient/plugins/automount.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/ipaclient/plugins/automount.py b/ipaclient/plugins/automount.py
index 57a80444608314de87cac1dc343fc0206f1fe66e..e71eb06a3d2b33a17e24c0ffe4d9a0516982f438 100644
--- a/ipaclient/plugins/automount.py
+++ b/ipaclient/plugins/automount.py
@@ -236,17 +236,17 @@ class automountlocation_import(Command):
         duplicatekeys = result['result']['duplicatekeys']
         skipped = result['result']['skipped']
 
-        textui.print_plain('Imported maps:')
+        textui.print_plain(_('Imported maps:'))
         for m in maps:
             textui.print_plain(
-                'Added %s' % m
+                _('Added %s') % m
             )
         textui.print_plain('')
 
         textui.print_plain('Imported keys:')
         for k in keys:
             textui.print_plain(
-                'Added %s to %s' % (
+                _('Added %s to %s') % (
                     k[0], k[1]
                 )
             )
@@ -256,7 +256,7 @@ class automountlocation_import(Command):
             textui.print_plain('Ignored keys:')
             for k in skipped:
                 textui.print_plain(
-                    'Ignored %s to %s' % (
+                    _('Ignored %s to %s') % (
                         k[0], k[1]
                     )
                 )
@@ -264,17 +264,17 @@ class automountlocation_import(Command):
 
         if options.get('continue', False) and len(duplicatemaps) > 0:
             textui.print_plain('')
-            textui.print_plain('Duplicate maps skipped:')
+            textui.print_plain(_('Duplicate maps skipped:'))
             for m in duplicatemaps:
                 textui.print_plain(
-                    'Skipped %s' % m
+                    _('Skipped %s') % m
                 )
 
 
         if options.get('continue', False) and len(duplicatekeys) > 0:
             textui.print_plain('')
-            textui.print_plain('Duplicate keys skipped:')
+            textui.print_plain(_('Duplicate keys skipped:'))
             for k in duplicatekeys:
                 textui.print_plain(
-                    'Skipped %s' % k
+                    _('Skipped %s') % k
                 )
-- 
2.4.11

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to