Hi list,
just want to inform anybody here that I ran into the problem, that
custom language files for the embedded tinymce weren't recognized
by wordpress v2.1.2.
I've fixed this problem with the appended patch. Feel free to comment
my patch.
best regards
Ralf
--- update/wordpress-2.1.2/wp-includes/js/tinymce/tiny_mce_gzip.php 2007-01-31 03:09:08.000000000 +0100
+++ wordpress/release-2.1.2/wp-includes/js/tinymce/tiny_mce_gzip.php 2007-04-02 14:53:30.000000000 +0200
@@ -18,18 +18,18 @@
// gzip_compression();
function wp_tinymce_lang($path) {
- global $language;
+ global $locale;
$text = '';
// Look for xx_YY.js, xx_yy.js, xx.js
- $file = realpath(sprintf($path, $language));
+ $file = realpath(sprintf($path, $locale));
if ( file_exists($file) )
$text = file_get_contents($file);
- $file = realpath(sprintf($path, strtolower($language)));
+ $file = realpath(sprintf($path, strtolower($locale)));
if ( file_exists($file) )
$text = file_get_contents($file);
- $file = realpath(sprintf($path, substr($language, 0, 2)));
+ $file = realpath(sprintf($path, substr($locale, 0, 2)));
if ( file_exists($file) )
$text = file_get_contents($file);
@@ -40,7 +40,7 @@
$text = file_get_contents($file);
// Send lang file through gettext
- if ( function_exists('__') && strtolower(substr($language, 0, 2)) != 'en' ) {
+ if ( function_exists('__') && strtolower(substr($locale, 0, 2)) != 'en' ) {
$search1 = "/^tinyMCELang\\[(['\"])(.*)\\1\]( ?= ?)(['\"])(.*)\\4/Uem";
$replace1 = "'tinyMCELang[\\1\\2\\1]\\3'.stripslashes('\\4').__('\\5').stripslashes('\\4')";
_______________________________________________
wp-polyglots mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-polyglots