By Randall McCallum on Friday, 21 March 2014
Replies 6
Likes 0
Views 1.1K
Votes 0
Anyone have any suggestions as to how to locate some language strings in EasySocial - so I can change the last three strings. It's four instances, as I can also see Friends within the popup when hovering over an Avatar still shows that it has the text friends.

I have been busy the past two days in my efforts to change all instances of Friend, Friends, friend, and friends to Connection, Connections. connection, connections on my site and I am stuck with a bit of an oddity in that I can't seem to locate the following sidebar instances of the word friends

1. Left sidebar EasySocial - EasySocial ยป Dashboard These three items I can't find with searching in the language override for:



Popup of Avatar still shows that it has the text friends in it and I need to change this instance also.
Screencast: http://screencast.com/t/BBh6tPee5Hm

I spent almost two days changing every instance of friend, friends, Friend and Friends in the language Override section of Joomla. I do a Search for each of the three text strings I want to change, and I have changed all the results I can locate with my searches in the language search area (both value and Constant, and I have changed and saved them all, and still the following three (actually four) items do not change on my site: ????? No sure why, or where else I can look to change them.

Left Sidebar: Your Friends Only one instance of Your Friends comes up in search - COM_EASYSOCIAL_TOOLBAR_YOUR_FRIENDS Your Friends <----- I have changed Your Friends to Your Connections but this does not seem to make any change on the sidebar. I do a Browser refresh and everything. No change. I can't find any other instance of this string at all.

I have changed all of the searched results to change friend or friends to connection or connections. So I changed them all and still no change to the sidebar for Your Friends.
Search Results
COM_EASYSOCIAL_TOOLBAR_YOUR_FRIENDS
Your Friends
COM_EASYSOCIAL_FRIENDS_LIST_FORM_USERS_NOTE
Select one or more of your friends to be included in this list.
COM_EASYSOCIAL_FRIENDS_LIST_FORM_USERS_PLACEHOLDER
Start typing your friends name ...
COM_EASYSOCIAL_FRIENDS_LIST_FORM_SET_AS_DEFAULT_LIST
Set this as the default list for all your friends.
COM_EASYSOCIAL_FRIENDS_PLEASE_ENTER_NAMES
Please enter your friends name in the textbox provided.
COM_EASYSOCIAL_FRIENDS_NOT_FRIEND_YET
Sorry, the user is not one of your friends.
COM_EASYSOCIAL_FRIENDS_EXCEEDED_LIMIT
You have exceeded your friends limit.
COM_EASYSOCIAL_FRIENDS_EXCEEDED_DIALOG_DESC
Sorry, but you have already exceeded your friends limit. Please contact the site administrator to upgrade your account.
COM_EASYSOCIAL_LISTS_CREATE_HEADING_DESC
Group your friends in your lists.
COM_EASYSOCIAL_LISTS_ADD_FRIENDS_DESC
Add your friends by typing their names here.

Left Sidebar: Online Friends I have searched for Online Friends and there are no instances of it as a value or Constant. The text string is nowhere to be found.

Search Results
No matching texts found

Left Sidebar: Suggestions - Add as friend button

I have changed all instances of friend to connection, and the left Sidebar button in Suggestions does not change. It remains as: Add as friend
Search Results
COM_EASYBLOG_ADD_FRIEND
Add as friend
COM_EASYSOCIAL_FRIENDS_ADD_AS_FRIEND
Add as friend
COM_EASYSOCIAL_ADD_FRIEND_BUTTON
Add As Friend
COM_EASYSOCIAL_PROFILE_POPOVER_ADD_AS_FRIEND
Add As Friend

Anyone have any suggestions it would be appreciated to find these three instances so I can change them on my site.

Thanks,

Randall
Thanks Randall.
·
Monday, 24 March 2014 01:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Randall,

The "Friends" in the popbox is actually from the theme file /components/com_easysocial/themes/wireframe/profile/popbox.php and it's located at line 38,


<li>
<div class="popbox-item-info">
<a href="<?php echo FRoute::friends( array( 'userid' => $user->getAlias() ) );?>">
<div class="popbox-item-text">
<?php echo JText::_( 'COM_EASYSOCIAL_FRIENDS' );?>
</div>
<div class="popbox-item-total"><?php echo $user->getTotalFriends();?></div>
</a>
</div>
</li>


It's actually using COM_EASYSOCIAL_FRIENDS
·
Friday, 21 March 2014 12:32
·
0 Likes
·
0 Votes
·
0 Comments
·
I found the Friend in the Popup box and changed it to Connections. Must have missed that one last night.

Thanks Mark.

As for the other items:

Your friends

Online friends

Add as friend button.

Are they in the this location: Administrator/language/en-GB/en-GB.plg_app_user_friends.ini

If found the instances of what I have been looking for in this file: en-GB.plg_app_user_friends.ini

APP_FRIENDS_YOUR_FRIENDS="Your Friends"
APP_FRIENDS_NO_FRIENDS_CURRENTLY="No friends currently."
APP_FRIENDS_ONLINE_FRIENDS="Online Friends"
APP_FRIENDS_NO_ONLINE_FRIENDS_CURRENTLY="No friends online currently"
APP_FRIENDS_SUGGEST_FRIENDS="Suggestions"
APP_FRIENDS_SUGGEST_FRIENDS_NO_FRIENDS_SUGGESTION="No suggestions available"
APP_FRIENDS_SUGGEST_FRIENDS_VIEW_ALL="View All"
APP_FRIENDS_SUGGEST_FRIENDS_ADD_FRIEND="Add as friend"
APP_FRIENDS_SUGGEST_FRIENDS_MUTUAL_COUNT_SINGULAR="%1s mutual friend"
APP_FRIENDS_SUGGEST_FRIENDS_MUTUAL_COUNT_PLURAL="%1s mutual friends"

If so, how do I crate the language override? Clarification please.

Do I create a new file in the Overrides folder in area and name it to: en-GB.plg_app_user_friends.ini

Then copy all the contents of the original file en-GB.plg_app_user_friends.ini into the file in the override folder file: en-GB.plg_app_user_friends.ini

Then change all instances of friend or Friend to connection and Connections

Is this how it is done?

Thanks for any assistance to override these last remaining items.

Randall
·
Saturday, 22 March 2014 10:51
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Saturday, 22 March 2014 14:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark,

I'll be referencing this Guide to make another guide Lesson Tutorial.
·
Monday, 24 March 2014 00:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Randall You are awesome!
·
Sunday, 27 April 2014 03:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post