diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-08-14 06:46:48 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-08-14 06:46:48 -0400 |
commit | cb9ac6dd3435a429a58250d326ff76ca5f97398a (patch) | |
tree | 82bf6f9019fa821b220ea3182e8e41e7f636f16c | |
parent | 2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7 (diff) | |
download | volse-hubzilla-cb9ac6dd3435a429a58250d326ff76ca5f97398a.tar.gz volse-hubzilla-cb9ac6dd3435a429a58250d326ff76ca5f97398a.tar.bz2 volse-hubzilla-cb9ac6dd3435a429a58250d326ff76ca5f97398a.zip |
Replace hardcoded button title in javascript to translatable text
-rw-r--r-- | include/conversation.php | 2 | ||||
-rwxr-xr-x | 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}}'); } } |