mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Fixed coding conventions
This commit is contained in:
parent
8518d1cf20
commit
34a171b9dc
@ -1012,8 +1012,13 @@ class Translatable extends DataExtension implements PermissionProvider {
|
||||
$existingTransHTML = '<ul>';
|
||||
foreach($this->getTranslations() as $existingTranslation) {
|
||||
if($existingTranslation && $existingTranslation->hasMethod('CMSEditLink')) {
|
||||
$existingTransHTML .= sprintf('<li><a href="%s">%s</a></li>',
|
||||
sprintf('%s/?locale=%s', $existingTranslation->CMSEditLink(), $existingTranslation->Locale),
|
||||
$existingTransHTML .= sprintf(
|
||||
'<li><a href="%s">%s</a></li>',
|
||||
sprintf(
|
||||
'%s/?locale=%s',
|
||||
$existingTranslation->CMSEditLink(),
|
||||
$existingTranslation->Locale
|
||||
),
|
||||
i18n::get_locale_name($existingTranslation->Locale)
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user