[wp-trac] [WordPress Trac] #60554: Add support for using only PHP translation files

WordPress Trac noreply at wordpress.org
Thu Feb 15 19:18:41 UTC 2024


#60554: Add support for using only PHP translation files
-------------------------+------------------------
 Reporter:  swissspidy   |      Owner:  swissspidy
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  6.6
Component:  I18N         |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+------------------------
 In WordPress 6.5 we're adding support for PHP translation files. They
 still require accompanying `.mo` and `.po` files. However, it doesn't have
 to be this way!

 A few areas that would need changing:

 **`wp_get_installed_translations()`**

 `wp_get_installed_translations()` is used for getting the list of
 installed translations for plugins/themes/core when updating language
 packs and also when uninstalling plugins/themes (to remove the
 translations again).

 **`Language_Pack_Upgrader`**

 `\Language_Pack_Upgrader::check_package()` checks whether there are `.mo`
 and `.po` in the language pack. It should also support language packs with
 only a `.l10n.php` file.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60554>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list