[Xfce4-commits] [apps/xfce4-panel-profiles] 44/162: Allow translation of missing messages (LP: #1497762) - thanks Olivier Duchateau

noreply at xfce.org noreply at xfce.org
Fri Jul 13 13:09:03 CEST 2018


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-panel-profiles.

commit 9fea19fb3be5904a11e3d43944567ed797334007
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Sep 26 10:41:23 2015 -0400

    Allow translation of missing messages (LP: #1497762) - thanks Olivier Duchateau
---
 xfpanel-switch/xfpanel-switch.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xfpanel-switch/xfpanel-switch.py b/xfpanel-switch/xfpanel-switch.py
index f3459dc..5bf84ea 100644
--- a/xfpanel-switch/xfpanel-switch.py
+++ b/xfpanel-switch/xfpanel-switch.py
@@ -128,7 +128,7 @@ class XfpanelSwitch:
 
     def get_saved_configurations(self):
         results = []
-        results.append(("", "Current Configuration", ""))
+        results.append(("", _("Current Configuration"), ""))
         today_delta = datetime.datetime.today() - datetime.timedelta(days=1)
 
         for directory in self.get_data_dirs():
@@ -140,9 +140,9 @@ class XfpanelSwitch:
                     t = os.path.getmtime(path)
                     datetime_o = datetime.datetime.fromtimestamp(t)
                     if datetime_o > today_delta:
-                        modified = ("Today")
+                        modified = (_("Today"))
                     elif datetime_o == today_delta:
-                        modified = ("Yesterday")
+                        modified = (_("Yesterday"))
                     else:
                         modified = datetime_o.strftime("%x")
                     results.append((path, name, modified))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list