From: Siebrand Mazeland Date: Fri, 1 Apr 2011 19:56:55 +0000 (+0200) Subject: Fix i18n issues and bugs in string replacement. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=969d80f270b7a369ac698116f63ac03bfafd122b;p=quix0rs-gnu-social.git Fix i18n issues and bugs in string replacement. --- diff --git a/plugins/Event/RSVP.php b/plugins/Event/RSVP.php index 108fd5f4db..cce0f6ee56 100644 --- a/plugins/Event/RSVP.php +++ b/plugins/Event/RSVP.php @@ -316,16 +316,16 @@ class RSVP extends Managed_DataObject switch ($response) { case 'Y': - $fmt = _m("%2s is attending %4s."); + $fmt = _m("%2$s is attending %4$s."); break; case 'N': - $fmt = _m("%2s is not attending %4s."); + $fmt = _m("%2$s is not attending %4$s."); break; case '?': - $fmt = _m("%2s might attend %4s."); + $fmt = _m("%2$s might attend %4$s."); break; default: - throw new Exception("Unknown response code {$response}"); + throw new Exception(sprintf(_('Unknown response code %s.'),$response)); break; } @@ -351,13 +351,13 @@ class RSVP extends Managed_DataObject switch ($response) { case 'Y': - $fmt = _m("%1s is attending %2s."); + $fmt = _m("%1$s is attending %2$s."); break; case 'N': - $fmt = _m("%1s is not attending %2s."); + $fmt = _m("%1$s is not attending %2$s."); break; case '?': - $fmt = _m("%1s might attend %2s.>"); + $fmt = _m("%1$s might attend %2$s.>"); break; default: throw new Exception("Unknown response code {$response}");