Make the i18n / Internationalization module compatible with PHP 8.0.

Issue fork i18n-3208028

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

damienmckenna’s picture

Some of the Metatag tests use i18n and this error gets reported:

fail: [PHP Deprecated] Line 236 of sites/all/modules/i18n/i18n.module:
 Required parameter $arg follows optional parameter $path
damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new457 bytes

This fixes the problem, which stemmed from an incorrect implementation of hook_help().

joseph.olstad’s picture

Thanks for the patch.

Taran2L made their first commit to this issue’s fork.

taran2l’s picture

hm 🤔

taran2l’s picture

Status: Needs review » Needs work
taran2l’s picture

Status: Needs work » Needs review
StatusFileSize
new1.17 KB

Let's try an old school patch

joseph.olstad’s picture

wow nicely done @Taran2L

triggering some more tests to check for regressions.

stefanos.petrakis’s picture

Status: Needs review » Reviewed & tested by the community

#10 looks good, tested against the test suite of Entity Translation (which would benefit for resolving this).
Also did a grep scan of the code in i18n for similar function signatures, looks clean.

stefanos.petrakis’s picture

Added an issue from ET that depends on this one for getting green tests for PHP8

joseph.olstad’s picture

Thanks @stefanos.petrakis for the reminder and review,
Ok pushed into the dev branch, I need to tag a release

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed
stefanos.petrakis’s picture

Excellent, thanks everyone.
(edit => linked the correct issue)

joseph.olstad’s picture

joseph.olstad’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.