Add string translation to auto approval option
Make the description for the auto-approval option translatable. Put the switch array of that option (with another missing t-funtion) into a $yes_no variable to be consistent with other settings pages.
This commit is contained in:
parent
d3c779f635
commit
3b97a9f766
@ -365,6 +365,8 @@ function connedit_content(&$a) {
|
|||||||
$my_perms = $x['perms_accept'];
|
$my_perms = $x['perms_accept'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$yes_no = array(t('No'),t('Yes'));
|
||||||
|
|
||||||
if($my_perms) {
|
if($my_perms) {
|
||||||
$o .= "<script>function connectDefaultShare() {
|
$o .= "<script>function connectDefaultShare() {
|
||||||
\$('.abook-edit-me').each(function() {
|
\$('.abook-edit-me').each(function() {
|
||||||
@ -690,7 +692,7 @@ function connedit_content(&$a) {
|
|||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
|
|
||||||
'$header' => (($self) ? t('Connection Default Permissions') : sprintf( t('Connection: %s'),$contact['xchan_name'])),
|
'$header' => (($self) ? t('Connection Default Permissions') : sprintf( t('Connection: %s'),$contact['xchan_name'])),
|
||||||
'$autoperms' => array('autoperms',t('Apply these permissions automatically'), ((get_pconfig(local_channel(),'system','autoperms')) ? 1 : 0), 'Connection requests will be approved without your interaction', array(t('No'),('Yes'))),
|
'$autoperms' => array('autoperms',t('Apply these permissions automatically'), ((get_pconfig(local_channel(),'system','autoperms')) ? 1 : 0), t('Connection requests will be approved without your interaction'), $yes_no),
|
||||||
'$addr' => $contact['xchan_addr'],
|
'$addr' => $contact['xchan_addr'],
|
||||||
'$addr_text' => t('This connection\'s primary address is'),
|
'$addr_text' => t('This connection\'s primary address is'),
|
||||||
'$loc_text' => t('Available locations:'),
|
'$loc_text' => t('Available locations:'),
|
||||||
|
Reference in New Issue
Block a user