From c89170a38fb65a47c304c503a9299e79198e999e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 4 Oct 2013 11:47:11 -0500 Subject: when an unsupported date format is being used, tell what it is so that we can triage the issue. --- src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index d50319e..49a1d0c 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); } -- cgit v1.2.3 From 866303a69708759c302311eb21f9c97d648e0607 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 4 Oct 2013 14:45:28 -0500 Subject: don't use ascii quote marks. --- src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index 49a1d0c..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_printf (_("Unsupported date format '%s'"), fmt); + str = g_strdup_printf (_("Unsupported date format ā€œ%sā€"), fmt); g_warning ("%s", str); } -- cgit v1.2.3 From 5338030ee49808e45013ba99017230a4c9fcf92f Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 4 Oct 2013 14:46:30 -0500 Subject: fix typo in the potfile unit tests' error messages --- tests/Makefile.am.strings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" >> $@ -- cgit v1.2.3