The title of a taxonomy vocabulary is not translatable when displayed on a page.

CommentFileSizeAuthor
#4 nodeforum.patch2.61 KBzd123
#3 nodeforum.patch2.61 KBzd123
#1 nodeforum.patch2.63 KBzd123
nodeforum.patch525 byteszd123

Comments

zd123’s picture

StatusFileSize
new2.63 KB

This is the latest and correct patch for translating taxonomy terms and tittles in the node forum module.

andrewlevine’s picture

Status: Needs review » Needs work

This looks good except for one thing:
The i18n context is vocabulary or forum in a couple places where it should be term.
For example

$pname = tt("taxonomy:vocabulary:{$p->tid}:name", $p->name);

should be

$pname = tt("taxonomy:term:{$p->tid}:name", $p->name);

because we are translating a term, not a vocabulary. The same thing is done when $forum_name and $forum_description are set. I am getting this convention from i18ntaxonomy_locale_refresh in i18ntaxonomy.module

Could you fix and repatch please? Thanks!

zd123’s picture

StatusFileSize
new2.61 KB

Here are the new fixes. Thanks for the info!

zd123’s picture

StatusFileSize
new2.61 KB

This is the Final Patch.

andrewlevine’s picture

Status: Needs work » Fixed

fixed thanks!

Status: Fixed » Closed (fixed)

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