We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a4e807ea authored by Siebrand Mazeland's avatar Siebrand Mazeland

Add translator documentation.

parent 9f9f9408
...@@ -23,9 +23,9 @@ if (!defined('STATUSNET')) { ...@@ -23,9 +23,9 @@ if (!defined('STATUSNET')) {
class ProfileDetailSettingsAction extends ProfileSettingsAction class ProfileDetailSettingsAction extends ProfileSettingsAction
{ {
function title() function title()
{ {
// TRANS: Title for extended profile settings.
return _m('Extended profile settings'); return _m('Extended profile settings');
} }
...@@ -59,8 +59,8 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction ...@@ -59,8 +59,8 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
$token = $this->trimmed('token'); $token = $this->trimmed('token');
if (!$token || $token != common_session_token()) { if (!$token || $token != common_session_token()) {
$this->showForm( $this->showForm(
_m( // TRANS: Client error displayed when the session token does not match or is not given.
'There was a problem with your session token. ' _m('There was a problem with your session token. '
. 'Try again, please.' . 'Try again, please.'
) )
); );
...@@ -133,6 +133,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction ...@@ -133,6 +133,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
return; return;
} }
// TRANS: Success message after saving extended profile details.
$this->showForm(_m('Details saved.'), true); $this->showForm(_m('Details saved.'), true);
} }
...@@ -520,6 +521,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction ...@@ -520,6 +521,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
$result = $detail->insert(); $result = $detail->insert();
if (empty($result)) { if (empty($result)) {
common_log_db_error($detail, 'INSERT', __FILE__); common_log_db_error($detail, 'INSERT', __FILE__);
// TRANS: Server error displayed when a field could not be saved in the database.
$this->serverError(_m('Could not save profile details.')); $this->serverError(_m('Could not save profile details.'));
} }
} else { } else {
...@@ -532,6 +534,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction ...@@ -532,6 +534,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
$result = $detail->update($orig); $result = $detail->update($orig);
if (empty($result)) { if (empty($result)) {
common_log_db_error($detail, 'UPDATE', __FILE__); common_log_db_error($detail, 'UPDATE', __FILE__);
// TRANS: Server error displayed when a field could not be saved in the database.
$this->serverError(_m('Could not save profile details.')); $this->serverError(_m('Could not save profile details.'));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment