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}");