From ab0353a13c2eca65e0bba90ae01419a3092d1e50 Mon Sep 17 00:00:00 2001
From: Alexander Cherniuk <ts33kr@gmail.com>
Date: Sat, 3 Apr 2010 18:17:54 +0300
Subject: [PATCH] Made a fix to consider translation of a status

---
 src/tooltips.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/tooltips.py b/src/tooltips.py
index e4e86920ed..eb39a7b235 100644
--- a/src/tooltips.py
+++ b/src/tooltips.py
@@ -185,17 +185,17 @@ class BaseTooltip:
         semantics. Color palette is the Tango.
         """
         formatted = "<span foreground='%s'>%s</span>"
-        if status.startswith("Available"):
+        if status.startswith(_("Available")):
             return formatted % ('#73D216', status)
-        elif status.startswith("Free for Chat"):
+        elif status.startswith(_("Free for Chat")):
             return formatted % ('#3465A4', status)
-        elif status.startswith("Away"):
+        elif status.startswith(_("Away")):
             return formatted % ('#EDD400', status)
         elif status.startswith("Busy"):
             return formatted % ('#F57900', status)
-        elif status.startswith("Not Available"):
+        elif status.startswith(_("Not Available")):
             return formatted % ('#CC0000', status)
-        elif status.startswith("Offline"):
+        elif status.startswith(_("Offline")):
             return formatted % ('#555753', status)
         else:
             # A fallback reserved for probable changes that might occur
-- 
GitLab