tbx_make . localization // does not update existing .mo files
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
When some .mo files have already been generated with some previous compilation, recompiling with
tbx_make . localization
does not update .mo files with .po translated files possibly changed in the meantime.
We are compelled to remove the ./locales/LA_la languages directories by hand to
force the regeneration.
This is quite awkward, unhandy and time consuming when debugging translated messages.
Regenerating .mo binary files should be done.
ERROR LOG:
----------
none. Wrong behavior
HOW TO REPRODUCE THE BUG:
-------------------------
* Download and unzip the source code of an external module including some domain localization.
uman >= 3.0 will soon be a good guy to do such tests.
* Set the current directory to the module's root.
* run --> tbx_make . localization
a first time to generate .mo files in ./locales/en_US and ./locales/fr_FR
* run --> addlocalizationdomain("uman", pwd()+"\locales")
* run --> edit locales/fr_FR.po
* test --> _("uman", "[unloaded ATOMS]") // Check that you get the french translation
NOW
* in the edited fr_FR.po: change slightly the french translation of this msgid, and save it.
* Rerun --> tbx_make . localization
* In ./locales/fr_FR/LC_MESSAGES :
Check the modification date of fr_FR.mo :
It is not > date(./locales/fr_FR/fr_FR.po)
ELSE
* run --> rmdir("locales/fr_FR","s"), rmdir("locales/en_US","s")
or delete them by hand.
* run --> tbx_make . localization
--> addlocalizationdomain("uman", pwd()+"\locales")
This regenerates ./locales/en_US and ./locales/fr_FR ..
OTHER INFORMATION:
------------------