Precurio Forums

Full Version: Changing .po languages files has no effect?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi again.

I've made just a few changes in file es_MX.po using PoEdit to make a new language files for Spanish(Spain): es_ES.po and es_ES.mo.

After that I've made a zip file with the correct structure: upgrade.bat, es folder, LC_MESSAGES subfolder, etc. I've used "Upgrade" tool to install the new package and everything was right.

When I saw that everything was OK, I continued changing the es_ES.po located in application/languages/es/LC_MESSAGES, and after save changes I get a new es_ES.po and es_ES.mo, but I noticed that nothing has changed, everything is like in the first translation.

I've tried to reinstall using "Upgrade" tool and deleting the lines language.es_ES.label, language.es_ES.author and language.es_ES.version from precurio.ini, but no success. I've tried to use another version number too.

I've deleted the cache of my navigator too.

Any ideas? Must I modify something in the database?

Thanks.

I attach my package file.
On day after I wrote the first post, the changes in es_ES.po file are visible.

I don't know why. I suppose there must be any internal cache in Precurio.

Now, if I continue making changes, these have no effect, but I suppose that tomorrow they will appear.

Any explanation? I don't understand this.

Thanks.
I don't think its the cache. The cache should automatically update once the file es_ES.mo changes.

To confirm, you can clear the precurio internal cache by deleting the content of the "tmp" folder (/precurio/application/tmp).

If you immediately see the changes, then its the cache, else it is something else.

let me know.
It works. Thanks a lot.

It's the internal cache, exactly the file named "zend_cache---Zend_Translate_xxxxxxxxxxxx_Gettext". The file contents all the translations loaded from the .po file and I think that it's refreshed only every X seconds, minutes or days.

I've deleted that file and everything has changed.

Maybe it could be a good idea to insert an option to delete the "tmp" folder on logout.

I hope this helps anyone.

Thanks again.
Reference URL's