I have a setup where I want Forums to be translatable (same Term with name and description translated to multiple languages) and Topics are localized (no translation).

When seeing Forum list, I have the correct display of last topic according to language, but forum counts such as number of posts and number of replies are showing the grand total of all languages.

Patch is very simple, probably needs improvement, but does:

a) Adds language code to cache ID to cache by language
b) Adds language condition to query. To work well with non-localized, LANGUAGE_NONE nodes show up on all languages.

CommentFileSizeAuthor
#5 2322177-5.patch1.07 KBrpayanm
localized-terms.patch1.06 KBfranz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

franz’s picture

Issue tags: +Needs tests

Adding tag as we should probably add tests for this.

podarok’s picture

Version: 7.x-2.4 » 7.x-2.x-dev
Status: Needs review » Needs work
Issue tags: +Needs reroll

patch doesn't apply. Needs reroll

Status: Needs work » Needs review

podarok queued localized-terms.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, localized-terms.patch, failed testing.

rpayanm’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
1.07 KB
podarok’s picture

Status: Needs review » Fixed

commited, thanks

  • podarok committed 2b71218 on authored by rpayanm
    Issue #2322177 by franz, rpayanm: Post count query not working with...

Status: Fixed » Closed (fixed)

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