From 9497fc1b6c665ca7eb9ca0b5a0b1ad699e040c49 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 1 Mar 2015 17:15:13 +0000 Subject: t/inline.t: accept translations of "Add a new post titled:" (Closes: #779365) --- debian/changelog | 2 ++ t/inline.t | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8dc5790fc..80dec8897 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,8 @@ ikiwiki (3.20150108) UNRELEASED; urgency=medium (Closes: #776181; thanks, Anders Kaseorg) * If neither timezone nor TZ is set, set both to :/etc/localtime if we're on a GNU system and that file exists, or GMT otherwise + * t/inline.t: accept translations of "Add a new post titled:" + (Closes: #779365) -- Joey Hess Sat, 24 Jan 2015 23:59:20 -0400 diff --git a/t/inline.t b/t/inline.t index e07658d98..f2ffbbc2f 100755 --- a/t/inline.t +++ b/t/inline.t @@ -6,6 +6,8 @@ use IkiWiki; my $blob; +my $add_new_post = gettext("Add a new post titled:"); + ok(! system("rm -rf t/tmp")); ok(! system("mkdir t/tmp")); @@ -42,12 +44,12 @@ ok(! system($command)); ok(! system("$command --refresh")); $blob = readfile("t/tmp/out/protagonists.html"); -like($blob, qr{Add a new post}, 'rootpage=yes gives postform'); +like($blob, qr{\Q$add_new_post\E}, 'rootpage=yes gives postform'); like($blob, qr{