[gnome-shell] Fix the offset calculation again



commit 0ebba112d7b6d11b5fe0ac396d606fe83adf2ada
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Mar 4 10:08:24 2015 -0500

    Fix the offset calculation again
    
    We also need to skip over the \004.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745521

 src/shell-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-util.c b/src/shell-util.c
index d6815b9..f1afed0 100644
--- a/src/shell-util.c
+++ b/src/shell-util.c
@@ -229,7 +229,7 @@ shell_util_translate_time_string (const char *str)
     setlocale (LC_MESSAGES, locale);
 
   sep = strchr (str, '\004');
-  res = g_dpgettext (NULL, str, sep ? sep - str : 0);
+  res = g_dpgettext (NULL, str, sep ? sep - str + 1 : 0);
 
   setlocale (LC_MESSAGES, "");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]