Invalid translation files for Common + EasyAdmin + Advanced Search modules

Hi,

I upgraded both modules Common (3.4.74) and EasyAdmin (3.4.37) and I get errors with the French translation of both modules:

Laminas\I18n\Exception\InvalidArgumentException
/home/…/omeka-s/modules/Common/language/fr.mo is not a valid gettext file

Laminas\I18n\Exception\InvalidArgumentException
/home/…/omeka-s/modules/EasyAdmin/language/fr.mo is not a valid gettext file

Same error after installing the Advanced Search (3.4.54) module.

Workaround: temporarily rename the fr.mo file to something like fr.mo.bad so it doesn’t get loaded.

Have you filed an issue with the developer or otherwise contacted them?

These are all from @Daniel_KM I believe… it could just be a problem with the zipping process corrupting this file, which wouldn’t necessarily be apparent to a developer without user reports as they wouldn’t normally use the zipped version day-to-day.

An shot-in-the-dark example of the kind of thing that could cause this problem: the new version of Gulp will default to corrupting binary files unless you set a flag encoding: false that you didn’t have to before.