From d6b3d7fb1a7a3dca701dfe5cf95a832b3eb055f9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 4 Oct 2010 14:24:04 -0700 Subject: Fix unescaped dollar signs in double-quoted strings due to localization updates (%1$s etc) --- classes/Fave.php | 2 +- classes/Notice.php | 2 +- classes/Subscription.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'classes') diff --git a/classes/Fave.php b/classes/Fave.php index 059b339cd..9922ae45c 100644 --- a/classes/Fave.php +++ b/classes/Fave.php @@ -148,7 +148,7 @@ class Fave extends Memcached_DataObject $act->title = _("Favor"); // TRANS: Ntofication given when a user marks a notice as favorite. // TRANS: %1$s is a user nickname or full name, %2$s is a notice URI. - $act->content = sprintf(_("%1$s marked notice %2$s as a favorite."), + $act->content = sprintf(_('%1$s marked notice %2$s as a favorite.'), $profile->getBestName(), $notice->uri); diff --git a/classes/Notice.php b/classes/Notice.php index e268544b5..60989f9ba 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1117,7 +1117,7 @@ class Notice extends Memcached_DataObject common_log_db_error($reply, 'INSERT', __FILE__); // TRANS: Server exception thrown when a reply cannot be saved. // TRANS: %1$d is a notice ID, %2$d is the ID of the mentioned user. - throw new ServerException(sprintf(_("Could not save reply for %1$d, %2$d."), $this->id, $mentioned->id)); + throw new ServerException(sprintf(_('Could not save reply for %1$d, %2$d.'), $this->id, $mentioned->id)); } else { $replied[$mentioned->id] = 1; self::blow('reply:stream:%d', $mentioned->id); diff --git a/classes/Subscription.php b/classes/Subscription.php index b4dbd84c9..e9ad2a5a2 100644 --- a/classes/Subscription.php +++ b/classes/Subscription.php @@ -255,7 +255,7 @@ class Subscription extends Memcached_DataObject $act->title = _("Follow"); // TRANS: Notification given when one person starts following another. // TRANS: %1$s is the subscriber, %2$s is the subscribed. - $act->content = sprintf(_("%1$s is now following %2$s."), + $act->content = sprintf(_('%1$s is now following %2$s.'), $subscriber->getBestName(), $subscribed->getBestName()); -- cgit v1.2.3-54-g00ecf