First thing I came across, is that when you choose new selection field, you can't have your own values for titles. I needed it because of other module I'm creating. So what I have changed?

In database table field options values now are saved in serialized array not just new line separated string. Still I have to edit those options in the same way I did it before.

Other thing is that field titles and category titles need to use t function, other way I have to make each category for each language :). I updated it too (hopefully I didn't miss anything). And yes selection titles are being translated too.

p.s. Sorry for a bad English and by the way this is my first drupal patch, so I hope it works, even more because it is my first month with drupal development.

CommentFileSizeAuthor
profile.patch14.64 KBgiincM

Comments

jose reyero’s picture

Status: Needs review » Closed (works as designed)

User defined strings in D6 are simply not translatable: please read http://api.drupal.org/api/function/t/6

"However tempting it is, custom data from user input or other non-code sources should not be passed through t(). Doing so leads to the following problems and errors:...."

So this works just as expected, and no new features are allowed in D6.

You may need to use some contrib modules for this, check out i18n.