Replace hardcoded button title in javascript to translatable text
This commit is contained in:
parent
2e7f4c1870
commit
cb9ac6dd34
@ -1194,6 +1194,8 @@ function status_editor($a, $x, $popup = false) {
|
|||||||
'$modalerrorlist' => t('Error getting album list'),
|
'$modalerrorlist' => t('Error getting album list'),
|
||||||
'$modalerrorlink' => t('Error getting photo link'),
|
'$modalerrorlink' => t('Error getting photo link'),
|
||||||
'$modalerroralbum' => t('Error getting album'),
|
'$modalerroralbum' => t('Error getting album'),
|
||||||
|
'$nocomment_enabled' => t('Comments enabled'),
|
||||||
|
'$nocomment_disabled' => t('Comments disabled'),
|
||||||
));
|
));
|
||||||
|
|
||||||
$tpl = get_markup_template('jot.tpl');
|
$tpl = get_markup_template('jot.tpl');
|
||||||
|
@ -375,12 +375,12 @@ function enableOnUser(){
|
|||||||
if($('#jot-nocomment').val() > 0) {
|
if($('#jot-nocomment').val() > 0) {
|
||||||
$('#jot-nocomment').val(0);
|
$('#jot-nocomment').val(0);
|
||||||
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments-o').addClass('fa-comments');
|
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments-o').addClass('fa-comments');
|
||||||
$('#profile-nocomment-wrapper').attr('title', 'Comments enabled');
|
$('#profile-nocomment-wrapper').attr('title', '{{$nocomment_enabled}}');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('#jot-nocomment').val(1);
|
$('#jot-nocomment').val(1);
|
||||||
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments').addClass('fa-comments-o');
|
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments').addClass('fa-comments-o');
|
||||||
$('#profile-nocomment-wrapper').attr('title', 'Comments disabled');
|
$('#profile-nocomment-wrapper').attr('title', '{{$nocomment_disabled}}');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user