installer: try detecting first day of week
composer: provide ext-gettext in php-gettext package
make tests work without gettext native ext