I get "Taxonomy title" as text group at "mysite/admin/config/regional/translate", but I can not get the string when searching for it for translation at "mysite/admin/config/regional/translate/translate".

Though there are three strings in taxonomy_title table, string count at translation interface states "0/0 (0%)".

"Taxonomy title" text group does not show up at "mysite/admin/config/regional/translate/i18n_string" when trying to update values for user defined strings.

Thank you.


Members fund testing for the Drupal project. Drupal Association Learn more


zy’s picture

Component: Miscellaneous » Code
Category: support » bug

After debugging as per i18n_string.inc line 286 change category to "bug" as the "taxonomy_title" string does not look translatable.

Thank you.

didaka’s picture

Priority: Normal » Major
Status: Active » Patch (to be ported)
3.16 KB

I updated the code to work with the new i18n functions.
A patch is applied below.

jenlampton’s picture

Status: Patch (to be ported) » Needs review

Thanks @didaka for all your work on this!
Can we get a review please? @zy can you try this patch on your site?

Peacog’s picture

There were a couple of problems with the last patch. I've re-rolled it. Please review and test.

Peacog’s picture

I've added another small fix to the patch. Strings were being double sanitized, meaning titles containing ampersands and apostrophes were being displayed with & and '. Passing the sanitized => TRUE option to i18n_string_translate solves the problem.

hefox’s picture

patch works, but had a dpm

hefox’s picture

Updating to patch that the token isn't respecting translation either for term name.

ArtuDrop’s picture

hefox, this patch work in taxonomy translate interface?

hefox’s picture

Sorry, I don't remember, been too long.

Nikolino’s picture

This patch don't work for me.
I'm not able to translate taxonomy title...

jenlampton’s picture

Status: Needs review » Reviewed & tested by the community
3.53 KB

Needed a reroll, but otherwise this looks great. Much cleaner, thank you!

  • jenlampton committed bf30a2c on 7.x-1.x authored by Peacog
    Issue #1391422 by hefox, Peacog, didaka: Can not get taxonomy title...
jenlampton’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.