Hi,
Profile2 version is 7.x-1.3
Profile2 translation - profile type label is translated, but does not shown.
All enabled modules list and screenshots are in attachment.
Thanks in advance.
| Comment | File | Size | Author |
|---|---|---|---|
| profile2_label_translation_issue.zip | 54.99 KB | vadzen |
Comments
Comment #1
vflirt commentedHi,
this is actually not profile 2 issue but rather drupal core issue.
On the last image "Personal data" is take trough hook_user_categories and although in the hook description it is said that the 'title' returned from this hook should be localized (and as is profile2 doing is useing the translated string as 'title') the hook_menu in user.module is just displaying the title as it comes from the hook without thinking that that language can be changed. I have same problem and in order to make it work properly i hard to :
1) add hook alter for each categories so instead of 'check_plain' as a title callback i set my own function
2) in my own function call again _user_categories() and set the correct title for the current category
I hope this helps you :)
Kind Regards,
Dobromir
Comment #2
passengerabcd commentedSolution in #1 works for me. Thanks vflirt.
Now I need to find a way to make the translated profile2 label show on the view tab.
Comment #3
passengerabcd commentedJust found the hack, replace line 332 of profile2.module with the following:
'#title' => t($profile->label),
Now you can find the string in translate interface and add your translations.
Comment #4
baher commentedHi,
You have to activate the Profile2 Translation in the MULTILINGUAL - INTERNATIONALIZATION (i18n) module.
Regards
Baher
Comment #5
skyredwangI can confirm this bug. Profile2 i18n enabled. Profile label translated, but not showing.
Comment #6
bisonbleu commentedI have a similar issue. But I don't think this issue is related to it. So I'll seek a separate issue.
FYI - In my case, I have enabled Provide a separate page for editing profiles at
admin/structure/profiles. When this is done, the page title for a user profile (accessible at profile-my_profile/uid) is set to Member Profile and properly translates when i18n is enabled. So I believe the current issue is resolved.Comment #7
bisonbleu commentedHiding files I uploaded as I cannot delete them.
Comment #8
bisonbleu commentedSetting back to Normal & Needs review.
Comment #9
kopeboy@bisonbleu
The field label used in the page is translated, but the tab (secondary) links of the separate edit pages are not.