Fix the offset calculation again

We also need to skip over the \004.

https://bugzilla.gnome.org/show_bug.cgi?id=745521
This commit is contained in:
Matthias Clasen 2015-03-04 10:08:24 -05:00
parent e7fa83ea1a
commit 0ebba112d7

View File

@ -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, "");