From ccce4e22c1dde2473f12f5299e81f0e820d38beb Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 20 Jan 2010 19:36:31 +0100 Subject: [PATCH] Use sprintf(). --- kronolith/lib/Kronolith.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index d07f01af3..7c69420fc 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -303,11 +303,11 @@ class Kronolith 'ajax_recover' => _("The connection to the calendar server has been restored."), 'alarm' => _("Alarm:"), 'noalerts' => _("No Notifications"), - 'alerts' => str_replace('%d', '#{count}', _("%d notifications")), + 'alerts' => sprintf(_("%d notifications"), '#{count}'), 'hidelog' => _("Hide Notifications"), - 'week' => str_replace('%d', '#{week}', _("Week %d")), + 'week' => sprintf(_("Week %d"), '#{week}'), 'agenda' => _("Agenda"), - 'searching' => str_replace('%s', '#{term}', _("Events matching \"%s\"")), + 'searching' => sprintf(_("Events matching \"%s\""), '#{term}'), 'allday' => _("All day"), 'prefs' => _("Options"), 'no_url' => _("You must specify a URL."), -- 2.11.0