By Gilles on Wednesday, 23 July 2014
Posted in Technical Issues
Replies 11
Likes 0
Views 555
Votes 0
Hi folks,
I'm trying to customize the email notification which goes out to subscribers. Particularly, this last line:
"Share by commenting on this blog post."
I wanted to use a language override but can't find the variable.
Where can I change this wording?
Thanks!
G
hello Gilles,

Sorry for late reply to this,
May i know which email notification content are you would like to change?
"Share by commenting on this blog post."

Check my screenshot below.
Perhaps provide us with some screenshot regarding this which you referring to? Please advise.
·
Wednesday, 23 July 2014 23:51
·
0 Likes
·
0 Votes
·
0 Comments
·
It's an email received when a new post has been added.
See screenshot... it's the last yellow highlight. We need to change the wording.
G
·
Thursday, 24 July 2014 01:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

It look like this word ("Share by commenting on this blog post.") is your customize one right?

If yes, first you need to customize a new language string for this, go to this file and add
JoomlaFolder\language\en-GB\en-GB.com_easyblog.ini

// you can use any language string for this
COM_EASYBLOG_NOTIFICATION_SHARE_BY_COMMENTING="Share by commenting on this blog post."

Then open this file and add this ,check my screenshot : http://screencast.com/t/9pCgIoC4dK
-> JoomlaFolder\components\com_easyblog\themes\default\email.blog.new.text.php
<?php echo JText::_( 'COM_EASYBLOG_NOTIFICATION_SHARE_BY_COMMENTING' );?>


The last step open this file and add the following code ( http://screencast.com/t/TvhqvFzmp )
-> JoomlaFolder\components\com_easyblog\themes\default\email.blog.new.html.php
add this
							<p>
<?php echo JText::_( 'COM_EASYBLOG_NOTIFICATION_SHARE_BY_COMMENTING' );?>
</p>

hope this help.
·
Thursday, 24 July 2014 01:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks,
1. Shouldn't this have been in the language file to begin with?
2. Will I not lose my changes in the next EB update?
·
Thursday, 24 July 2014 02:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

1. Shouldn't this have been in the language file to begin with?

If it is a new word, you have to add on your own. For those that is already there, you can find it in the language file and change the words.

2. Will I not lose my changes in the next EB update?

Based on Arlex's reply, you will lose the changes since it is customised for your site only. You have to make a back up of these file before updating.
·
Thursday, 24 July 2014 09:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,
What I'm saying is, shouldn't this English text be in the language file? Since it's hard coded, wouldn't it be presented as English even for those who are using a different language?
Most other phrases/words are in the language file, why wouldn't this be? That's what I don't understand.
·
Thursday, 24 July 2014 09:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

Sorry for late reply to this,
If you're using multilingual site, you should add this sample language string in your other easyblog language file
COM_EASYBLOG_NOTIFICATION_SHARE_BY_COMMENTING="Share by commenting on this blog post."

Example :
English -> JoomlaFolder\language\en-GB\en-GB.com_easyblog.ini
Chinese -> JoomlaFolder\language\zh-TW\zh-TW.com_easyblog.ini


And backup this 3 file everytime you update.
-> JoomlaFolder\components\com_easyblog\themes\default\email.blog.new.text.php
-> JoomlaFolder\components\com_easyblog\themes\default\email.blog.new.html.php
-> JoomlaFolder\language\en-GB\en-GB.com_easyblog.ini (if you using other language file then backup that one)


Hope this help.
·
Thursday, 24 July 2014 12:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,
I understand that the files must be changed.
My comment was
"shouldn't this English text be in the language file? Since it's hard coded, wouldn't it be presented as English even for those who are using a different language?
Most other phrases/words are in the language file, why wouldn't this be? That's what I don't understand. "


Why isn't this text in the file to begin with? alleviating the need for us to hack the code.
G
PS. I'm still waiting for a solution to the more pressing issues posted in my other post.
·
Thursday, 24 July 2014 22:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

The text "Share by commenting on this blog post" is not from EasyBlog and it was customized by you, therefore there isn't any reason to add this into the language file for EasyBlog. We cannot know before hand what strings you'll like to use on your email template.
·
Friday, 25 July 2014 00:20
·
0 Likes
·
0 Votes
·
0 Comments
·
HI Mark,
This makes a sense and I must apologize. My client didn't realize this and has asked me to remove the line. Hence, I thought it was from EB.\
Again, please accept my apologies, I should have confirmed by first looking at the blog entry.
G
·
Friday, 25 July 2014 00:53
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Gilles
·
Friday, 25 July 2014 00:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post