Fields and descriptions of profile.module are not translatable. this is a patch that try to do this.
| Comment | File | Size | Author |
|---|---|---|---|
| profile.module_0.diff | 2.48 KB | pietro |
Fields and descriptions of profile.module are not translatable. this is a patch that try to do this.
| Comment | File | Size | Author |
|---|---|---|---|
| profile.module_0.diff | 2.48 KB | pietro |
Comments
Comment #1
Stefan Nagtegaal commentedWe do not make user submitted data translatable. The locales-table would be filled up with junk..
I'm leaving setting this to 'By design' to anybody else..
Comment #2
pietro commentedthis patch isn't to translate user submitted data, but the field names and description.
Comment #3
chx commentedComment #4
jose reyero commented> this patch isn't to translate user submitted data, but the field names and description.
Well, it's web configurable content so I wouldn't support this patch either to be applied to core.
But anyway, the patch is here for anyone who wants to apply it.
Comment #5
mgifford1) You're not talking much more than about 20 strings, so relax about polluting the translation array.
2) If not this way, then how? There's got to be some way to use this module in a multi-lingual environment. If using the translation array isn't they way then is there openness in the community to re-write the module for some other way? If not consider the patch.
3) I think this code is cleaner.
Sorry it's not a patch
Comment #6
jose reyero commentedJust reorganizing pending issues.
Comment #7
milksamsa commentedGot news on this patch? I really need to translate the fields in profile page.
Comment #8
druvision commentedMe too. i18n for user-defined data (vocabulary names, profile field names, CCK field names) is a whole issue which I am seeking a general good solution to.
Amnon
Personal: Bring Dolphin's Simple Joy to your Work - Job - Career
Professional: Drupal Hebrew Consulting
Comment #9
jose reyero commentedPlease give a try to this new module I've committed to i18n-HEAD. You can check it out from cvs or try these links (module and install file)
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/i1...
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/i1...
It adds a tab to admin/settings/profile to translate all category names and field names and descriptions. No patches needed.
Feedback is welcomed.
Comment #10
milksamsa commentedDear Jose,
the module seems to work fine in profile viewing.
During the sign up though, the original language fields are shown. Is it possible to display the translation also during sign up?
Comment #11
jose reyero commentedYes, it is.
Just fixed that. Try the latest.
Btw. Known issue: Both translated and untranslated fields show up in the user account main page
Comment #12
milksamsa commentedI've been trying to download from the above links but it didn't work. I even reinstalled the module by using the Devel module. No chance.
What am I doing wrong?
I still display the info in "translated" language after logging in, but no translated fields are shown when in sign-up mode.
Comment #13
(not verified) commentedComment #14
mimamim commentedHi! I'm using Drupal 6.8 and experience the same problem. Luckily, your fix also fits 6.x, only the line numbers are a little different.
What I added to your fix is changing in file profile.pages.inc, function profile_browse(), in my case it's line 71:
From:
To:
This changes the titles of pages for the groups of users with similar answers, f.e. "Users who like %value color"
Comment #15
mimamim commentedYet another fix. I created category "Personal information" and the category name is not translated on edit page.
Fix (file profile.module, function profile_categories(), line 457):
from:
to:
don't forget to clear cache after changing
Comment #16
Mr P commentedCan't get category name translation to work properly. Please take a look at my comments here: http://drupal.org/node/376182