Use sprintf().
authorJan Schneider <jan@horde.org>
Wed, 20 Jan 2010 18:36:31 +0000 (19:36 +0100)
committerJan Schneider <jan@horde.org>
Wed, 20 Jan 2010 22:32:07 +0000 (23:32 +0100)
kronolith/lib/Kronolith.php

index d07f01a..7c69420 100644 (file)
@@ -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."),