wordpress-develop/tests/phpunit/data
Pascal Birchler e83f5a1a60 I18N: Introduce a more performant localization library.
This introduces a more lightweight library for loading `.mo` translation files which offers increased speed and lower memory usage.
It also supports loading multiple locales at the same time, which makes locale switching faster too.

For plugins interacting with the `$l10n` global variable in core, a shim is added to retain backward compatibility with the existing `pomo` library.

In addition to that, this library supports translations contained in PHP files, avoiding a binary file format and leveraging OPCache if available.
If an `.mo` translation file has a corresponding `.l10n.php` file, the latter will be loaded instead.
This behavior can be adjusted using the new `translation_file_format` and `load_translation_file` filters.

PHP translation files will be typically created by downloading language packs, but can also be generated by plugins.
See https://make.wordpress.org/core/2023/11/08/merging-performant-translations-into-core/ for more context.

Props dd32, swissspidy, flixos90, joemcgill, westonruter, akirk, SergeyBiryukov.
Fixes #59656.

git-svn-id: https://develop.svn.wordpress.org/trunk@57337 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-23 13:32:34 +00:00
..
blocks General: Add $schema property to block and theme JSON files. 2024-01-23 13:05:08 +00:00
export
feed Help/About: Use the new /documentation/ URLs for HelpHub links in WordPress Admin. 2023-02-23 10:36:33 +00:00
filesystem Filesystem API: Add missing ZIP file for unzip tests. 2023-09-25 23:38:38 +00:00
formatting
functions
images Media: Adjust PDF upload handling to remove non-opaque alpha channels from previews. 2023-07-19 22:33:47 +00:00
l10n I18N: Introduce a more performant localization library. 2024-01-23 13:32:34 +00:00
languages Tests: Increase coverage for translations applied to theme.json 2022-08-31 10:11:30 +00:00
plugins I18N: Introduce WP_Textdomain_Registry to store text domains and their language directory paths. 2022-08-11 12:37:05 +00:00
pomo I18N: Introduce a more performant localization library. 2024-01-23 13:32:34 +00:00
templates Themes: Inject theme attribute during serialization. 2023-09-14 08:50:43 +00:00
theme-file-child
theme-file-parent
themedir1 General: Add $schema property to block and theme JSON files. 2024-01-23 13:05:08 +00:00
themedir2 Themes: Remove memoization from stylesheet and theme directories. 2023-11-20 22:27:17 +00:00
uploads Upload: Correct duplicate MIME type for .xlsx files generated by Google Docs. 2023-09-03 12:49:51 +00:00
widgets Docs: Correct the format of some comments per the documentation standards. 2021-12-10 20:28:27 +00:00
WPHTTP-testcase-redirection-script.php HTTP API: Fix request header inconsistencies. 2023-02-03 13:33:18 +00:00