Hi,
I'm testing drupal 6 since some month now, and I'm afraid to see that the internationalization system that was one of the Drupal 6 credo don't go as far as drupal logic often goes. There is lot of missed translation around here. Most can be made thanks to i18n, but there are 2 major translation needs that don't find solution.
The contact form
I search throught the net, and, by tweaking the setting.php file with a i18n trick, you can translate the contact information textarea. But all others informations (categories, automatic reply, etc...) are simple not translatable ATM. I think it's a serious issue for a website that prone multilanguage feature today.
Roles
Another missing translation is about roles, you can define them only in one translation which is a pain to try to tweak to show an user role in his native language. (the strange thing is that anonymous and authentificated users are translatable), why others roles aren't ?
Conclusion
I imagine that lots of people are a little disappointed by the missing multilanguage stuff in D6, and, if it was possible, some modules already came out to fix that problem, so, if it's not, I imagine it's impossible ATM without hacking the core.
However, I need opinion about how to fix that, if it's possible, and without hacking the core, maybee I can claim this task, and what would be the best way to do this (integrate with i18n ?, provide a patch for the core ?, make a completly new module ?).
Thanks for your future answers,
regards,
zmove
Comments
Comment #1
wuf31 commentedYeah.. I'm having this problem as well..
Looks like the drupal 6 internationalization still has some way to go..
Right now, I'm still working on translating menu, taxonomy, views, webform and getting globalredirect to work as intended. Phew! Doing translation is quite some work :P
Comment #2
sirsimor commentedI miss the categories box in contact form. I can think of an quick way to fix it, just add a field to the Contact table with language of each category and then filter categories that fit the current language.. but I'll leave it for others to do it.
simon
Comment #3
durum commentedzmove how did you translate contact form information? Did it go with i18n?
tia
Comment #4
zmove commentedHi,
You can translate it by defining some $conf informations in the setting.php file.
See this thread for more informations.
Comment #5
durum commentedthanks.
Comment #6
ainigma32 commented@zmove: did you ever get some feedback from any of the core devs? If not you might have better luck on the developers mailing list or on IRC.
- Arie
Comment #7
ainigma32 commentedLooks like zmove won't be posting any feedback so I'm setting this to fixed.
Feel free to reopen if you think that is wrong.
- Arie
Comment #9
mairav commentedI'be veen looking everywhere. Are role names traslatable? I have an spanish / english site, and I can't let the role names only in spanish cause that wouldn't be understand by those who speak english.
Did someone find a way to translate the role names?
Comment #10
gpk commented@9: you would probably need to use i18n module, see http://drupal.org/node/304002.
For anyone else who comes by here, if that doesn't also fix the contact form translateability then try http://drupal.org/project/tcontact.
Comment #11
mairav commentedI already have i18n installed, but the role names are not being translated.
Comment #12
gpk commentedAh yes, I was looking at #18954-28: "anonymous user" and "authenticated user" are not translateable, but http://api.drupal.org/api/function/user_edit_form/6 and http://api.drupal.org/api/function/user_roles/6 appear to give no option for i18n or anything else for that matter to translate role names ...
Have opened issue here #598862: Custom user roles are not translatable in core alone (requires a contributed module) against i18n project, but this may actually be a core bug/"feature".
Comment #13
mairav commentedThanks! I already suscribe for that issue so I can see any progress or anwser on it. I have an spanish site and it doesn't look good if i send an english user "you have been assigned the role pintor" :P
Thanks again for opening the issue.
Comment #14
blueblade commentedI have the same problem too. Have you found the solution, mairav?
Comment #15
andypostsuppose this will never fixed
Comment #16
mairav commented@blueblade, I couldn't find a solution yet.
I found this posts where they sent a patch to cvs for drupal 7 (#598862: Custom user roles are not translatable in core alone (requires a contributed module))
But they say nothing about commiting to drupal 6.
The problem is that drupal 7 is not ready yet, but I cant launch a site with untranslated role names... and for what I saw is a problem a lot of us is suffering.
Comment #17
blueblade commentedHi mairav,
Thanks for replying. I guess we just have to leave some text in the original language. How are you dealing with this tho?
BB
Comment #18
sun#10 already contains the right pointers to modules that can solve this issue for D6.
@gpk: You can "won't fix" in such situations, too :)
Comment #19
liquidcms commentedafter digging around for a bit although i agree with sun that #10 points to i18n as a module that COULD solve the issue of translating roles - as far as i can tell no one has written that module yet. I think it would be a module which uses i18nstrings module - but don't think one has been written yet.
so, for now, D6 has no solution for translating roles - although sounds like it could be done with i18n and therefore not required to hack core
Comment #20
liquidcms commentednot quite sure what i was doing and documentation is a bit weak.. but this seems to let me translate roles.
in my custom module (caubo.module):
and then to use this i have a custom form that lists some of my roles for user to select:
Comment #21
jvieille commentedRoles can be translated with a very simple patch worked out for D8
http://drupal.org/node/1759810
Applies to D6 without any change
Edit:
This does not work