[wp-trac] [WordPress Trac] #62157: load_script_translations does not search in plugins translation path
WordPress Trac
noreply at wordpress.org
Wed Oct 2 12:03:37 UTC 2024
#62157: load_script_translations does not search in plugins translation path
--------------------------+-----------------------------
Reporter: hupe13 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
== Bug Report
=== Description
Describe the bug.
=== Environment
- WordPress: 6.7-beta1
- PHP: 8.3.8-nmm1
- Server: Apache
- Database: mysqli (Server: 10.6.18-MariaDB-0ubuntu0.22.04.1-log / Client:
mysqlnd 8.3.8-nmm1)
- Browser: Firefox 131.0 (macOS)
- Theme: Child of Generatepress
- Plugins:
...
* Extensions for Leaflet Map Testing version
* Leaflet Map 3.4.1
* Query Monitor 3.16.4
* WordPress Beta Tester 3.5.6
=== Steps to Reproduce
1. Open a webpage with an elevation profile in german. (Example WP 6.6.2:
https://leafext.de/elevation/track/)
x. 🐞 Bug occurs.
=== Expected Results
1. ✅ What should happen.
Strings from Javascript should be translated.
=== Actual Results
1. ❌ What actually happened.
Strings from Javascript are not translated.
Query Monitor in 6.6.2 reports, that the strings type "jed" are loaded
from
wp-content/languages/plugins/extensions-leaflet-map-de_DE-
11e2d9a1caad4ea1804a55167ba26f01.json
Query Monitor in 6.7. reports, that the strings type "jed" in path
wp-content/languages/themes/extensions-leaflet-map-de_DE-
11e2d9a1caad4ea1804a55167ba26f01.json
are searched for but not found.
The search path should include "wp-content/languages/plugins/".
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62157>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list