diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-05 02:11:42 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-10-05 02:11:42 +0000 |
commit | 5c5f6de15d232d802d839d1c79462193db2ba18b (patch) | |
tree | 85c5d5f07bb7d76b7d44b8f4176f7eee8719b218 | |
parent | 0437c2f11953ed86a68e73c0d393f16506840b41 (diff) | |
parent | 5338030ee49808e45013ba99017230a4c9fcf92f (diff) | |
download | ayatana-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.c | 2 | ||||
-rw-r--r-- | tests/Makefile.am.strings | 2 |
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" >> $@ |