Opened 11 years ago
Closed 11 years ago
#28366 closed defect (bug) (fixed)
Audio Player Controls are Not Translated
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Media | Keywords: | has-patch commit fixed-major |
Focuses: | ui, javascript | Cc: |
Description
Hello,
I use the "audio" shortcode to insert an audio player on a French blog. However, I notice that the audio player controls are not translated. For instance, when hovering the "Play/Pause" button, the hint says "Play/Pause" in English. This is strange, because looking at the .PO file (in wp-content/languages), the appropriate strings exist:
msgid "Play/Pause" msgstr "Lecture/Pause" ...
For some reason, these strings are not being loaded by the audio player script. All other parts of the blog are correctly translated, so this leads me to think it's a script bug.
Attachments (1)
Change History (11)
#2
@
11 years ago
- Component changed from Script Loader to Media
- Keywords needs-patch added; player translation removed
#3
@
11 years ago
- Keywords has-patch needs-testing needs-unit-tests added; needs-patch removed
#7
@
11 years ago
- Focuses accessibility removed
- Keywords commit added; dev-feedback removed
- Milestone changed from Awaiting Review to 3.9.2
- Version changed from 3.9.1 to 3.9
Broken in MediaElement 2.13.2 (see this commit, note the language.substr(0, 2).toLowerCase()
change. See [27059] for core.
#8
@
11 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 28801:
Note: See
TracTickets for help on using
tickets.
Hello again,
I managed to solve the problem by editing "script-loader.php" and replacing:
with: