Fixed #20269 -- Adapted PostGIS template create script for CentOS/RHEL

Thanks Stephane Benchimol for the report and the initial script and
mfandreas for the patch.
Fixes #19919: get_language_from_request() disregards "en-us" and "en" languages
when matching Accept-Language
Fixed argument order for localized_fields to ensure backwards compatibility
Merge pull request #1100 from ambv/issue19919

Fixed #19919: get_language_from_request() disregards en-us and en
Merge pull request #1101 from erikr/master

Fixed argument order for localized_fields to ensure backwards compatibility