Make WordPress Core

Opened 18 years ago

Closed 17 years ago

Last modified 10 months ago

#4080 closed defect (bug) (invalid)

tinymce fails loading language file

Reported by: xauser's profile 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 18 years ago.
patch for bug

Download all attachments as: .zip

Change History (5)

@xauser
18 years ago

patch for bug

#1 follow-up: @ryan
18 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?

#2 in reply to: ↑ 1 @xauser
18 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?

#3 @thee17
17 years ago

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

#4 @ryan
17 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.