forked from GNUsocial/gnu-social
Fix localization for license notice in page footer (for ticket #2274: i18n cleanup)
This commit is contained in:
parent
7baf671570
commit
41062d387f
@ -845,14 +845,16 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
'width' => '80',
|
'width' => '80',
|
||||||
'height' => '15'));
|
'height' => '15'));
|
||||||
$this->text(' ');
|
$this->text(' ');
|
||||||
//TODO: This is dirty: i18n
|
// TRANS: license message in footer. %1$s is the site name, %2$s is a link to the license URL, with a licence name set in configuration.
|
||||||
$this->text(_('All '.common_config('site', 'name').' content and data are available under the '));
|
$notice = _('All %1$s content and data are available under the %2$s license.');
|
||||||
$this->element('a', array('class' => 'license',
|
$link = "<a class=\"license\" rel=\"external license\" href=\"" .
|
||||||
'rel' => 'external license',
|
htmlspecialchars(common_config('license', 'url')) .
|
||||||
'href' => common_config('license', 'url')),
|
"\">" .
|
||||||
common_config('license', 'title'));
|
htmlspecialchars(common_config('license', 'title')) .
|
||||||
$this->text(' ');
|
"</a>";
|
||||||
$this->text(_('license.'));
|
$this->raw(sprintf(htmlspecialchars($notice),
|
||||||
|
htmlspecialchars(common_config('site', 'name')),
|
||||||
|
$link));
|
||||||
$this->elementEnd('p');
|
$this->elementEnd('p');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user