Translator documentation added/updated.

i18n/L10n updates.
This commit is contained in:
Siebrand Mazeland 2011-03-17 11:38:18 +01:00
parent 199e05f9de
commit 3d835bb8b5
1 changed files with 13 additions and 7 deletions

View File

@ -37,7 +37,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
function getInstructions() function getInstructions()
{ {
// TRANS: Usage instructions for profile settings. // TRANS: Usage instructions for profile settings.
return _('You can update your personal profile info here '. return _m('You can update your personal profile info here '.
'so people know more about you.'); 'so people know more about you.');
} }
@ -70,7 +70,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
if ($this->arg('save')) { if ($this->arg('save')) {
$this->saveDetails(); $this->saveDetails();
} else { } else {
// TRANS: Message given submitting a form with an unknown action // TRANS: Message given submitting a form with an unknown action.
$this->showForm(_m('Unexpected form submission.')); $this->showForm(_m('Unexpected form submission.'));
} }
} }
@ -133,7 +133,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
return; return;
} }
$this->showForm(_('Details saved.'), true); $this->showForm(_m('Details saved.'), true);
} }
@ -142,6 +142,8 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
if (empty($datestr)) { if (empty($datestr)) {
if ($required) { if ($required) {
$msg = sprintf( $msg = sprintf(
// TRANS: Exception thrown when no date was entered in a required date field.
// TRANS: %s is the field name.
_m('You must supply a date for "%s".'), _m('You must supply a date for "%s".'),
$fieldname $fieldname
); );
@ -152,7 +154,9 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
if ($ts === false) { if ($ts === false) {
throw new Exception( throw new Exception(
sprintf( sprintf(
_m('Invalid date entered for "%s": %s'), // TRANS: Exception thrown on incorrect data input.
// TRANS: %1$s is a field name, %2$s is the incorrect input.
_m('Invalid date entered for "%1$s": %2$s.'),
$fieldname, $fieldname,
$ts $ts
) )
@ -266,7 +270,9 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
$site['value'], $site['value'],
array('allowed_schemes' => array('http', 'https'))) array('allowed_schemes' => array('http', 'https')))
) { ) {
throw new Exception(sprintf(_m('Invalid URL: %s'), $site['value'])); // TRANS: Exception thrown when entering an invalid URL.
// TRANS: %s is the invalid URL.
throw new Exception(sprintf(_m('Invalid URL: %s.'), $site['value']));
} }
if (!empty($site['value'])) { if (!empty($site['value'])) {
@ -613,7 +619,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
if ($result === false) { if ($result === false) {
common_log_db_error($profile, 'UPDATE', __FILE__); common_log_db_error($profile, 'UPDATE', __FILE__);
// TRANS: Server error thrown when user profile settings could not be saved. // TRANS: Server error thrown when user profile settings could not be saved.
$this->serverError(_('Could not save profile.')); $this->serverError(_m('Could not save profile.'));
return; return;
} }
@ -622,7 +628,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
if (!$result) { if (!$result) {
// TRANS: Server error thrown when user profile settings tags could not be saved. // TRANS: Server error thrown when user profile settings tags could not be saved.
$this->serverError(_('Could not save tags.')); $this->serverError(_m('Could not save tags.'));
return; return;
} }