Fixes for an xgettext peculiarity.
This commit is contained in:
parent
2dbdb0f185
commit
34ed86981b
19
index.php
19
index.php
@ -107,20 +107,18 @@ function handleError($error)
|
|||||||
|
|
||||||
$msg = sprintf(
|
$msg = sprintf(
|
||||||
// TRANS: Database error message.
|
// TRANS: Database error message.
|
||||||
_(
|
_('The database for %1$s is not responding correctly, '.
|
||||||
'The database for %1$s is not responding correctly, '.
|
'so the site will not work properly. '.
|
||||||
'so the site will not work properly. '.
|
'The site admins probably know about the problem, '.
|
||||||
'The site admins probably know about the problem, '.
|
'but you can contact them at %2$s to make sure. '.
|
||||||
'but you can contact them at %2$s to make sure. '.
|
'Otherwise, wait a few minutes and try again.'
|
||||||
'Otherwise, wait a few minutes and try again.'
|
|
||||||
),
|
),
|
||||||
common_config('site', 'name'),
|
common_config('site', 'name'),
|
||||||
common_config('site', 'email')
|
common_config('site', 'email')
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// TRANS: Error message.
|
// TRANS: Error message.
|
||||||
$msg = _(
|
$msg = _('An important error occured, probably related to email setup. '.
|
||||||
'An important error occured, probably related to email setup. '.
|
|
||||||
'Check logfiles for more info.'
|
'Check logfiles for more info.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -254,9 +252,8 @@ function main()
|
|||||||
if (!_have_config()) {
|
if (!_have_config()) {
|
||||||
$msg = sprintf(
|
$msg = sprintf(
|
||||||
// TRANS: Error message displayed when there is no StatusNet configuration file.
|
// TRANS: Error message displayed when there is no StatusNet configuration file.
|
||||||
_(
|
_("No configuration file found. Try running ".
|
||||||
"No configuration file found. Try running ".
|
"the installation program first."
|
||||||
"the installation program first."
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$sac = new ServerErrorAction($msg);
|
$sac = new ServerErrorAction($msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user