[wp-trac] [WordPress Trac] #45488: wp_set_script_translations does not load md5-based PO files
WordPress Trac
noreply at wordpress.org
Wed Dec 5 15:41:52 UTC 2018
#45488: wp_set_script_translations does not load md5-based PO files
--------------------------+---------------------
Reporter: ettoredn | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0.1
Component: I18N | Version: 5.0
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Changes (by swissspidy):
* keywords: => needs-patch
* severity: blocker => normal
* milestone: Awaiting Review => 5.0.1
Comment:
+1000 for using the brand-new `make-json` command! 🎉
I think we should change the behavior of `load_script_textdomain` to work
like `load_plugin_textdomain()`:
1. First look in the `wp-content/languages` directory. Even if a path is
provided.return translations.
2. If a path is provided, check the custom path for MD5 hash file name.
3. If a path is provided, check the custom path for script handle file
name.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45488#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list