Hi.

We are running a little site (about 100-200 nodes at ataxi.ro) in both English and Romanian on the latest version of D6 and a couple of contrib modules included i18n. I noticed that the database recently got very large. When I looked in phpmyadmin, of the 67MB database, 47.1MB was taken up by 'locales_source'. It seems a bit strange.

I attached a screenshot of some of the strings in it. It looks like it stores entire pages as strings? Is this normal?

Thanks.

-Daniel Chvatik
Adulmec

CommentFileSizeAuthor
ataxi.ro_.jpg239.57 KBkerberos
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kerberos’s picture

Category: support » bug

It's up to 64M out of 79M now. That definitely cannot be right.

-Daniel

keesje’s picture

I don't believe this has anything to do with internationalization module. I do not have an answer, although I would like to know why the "locales*" tables have to grow this big (not as big as yours though..) I see this in some degree on any Drupal6 site where other languages are enabled, and thus auto importing translations when available.
One tip: do you alow user imput (dynamic strings) to be t() parsed somewhere in your code? This could explain the growth partly.

Luck,

Kees

----------
Dekbedovertek kopen

Jose Reyero’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Actually, i18n module just stores trings in other texgroups than 'default' so this may be some other code/module using t() for not hardcoded strings.

greenSkin’s picture

Category: support » bug
Priority: Normal » Critical

For us this is an issue with i18n's menu translations. It keeps inserting new menu sources instead of updating.

greenSkin’s picture

Status: Postponed (maintainer needs more info) » Active
designerbrent’s picture

subscribing

Jose Reyero’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

"It keeps inserting new menu sources instead of updating."

Still happens with latest -dev version? Steps to reproduce?

kerberos’s picture

We'll give it a try in the next week or two and let you know if things have changed.

Thanks!

-Daniel

Natzrut’s picture

Did you try it?
My locales_sources is now about 260MB and still growing (German/English site)...
In this thread I found an explanation for the problem:
http://drupal.org/node/359249

Greetz,
Rainer

Natzrut’s picture

I've tested the latest dev-version of i18n and it doesn't work for me.
After the installation I had a total chaos and content of both languages was mixed. So I went back to the old version(6.x-1.2) and the database table is still growing.

Does anybody know if it's possible to only clear the table and delete all the data in it? So it could begin to grow again. That would help for now...but I'm afraid to loose translated data.....

Jose Reyero’s picture

Status: Postponed (maintainer needs more info) » Fixed

This should be fixed by #359249: locales_source table grows on each request, #782036: Duplicates in locales_source and some other i18nstrings issues.

Status: Fixed » Closed (fixed)

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

ovlaere’s picture

in reply to #2 - http://drupal.org/node/529098#comment-1890690

A late reply in an old topic, but perhaps valuable to someone:

Kees, you saved the day man! I have a locales_source table that has been growing up to 290MB just a few moments ago. After reading you post, i did a sweep of the code for t() calls on dynamic data and found out someone programmed t() around a function call that returns a dynamic list of results... (no kidding!). So removing the t from around that call solved the problem i guess.

Many thx,
Kiewie