Browse Source

Userinfo: localize legend text (#7479)

* userinfo: localize legend text
* userinfo: add missing id label
pull/7815/head
johndoh 5 years ago
committed by Aleksander Machniak
parent
commit
a246560cf7
  1. 2
      plugins/userinfo/localization/en_US.inc
  2. 4
      plugins/userinfo/userinfo.php

2
plugins/userinfo/localization/en_US.inc

@ -16,6 +16,8 @@
$labels = array();
$labels['userinfo'] = 'User info';
$labels['infoforuser'] = 'Info for $user';
$labels['created'] = 'Created';
$labels['lastlogin'] = 'Last Login';
$labels['defaultidentity'] = 'Default Identity';
$labels['userid'] = 'ID';

4
plugins/userinfo/userinfo.php

@ -46,7 +46,7 @@ class userinfo extends rcube_plugin
$table = new html_table(array('cols' => 2, 'class' => 'propform'));
$table->add('title', html::label('', 'ID'));
$table->add('title', html::label('', rcube::Q($this->gettext('userid'))));
$table->add('', rcube::Q($user->ID));
$table->add('title', html::label('', rcube::Q($this->gettext('username'))));
@ -64,7 +64,7 @@ class userinfo extends rcube_plugin
$table->add('title', html::label('', rcube::Q($this->gettext('defaultidentity'))));
$table->add('', rcube::Q($identity['name'] . ' <' . $identity['email'] . '>'));
$legend = rcube::Q('Infos for ' . $user->get_username());
$legend = rcube::Q($this->gettext(array('name' => 'infoforuser', 'vars' => array('user' => $user->get_username()))));
$out = html::tag('fieldset', '', html::tag('legend', '', $legend) . $table->show());
return html::div(array('class' => 'box formcontent'),

Loading…
Cancel
Save