Closed (fixed)
Project:
Profile 2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2012 at 13:06 UTC
Updated:
16 Mar 2014 at 15:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
demoshane commentedHere is patch for the issue
Comment #2
fagoprofile (type) label's should be translated via i18n
Comment #3
finn lewisHi guys!
I've been wrestling with this too, specifically trying to localize the profile2 type labels / titles.
In our use case, we do not want to translate the profile2 content, but we do want to localize the field labels and the profile type labels.
I see there are some changes with regard to i18n in the latest 7.x-1.3 version, but the localization of the profile type labels still does not seem to work.
The patch in #1 above does not appear to be included in 7.x-1.3, and solves half the problem in that it allows localization of the profile type label when viewing the user.
The other part of the equation is when the user is editing their profile2 form. For this I think we need the following in the profile2_user_categories() function (around line 492 of profile2.module):
After clearing cache, I now have localized profile2 labels on view and edit.
I attach a patch against 7.x-1.x-dev which currently applies fine to 7.x-1.3
Hope this helps!
Comment #4
finn lewisComment #5
baher commentedHello,
Have you already activate the Profile2 translation ? you can see my answer in this post href="https://drupal.org/node/1118362#comment-7825629
Baher
Comment #6
mr.york commentedActivate Profile2 translation module.
And apply this patch.
Comment #7
spleshka@mr.york, thank you for patch. Commited/pushed to 7.x-1.x.