When I created a new two way relationship type 'contacts', and created one relationship the 'My relationships' block read:
"My relationships
@rel_plural_name
(then the name of the first relationship)"
See screenshot below.
I fixed this by editing the user_relationships-block.tpl.php and on line 14 replacing:
t("@rel_plural_name", user_relationships_type_translations($relationship, TRUE));
with
t("@rel_name_plural", user_relationships_type_translations($relationship, TRUE));
and on line 18 replacing
$rtype_heading = t("@rel_plural_name", user_relationships_type_translations($relationship));
with
$rtype_heading = t("@rel_name_plural", user_relationships_type_translations($relationship));
This fixed up the problem. Hopefully documenting this error and fix may help someone else and / or make it through into the next module release. Cheers
Comment | File | Size | Author |
---|---|---|---|
#7 | rel_plural_name_not_replacing-1975854-11009053.patch | 1.04 KB | vishnu358 |
#1 | relationships.jpg | 22.27 KB | paultrotter50 |
Comments
Comment #1
paultrotter50 CreditAttribution: paultrotter50 commentedhere is the screenshot
Comment #2
ramdhanh CreditAttribution: ramdhanh commentedThanks Paul..
Comment #3
SebasGoin CreditAttribution: SebasGoin commentedThanks bro!
Comment #4
Syntapse CreditAttribution: Syntapse as a volunteer commentedthis problem still remains. is an updated planned for the next release?
Comment #5
vishnu358 CreditAttribution: vishnu358 commentedHi @paul, thank you!!
I am wondering why a release is not yet with your fix !!!
Uploading a patch for the same.
Comment #6
vishnu358 CreditAttribution: vishnu358 commentedComment #7
vishnu358 CreditAttribution: vishnu358 commented