diff options
author | Milan Crha <mcrha@redhat.com> | 2010-12-02 23:24:42 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-12-02 23:24:42 +0800 |
commit | 081ee1af21e55ceda819a8a075c1bc25a3417f52 (patch) | |
tree | f648763a26fece7edd235a256b8befce6d29db52 /e-util/e-datetime-format.c | |
parent | 12ea46655183a26ab59627c5adc43369d9729e50 (diff) | |
download | gsoc2013-evolution-081ee1af21e55ceda819a8a075c1bc25a3417f52.tar gsoc2013-evolution-081ee1af21e55ceda819a8a075c1bc25a3417f52.tar.gz gsoc2013-evolution-081ee1af21e55ceda819a8a075c1bc25a3417f52.tar.bz2 gsoc2013-evolution-081ee1af21e55ceda819a8a075c1bc25a3417f52.tar.lz gsoc2013-evolution-081ee1af21e55ceda819a8a075c1bc25a3417f52.tar.xz gsoc2013-evolution-081ee1af21e55ceda819a8a075c1bc25a3417f52.tar.zst gsoc2013-evolution-081ee1af21e55ceda819a8a075c1bc25a3417f52.zip |
Localize few strings with ngettext
Per request of bug #635414
Diffstat (limited to 'e-util/e-datetime-format.c')
-rw-r--r-- | e-util/e-datetime-format.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/e-util/e-datetime-format.c b/e-util/e-datetime-format.c index f5155be612..39f0e36e0f 100644 --- a/e-util/e-datetime-format.c +++ b/e-util/e-datetime-format.c @@ -212,8 +212,10 @@ format_relative_date (time_t tvalue, time_t ttoday, const struct tm *value, cons res = g_strdup (_("Yesterday")); } else { if (future) { - /* Translators: %a is a strftime modifier, the abbreviated week day name, for example "Next Tue" */ - res = g_strdup (_("Next %a")); + /* Translators: %a is a strftime modifier, the abbreviated week day name, for example "Next Tue". + ngettext is used to be able to define different translations for different days of week, where + necessary. Index is between 1 and 7 inclusive, meaning 1 .. Monday, 2 .. Tuesday, ..., 7 .. Sunday */ + res = g_strdup (ngettext ("Next %a", "Next %a", g_date_get_weekday (&val))); } else { res = g_strdup ("%a"); } |