Opened 11 years ago
Closed 11 years ago
#27610 closed defect (bug) (fixed)
JS Translations being looked for in the wrong place
Reported by: | Ipstenu | Owned by: | azaozz |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
- https://wordpress.org/support/topic/visual-post-editor-is-blank
- https://wordpress.org/support/topic/editor-not-visible
In both cases, the plugin is failing because it's looking for JS files that don't exist.
Failed to load: http://domain.tld/wp-content/plugins/cforms/js/langs/ro_RO.js
The actual file is ro.js
NetworkError: 404 Not Found - http://domain.tld/wp-content/plugins/slideshow-gallery/js/tinymce/langs/nl_NL.js nl_NL.js
There is no such file.
The errors don't happen in English. While TinyMCE changed their standards to the normal two-named (ro_RO vs ro), this shouldn't error out, but fallback to (I guess) the plain-jane named version if the file isn't there.
Attachments (1)
Change History (8)
This ticket was mentioned in IRC in #wordpress-dev by ipstenu. View the logs.
11 years ago
#2
@
11 years ago
- Component changed from I18N to TinyMCE
- Milestone changed from Awaiting Review to 3.9
#4
@
11 years ago
Same reason in Slideshow Gallery plugin:
https://plugins.trac.wordpress.org/browser/slideshow-gallery/tags/1.3.1/js/tinymce/editor_plugin.js#L7
tinymce.PluginManager.requireLangPack()
doesn't cause any issues in 3.8, but leads to a 404 error in 3.9.
#5
@
11 years ago
Slideshow Gallery actually has (kinda) translations: https://plugins.trac.wordpress.org/browser/slideshow-gallery/tags/1.3.1/js/tinymce/langs
So is this due to TinyMCE 4, WP 3.9, or an unholy combo?
Similar report: https://wordpress.org/support/topic/plugin-breaks-visual-editor-39b1-missing-enjs
Caused by
tinymce.PluginManager.requireLangPack('gde')
(which doesn't seem necessary):https://plugins.trac.wordpress.org/browser/google-document-embedder/tags/2.5.12/js/editor_plugin.js#L2