r51207 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51206‎ | r51207 | r51208 >
Date:20:02, 30 May 2009
Author:ialex
Status:deferred
Tags:
Comment:
svn:eol-style native
Modified paths:
  • /trunk/extensions/DataTransfer/specials/DT_ImportCSV.php (modified) (history)
  • /trunk/extensions/FCKeditor/FCKeditor.popup.html (modified) (history)
  • /trunk/extensions/FCKeditor/css/fckeditor-rtl.css (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/dialogs/category.html (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/dialogs/source.html (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/images/icon_html.gif (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/images/icon_math.gif (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/images/icon_signature.gif (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/images/icon_source.gif (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/images/tb_icon_category.gif (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/lang/en.js (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/lang/he.js (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/lang/ko.js (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/lang/pl.js (modified) (history)
  • /trunk/extensions/FCKeditor/plugins/mediawiki/lang/sv.js (modified) (history)
  • /trunk/extensions/LiquidThreads/classes/LqtDispatch.php (modified) (history)
  • /trunk/extensions/LocalisationUpdate/schema.sql (modified) (history)
  • /trunk/extensions/LocalisationUpdate/uninstall.sql (modified) (history)
  • /trunk/extensions/LocalisationUpdate/update.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_RunQuery.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Outline/SRF_Outline.php (modified) (history)
  • /trunk/extensions/Translate/scripts/populateFuzzy.php (modified) (history)
  • /trunk/extensions/Translate/utils/MessageTable.php (modified) (history)
  • /trunk/phase3/docs/php-memcached/README (modified) (history)
  • /trunk/phase3/skins/Vector.deps.php (modified) (history)
  • /trunk/phase3/skins/Vector.php (modified) (history)
  • /trunk/phase3/skins/vector/main.css (modified) (history)

Diff [purge]

Property changes on: trunk/phase3/skins/Vector.php
___________________________________________________________________
Added: svn:eol-style
11 + native
Property changes on: trunk/phase3/skins/vector/main.css
___________________________________________________________________
Added: svn:eol-style
22 + native
Property changes on: trunk/phase3/skins/Vector.deps.php
___________________________________________________________________
Added: svn:eol-style
33 + native
Property changes on: trunk/phase3/docs/php-memcached/README
___________________________________________________________________
Added: svn:eol-style
44 + native
Index: trunk/extensions/FCKeditor/FCKeditor.popup.html
@@ -1,99 +1,99 @@
2 -<html xmlns="http://www.w3.org/1999/xhtml">
3 -<head>
4 - <title>FCKeditor</title>
5 - <script type="text/javascript">
6 -// #### URLParams: holds all URL passed parameters (like ?Param1=Value1&Param2=Value2)
7 -var FCKURLParams = new Object() ;
8 -
9 -var aParams = document.location.search.substr(1).split('&') ;
10 -for ( var i = 0 ; i < aParams.length ; i++ )
11 -{
12 - var aParam = aParams[i].split('=') ;
13 - var sParamName = aParam[0] ;
14 - var sParamValue = aParam[1] ;
15 -
16 - FCKURLParams[ sParamName ] = sParamValue ;
17 -}
18 -
19 -// It is preferable to have the oFCKeditor object defined in the opener window,
20 -// so all the configurations will be there. In this way the popup doesn't need
21 -// to take care of the configurations "clonning".
22 -var popup = window.opener;
23 -var oFCKeditor = window.opener[ FCKURLParams[ 'var' ] ] ;
24 -oFCKeditor.Width = '100%' ;
25 -oFCKeditor.Height = '100%' ;
26 -oFCKeditor.Value = popup.document.getElementById( FCKURLParams[ 'el' ] ).value ;
27 -
28 -function Ok()
29 -{
30 - var oEditor = FCKeditorAPI.GetInstance( oFCKeditor.InstanceName ) ;
31 - if ( oEditor.IsDirty() )
32 - {
33 - if ((window.opener.firstLoad == false) && (popup.FCKeditorAPI)) { //already loaded
34 - var parentOEditor = popup.FCKeditorAPI.GetInstance(FCKURLParams[ 'el' ]);
35 - var parentIsWysiwyg = ( parentOEditor.EditMode == FCK_EDITMODE_WYSIWYG ) ;
36 - var IsWysiwyg = ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG ) ;
37 - if ( !IsWysiwyg && parentIsWysiwyg ) //copy from PLAIN (popup) to WYSIWIG (parent)
38 - {
39 - parentOEditor.SwitchEditMode(); //switch to plain
40 - var text = oEditor.GetData(parentOEditor.Config.FormatSource);
41 - parentOEditor.SetHTML( text );
42 - }
43 - else if ( parentIsWysiwyg )
44 - {
45 - var text = oEditor.EditorDocument.documentElement.innerHTML;
46 - parentOEditor.EditingArea.Start( text );
47 - }
48 - else
49 - {
50 - var text = oEditor.GetData(parentOEditor.Config.FormatSource);
51 - parentOEditor.SetHTML( text );
52 - }
53 - }
54 - window.opener.document.getElementById( FCKURLParams[ 'el' ] ).value = oEditor.GetData( true ) ; // "true" means you want it formatted.
55 - }
56 - window.opener.focus() ;
57 - window.close() ;
58 - return true;
59 -}
60 -
61 -function Cancel()
62 -{
63 - var oEditor = FCKeditorAPI.GetInstance( oFCKeditor.InstanceName ) ;
64 - if ( oEditor.IsDirty() )
65 - {
66 - if ( !confirm( 'Are you sure you want to cancel? Your changes will be lost.' ) )
67 - return ;
68 - }
69 -
70 - window.close() ;
71 - return true;
72 -}
73 -
74 - </script>
75 -</head>
76 -<body style="margin:0px 0px 10px;">
77 - <table width="100%" cellspacing=0 cellpadding=0 height="100%">
78 - <tr>
79 - <td height="100%">
80 - <div id="FCKdiv" style='width:100%;height:100%'></div>
81 - <script type="text/javascript">
82 -document.write( '<input type="hidden" id="' + oFCKeditor.InstanceName + '" name="' + oFCKeditor.InstanceName + '" value="' + oFCKeditor._HTMLEncode( 'nic' ) + '" style="width:100%;display:none" />' ) ;
83 -
84 -popup.window.parent.FCK_sajax('wfSajaxWikiToHTML', [oFCKeditor.Value], function ( result ){
85 - var FCKinput = document.getElementById( oFCKeditor.InstanceName );
86 - FCKinput.value = (result.responseText);
87 - document.getElementById( 'FCKdiv' ).innerHTML = oFCKeditor._GetConfigHtml() + oFCKeditor._GetIFrameHtml();
88 -});
89 - </script>
90 - </td>
91 - </tr>
92 - <tr valign="middle" height="40">
93 - <td align="center" >
94 - <input type="button" value="Ok" onclick="Ok();" style="width:120px" />
95 - <input type="button" value="Cancel" onclick="Cancel();" />
96 - </td>
97 - </tr>
98 - </table>
99 -</body>
100 -</html>
 2+<html xmlns="http://www.w3.org/1999/xhtml">
 3+<head>
 4+ <title>FCKeditor</title>
 5+ <script type="text/javascript">
 6+// #### URLParams: holds all URL passed parameters (like ?Param1=Value1&Param2=Value2)
 7+var FCKURLParams = new Object() ;
 8+
 9+var aParams = document.location.search.substr(1).split('&') ;
 10+for ( var i = 0 ; i < aParams.length ; i++ )
 11+{
 12+ var aParam = aParams[i].split('=') ;
 13+ var sParamName = aParam[0] ;
 14+ var sParamValue = aParam[1] ;
 15+
 16+ FCKURLParams[ sParamName ] = sParamValue ;
 17+}
 18+
 19+// It is preferable to have the oFCKeditor object defined in the opener window,
 20+// so all the configurations will be there. In this way the popup doesn't need
 21+// to take care of the configurations "clonning".
 22+var popup = window.opener;
 23+var oFCKeditor = window.opener[ FCKURLParams[ 'var' ] ] ;
 24+oFCKeditor.Width = '100%' ;
 25+oFCKeditor.Height = '100%' ;
 26+oFCKeditor.Value = popup.document.getElementById( FCKURLParams[ 'el' ] ).value ;
 27+
 28+function Ok()
 29+{
 30+ var oEditor = FCKeditorAPI.GetInstance( oFCKeditor.InstanceName ) ;
 31+ if ( oEditor.IsDirty() )
 32+ {
 33+ if ((window.opener.firstLoad == false) && (popup.FCKeditorAPI)) { //already loaded
 34+ var parentOEditor = popup.FCKeditorAPI.GetInstance(FCKURLParams[ 'el' ]);
 35+ var parentIsWysiwyg = ( parentOEditor.EditMode == FCK_EDITMODE_WYSIWYG ) ;
 36+ var IsWysiwyg = ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG ) ;
 37+ if ( !IsWysiwyg && parentIsWysiwyg ) //copy from PLAIN (popup) to WYSIWIG (parent)
 38+ {
 39+ parentOEditor.SwitchEditMode(); //switch to plain
 40+ var text = oEditor.GetData(parentOEditor.Config.FormatSource);
 41+ parentOEditor.SetHTML( text );
 42+ }
 43+ else if ( parentIsWysiwyg )
 44+ {
 45+ var text = oEditor.EditorDocument.documentElement.innerHTML;
 46+ parentOEditor.EditingArea.Start( text );
 47+ }
 48+ else
 49+ {
 50+ var text = oEditor.GetData(parentOEditor.Config.FormatSource);
 51+ parentOEditor.SetHTML( text );
 52+ }
 53+ }
 54+ window.opener.document.getElementById( FCKURLParams[ 'el' ] ).value = oEditor.GetData( true ) ; // "true" means you want it formatted.
 55+ }
 56+ window.opener.focus() ;
 57+ window.close() ;
 58+ return true;
 59+}
 60+
 61+function Cancel()
 62+{
 63+ var oEditor = FCKeditorAPI.GetInstance( oFCKeditor.InstanceName ) ;
 64+ if ( oEditor.IsDirty() )
 65+ {
 66+ if ( !confirm( 'Are you sure you want to cancel? Your changes will be lost.' ) )
 67+ return ;
 68+ }
 69+
 70+ window.close() ;
 71+ return true;
 72+}
 73+
 74+ </script>
 75+</head>
 76+<body style="margin:0px 0px 10px;">
 77+ <table width="100%" cellspacing=0 cellpadding=0 height="100%">
 78+ <tr>
 79+ <td height="100%">
 80+ <div id="FCKdiv" style='width:100%;height:100%'></div>
 81+ <script type="text/javascript">
 82+document.write( '<input type="hidden" id="' + oFCKeditor.InstanceName + '" name="' + oFCKeditor.InstanceName + '" value="' + oFCKeditor._HTMLEncode( 'nic' ) + '" style="width:100%;display:none" />' ) ;
 83+
 84+popup.window.parent.FCK_sajax('wfSajaxWikiToHTML', [oFCKeditor.Value], function ( result ){
 85+ var FCKinput = document.getElementById( oFCKeditor.InstanceName );
 86+ FCKinput.value = (result.responseText);
 87+ document.getElementById( 'FCKdiv' ).innerHTML = oFCKeditor._GetConfigHtml() + oFCKeditor._GetIFrameHtml();
 88+});
 89+ </script>
 90+ </td>
 91+ </tr>
 92+ <tr valign="middle" height="40">
 93+ <td align="center" >
 94+ <input type="button" value="Ok" onclick="Ok();" style="width:120px" />
 95+ <input type="button" value="Cancel" onclick="Cancel();" />
 96+ </td>
 97+ </tr>
 98+ </table>
 99+</body>
 100+</html>
Property changes on: trunk/extensions/FCKeditor/FCKeditor.popup.html
___________________________________________________________________
Added: svn:eol-style
101101 + native
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/images/icon_math.gif
___________________________________________________________________
Added: svn:eol-style
102102 + native
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/images/icon_source.gif
___________________________________________________________________
Added: svn:eol-style
103103 + native
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/images/icon_signature.gif
___________________________________________________________________
Added: svn:eol-style
104104 + native
Index: trunk/extensions/FCKeditor/plugins/mediawiki/images/tb_icon_category.gif
@@ -1,2 +1,2 @@
2 -GIF89a��������!�,0��y�ʱ����A46gU���@Ng�X +GIF89a��������!�,0��y�ʱ����A46gU���@Ng�X
32 ������Gˇ��VL�MB���X;
\ No newline at end of file
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/images/tb_icon_category.gif
___________________________________________________________________
Added: svn:eol-style
43 + native
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/images/icon_html.gif
___________________________________________________________________
Added: svn:eol-style
54 + native
Index: trunk/extensions/FCKeditor/plugins/mediawiki/lang/en.js
@@ -1,89 +1,89 @@
2 -/*
3 - * MediaWiki FCKeditor plugin
4 - *
5 - * English language file.
6 - */
7 -
8 -FCKLang.wikiTabEdit = 'Edit';
9 -FCKLang.wikiTabManual = 'Manual';
10 -
11 -FCKLang.wikiBtnTemplate = 'Insert/Edit Template';
12 -FCKLang.wikiBtnReference = 'Insert/Edit Reference';
13 -FCKLang.wikiBtnReferences = 'Insert <references /> tag';
14 -FCKLang.wikiBtnFormula = 'Insert/Edit Formula';
15 -FCKLang.wikiBtnSpecial = 'Insert/Edit Special Tag';
16 -FCKLang.wikiBtnSourceCode = 'Insert/Edit Source Code';
17 -FCKLang.wikiBtnSignature = 'Insert signature';
18 -FCKLang.wikiCmdTemplate = 'Template Properties';
19 -FCKLang.wikiCmdReference = 'Reference Properties';
20 -FCKLang.wikiCmdFormula = 'Formula';
21 -FCKLang.wikiCmdCategories = 'Categories';
22 -FCKLang.wikiLoadingWikitext = 'Loading Wikitext. Please wait...';
23 -FCKLang.wikiLoadingCategories = 'loading categories...';
24 -FCKLang.wikiSearchCategory = 'Search category';
25 -FCKLang.wikiSelectedCategories = 'Selected categories';
26 -FCKLang.wikiBtnCategories = 'Insert/Edit categories';
27 -FCKLang.wikiAddNewCategory = 'Add new';
28 -FCKLang.wikiCategoryTree = 'Category tree';
29 -FCKLang.wikiMnuTemplate = 'Template Properties';
30 -FCKLang.wikiMnuMagicWord = 'Modify Magic Word';
31 -FCKLang.wikiMnuReference = 'Reference Properties';
32 -FCKLang.wikiMnuFormula = 'Edit Formula';
33 -FCKLang.wikiCmdSpecial = 'Special Tag Properties';
34 -FCKLang.wikiCmdSourceCode = 'Source Code Properties';
35 -FCKLang.wikiMnuSpecial = 'Special Tag Properties';
36 -FCKLang.wikiMnuSourceCode = 'Edit source code';
37 -FCKLang.wikiSourceCode = 'Source Code';
38 -FCKLang.wikiSourceLanguage = 'Source Language';
39 -
40 -FCKLang.wikiImgFileName = 'Image file name';
41 -FCKLang.wikiImgNotice1 = 'Image have to be uploded before';
42 -FCKLang.wikiImgNotice2 = 'use "Upload file" on the left side of the screen';
43 -FCKLang.wikiImgCaption = 'Caption';
44 -FCKLang.wikiImgType = 'Special Type';
45 -FCKLang.wikiImgTypeThumb = 'Thumbnail';
46 -FCKLang.wikiImgTypeFrame = 'Frame';
47 -FCKLang.wikiImgTypeBorder = 'Border';
48 -FCKLang.wikiImgAlignCenter = 'Center';
49 -
50 -FCKLang.wikiImgAutomatic = 'Automatic search results';
51 -FCKLang.wikiImgTooShort = 'too short... type more';
52 -FCKLang.wikiImgStartTyping = 'start typing in the above field';
53 -FCKLang.wikiImgStopTyping = 'stop typing to search';
54 -FCKLang.wikiImgSearching = 'searching...';
55 -FCKLang.wikiImgSearchNothing = 'no images found';
56 -FCKLang.wikiImgSearch1Found = 'one image found';
57 -FCKLang.wikiImgSearchSeveral = '%1 images found ';
58 -FCKLang.wikiImgSearchALot = '%1 images found ';
59 -
60 -FCKLang.wikiLnk = 'Link';
61 -FCKLang.wikiLnkAutomatic = 'Automatic search results';
62 -FCKLang.wikiLnkNoSearchAnchor = 'anchor link... no search for it';
63 -FCKLang.wikiLnkNoSearchMail = 'e-mail link... no search for it';
64 -FCKLang.wikiLnkNoSearchExt = 'external link... no search for it';
65 -FCKLang.wikiLnkTooShort = 'too short... type more';
66 -FCKLang.wikiLnkStartTyping = 'start typing in the above field';
67 -FCKLang.wikiLnkStopTyping = 'stop typing to search';
68 -FCKLang.wikiLnkSearching = 'searching...';
69 -FCKLang.wikiLnkSearchNothing = 'no articles found';
70 -FCKLang.wikiLnkSearch1Found = 'one article found';
71 -FCKLang.wikiLnkSearchSeveral = '%1 articles found';
72 -FCKLang.wikiLnkSearchALot = '%1 articles found';
73 -
74 -FCKLang.wikiTeX = 'Formula (TeX markup)';
75 -FCKLang.wikiTeXEmpty = 'Please type the formula';
76 -
77 -FCKLang.wikiSpTag = 'Current Special Tag';
78 -FCKLang.wikiSpParam = 'Special tag parameters';
79 -
80 -FCKLang.wikiRef = 'Reference text (Wikitext)';
81 -FCKLang.wikiRefName = 'Reference name (optional)';
82 -
83 -FCKLang.wikiTmpl = 'Template raw definition (from {{ to }})';
84 -FCKLang.wikiTmplEmpty = 'Templates must start with {{ and end with }}. Please check it.';
85 -FCKLang.wikiTmpsel = '(Pick up a template manual here)';
86 -
87 -FCKLang.wikiUnsupportedLanguage = 'Unsupported language: %1';
88 -
89 -FCKLang.DplHelp = 'DPL stands for Dynamic Page List, and allows to generate a formatted list of pages based on selection criteria. See %link for details';
90 -FCKLang.inputboxHelp = 'Inputbox allows to create a form for users to create new pages. The new pages edit box can be pre-loaded with any template. See %link for details';
 2+/*
 3+ * MediaWiki FCKeditor plugin
 4+ *
 5+ * English language file.
 6+ */
 7+
 8+FCKLang.wikiTabEdit = 'Edit';
 9+FCKLang.wikiTabManual = 'Manual';
 10+
 11+FCKLang.wikiBtnTemplate = 'Insert/Edit Template';
 12+FCKLang.wikiBtnReference = 'Insert/Edit Reference';
 13+FCKLang.wikiBtnReferences = 'Insert <references /> tag';
 14+FCKLang.wikiBtnFormula = 'Insert/Edit Formula';
 15+FCKLang.wikiBtnSpecial = 'Insert/Edit Special Tag';
 16+FCKLang.wikiBtnSourceCode = 'Insert/Edit Source Code';
 17+FCKLang.wikiBtnSignature = 'Insert signature';
 18+FCKLang.wikiCmdTemplate = 'Template Properties';
 19+FCKLang.wikiCmdReference = 'Reference Properties';
 20+FCKLang.wikiCmdFormula = 'Formula';
 21+FCKLang.wikiCmdCategories = 'Categories';
 22+FCKLang.wikiLoadingWikitext = 'Loading Wikitext. Please wait...';
 23+FCKLang.wikiLoadingCategories = 'loading categories...';
 24+FCKLang.wikiSearchCategory = 'Search category';
 25+FCKLang.wikiSelectedCategories = 'Selected categories';
 26+FCKLang.wikiBtnCategories = 'Insert/Edit categories';
 27+FCKLang.wikiAddNewCategory = 'Add new';
 28+FCKLang.wikiCategoryTree = 'Category tree';
 29+FCKLang.wikiMnuTemplate = 'Template Properties';
 30+FCKLang.wikiMnuMagicWord = 'Modify Magic Word';
 31+FCKLang.wikiMnuReference = 'Reference Properties';
 32+FCKLang.wikiMnuFormula = 'Edit Formula';
 33+FCKLang.wikiCmdSpecial = 'Special Tag Properties';
 34+FCKLang.wikiCmdSourceCode = 'Source Code Properties';
 35+FCKLang.wikiMnuSpecial = 'Special Tag Properties';
 36+FCKLang.wikiMnuSourceCode = 'Edit source code';
 37+FCKLang.wikiSourceCode = 'Source Code';
 38+FCKLang.wikiSourceLanguage = 'Source Language';
 39+
 40+FCKLang.wikiImgFileName = 'Image file name';
 41+FCKLang.wikiImgNotice1 = 'Image have to be uploded before';
 42+FCKLang.wikiImgNotice2 = 'use "Upload file" on the left side of the screen';
 43+FCKLang.wikiImgCaption = 'Caption';
 44+FCKLang.wikiImgType = 'Special Type';
 45+FCKLang.wikiImgTypeThumb = 'Thumbnail';
 46+FCKLang.wikiImgTypeFrame = 'Frame';
 47+FCKLang.wikiImgTypeBorder = 'Border';
 48+FCKLang.wikiImgAlignCenter = 'Center';
 49+
 50+FCKLang.wikiImgAutomatic = 'Automatic search results';
 51+FCKLang.wikiImgTooShort = 'too short... type more';
 52+FCKLang.wikiImgStartTyping = 'start typing in the above field';
 53+FCKLang.wikiImgStopTyping = 'stop typing to search';
 54+FCKLang.wikiImgSearching = 'searching...';
 55+FCKLang.wikiImgSearchNothing = 'no images found';
 56+FCKLang.wikiImgSearch1Found = 'one image found';
 57+FCKLang.wikiImgSearchSeveral = '%1 images found ';
 58+FCKLang.wikiImgSearchALot = '%1 images found ';
 59+
 60+FCKLang.wikiLnk = 'Link';
 61+FCKLang.wikiLnkAutomatic = 'Automatic search results';
 62+FCKLang.wikiLnkNoSearchAnchor = 'anchor link... no search for it';
 63+FCKLang.wikiLnkNoSearchMail = 'e-mail link... no search for it';
 64+FCKLang.wikiLnkNoSearchExt = 'external link... no search for it';
 65+FCKLang.wikiLnkTooShort = 'too short... type more';
 66+FCKLang.wikiLnkStartTyping = 'start typing in the above field';
 67+FCKLang.wikiLnkStopTyping = 'stop typing to search';
 68+FCKLang.wikiLnkSearching = 'searching...';
 69+FCKLang.wikiLnkSearchNothing = 'no articles found';
 70+FCKLang.wikiLnkSearch1Found = 'one article found';
 71+FCKLang.wikiLnkSearchSeveral = '%1 articles found';
 72+FCKLang.wikiLnkSearchALot = '%1 articles found';
 73+
 74+FCKLang.wikiTeX = 'Formula (TeX markup)';
 75+FCKLang.wikiTeXEmpty = 'Please type the formula';
 76+
 77+FCKLang.wikiSpTag = 'Current Special Tag';
 78+FCKLang.wikiSpParam = 'Special tag parameters';
 79+
 80+FCKLang.wikiRef = 'Reference text (Wikitext)';
 81+FCKLang.wikiRefName = 'Reference name (optional)';
 82+
 83+FCKLang.wikiTmpl = 'Template raw definition (from {{ to }})';
 84+FCKLang.wikiTmplEmpty = 'Templates must start with {{ and end with }}. Please check it.';
 85+FCKLang.wikiTmpsel = '(Pick up a template manual here)';
 86+
 87+FCKLang.wikiUnsupportedLanguage = 'Unsupported language: %1';
 88+
 89+FCKLang.DplHelp = 'DPL stands for Dynamic Page List, and allows to generate a formatted list of pages based on selection criteria. See %link for details';
 90+FCKLang.inputboxHelp = 'Inputbox allows to create a form for users to create new pages. The new pages edit box can be pre-loaded with any template. See %link for details';
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/lang/en.js
___________________________________________________________________
Added: svn:eol-style
9191 + native
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/lang/sv.js
___________________________________________________________________
Added: svn:eol-style
9292 + native
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/lang/ko.js
___________________________________________________________________
Added: svn:eol-style
9393 + native
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/lang/pl.js
___________________________________________________________________
Added: svn:eol-style
9494 + native
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/lang/he.js
___________________________________________________________________
Added: svn:eol-style
9595 + native
Index: trunk/extensions/FCKeditor/plugins/mediawiki/dialogs/category.html
@@ -1,395 +1,395 @@
2 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 -<!--
4 - * FCKeditor - The text editor for Internet - http://www.fckeditor.net
5 - * Copyright (C) 2003-2007 Frederico Caldeira Knabben
6 - *
7 - * == BEGIN LICENSE ==
8 - *
9 - * Licensed under the terms of any of the following licenses at your
10 - * choice:
11 - *
12 - * - GNU General Public License Version 2 or later (the "GPL")
13 - * http://www.gnu.org/licenses/gpl.html
14 - *
15 - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
16 - * http://www.gnu.org/licenses/lgpl.html
17 - *
18 - * - Mozilla Public License Version 1.1 or later (the "MPL")
19 - * http://www.mozilla.org/MPL/MPL-1.1.html
20 - *
21 - * == END LICENSE ==
22 - *
23 - * Category dialog window.
24 -<html>
25 -<head>
26 -<title>Categories</title>
27 -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28 -<meta name="robots" content="noindex, nofollow" />
29 -<script type="text/javascript">
30 -var oEditor = window.parent.InnerDialogLoaded();
31 -var FCK = oEditor.FCK;
32 -var FCKLang = oEditor.FCKLang;
33 -var FCKConfig = oEditor.FCKConfig;
34 -var FCKRegexLib = oEditor.FCKRegexLib;
35 -var FCKTools = oEditor.FCKTools;
36 -var FCKBrowserInfo = oEditor.FCKBrowserInfo;
37 -var EditorDocument = oEditor.FCK.EditorDocument;
38 -
39 -document.write( '<script src="' + FCKConfig.BasePath + 'dialog/common/fck_dialog_common.js" type="text/javascript"><\/script>' );
40 -
41 -window.onload = function()
42 -{
43 - // Translate the dialog box texts.
44 - oEditor.FCKLanguageManager.TranslatePage( document );
45 -
46 - // Load the selected link information (if any).
47 - InitSelected();
48 - SetSearchMessage( FCKLang.wikiLoadingCategories || 'loading categories...' );
49 - oEditor.window.parent.sajax_request_type = 'GET';
50 - oEditor.window.parent.sajax_do_call( 'wfSajaxSearchCategoryFCKeditor', [], InitCategoryTree );
51 -
52 - // Activate the "OK" button.
53 - window.parent.SetOkButton( true );
54 - window.parent.SetAutoSize( true );
55 -};
56 -
57 -var selectedCats;
58 -
59 -function InitSelected()
60 -{
61 - selectedCats = new Array();
62 - var node = EditorDocument;
63 - while ( node )
64 - {
65 - if ( node.nodeType == 1 && node.tagName.toLowerCase() == 'a' )
66 - {
67 - // Get the actual Link href.
68 - var sHRef = node.getAttribute( '_fcksavedurl' );
69 - if ( sHRef == null )
70 - sHRef = node.getAttribute( 'href', 2 ) || '';
71 - if ( sHRef.StartsWith( 'Category:' ) )
72 - {
73 - var select = GetE( 'xCategories' );
74 - var cat = sHRef.slice( 9 );
75 - SelectCategory( cat, -1 );
76 - }
77 - }
78 - node = FCKTools.GetNextNode( node, EditorDocument );
79 - }
80 -}
81 -
82 -function SelectCategory( cat, catTreeRow )
83 -{
84 - var select, row = parseInt( catTreeRow );
85 - if ( row >= 0 )
86 - {
87 - select = GetE( 'xWikiResults' );
88 - cat = select.options[ row ].text;
89 - var lvl = 0;
90 - while ( cat.charAt( lvl ) == placeholder )
91 - lvl++;
92 - cat = cat.slice( lvl );
93 - if ( cat.charAt( 0 ) == '[' && cat.charAt( cat.length - 1 ) == ']' )
94 - cat = cat.substring( 1, cat.length - 1 );
95 - }
96 -
97 - if ( selectedCats[ cat ] )
98 - delete selectedCats[ cat ];
99 - else
100 - selectedCats[ cat ] = cat;
101 -
102 - select = GetE( 'xCategories' );
103 -
104 - while ( select.options.length > 0 )
105 - select.remove( 0 );
106 -
107 - for ( cat in selectedCats )
108 - FCKTools.AddSelectOption( select, cat, cat );
109 -}
110 -
111 -var catTree;
112 -
113 -function InitCategoryTree( result )
114 -{
115 - SetSearchMessage( FCKLang.wikiLnkStartTyping || 'start typing in the above field' );
116 -
117 - catTree = new Object();
118 - var levelsHead = new Array( 'root' );
119 - var levelsBody = new Array( '' );
120 -
121 - var results = result.responseText.Trim().split( '\n' );
122 - var previousLvl = -1;
123 - for ( var i = 0 ; i < results.length ; i++ )
124 - {
125 - var lvl = 0;
126 - while ( results[ i ].charAt( lvl ) == ' ' )
127 - lvl++;
128 - var t = results[ i ].slice( lvl );
129 - for ( var j = previousLvl ; j > lvl - 1 ; j-- )
130 - {
131 -
132 - if ( levelsBody[ j + 1 ] != '' )
133 - catTree[ levelsHead[ j + 1 ] ] = levelsBody[ j + 1 ];
134 - delete levelsHead[ j + 1 ];
135 - delete levelsBody[ j + 1 ];
136 - }
137 - if ( lvl > previousLvl )
138 - levelsBody[ lvl ] = t;
139 - else
140 - levelsBody[ lvl ] = levelsBody[ lvl ] + ' ' + t;
141 - levelsHead[ lvl + 1 ] = t;
142 - levelsBody[ lvl + 1 ] = '';
143 - previousLvl = lvl;
144 - }
145 - for ( var j = previousLvl ; j >= -1 ; j-- )
146 - {
147 - if ( levelsBody[ j + 1 ] != '' )
148 - catTree[ levelsHead[ j + 1 ] ] = levelsBody[ j + 1 ];
149 - delete levelsHead[ j + 1 ];
150 - delete levelsBody[ j + 1 ];
151 - }
152 -
153 - ShowCategoriesSubTree( -1 );
154 -}
155 -
156 -var placeholder = '.';
157 -
158 -//draw category subtree
159 -function ShowCategoriesSubTree( rowInTree )
160 -{
161 - var row = parseInt( rowInTree );
162 - var select = GetE( 'xWikiResults' );
163 - var root = 'root';
164 - var lvl = -1;
165 - var prefix = '';
166 - if ( row >= 0 )
167 - {
168 - root = select.options[ row ].text;
169 - lvl = 0;
170 - while ( root.charAt( lvl ) == placeholder )
171 - lvl++;
172 - root = root.slice( lvl );
173 - if ( root.charAt( 0 ) == '[' && root.charAt( root.length - 1 ) == ']' )
174 - root = root.substring( 1, root.length - 1 );
175 - prefix = new Array( lvl + 1 + 3 ).join( placeholder );
176 - }
177 - if ( !catTree[ root ] )
178 - return;
179 -
180 - var itCount = select.options.length;
181 - var itSkip = row + 1;
182 - var opts = new Array();
183 - for ( var i = row + 1 ; i < itCount ; i++ )
184 - {
185 - var t = select.options[ i ].text;
186 - var sublvl = 0;
187 - while ( t.charAt( sublvl ) == placeholder )
188 - sublvl++;
189 - if ( sublvl > lvl )
190 - itSkip = i + 1;
191 - else
192 - break;
193 - }
194 - for ( var i = itCount - 1 ; i > row ; i-- )
195 - {
196 - var t = select.options[ i ].text;
197 - if ( i >= itSkip )
198 - opts.push( t );
199 - select.remove( i );
200 - }
201 - if ( itSkip == row + 1 )
202 - {
203 - var cats = catTree[ root ].split( ' ' );
204 -
205 - for ( var k in cats )
206 - {
207 - var p = cats[ k ];
208 - if ( catTree[ cats[ k ] ] )
209 - p = '[' + p + ']';
210 - var e = FCKTools.AddSelectOption( select, prefix + p, ++row );
211 - if ( catTree[ cats[ k ] ] )
212 - e.style.color = '#00f';
213 -
214 - }
215 - }
216 - for ( var i = opts.length - 1 ; i >= 0 ; i-- )
217 - {
218 - var e = FCKTools.AddSelectOption( select, opts[ i ], ++row );
219 - if ( opts[ i ].indexOf( '[' ) >= 0 )
220 - e.style.color = '#00f';
221 - }
222 -
223 -}
224 -
225 -//draw filtered
226 -function ShowFilteredCategories( filter )
227 -{
228 - var select = GetE( 'xWikiResults' );
229 - while ( select.options.length > 0 )
230 - select.remove( 0 );
231 - var found = new Object();
232 - if ( filter.length == 0 )
233 - {
234 - ShowCategoriesSubTree( -1 );
235 - return;
236 - }
237 - filter = filter.toLowerCase();
238 - var row = -1;
239 - for ( var folder in catTree )
240 - {
241 - var cats = catTree[ folder ].split( ' ' );
242 - for ( var k in cats )
243 - {
244 - var p = cats[ k ].toLowerCase();
245 - if ( p.indexOf( filter ) >= 0 )
246 - {
247 - if ( found[ cats[ k ] ] )
248 - ;
249 - else
250 - {
251 - found[ cats[ k ] ] = cats[ k ];
252 - FCKTools.AddSelectOption( select, cats[ k ], ++row );
253 - }
254 - }
255 - }
256 - }
257 -}
258 -
259 -function AddNew()
260 -{
261 - var select = GetE( 'txtUrl' );
262 - if ( select.value.Trim() )
263 - SelectCategory( select.value, -1 );
264 - select.value = '';
265 -}
266 -
267 -//#### The OK button was hit.
268 -function Ok()
269 -{
270 - var nodes = new Array();
271 - var node = EditorDocument;
272 - var nodeNext;
273 - var s = '';
274 - var i = 0;
275 - while ( node )
276 - {
277 - nodeNext = FCKTools.GetNextNode( node, EditorDocument );
278 - if ( node.nodeType == 1 && node.tagName.toLowerCase() == 'a' )
279 - {
280 - // Get the actual Link href.
281 - var sHRef = node.getAttribute( '_fcksavedurl' );
282 - if ( sHRef == null )
283 - sHRef = node.getAttribute( 'href', 2 ) || '';
284 - if ( sHRef.StartsWith( 'Category:' ) )
285 - nodes[ i++ ] = node;
286 - }
287 - node = nodeNext;
288 - }
289 - for ( var i = 0 ; i < nodes.length ; i++ )
290 - nodes[ i ].parentNode.removeChild( nodes[ i ] );
291 -
292 - for ( var cat in selectedCats )
293 - AddCategoryLink( cat );
294 -
295 - CleanUpCategoryLinks();
296 -
297 - return true;
298 -}
299 -
300 -function CleanUpCategoryLinks()
301 -{
302 - var node = EditorDocument;
303 - var nodes = [];
304 - while ( node )
305 - {
306 - if ( node.nodeType == 1 && node.tagName.toLowerCase() == 'a' )
307 - {
308 - // Get the actual Link href.
309 - var sHRef = node.getAttribute( '_fcksavedurl' );
310 - if ( sHRef == null )
311 - sHRef = node.getAttribute( 'href', 2 ) || '';
312 - if ( sHRef.StartsWith( 'Category:' ) )
313 - nodes.push(node);
314 - }
315 - node = FCKTools.GetNextNode( node, EditorDocument );
316 - }
317 -
318 - for ( var i = 0; i < nodes.length ; i++ )
319 - EditorDocument.body.appendChild( nodes[i] );
320 -}
321 -
322 -function AddCategoryLink( cat )
323 -{
324 - var sUri = 'Category:' + cat;
325 - var sInnerHtml;
326 -
327 - // If no link is selected, create a new one (it may result in more than one link creation - #220).
328 - var aLinks = oEditor.FCK.CreateLink( sUri );
329 -
330 - // If no selection, no links are created, so use the uri as the link text (by dom, 2006-05-26)
331 - var aHasSelection = (aLinks.length > 0);
332 - if ( !aHasSelection )
333 - {
334 - sInnerHtml = sUri;
335 -
336 - var oLinkPathRegEx = new RegExp( "//?([^?\"']+)([?].*)?$" );
337 - var asLinkPath = oLinkPathRegEx.exec( sUri );
338 - if ( asLinkPath != null )
339 - sInnerHtml = asLinkPath[ 1 ]; // use matched path
340 -
341 - // Create a new (empty) anchor.
342 - aLinks = [ oEditor.FCK.InsertElement( 'a' ) ];
343 - }
344 -
345 - oEditor.FCKUndo.SaveUndoStep();
346 -
347 - for ( var i = 0 ; i < aLinks.length ; i++ )
348 - {
349 - oLink = aLinks[ i ];
350 -
351 - if ( aHasSelection )
352 - sInnerHtml = oLink.innerHTML; // Save the innerHTML (IE changes it if it is like an URL).
353 -
354 - oLink.href = sUri;
355 - SetAttribute( oLink, '_fcksavedurl', sUri );
356 -
357 - oLink.innerHTML = sInnerHtml; // Set (or restore) the innerHTML
358 - }
359 -
360 - return true;
361 -}
362 -
363 -//#### Called while the user types the URL.
364 -function OnUrlChange()
365 -{
366 - var link = GetE( 'txtUrl' ).value.Trim();
367 - ShowFilteredCategories( link );
368 - return;
369 -}
370 -
371 -function SetSearchMessage( message )
372 -{
373 - GetE( 'xWikiSearchStatus' ).innerHTML = message;
374 -}
375 -</script>
376 -</head>
377 -<body scroll="no" style="overflow: hidden">
378 -<div id="divInfo">
379 -<div id="divLinkTypeUrl"><span fcklang="wikiSelectedCategories">Selected categories</span><br />
380 -<select id="xCategories" size="10" style="width: 100%; height: 70px"
381 - ondblclick="SelectCategory( this.value,-1);">
382 -</select><br />
383 -<span fcklang="wikiSearchCategory">Search category</span><br />
384 -<input id="txtUrl" style="width: 76%" type="text"
385 - onkeyup="OnUrlChange();" /> <input id="btnNew" style="width: 22%"
386 - type="button" onclick="AddNew();" value="Add new" fcklang="wikiAddNewCategory"/> <br />
387 -<span fcklang="wikiCategoryTree">Category tree</span> (<span fcklang="wikiLnkStartTyping" id="xWikiSearchStatus">start typing in the
388 -above field</span>)<br />
389 -<select id="xWikiResults" size="10" style="width: 100%; height: 300px"
390 - onclick="ShowCategoriesSubTree( this.value );"
391 - ondblclick="SelectCategory('', this.value );">
392 -</select></div>
393 -</div>
394 -</body>
395 -</html>
 2+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 3+<!--
 4+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 5+ * Copyright (C) 2003-2007 Frederico Caldeira Knabben
 6+ *
 7+ * == BEGIN LICENSE ==
 8+ *
 9+ * Licensed under the terms of any of the following licenses at your
 10+ * choice:
 11+ *
 12+ * - GNU General Public License Version 2 or later (the "GPL")
 13+ * http://www.gnu.org/licenses/gpl.html
 14+ *
 15+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 16+ * http://www.gnu.org/licenses/lgpl.html
 17+ *
 18+ * - Mozilla Public License Version 1.1 or later (the "MPL")
 19+ * http://www.mozilla.org/MPL/MPL-1.1.html
 20+ *
 21+ * == END LICENSE ==
 22+ *
 23+ * Category dialog window.
 24+-->
 25+<html>
 26+<head>
 27+<title>Categories</title>
 28+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 29+<meta name="robots" content="noindex, nofollow" />
 30+<script type="text/javascript">
 31+var oEditor = window.parent.InnerDialogLoaded();
 32+var FCK = oEditor.FCK;
 33+var FCKLang = oEditor.FCKLang;
 34+var FCKConfig = oEditor.FCKConfig;
 35+var FCKRegexLib = oEditor.FCKRegexLib;
 36+var FCKTools = oEditor.FCKTools;
 37+var FCKBrowserInfo = oEditor.FCKBrowserInfo;
 38+var EditorDocument = oEditor.FCK.EditorDocument;
 39+
 40+document.write( '<script src="' + FCKConfig.BasePath + 'dialog/common/fck_dialog_common.js" type="text/javascript"><\/script>' );
 41+
 42+window.onload = function()
 43+{
 44+ // Translate the dialog box texts.
 45+ oEditor.FCKLanguageManager.TranslatePage( document );
 46+
 47+ // Load the selected link information (if any).
 48+ InitSelected();
 49+ SetSearchMessage( FCKLang.wikiLoadingCategories || 'loading categories...' );
 50+ oEditor.window.parent.sajax_request_type = 'GET';
 51+ oEditor.window.parent.sajax_do_call( 'wfSajaxSearchCategoryFCKeditor', [], InitCategoryTree );
 52+
 53+ // Activate the "OK" button.
 54+ window.parent.SetOkButton( true );
 55+ window.parent.SetAutoSize( true );
 56+};
 57+
 58+var selectedCats;
 59+
 60+function InitSelected()
 61+{
 62+ selectedCats = new Array();
 63+ var node = EditorDocument;
 64+ while ( node )
 65+ {
 66+ if ( node.nodeType == 1 && node.tagName.toLowerCase() == 'a' )
 67+ {
 68+ // Get the actual Link href.
 69+ var sHRef = node.getAttribute( '_fcksavedurl' );
 70+ if ( sHRef == null )
 71+ sHRef = node.getAttribute( 'href', 2 ) || '';
 72+ if ( sHRef.StartsWith( 'Category:' ) )
 73+ {
 74+ var select = GetE( 'xCategories' );
 75+ var cat = sHRef.slice( 9 );
 76+ SelectCategory( cat, -1 );
 77+ }
 78+ }
 79+ node = FCKTools.GetNextNode( node, EditorDocument );
 80+ }
 81+}
 82+
 83+function SelectCategory( cat, catTreeRow )
 84+{
 85+ var select, row = parseInt( catTreeRow );
 86+ if ( row >= 0 )
 87+ {
 88+ select = GetE( 'xWikiResults' );
 89+ cat = select.options[ row ].text;
 90+ var lvl = 0;
 91+ while ( cat.charAt( lvl ) == placeholder )
 92+ lvl++;
 93+ cat = cat.slice( lvl );
 94+ if ( cat.charAt( 0 ) == '[' && cat.charAt( cat.length - 1 ) == ']' )
 95+ cat = cat.substring( 1, cat.length - 1 );
 96+ }
 97+
 98+ if ( selectedCats[ cat ] )
 99+ delete selectedCats[ cat ];
 100+ else
 101+ selectedCats[ cat ] = cat;
 102+
 103+ select = GetE( 'xCategories' );
 104+
 105+ while ( select.options.length > 0 )
 106+ select.remove( 0 );
 107+
 108+ for ( cat in selectedCats )
 109+ FCKTools.AddSelectOption( select, cat, cat );
 110+}
 111+
 112+var catTree;
 113+
 114+function InitCategoryTree( result )
 115+{
 116+ SetSearchMessage( FCKLang.wikiLnkStartTyping || 'start typing in the above field' );
 117+
 118+ catTree = new Object();
 119+ var levelsHead = new Array( 'root' );
 120+ var levelsBody = new Array( '' );
 121+
 122+ var results = result.responseText.Trim().split( '\n' );
 123+ var previousLvl = -1;
 124+ for ( var i = 0 ; i < results.length ; i++ )
 125+ {
 126+ var lvl = 0;
 127+ while ( results[ i ].charAt( lvl ) == ' ' )
 128+ lvl++;
 129+ var t = results[ i ].slice( lvl );
 130+ for ( var j = previousLvl ; j > lvl - 1 ; j-- )
 131+ {
 132+
 133+ if ( levelsBody[ j + 1 ] != '' )
 134+ catTree[ levelsHead[ j + 1 ] ] = levelsBody[ j + 1 ];
 135+ delete levelsHead[ j + 1 ];
 136+ delete levelsBody[ j + 1 ];
 137+ }
 138+ if ( lvl > previousLvl )
 139+ levelsBody[ lvl ] = t;
 140+ else
 141+ levelsBody[ lvl ] = levelsBody[ lvl ] + ' ' + t;
 142+ levelsHead[ lvl + 1 ] = t;
 143+ levelsBody[ lvl + 1 ] = '';
 144+ previousLvl = lvl;
 145+ }
 146+ for ( var j = previousLvl ; j >= -1 ; j-- )
 147+ {
 148+ if ( levelsBody[ j + 1 ] != '' )
 149+ catTree[ levelsHead[ j + 1 ] ] = levelsBody[ j + 1 ];
 150+ delete levelsHead[ j + 1 ];
 151+ delete levelsBody[ j + 1 ];
 152+ }
 153+
 154+ ShowCategoriesSubTree( -1 );
 155+}
 156+
 157+var placeholder = '.';
 158+
 159+//draw category subtree
 160+function ShowCategoriesSubTree( rowInTree )
 161+{
 162+ var row = parseInt( rowInTree );
 163+ var select = GetE( 'xWikiResults' );
 164+ var root = 'root';
 165+ var lvl = -1;
 166+ var prefix = '';
 167+ if ( row >= 0 )
 168+ {
 169+ root = select.options[ row ].text;
 170+ lvl = 0;
 171+ while ( root.charAt( lvl ) == placeholder )
 172+ lvl++;
 173+ root = root.slice( lvl );
 174+ if ( root.charAt( 0 ) == '[' && root.charAt( root.length - 1 ) == ']' )
 175+ root = root.substring( 1, root.length - 1 );
 176+ prefix = new Array( lvl + 1 + 3 ).join( placeholder );
 177+ }
 178+ if ( !catTree[ root ] )
 179+ return;
 180+
 181+ var itCount = select.options.length;
 182+ var itSkip = row + 1;
 183+ var opts = new Array();
 184+ for ( var i = row + 1 ; i < itCount ; i++ )
 185+ {
 186+ var t = select.options[ i ].text;
 187+ var sublvl = 0;
 188+ while ( t.charAt( sublvl ) == placeholder )
 189+ sublvl++;
 190+ if ( sublvl > lvl )
 191+ itSkip = i + 1;
 192+ else
 193+ break;
 194+ }
 195+ for ( var i = itCount - 1 ; i > row ; i-- )
 196+ {
 197+ var t = select.options[ i ].text;
 198+ if ( i >= itSkip )
 199+ opts.push( t );
 200+ select.remove( i );
 201+ }
 202+ if ( itSkip == row + 1 )
 203+ {
 204+ var cats = catTree[ root ].split( ' ' );
 205+
 206+ for ( var k in cats )
 207+ {
 208+ var p = cats[ k ];
 209+ if ( catTree[ cats[ k ] ] )
 210+ p = '[' + p + ']';
 211+ var e = FCKTools.AddSelectOption( select, prefix + p, ++row );
 212+ if ( catTree[ cats[ k ] ] )
 213+ e.style.color = '#00f';
 214+
 215+ }
 216+ }
 217+ for ( var i = opts.length - 1 ; i >= 0 ; i-- )
 218+ {
 219+ var e = FCKTools.AddSelectOption( select, opts[ i ], ++row );
 220+ if ( opts[ i ].indexOf( '[' ) >= 0 )
 221+ e.style.color = '#00f';
 222+ }
 223+
 224+}
 225+
 226+//draw filtered
 227+function ShowFilteredCategories( filter )
 228+{
 229+ var select = GetE( 'xWikiResults' );
 230+ while ( select.options.length > 0 )
 231+ select.remove( 0 );
 232+ var found = new Object();
 233+ if ( filter.length == 0 )
 234+ {
 235+ ShowCategoriesSubTree( -1 );
 236+ return;
 237+ }
 238+ filter = filter.toLowerCase();
 239+ var row = -1;
 240+ for ( var folder in catTree )
 241+ {
 242+ var cats = catTree[ folder ].split( ' ' );
 243+ for ( var k in cats )
 244+ {
 245+ var p = cats[ k ].toLowerCase();
 246+ if ( p.indexOf( filter ) >= 0 )
 247+ {
 248+ if ( found[ cats[ k ] ] )
 249+ ;
 250+ else
 251+ {
 252+ found[ cats[ k ] ] = cats[ k ];
 253+ FCKTools.AddSelectOption( select, cats[ k ], ++row );
 254+ }
 255+ }
 256+ }
 257+ }
 258+}
 259+
 260+function AddNew()
 261+{
 262+ var select = GetE( 'txtUrl' );
 263+ if ( select.value.Trim() )
 264+ SelectCategory( select.value, -1 );
 265+ select.value = '';
 266+}
 267+
 268+//#### The OK button was hit.
 269+function Ok()
 270+{
 271+ var nodes = new Array();
 272+ var node = EditorDocument;
 273+ var nodeNext;
 274+ var s = '';
 275+ var i = 0;
 276+ while ( node )
 277+ {
 278+ nodeNext = FCKTools.GetNextNode( node, EditorDocument );
 279+ if ( node.nodeType == 1 && node.tagName.toLowerCase() == 'a' )
 280+ {
 281+ // Get the actual Link href.
 282+ var sHRef = node.getAttribute( '_fcksavedurl' );
 283+ if ( sHRef == null )
 284+ sHRef = node.getAttribute( 'href', 2 ) || '';
 285+ if ( sHRef.StartsWith( 'Category:' ) )
 286+ nodes[ i++ ] = node;
 287+ }
 288+ node = nodeNext;
 289+ }
 290+ for ( var i = 0 ; i < nodes.length ; i++ )
 291+ nodes[ i ].parentNode.removeChild( nodes[ i ] );
 292+
 293+ for ( var cat in selectedCats )
 294+ AddCategoryLink( cat );
 295+
 296+ CleanUpCategoryLinks();
 297+
 298+ return true;
 299+}
 300+
 301+function CleanUpCategoryLinks()
 302+{
 303+ var node = EditorDocument;
 304+ var nodes = [];
 305+ while ( node )
 306+ {
 307+ if ( node.nodeType == 1 && node.tagName.toLowerCase() == 'a' )
 308+ {
 309+ // Get the actual Link href.
 310+ var sHRef = node.getAttribute( '_fcksavedurl' );
 311+ if ( sHRef == null )
 312+ sHRef = node.getAttribute( 'href', 2 ) || '';
 313+ if ( sHRef.StartsWith( 'Category:' ) )
 314+ nodes.push(node);
 315+ }
 316+ node = FCKTools.GetNextNode( node, EditorDocument );
 317+ }
 318+
 319+ for ( var i = 0; i < nodes.length ; i++ )
 320+ EditorDocument.body.appendChild( nodes[i] );
 321+}
 322+
 323+function AddCategoryLink( cat )
 324+{
 325+ var sUri = 'Category:' + cat;
 326+ var sInnerHtml;
 327+
 328+ // If no link is selected, create a new one (it may result in more than one link creation - #220).
 329+ var aLinks = oEditor.FCK.CreateLink( sUri );
 330+
 331+ // If no selection, no links are created, so use the uri as the link text (by dom, 2006-05-26)
 332+ var aHasSelection = (aLinks.length > 0);
 333+ if ( !aHasSelection )
 334+ {
 335+ sInnerHtml = sUri;
 336+
 337+ var oLinkPathRegEx = new RegExp( "//?([^?\"']+)([?].*)?$" );
 338+ var asLinkPath = oLinkPathRegEx.exec( sUri );
 339+ if ( asLinkPath != null )
 340+ sInnerHtml = asLinkPath[ 1 ]; // use matched path
 341+
 342+ // Create a new (empty) anchor.
 343+ aLinks = [ oEditor.FCK.InsertElement( 'a' ) ];
 344+ }
 345+
 346+ oEditor.FCKUndo.SaveUndoStep();
 347+
 348+ for ( var i = 0 ; i < aLinks.length ; i++ )
 349+ {
 350+ oLink = aLinks[ i ];
 351+
 352+ if ( aHasSelection )
 353+ sInnerHtml = oLink.innerHTML; // Save the innerHTML (IE changes it if it is like an URL).
 354+
 355+ oLink.href = sUri;
 356+ SetAttribute( oLink, '_fcksavedurl', sUri );
 357+
 358+ oLink.innerHTML = sInnerHtml; // Set (or restore) the innerHTML
 359+ }
 360+
 361+ return true;
 362+}
 363+
 364+//#### Called while the user types the URL.
 365+function OnUrlChange()
 366+{
 367+ var link = GetE( 'txtUrl' ).value.Trim();
 368+ ShowFilteredCategories( link );
 369+ return;
 370+}
 371+
 372+function SetSearchMessage( message )
 373+{
 374+ GetE( 'xWikiSearchStatus' ).innerHTML = message;
 375+}
 376+</script>
 377+</head>
 378+<body scroll="no" style="overflow: hidden">
 379+<div id="divInfo">
 380+<div id="divLinkTypeUrl"><span fcklang="wikiSelectedCategories">Selected categories</span><br />
 381+<select id="xCategories" size="10" style="width: 100%; height: 70px"
 382+ ondblclick="SelectCategory( this.value,-1);">
 383+</select><br />
 384+<span fcklang="wikiSearchCategory">Search category</span><br />
 385+<input id="txtUrl" style="width: 76%" type="text"
 386+ onkeyup="OnUrlChange();" /> <input id="btnNew" style="width: 22%"
 387+ type="button" onclick="AddNew();" value="Add new" fcklang="wikiAddNewCategory"/> <br />
 388+<span fcklang="wikiCategoryTree">Category tree</span> (<span fcklang="wikiLnkStartTyping" id="xWikiSearchStatus">start typing in the
 389+above field</span>)<br />
 390+<select id="xWikiResults" size="10" style="width: 100%; height: 300px"
 391+ onclick="ShowCategoriesSubTree( this.value );"
 392+ ondblclick="SelectCategory('', this.value );">
 393+</select></div>
 394+</div>
 395+</body>
 396+</html>
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/dialogs/category.html
___________________________________________________________________
Added: svn:eol-style
396397 + native
Index: trunk/extensions/FCKeditor/plugins/mediawiki/dialogs/source.html
@@ -1,137 +1,137 @@
2 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 -<!--
4 - * FCKeditor - The text editor for Internet - http://www.fckeditor.net
5 - * Copyright (C) 2003-2007 Frederico Caldeira Knabben
6 - *
7 - * == BEGIN LICENSE ==
8 - *
9 - * Licensed under the terms of any of the following licenses at your
10 - * choice:
11 - *
12 - * - GNU General Public License Version 2 or later (the "GPL")
13 - * http://www.gnu.org/licenses/gpl.html
14 - *
15 - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
16 - * http://www.gnu.org/licenses/lgpl.html
17 - *
18 - * - Mozilla Public License Version 1.1 or later (the "MPL")
19 - * http://www.mozilla.org/MPL/MPL-1.1.html
20 - *
21 - * == END LICENSE ==
22 - *
23 - * Link dialog window.
24 -<html>
25 -<head>
26 - <title>Source Properties</title>
27 - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28 - <meta name="robots" content="noindex, nofollow" />
29 - <script type="text/javascript">
30 -
31 -var oEditor = window.parent.InnerDialogLoaded() ;
32 -var FCK = oEditor.FCK ;
33 -var FCKLang = oEditor.FCKLang ;
34 -var FCKConfig = oEditor.FCKConfig ;
35 -var FCKRegexLib = oEditor.FCKRegexLib ;
36 -var FCKTools = oEditor.FCKTools ;
37 -
38 -document.write( '<script src="' + FCKConfig.BasePath + 'dialog/common/fck_dialog_common.js" type="text/javascript"><\/script>' ) ;
39 -
40 - </script>
41 - <script type="text/javascript">
42 -
43 -// Get the selected flash embed (if available).
44 -var oFakeImage = FCK.Selection.GetSelectedElement() ;
45 -var oSource ;
46 -
47 -if ( oFakeImage )
48 -{
49 - if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fck_mw_source') )
50 - {
51 - oSource = FCK.GetRealElement( oFakeImage ) ;
52 - }
53 - else
54 - {
55 - oFakeImage = null ;
56 - }
57 -}
58 -
59 -window.onload = function()
60 -{
61 - // Translate the dialog box texts.
62 - oEditor.FCKLanguageManager.TranslatePage(document) ;
63 -
64 - // Load the selected link information (if any).
65 - LoadSelection() ;
66 -
67 - // Activate the "OK" button.
68 - window.parent.SetOkButton( true ) ;
69 - window.parent.SetAutoSize( true ) ;
70 -}
71 -
72 -function LoadSelection()
73 -{
74 - if ( !oSource ) return ;
75 -
76 - GetE('xSourceText').value = FCKTools.HTMLDecode( oSource.innerHTML ).replace(/fckLR/g,'\r\n').replace( /&quot;/g, '"' );
77 - GetE('xSourceLang').value = oSource.getAttribute( 'lang' ) ;
78 -}
79 -
80 -//#### The OK button was hit.
81 -function Ok()
82 -{
83 - var supportedLanguages = ',abap,actionscript,actionscript3,ada,apache,applescript,apt_sources,asm,asp,autoit,avisynth,bash,basic4gl,bf,blitzbasic,bnf,boo,c,c_mac,caddcl,cadlisp,cfdg,cfm,cil,cobol,cpp,cpp-qt,csharp,css,d,delphi,diff,div,dos,dot,eiffel,email,fortran,freebasic,genero,gettext,glsl,gml,gnuplot,groovy,haskell,hq9plus,html4strict,idl,ini,inno,intercal,io,java,java5,javascript,kixtart,klonec,klonecpp,latex,lisp,lolcode,lotusformulas,lotusscript,lscript,lua,m68k,make,matlab,mirc,mpasm,mxml,mysql,nsis,objc,ocaml,ocaml-brief,oobas,oracle11,oracle8,pascal,per,perl,php,php-brief,pic16,pixelbender,plsql,povray,powershell,progress,prolog,providex,python,qbasic,rails,reg,robots,ruby,sas,scala,scheme,scilab,sdlbasic,smalltalk,smarty,sql,tcl,teraterm,text,thinbasic,tsql,typoscript,vb,vbnet,verilog,vhdl,vim,visualfoxpro,visualprolog,whitespace,winbatch,xml,xorg_conf,xpp,z80,';
84 -
85 - if ( !oSource )
86 - {
87 - oSource = FCK.EditorDocument.createElement( 'SPAN' ) ;
88 - oSource.className = 'fck_mw_source' ;
89 - }
90 -
91 - var sourceData = FCKTools.HTMLEncode(GetE('xSourceText').value.Trim().replace(/(\r\n|\n)/g, 'fckLR')).replace( /"/g, '&quot;' ) ;
92 - var lang = GetE('xSourceLang').value.Trim().toLowerCase();
93 -
94 - if ( lang.length && supportedLanguages.indexOf( ',' + lang + ',' ) == -1) {
95 - alert( (FCKLang.wikiUnsupportedLanguage || 'Unsupported language: %1').replace(/%1/, lang) );
96 - return false;
97 - }
98 -
99 - oSource.innerHTML = sourceData ;
100 - oSource.setAttribute( 'lang', lang ) ;
101 -
102 - if ( !oFakeImage )
103 - {
104 - oFakeImage = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__MWSource', oSource ) ;
105 - oFakeImage.setAttribute( '_fck_mw_source', 'true', 0 ) ;
106 - oFakeImage = FCK.InsertElement( oFakeImage ) ;
107 - }
108 -
109 - return true ;
110 -}
111 -
112 - </script>
113 -</head>
114 -<body style="overflow: hidden">
115 - <div id="divInfo">
116 - <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
117 - <tr>
118 - <td>
119 - <span fcklang="wikiSourceCode">Source Code</span>
120 - </td>
121 - </tr>
122 - <tr>
123 - <td height="100%">
124 - <textarea wrap=OFF id="xSourceText" style="width: 100%; height: 100%; font-family: Monospace"
125 - cols="50" rows="5"></textarea>
126 - </td>
127 - </tr>
128 - <tr>
129 - <td>
130 - <span fcklang="wikiSourceLanguage">Source Language</span><br />
131 - <input id="xSourceLang" type="text" size="15" />
132 - </td>
133 - </tr>
134 - </table>
135 - </div>
136 -</body>
137 -</html>
 2+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 3+<!--
 4+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 5+ * Copyright (C) 2003-2007 Frederico Caldeira Knabben
 6+ *
 7+ * == BEGIN LICENSE ==
 8+ *
 9+ * Licensed under the terms of any of the following licenses at your
 10+ * choice:
 11+ *
 12+ * - GNU General Public License Version 2 or later (the "GPL")
 13+ * http://www.gnu.org/licenses/gpl.html
 14+ *
 15+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 16+ * http://www.gnu.org/licenses/lgpl.html
 17+ *
 18+ * - Mozilla Public License Version 1.1 or later (the "MPL")
 19+ * http://www.mozilla.org/MPL/MPL-1.1.html
 20+ *
 21+ * == END LICENSE ==
 22+ *
 23+ * Link dialog window.
 24+-->
 25+<html>
 26+<head>
 27+ <title>Source Properties</title>
 28+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 29+ <meta name="robots" content="noindex, nofollow" />
 30+ <script type="text/javascript">
 31+
 32+var oEditor = window.parent.InnerDialogLoaded() ;
 33+var FCK = oEditor.FCK ;
 34+var FCKLang = oEditor.FCKLang ;
 35+var FCKConfig = oEditor.FCKConfig ;
 36+var FCKRegexLib = oEditor.FCKRegexLib ;
 37+var FCKTools = oEditor.FCKTools ;
 38+
 39+document.write( '<script src="' + FCKConfig.BasePath + 'dialog/common/fck_dialog_common.js" type="text/javascript"><\/script>' ) ;
 40+
 41+ </script>
 42+ <script type="text/javascript">
 43+
 44+// Get the selected flash embed (if available).
 45+var oFakeImage = FCK.Selection.GetSelectedElement() ;
 46+var oSource ;
 47+
 48+if ( oFakeImage )
 49+{
 50+ if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fck_mw_source') )
 51+ {
 52+ oSource = FCK.GetRealElement( oFakeImage ) ;
 53+ }
 54+ else
 55+ {
 56+ oFakeImage = null ;
 57+ }
 58+}
 59+
 60+window.onload = function()
 61+{
 62+ // Translate the dialog box texts.
 63+ oEditor.FCKLanguageManager.TranslatePage(document) ;
 64+
 65+ // Load the selected link information (if any).
 66+ LoadSelection() ;
 67+
 68+ // Activate the "OK" button.
 69+ window.parent.SetOkButton( true ) ;
 70+ window.parent.SetAutoSize( true ) ;
 71+}
 72+
 73+function LoadSelection()
 74+{
 75+ if ( !oSource ) return ;
 76+
 77+ GetE('xSourceText').value = FCKTools.HTMLDecode( oSource.innerHTML ).replace(/fckLR/g,'\r\n').replace( /&quot;/g, '"' );
 78+ GetE('xSourceLang').value = oSource.getAttribute( 'lang' ) ;
 79+}
 80+
 81+//#### The OK button was hit.
 82+function Ok()
 83+{
 84+ var supportedLanguages = ',abap,actionscript,actionscript3,ada,apache,applescript,apt_sources,asm,asp,autoit,avisynth,bash,basic4gl,bf,blitzbasic,bnf,boo,c,c_mac,caddcl,cadlisp,cfdg,cfm,cil,cobol,cpp,cpp-qt,csharp,css,d,delphi,diff,div,dos,dot,eiffel,email,fortran,freebasic,genero,gettext,glsl,gml,gnuplot,groovy,haskell,hq9plus,html4strict,idl,ini,inno,intercal,io,java,java5,javascript,kixtart,klonec,klonecpp,latex,lisp,lolcode,lotusformulas,lotusscript,lscript,lua,m68k,make,matlab,mirc,mpasm,mxml,mysql,nsis,objc,ocaml,ocaml-brief,oobas,oracle11,oracle8,pascal,per,perl,php,php-brief,pic16,pixelbender,plsql,povray,powershell,progress,prolog,providex,python,qbasic,rails,reg,robots,ruby,sas,scala,scheme,scilab,sdlbasic,smalltalk,smarty,sql,tcl,teraterm,text,thinbasic,tsql,typoscript,vb,vbnet,verilog,vhdl,vim,visualfoxpro,visualprolog,whitespace,winbatch,xml,xorg_conf,xpp,z80,';
 85+
 86+ if ( !oSource )
 87+ {
 88+ oSource = FCK.EditorDocument.createElement( 'SPAN' ) ;
 89+ oSource.className = 'fck_mw_source' ;
 90+ }
 91+
 92+ var sourceData = FCKTools.HTMLEncode(GetE('xSourceText').value.Trim().replace(/(\r\n|\n)/g, 'fckLR')).replace( /"/g, '&quot;' ) ;
 93+ var lang = GetE('xSourceLang').value.Trim().toLowerCase();
 94+
 95+ if ( lang.length && supportedLanguages.indexOf( ',' + lang + ',' ) == -1) {
 96+ alert( (FCKLang.wikiUnsupportedLanguage || 'Unsupported language: %1').replace(/%1/, lang) );
 97+ return false;
 98+ }
 99+
 100+ oSource.innerHTML = sourceData ;
 101+ oSource.setAttribute( 'lang', lang ) ;
 102+
 103+ if ( !oFakeImage )
 104+ {
 105+ oFakeImage = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__MWSource', oSource ) ;
 106+ oFakeImage.setAttribute( '_fck_mw_source', 'true', 0 ) ;
 107+ oFakeImage = FCK.InsertElement( oFakeImage ) ;
 108+ }
 109+
 110+ return true ;
 111+}
 112+
 113+ </script>
 114+</head>
 115+<body style="overflow: hidden">
 116+ <div id="divInfo">
 117+ <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
 118+ <tr>
 119+ <td>
 120+ <span fcklang="wikiSourceCode">Source Code</span>
 121+ </td>
 122+ </tr>
 123+ <tr>
 124+ <td height="100%">
 125+ <textarea wrap=OFF id="xSourceText" style="width: 100%; height: 100%; font-family: Monospace"
 126+ cols="50" rows="5"></textarea>
 127+ </td>
 128+ </tr>
 129+ <tr>
 130+ <td>
 131+ <span fcklang="wikiSourceLanguage">Source Language</span><br />
 132+ <input id="xSourceLang" type="text" size="15" />
 133+ </td>
 134+ </tr>
 135+ </table>
 136+ </div>
 137+</body>
 138+</html>
Property changes on: trunk/extensions/FCKeditor/plugins/mediawiki/dialogs/source.html
___________________________________________________________________
Added: svn:eol-style
138139 + native
Index: trunk/extensions/FCKeditor/css/fckeditor-rtl.css
@@ -1,232 +1,232 @@
2 -/*
3 -Right-to-left fixes for MonoBook.
4 -Places sidebar on right, tweaks various alignment issues.
5 -
6 -Works mostly ok nicely on Safari 1.2.1; fine in Mozilla.
7 -
8 -Safari bugs (1.2.1):
9 -* Tabs are still appearing in left-to-right order. (Try after localizing)
10 -
11 -Opera bugs (7.23 linux):
12 -* Some bits of ltr text (sidebar box titles) have forward and backward versions overlapping each other
13 -
14 -IE/mac bugs:
15 -* The thing barfs on Hebrew and Arabic anyway, so no point testing.
16 -
17 -Missing features due to lack of support:
18 -* external link icons
19 -
20 -To test:
21 -* Opera6
22 -* IE 5.0
23 -* etc
24 -
25 -*/
26 -body {
27 - direction: rtl;
28 - unicode-bidi: embed;
29 -}
30 -#column-content {
31 - margin: 0 -12.2em 0 0;
32 - float: left;
33 -}
34 -#column-content #content{
35 - margin-left: 0;
36 - margin-right: 12.2em;
37 - border-right: 1px solid #aaaaaa;
38 - border-left: none;
39 -}
40 -html > body .portlet {
41 - float: right;
42 - clear: right;
43 -}
44 -.editsection {
45 - float: left;
46 - margin-right: 5px;
47 - margin-left: 0; /* bug 9122: undo default LTR */
48 -}
49 -/* recover IEMac (might be fine with the float, but usually it's close to IE */
50 -*>body .portlet {
51 - float: none;
52 - clear: none;
53 -}
54 -.pBody {
55 - padding-right: 0.8em;
56 - padding-left: 0.5em;
57 -}
58 -
59 -/* Fix alignment */
60 -.documentByLine,
61 -.portletDetails,
62 -.portletMore,
63 -#p-personal {
64 - text-align: left;
65 -}
66 -
67 -div div.thumbcaption {
68 - text-align: right;
69 -}
70 -
71 -div.magnify,
72 -#p-logo {
73 - left: auto;
74 - right: 0;
75 -}
76 -#p-personal {
77 - left: auto;
78 - right: 0;
79 -}
80 -
81 -#p-cactions {
82 - left: auto;
83 - right: 11.5em;
84 - padding-left: 0;
85 - padding-right: 1em;
86 -}
87 -#p-cactions li {
88 - margin-left: 0.3em;
89 - margin-right: 0;
90 - float: right;
91 -}
92 -* html #p-cactions li a {
93 - display: block;
94 - padding-bottom: 0;
95 -}
96 -* html #p-cactions li a:hover {
97 - padding-bottom: 0.2em;
98 -}
99 -/* offsets to distinguish the tab groups */
100 -li#ca-talk {
101 - margin-right: auto;
102 - margin-left: 1.6em;
103 -}
104 -li#ca-watch,li#ca-unwatch {
105 - margin-right: 1.6em !important;
106 -}
107 -
108 -/* Fix margins for non-css2 browsers */
109 -/* top right bottom left */
110 -
111 -ul {
112 - margin-left: 0;
113 - margin-right: 1.5em;
114 -}
115 -ol {
116 - margin-left: 0;
117 - margin-right: 2.4em;
118 -}
119 -dd {
120 - margin-left: 0;
121 - margin-right: 1.6em;
122 -}
123 -#contentSub {
124 - margin-right: 1em;
125 - margin-left: 0;
126 -}
127 -.tocindent {
128 - margin-left: 0;
129 - margin-right: 2em;
130 -}
131 -div.tright, div.floatright, table.floatright {
132 - clear: none;
133 -}
134 -div.tleft, div.floatleft, table.floatleft {
135 - clear: left;
136 -}
137 -#p-personal li {
138 - margin-left: 0;
139 - margin-right: 1em;
140 -}
141 -
142 -li#ca-talk,
143 -li#ca-watch {
144 - margin-right: auto;
145 - margin-left: 1.6em;
146 -}
147 -
148 -#p-personal li {
149 - float: left;
150 -}
151 -/* Fix link icons */
152 -.external {
153 - padding: 0 !important;
154 - background: none !important;
155 -}
156 -#footer {
157 - clear: both;
158 -}
159 -* html #footer {
160 - margin-left: 0;
161 - margin-right: 13.6em;
162 - border-left: 0;
163 - border-right: 1px solid #fabd23;
164 -}
165 -* html #column-content {
166 - float: none;
167 - margin-left: 0;
168 - margin-right: 0;
169 -}
170 -* html #column-content #content {
171 - margin-left: 0;
172 - margin-top: 3em;
173 -}
174 -* html #column-one { right: 0; }
175 -
176 -/* js pref toc */
177 -
178 -#preftoc {
179 - margin-right: 1em;
180 -}
181 -
182 -.errorbox, .successbox, #preftoc li, .prefsection fieldset {
183 - float: right;
184 -}
185 -
186 -.prefsection {
187 - padding-right: 2em;
188 -}
189 -
190 -/* workaround for moz bug, displayed bullets on left side */
191 -
192 -#toc ul {
193 - text-align: right;
194 -}
195 -
196 -#toc ul ul {
197 - margin: 0 2em 0 0;
198 -}
199 -
200 -input#wpSave, input#wpDiff {
201 - margin-right: 0;
202 - margin-left: .33em;
203 -}
204 -
205 -#userlogin {
206 - float: right;
207 - margin: 0 0 1em 3em;
208 -}
209 -/* Convenience links to edit block and delete reasons */
210 -p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
211 - float: left;
212 -}
213 -
214 -.toggle {
215 - margin-left: 0em;
216 - margin-right: 2em;
217 -}
218 -table.filehistory th {
219 - text-align: right;
220 -}
221 -
222 -/**
223 - * Lists:
224 - * The following lines don't have a visible effect on non-Gecko browsers
225 - * They fix a problem ith Gecko browsers rendering lists to the right of
226 - * left-floated objects in an RTL layout.
227 - */
228 -html > body div#bodyContent ul {
229 - display: table;
230 -}
231 -html > body div#bodyContent ul#filetoc {
232 - display: block;
 2+/*
 3+Right-to-left fixes for MonoBook.
 4+Places sidebar on right, tweaks various alignment issues.
 5+
 6+Works mostly ok nicely on Safari 1.2.1; fine in Mozilla.
 7+
 8+Safari bugs (1.2.1):
 9+* Tabs are still appearing in left-to-right order. (Try after localizing)
 10+
 11+Opera bugs (7.23 linux):
 12+* Some bits of ltr text (sidebar box titles) have forward and backward versions overlapping each other
 13+
 14+IE/mac bugs:
 15+* The thing barfs on Hebrew and Arabic anyway, so no point testing.
 16+
 17+Missing features due to lack of support:
 18+* external link icons
 19+
 20+To test:
 21+* Opera6
 22+* IE 5.0
 23+* etc
 24+
 25+*/
 26+body {
 27+ direction: rtl;
 28+ unicode-bidi: embed;
 29+}
 30+#column-content {
 31+ margin: 0 -12.2em 0 0;
 32+ float: left;
 33+}
 34+#column-content #content{
 35+ margin-left: 0;
 36+ margin-right: 12.2em;
 37+ border-right: 1px solid #aaaaaa;
 38+ border-left: none;
 39+}
 40+html > body .portlet {
 41+ float: right;
 42+ clear: right;
 43+}
 44+.editsection {
 45+ float: left;
 46+ margin-right: 5px;
 47+ margin-left: 0; /* bug 9122: undo default LTR */
 48+}
 49+/* recover IEMac (might be fine with the float, but usually it's close to IE */
 50+*>body .portlet {
 51+ float: none;
 52+ clear: none;
 53+}
 54+.pBody {
 55+ padding-right: 0.8em;
 56+ padding-left: 0.5em;
 57+}
 58+
 59+/* Fix alignment */
 60+.documentByLine,
 61+.portletDetails,
 62+.portletMore,
 63+#p-personal {
 64+ text-align: left;
 65+}
 66+
 67+div div.thumbcaption {
 68+ text-align: right;
 69+}
 70+
 71+div.magnify,
 72+#p-logo {
 73+ left: auto;
 74+ right: 0;
 75+}
 76+#p-personal {
 77+ left: auto;
 78+ right: 0;
 79+}
 80+
 81+#p-cactions {
 82+ left: auto;
 83+ right: 11.5em;
 84+ padding-left: 0;
 85+ padding-right: 1em;
 86+}
 87+#p-cactions li {
 88+ margin-left: 0.3em;
 89+ margin-right: 0;
 90+ float: right;
 91+}
 92+* html #p-cactions li a {
 93+ display: block;
 94+ padding-bottom: 0;
 95+}
 96+* html #p-cactions li a:hover {
 97+ padding-bottom: 0.2em;
 98+}
 99+/* offsets to distinguish the tab groups */
 100+li#ca-talk {
 101+ margin-right: auto;
 102+ margin-left: 1.6em;
 103+}
 104+li#ca-watch,li#ca-unwatch {
 105+ margin-right: 1.6em !important;
 106+}
 107+
 108+/* Fix margins for non-css2 browsers */
 109+/* top right bottom left */
 110+
 111+ul {
 112+ margin-left: 0;
 113+ margin-right: 1.5em;
 114+}
 115+ol {
 116+ margin-left: 0;
 117+ margin-right: 2.4em;
 118+}
 119+dd {
 120+ margin-left: 0;
 121+ margin-right: 1.6em;
 122+}
 123+#contentSub {
 124+ margin-right: 1em;
 125+ margin-left: 0;
 126+}
 127+.tocindent {
 128+ margin-left: 0;
 129+ margin-right: 2em;
 130+}
 131+div.tright, div.floatright, table.floatright {
 132+ clear: none;
 133+}
 134+div.tleft, div.floatleft, table.floatleft {
 135+ clear: left;
 136+}
 137+#p-personal li {
 138+ margin-left: 0;
 139+ margin-right: 1em;
 140+}
 141+
 142+li#ca-talk,
 143+li#ca-watch {
 144+ margin-right: auto;
 145+ margin-left: 1.6em;
 146+}
 147+
 148+#p-personal li {
 149+ float: left;
 150+}
 151+/* Fix link icons */
 152+.external {
 153+ padding: 0 !important;
 154+ background: none !important;
 155+}
 156+#footer {
 157+ clear: both;
 158+}
 159+* html #footer {
 160+ margin-left: 0;
 161+ margin-right: 13.6em;
 162+ border-left: 0;
 163+ border-right: 1px solid #fabd23;
 164+}
 165+* html #column-content {
 166+ float: none;
 167+ margin-left: 0;
 168+ margin-right: 0;
 169+}
 170+* html #column-content #content {
 171+ margin-left: 0;
 172+ margin-top: 3em;
 173+}
 174+* html #column-one { right: 0; }
 175+
 176+/* js pref toc */
 177+
 178+#preftoc {
 179+ margin-right: 1em;
 180+}
 181+
 182+.errorbox, .successbox, #preftoc li, .prefsection fieldset {
 183+ float: right;
 184+}
 185+
 186+.prefsection {
 187+ padding-right: 2em;
 188+}
 189+
 190+/* workaround for moz bug, displayed bullets on left side */
 191+
 192+#toc ul {
 193+ text-align: right;
 194+}
 195+
 196+#toc ul ul {
 197+ margin: 0 2em 0 0;
 198+}
 199+
 200+input#wpSave, input#wpDiff {
 201+ margin-right: 0;
 202+ margin-left: .33em;
 203+}
 204+
 205+#userlogin {
 206+ float: right;
 207+ margin: 0 0 1em 3em;
 208+}
 209+/* Convenience links to edit block and delete reasons */
 210+p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
 211+ float: left;
 212+}
 213+
 214+.toggle {
 215+ margin-left: 0em;
 216+ margin-right: 2em;
 217+}
 218+table.filehistory th {
 219+ text-align: right;
 220+}
 221+
 222+/**
 223+ * Lists:
 224+ * The following lines don't have a visible effect on non-Gecko browsers
 225+ * They fix a problem ith Gecko browsers rendering lists to the right of
 226+ * left-floated objects in an RTL layout.
 227+ */
 228+html > body div#bodyContent ul {
 229+ display: table;
 230+}
 231+html > body div#bodyContent ul#filetoc {
 232+ display: block;
