WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#4080 closed defect (bug) (invalid)

tinymce fails loading language file

Reported by: xauser Owned by:
Milestone: Priority: low
Severity: normal Version: 2.1.2
Component: TinyMCE Keywords: tinymce language locale
Focuses: Cc:

Description

I ran into the problem, that custom language files for the embedded tinymce weren't recognized.

for example:
with $WPLANG=de_DE
file
wp-includes/js/tinymce/langs/de_DE.js
doesn't gets loaded.

(this worked with 2.0.7) I've fixed this with the appended patch.

Attachments (1)

tinymce.patch (1.3 KB) - added by xauser 7 years ago.
patch for bug

Download all attachments as: .zip

Change History (5)

xauser7 years ago

patch for bug

comment:1 follow-up: ryan7 years ago

The language has to be passed to tinymce via the language arg when tiny_mce_gzip.php is loaded. It does not use the global locale. What language is being passed to tiny_mce?

comment:2 in reply to: ↑ 1 xauser7 years ago

Replying to ryan:

The language has to be passed to tinymce via the language arg when tiny_mce_gzip.php is loaded. It does not use the global locale. What language is being passed to tiny_mce?

hmm, thought $language is taken from global space defined somewhere and not passed.

nethertheless, I did some more debugging take a look

[04-04-2007 09:46] LANGUAGE: de_de
[04-04-2007 09:46] LOCALE: de_DE

yes and linux is case-sensitive so this works on Windows. On linux one has
to rename all translation files to lower case? How should I go on?

comment:3 thee176 years ago

Does tinyMCE 3.0 address this, is it still a problem?

comment:4 ryan6 years ago

  • Milestone 2.5 deleted
  • Resolution set to invalid
  • Status changed from new to closed

wp_tinymce_lang() has been gone for awhile. Closing as no longer valid.

Note: See TracTickets for help on using tickets.