Changeset 484
- Timestamp:
- 2007-07-20 11:04:02 (18 months ago)
- Location:
- MediaWiki/trunk/extensions/FCKeditor
- Files:
-
- 2 added
- 2 removed
- 2 modified
-
FCKeditor.body.php (modified) (3 diffs)
-
FCKeditor.i18n.en.php (added)
-
FCKeditor.i18n.php (deleted)
-
FCKeditor.i18n.pl.php (added)
-
FCKeditor.php (modified) (1 diff)
-
FCKeditor.setup.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php
r478 r484 45 45 } 46 46 47 public function name()48 {49 50 }51 52 47 private function getExcludedNamespaces() 53 48 { … … 97 92 public function onMessagesPreLoad() 98 93 { 99 global $wgMessageCache ;94 global $wgMessageCache, $wgUser, $wgContLanguageCode; 100 95 101 96 if ( !self::$messagesLoaded ) { 102 require( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .'FCKeditor.i18n.php' ); 103 foreach ( $allMessages as $lang => $langMessages ) { 104 $wgMessageCache->addMessages( $langMessages, $lang ); 105 } 97 $lang = $wgUser->getOption( 'language', $wgContLanguageCode ); 98 $i18nfile = dirname( __FILE__ ) . DIRECTORY_SEPARATOR .'FCKeditor.i18n.' . $lang . '.php'; 99 100 if ( file_exists( $i18nfile ) ) { 101 require( $i18nfile ); 102 } else { 103 $lang = 'en'; 104 require( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .'FCKeditor.i18n.en.php' ); 105 } 106 107 $wgMessageCache->addMessages( $allMessages, $lang ); 106 108 self::$messagesLoaded = true; 107 109 } … … 290 292 global $wgFCKEditorToolbarSet; 291 293 global $wgFCKEditorDir, $wgFCKEditorHeight, $wgUser; 292 294 293 295 if (!$wgUser->getOption( 'showtoolbar' ) || $wgUser->getOption( 'riched_disable' )) { 294 296 return true; -
MediaWiki/trunk/extensions/FCKeditor/FCKeditor.php
r476 r484 29 29 ini_set("display_errors", 1); 30 30 31 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "FCKeditor.i18n.php";32 31 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "FCKeditor.body.php"; 33 32