Translation modules
Starnox - December 7, 2008 - 09:08
Ok so I've created a modulename.pot file and fr.po file from the potx module for my module, and placed them into a translations directory. I've then gone in and added some translations that were missing in the fr.po file. However the translations (only the ones I added) aren't coming through when I select french in my user profile.
Is there some kind of cache I have to clear, or do I have to declare there is a translation file available somewhere. Looked around at the docs but couldn't find anything.
Cheers

...
I did a search and it seems that Drupal core doesn't have a "re-import" functionality. You have to use the "l10n_client" module for doing re-import. That's weird.
(Drupal core seems to import only in two cases: when installing modules (but not when merely enabling them), and when adding a new language. It means that people who update a module won't have its updated translation re-imported. I do hope that I'm wrong.)
Your totally right, cheers!
Your totally right, cheers! But surely you must be able to force re-import on a module update somehow?!
...
I found an issue that explains why Drupal doesn't do automatic re-import:
"This was not implemented in core to protect people changing translations to wipe their own work with a click of a button" ... "this functionality will be provided by contrib" ... "I just released a 6.x-1.1 version of l10n_client which includes such reimport functionality".
You can force anything you want, because your module is written in PHP, but it most probably won't be wise.