233233 }
\ No newline at end of file
Property changes on: trunk/extensions/FCKeditor/css/fckeditor-rtl.css
___________________________________________________________________
Added: svn:eol-style
234234 + native
Property changes on: trunk/extensions/Translate/scripts/populateFuzzy.php
___________________________________________________________________
Added: svn:eol-style
235235 + native
Property changes on: trunk/extensions/Translate/utils/MessageTable.php
___________________________________________________________________
Added: svn:eol-style
236236 + native
Property changes on: trunk/extensions/LocalisationUpdate/schema.sql
___________________________________________________________________
Added: svn:eol-style
237237 + native
Property changes on: trunk/extensions/LocalisationUpdate/uninstall.sql
___________________________________________________________________
Added: svn:eol-style
238238 + native
Property changes on: trunk/extensions/LocalisationUpdate/update.php
___________________________________________________________________
Added: svn:eol-style
239239 + native
Property changes on: trunk/extensions/LiquidThreads/classes/LqtDispatch.php
___________________________________________________________________
Added: svn:eol-style
240240 + native
Property changes on: trunk/extensions/SemanticForms/specials/SF_RunQuery.php
___________________________________________________________________
Added: svn:eol-style
241241 + native
Property changes on: trunk/extensions/DataTransfer/specials/DT_ImportCSV.php
___________________________________________________________________
Added: svn:eol-style
242242 + native
Property changes on: trunk/extensions/SemanticResultFormats/Outline/SRF_Outline.php
___________________________________________________________________
Added: svn:eol-style
243243 + native

Status & tagging log