I am trying to make a simple change to a blog action alert.
In the blog module there is:
'sure_label' => _t('_Are you sure?'),
In the language keys there is:
_Are you sure? with the text "Are you sure?"
In the actions there is:
if (confirm('{sure_label}')) window.open ('{work_url}?action=delete_blog&DeleteBlogID={blog_id}','_self');
I wanted to leave that one in place and add a new one:
'sure_label_delete' => _t('_blog_delete_Are you sure?'),
created the language key _blog_delete_Are you sure? with my new message.
In the actions:
if (confirm('{sure_label_delete}')) window.open ('{work_url}?action=delete_blog&DeleteBlogID={blog_id}','_self');
Cleared the caches and hard reloaded the page and the alert box states {sure_label_delete}
So what am I missing here? Are the language keys for this stored in a different place; are they added somewhere else other than the language manager in the backend? Or is it something else entirely?