From cb9ac6dd3435a429a58250d326ff76ca5f97398a Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sun, 14 Aug 2016 06:46:48 -0400 Subject: Replace hardcoded button title in javascript to translatable text --- include/conversation.php | 2 ++ view/tpl/jot-header.tpl | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index de917c44e..567336646 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1194,6 +1194,8 @@ function status_editor($a, $x, $popup = false) { '$modalerrorlist' => t('Error getting album list'), '$modalerrorlink' => t('Error getting photo link'), '$modalerroralbum' => t('Error getting album'), + '$nocomment_enabled' => t('Comments enabled'), + '$nocomment_disabled' => t('Comments disabled'), )); $tpl = get_markup_template('jot.tpl'); diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 32d5cae03..3d38df0f0 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -375,12 +375,12 @@ function enableOnUser(){ if($('#jot-nocomment').val() > 0) { $('#jot-nocomment').val(0); $('#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 { $('#jot-nocomment').val(1); $('#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}}'); } } -- cgit v1.2.3