I have both menu translations and taxonomy translations enabled. My locales_source table was getting out of control (> 500.000 rows), and I noticed it kept growing by a few hundered on every request, even if I'm just reloading the page.

I checked out the SQL queries using the Devel module, and I saw that i18nstrings_textgroup() was trying to SELECT from the 'taxonomy' textgroup, and upon not finding it, it did an INSERT into the 'default' textgroup - and so the same thing happens the next time around, won't find it with SELECT and so it will INSERT another one in the wrong place.

Attaching a small patch that fixed it for me - the table is no longer growing.

CommentFileSizeAuthor
#1 i18strings-2.patch789 bytesdrifter
i18strings.patch782 bytesdrifter

Comments

drifter’s picture

StatusFileSize
new789 bytes

Oops, wrong patch - I attached a previous (wrong) solution, this is the correct one.

jose reyero’s picture

Status: Needs review » Fixed

Yes, that looks like a bug, so patch committed.

Anyway, I think that is just an old api function that is not called from anywhere... ?

Status: Fixed » Closed (fixed)

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