13 Dec
2005
13 Dec
'05
6:07 p.m.
Dries Buytaert wrote:
Hi Christophe,
On 13 Dec 2005, at 12:13, Christophe Chisogne wrote:
I had a strange problem while importing a new po file in drupal 4.6.4/5. Finally, I found the solution [3] : memory_limit should be higher than 8Mb.
instead of increasing the memory limit, I'd like to see us investigate how we can reduce the memory requirements of the locale module's parser.
I haven't looked at the code, but using explicit unset()s might be enough to reduce memory usage. Unsetting a variable will free its memory!
Won't help in this case. The whole PO file is parsed into a huge array and then postprocessed to upload the single translations. Cheers, Gerhard, with enough memory.