johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.58k stars 207 forks source link

WordPress 6.5: Support new `load_translation_file` filter #849

Closed swissspidy closed 4 months ago

swissspidy commented 6 months ago

WordPress 6.5 is adding support for PHP translation files. They are preferred over MO files.

A new load_translation_file filter can be used to get the file location. The filter works for both MO and PHP files.

A dev note will be published during the 6.5 beta period.

dd32 commented 5 months ago

Just noting, that the current behaviour is that QM displays the .mo as being loaded, even though the .php is loaded instead.

johnbillion commented 5 months ago

Thanks, I'll take a look.

Dev note: https://make.wordpress.org/core/2024/02/27/i18n-improvements-6-5-performant-translations/