Merge pull request #63 from dago/renderfix

Fixes for translation of "Add new attribute"
This commit is contained in:
Deon George 2019-04-18 12:34:00 +10:00 committed by GitHub
commit c1af05f403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
Please see http://phpldapadmin.sourceforge.net/Translate now for information on
Please see http://phpldapadmin.sourceforge.net/wiki/index.php/Translate now for information on
translating PLA.

View File

@ -1212,7 +1212,7 @@ class TemplateRender extends PageRender {
$layout = '<td class="icon"><img src="%s/%s" alt="%s" /></td><td><a href="cmd.php?%s" title="%s" onclick="getDiv(\'ADD\').style.display = \'block\';return ajDISPLAY(\'ADD\',\'%s\',\'%s\');">%s</a></td>';
if (isAjaxEnabled())
return sprintf($layout,IMGDIR,'add.png',_('Add'),
return sprintf($this->layout['actionajax'],IMGDIR,'add.png',_('Add'),
htmlspecialchars($href),_('Add new attribute to this object'),
htmlspecialchars($href),str_replace('\'','\\\'',_('Add new attribute')),_('Add new attribute'));
else