Fix i18n issues and bugs in string replacement.
This commit is contained in:
parent
62eed1e23e
commit
969d80f270
@ -316,16 +316,16 @@ class RSVP extends Managed_DataObject
|
|||||||
|
|
||||||
switch ($response) {
|
switch ($response) {
|
||||||
case 'Y':
|
case 'Y':
|
||||||
$fmt = _m("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> is attending <a href='%3s'>%4s</a>.</span>");
|
$fmt = _m("<span class='automatic event-rsvp'><a href='%1$s'>%2$s</a> is attending <a href='%3$s'>%4$s</a>.</span>");
|
||||||
break;
|
break;
|
||||||
case 'N':
|
case 'N':
|
||||||
$fmt = _m("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> is not attending <a href='%3s'>%4s</a>.</span>");
|
$fmt = _m("<span class='automatic event-rsvp'><a href='%1$s'>%2$s</a> is not attending <a href='%3$s'>%4$s</a>.</span>");
|
||||||
break;
|
break;
|
||||||
case '?':
|
case '?':
|
||||||
$fmt = _m("<span class='automatic event-rsvp'><a href='%1s'>%2s</a> might attend <a href='%3s'>%4s</a>.</span>");
|
$fmt = _m("<span class='automatic event-rsvp'><a href='%1$s'>%2$s</a> might attend <a href='%3$s'>%4$s</a>.</span>");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Exception("Unknown response code {$response}");
|
throw new Exception(sprintf(_('Unknown response code %s.'),$response));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -351,13 +351,13 @@ class RSVP extends Managed_DataObject
|
|||||||
|
|
||||||
switch ($response) {
|
switch ($response) {
|
||||||
case 'Y':
|
case 'Y':
|
||||||
$fmt = _m("%1s is attending %2s.");
|
$fmt = _m("%1$s is attending %2$s.");
|
||||||
break;
|
break;
|
||||||
case 'N':
|
case 'N':
|
||||||
$fmt = _m("%1s is not attending %2s.");
|
$fmt = _m("%1$s is not attending %2$s.");
|
||||||
break;
|
break;
|
||||||
case '?':
|
case '?':
|
||||||
$fmt = _m("%1s might attend %2s.>");
|
$fmt = _m("%1$s might attend %2$s.>");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Exception("Unknown response code {$response}");
|
throw new Exception("Unknown response code {$response}");
|
||||||
|
Loading…
Reference in New Issue
Block a user