Terms get translated if they happen to have the same name as a translated string. But of course their name shouldn't be translated.
I'm not sure if HS is really the culprit here but for example in taxonomy manager this doesn't happen.

Comments

wim leers’s picture

Title: Terms translated? » Terms translated in HS because it happens to be the same as an existing translated string
Project: Hierarchical Select » Internationalization
Version: 5.x-3.0-rc3 » master
Component: Code - Content Taxonomy » Miscellaneous
Status: Active » Postponed (maintainer needs more info)

Probably the Taxonomy Manager module doesn't support translated terms.

I'm not sure how we could avoid this. Moving to i18n queue to get some feedback.

Basically, what I'm doing is:
t($term->name)

I doubt we can prevent terms from being translated using this approach?

nath’s picture

Well, Internationalization is a module that I don't even use, so I doubt that is has something to do with this issue.
I don't think that terms should be translated, at least not with the standard t() function.

wim leers’s picture

And how else should they then be translated? That *is* the only way they should be translated, or even could be, in Drupal.

nath’s picture

As I understand it, the stuff that I enter shouldn't be touched by the t() function. The function is to translate text included in the code.

I don't expect the title or body fields of my articles to be translated just because they happen to match some text in the code and neither should my terms.

wim leers’s picture

That's how the i18n_taxonomy module works as well. It's by design. I'm waiting for feedback from the i18n module maintainers to find out how they would like to handle this edge case.

jose reyero’s picture

Category: bug » support

The thing is Drupal localization doesn't support context for translation. And you are not supposed to run user defined strings through this localization.

But i18n does support it, it would need to be implemented by other contrib modules though.

See:
i18nstrings module, tt() function
i18ntaxonomy module
and
http://groups.drupal.org/node/15177

wim leers’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)