aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-05 02:11:42 +0000
committerTarmac <Unknown>2013-10-05 02:11:42 +0000
commit5c5f6de15d232d802d839d1c79462193db2ba18b (patch)
tree85c5d5f07bb7d76b7d44b8f4176f7eee8719b218
parent0437c2f11953ed86a68e73c0d393f16506840b41 (diff)
parent5338030ee49808e45013ba99017230a4c9fcf92f (diff)
downloadayatana-indicator-datetime-5c5f6de15d232d802d839d1c79462193db2ba18b.tar.gz
ayatana-indicator-datetime-5c5f6de15d232d802d839d1c79462193db2ba18b.tar.bz2
ayatana-indicator-datetime-5c5f6de15d232d802d839d1c79462193db2ba18b.zip
When an unsupported date format is being used, improve the error message to also include the unsupported date format so that users can include it in their bug reports. Fixes: https://bugs.launchpad.net/bugs/1196059.
Approved by PS Jenkins bot, Ted Gould.
-rw-r--r--src/service.c2
-rw-r--r--tests/Makefile.am.strings2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index d50319e..e8d4764 100644
--- a/src/service.c
+++ b/src/service.c
@@ -464,7 +464,7 @@ create_desktop_header_state (IndicatorDatetimeService * self)
str = g_date_time_format (now, fmt);
if (str == NULL)
{
- str = g_strdup (_("Unsupported date format"));
+ str = g_strdup_printf (_("Unsupported date format ā€œ%sā€"), fmt);
g_warning ("%s", str);
}
diff --git a/tests/Makefile.am.strings b/tests/Makefile.am.strings
index 26a23a8..4a89e8f 100644
--- a/tests/Makefile.am.strings
+++ b/tests/Makefile.am.strings
@@ -29,7 +29,7 @@ test-space-ellipsis: $(top_srcdir)/po
test-ascii-quotes: $(top_srcdir)/po
@echo "#!/bin/bash" > $@
@echo "(cd $(top_srcdir)/po && make $(GETTEXT_PACKAGE).pot)" >> $@
- @echo "grep -c -e \"^msgid \\\".*'.*\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII apostrophy found in user visible strings\" >&2 && exit 1" >> $@
+ @echo "grep -c -e \"^msgid \\\".*'.*\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII apostrophe found in user visible strings\" >&2 && exit 1" >> $@
@echo "grep -c -e \"^msgid \\\".*\\\".*\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII quote found in user visible strings\" >&2 && exit 1" >> $@
@echo "grep -c -e \"^msgid \\\".*\\\`.*\\\"\" $(top_srcdir)/po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII backtick found in user visible strings\" >&2 && exit 1" >> $@
@echo "exit 0" >> $@