Index: trunk/extensions/SocialProfile/UserBoard/BoardBlast.js |
— | — | @@ -1,89 +1,90 @@ |
2 | | -function toggle_user(user_id){ |
3 | | - if ($D.hasClass("user-" + user_id ,'blast-friend-selected')){ |
4 | | - $D.replaceClass("user-" + user_id,'blast-friend-selected','blast-friend-unselected'); |
5 | | - }else if ($D.hasClass("user-" + user_id ,'blast-friend-unselected')){ |
6 | | - $D.replaceClass("user-" + user_id,'blast-friend-unselected','blast-friend-selected'); |
| 2 | +function toggle_user( user_id ){ |
| 3 | + if( YAHOO.util.Dom.hasClass( 'user-' + user_id, 'blast-friend-selected' ) ){ |
| 4 | + YAHOO.util.Dom.replaceClass( 'user-' + user_id, 'blast-friend-selected', 'blast-friend-unselected' ); |
| 5 | + } else if( YAHOO.util.Dom.hasClass( 'user-' + user_id, 'blast-friend-unselected' ) ){ |
| 6 | + YAHOO.util.Dom.replaceClass( 'user-' + user_id, 'blast-friend-unselected', 'blast-friend-selected' ); |
7 | 7 | } |
8 | 8 | |
9 | | - if ($D.hasClass("user-" + user_id ,'blast-foe-selected')){ |
10 | | - $D.replaceClass("user-" + user_id,'blast-foe-selected','blast-foe-unselected'); |
11 | | - }else if ($D.hasClass("user-" + user_id ,'blast-foe-unselected')){ |
12 | | - $D.replaceClass("user-" + user_id,'blast-foe-selected','blast-foe-unselected'); |
| 9 | + if( YAHOO.util.Dom.hasClass( 'user-' + user_id, 'blast-foe-selected' ) ){ |
| 10 | + YAHOO.util.Dom.replaceClass( 'user-' + user_id, 'blast-foe-selected', 'blast-foe-unselected' ); |
| 11 | + } else if( YAHOO.util.Dom.hasClass( 'user-' + user_id, 'blast-foe-unselected' ) ){ |
| 12 | + YAHOO.util.Dom.replaceClass( 'user-' + user_id, 'blast-foe-selected', 'blast-foe-unselected' ); |
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
16 | | -function toggle_type(method,on,off){ |
17 | | - list = $$( ((method==1)?off:on) ,'div','blast-friends-list') |
| 16 | +function toggle_type( method, on, off ){ |
| 17 | + list = YAHOO.util.Dom.getElementsByClassName( ( ( method == 1 ) ? off : on ), 'div', 'blast-friends-list' ); |
18 | 18 | |
19 | | - for(x=0;x<=list.length-1;x++){ |
| 19 | + for( x = 0; x <= list.length-1; x++ ){ |
20 | 20 | el = list[x]; |
21 | | - if($D.hasClass(el,on) || $D.hasClass(el,off)){ |
22 | | - if(method==1){ |
23 | | - $D.replaceClass(el,off,on); |
24 | | - }else{ |
25 | | - $D.replaceClass(el,on,off); |
| 21 | + if( YAHOO.util.Dom.hasClass( el, on ) || YAHOO.util.Dom.hasClass( el, off ) ){ |
| 22 | + if( method == 1 ){ |
| 23 | + YAHOO.util.Dom.replaceClass( el, off, on ); |
| 24 | + } else { |
| 25 | + YAHOO.util.Dom.replaceClass( el, on, off ); |
26 | 26 | } |
27 | 27 | } |
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | | -function toggle_friends(method){ |
32 | | - toggle_type(method,'blast-friend-selected','blast-friend-unselected') |
| 31 | +function toggle_friends( method ){ |
| 32 | + toggle_type( method, 'blast-friend-selected', 'blast-friend-unselected' ); |
33 | 33 | } |
34 | 34 | |
35 | | -function toggle_foes(method){ |
36 | | - toggle_type(method,'blast-foe-selected','blast-foe-unselected') |
| 35 | +function toggle_foes( method ){ |
| 36 | + toggle_type( method, 'blast-foe-selected', 'blast-foe-unselected' ); |
37 | 37 | } |
38 | 38 | |
39 | 39 | function select_all(){ |
40 | | - toggle_friends(1) |
41 | | - toggle_foes(1) |
| 40 | + toggle_friends( 1 ); |
| 41 | + toggle_foes( 1 ); |
42 | 42 | } |
43 | 43 | function unselect_all(){ |
44 | | - toggle_friends(0) |
45 | | - toggle_foes(0) |
| 44 | + toggle_friends( 0 ); |
| 45 | + toggle_foes( 0 ); |
46 | 46 | } |
47 | 47 | |
48 | 48 | submitted = 0; |
49 | | -function send_messages( ){ |
50 | | - if(submitted == 1) return 0; |
| 49 | +function send_messages(){ |
| 50 | + if( submitted == 1 ) |
| 51 | + return 0; |
51 | 52 | |
52 | 53 | submitted = 1 |
53 | 54 | selected = 0; |
54 | | - user_ids_to = ""; |
| 55 | + user_ids_to = ''; |
55 | 56 | |
56 | | - list = $$('blast-friend-selected','div','blast-friends-list') |
57 | | - for(x=0;x<=list.length-1;x++){ |
| 57 | + list = YAHOO.util.Dom.getElementsByClassName( 'blast-friend-selected', 'div', 'blast-friends-list' ); |
| 58 | + for( x = 0; x <= list.length-1; x++ ){ |
58 | 59 | el = list[x]; |
59 | 60 | selected++; |
60 | | - user_id = el.id.replace("user-",""); |
61 | | - user_ids_to += ((user_ids_to)?",":"") + user_id |
| 61 | + user_id = el.id.replace( 'user-', '' ); |
| 62 | + user_ids_to += ( ( user_ids_to ) ? ',' : '' ) + user_id; |
62 | 63 | } |
63 | 64 | |
64 | | - list = $$('blast-foe-selected','div','blast-friends-list') |
65 | | - for(x=0;x<=list.length-1;x++){ |
| 65 | + list = YAHOO.util.Dom.getElementsByClassName( 'blast-foe-selected', 'div', 'blast-friends-list' ); |
| 66 | + for( x = 0; x <= list.length-1; x++ ){ |
66 | 67 | el = list[x]; |
67 | 68 | selected++; |
68 | | - user_id = el.id.replace("user-",""); |
69 | | - user_ids_to += ((user_ids_to)?",":"") + user_id |
| 69 | + user_id = el.id.replace( 'user-', '' ); |
| 70 | + user_ids_to += ( ( user_ids_to ) ? ',' : '' ) + user_id; |
70 | 71 | } |
71 | 72 | |
72 | | - if(selected==0){ |
73 | | - alert("Please select at least one person"); |
| 73 | + if( selected == 0 ){ |
| 74 | + alert('Please select at least one person'); |
74 | 75 | submitted = 0; |
75 | 76 | return 0; |
76 | 77 | } |
77 | 78 | |
78 | | - if( !$("message").value ){ |
79 | | - alert("Please enter a message"); |
| 79 | + if( !document.getElementById('message').value ){ |
| 80 | + alert('Please enter a message'); |
80 | 81 | submitted = 0; |
81 | 82 | return 0; |
82 | 83 | } |
83 | 84 | |
84 | | - $("ids").value = user_ids_to; |
| 85 | + document.getElementById('ids').value = user_ids_to; |
85 | 86 | |
86 | 87 | document.blast.message.style.color = "#ccc"; |
87 | 88 | document.blast.message.readOnly = true; |
88 | | - $("blast-friends-list").innerHTML = 'Sending messages...'; |
| 89 | + document.getElementById('blast-friends-list').innerHTML = 'Sending messages...'; |
89 | 90 | document.blast.submit(); |
90 | 91 | } |
Index: trunk/extensions/SocialProfile/UserBoard/SpecialUserBoard.php |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | <?php |
3 | | -if ( ! defined( 'MEDIAWIKI' ) ) |
| 3 | +if ( !defined( 'MEDIAWIKI' ) ) |
4 | 4 | die(); |
5 | 5 | /** |
6 | 6 | * Display User Board messages for a user |
— | — | @@ -28,12 +28,12 @@ |
29 | 29 | * @param $params Mixed: parameter(s) passed to the page or null |
30 | 30 | */ |
31 | 31 | public function execute( $params ) { |
32 | | - global $wgUser, $wgOut, $wgRequest, $wgMemc, $wgScriptPath, $wgUserBoardScripts; |
| 32 | + global $wgUser, $wgOut, $wgRequest, $wgScriptPath, $wgUserBoardScripts; |
33 | 33 | |
34 | 34 | wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
35 | 35 | |
36 | 36 | // Add CSS |
37 | | - $wgOut->addStyle( '../..' . $wgUserBoardScripts . '/UserBoard.css' ); |
| 37 | + $wgOut->addExtensionStyle( $wgUserBoardScripts . '/UserBoard.css' ); |
38 | 38 | |
39 | 39 | $ub_messages_show = 25; |
40 | 40 | $user_name = $wgRequest->getVal( 'user' ); |
— | — | @@ -54,7 +54,8 @@ |
55 | 55 | /** |
56 | 56 | * If no user is set in the URL, we assume its the current user |
57 | 57 | */ |
58 | | - if ( !$user_name ) $user_name = $wgUser->getName(); |
| 58 | + if ( !$user_name ) |
| 59 | + $user_name = $wgUser->getName(); |
59 | 60 | $user_id = User::idFromName( $user_name ); |
60 | 61 | $user = Title::makeTitle( NS_USER, $user_name ); |
61 | 62 | $user_safe = str_replace( '&', '%26', $user_name ); |
— | — | @@ -110,47 +111,38 @@ |
111 | 112 | $output .= '<a href="' . $user->escapeFullURL() . '">< ' . wfMsg( 'userboard_backprofile', $user_name ) . '</a>'; |
112 | 113 | $output .= '</div>'; |
113 | 114 | $output .= "<script type=\"text/javascript\">/*<![CDATA[*/ |
114 | | - var _DELETE_CONFIRM = \"" . wfMsg( 'userboard_confirmdelete' ) . "\" |
| 115 | + var _DELETE_CONFIRM = \"" . wfMsg( 'userboard_confirmdelete' ) . "\"; |
115 | 116 | var posted = 0; |
116 | 117 | function send_message(){ |
117 | | - if(\$(\"message\").value && !posted){ |
| 118 | + if( document.getElementById('message').value && !posted ){ |
118 | 119 | posted = 1; |
119 | | - var url = \"index.php?action=ajax\"; |
120 | | - var pars = 'rs=wfSendBoardMessage&rsargs[]=' + encodeURIComponent(\$(\"user_name_to\").value) +'&rsargs[]=' + encodeURIComponent(\$(\"message\").value) + '&rsargs[]=' + \$(\"message_type\").value + '&rsargs[]={$per_page}' |
121 | | - |
122 | | - var callback = { |
123 | | - success: function(originalRequest){ |
| 120 | + encodedName = encodeURIComponent( document.getElementById('user_name_to').value ); |
| 121 | + encodedMsg = encodeURIComponent( document.getElementById('message').value ); |
| 122 | + sajax_request_type = 'POST'; |
| 123 | + sajax_do_call( 'wfSendBoardMessage', [ encodedName, encodedMsg, {$per_page} ], function( originalRequest ){ |
124 | 124 | posted = 0; |
125 | | - if(\$(\"user_name_from\").value){ //its a board to board |
126 | | - user_1 = \$(\"user_name_from\").value |
127 | | - user_2 = \$(\"user_name_to\").value |
| 125 | + if( document.getElementById('user_name_from').value ){ //its a board to board |
| 126 | + user_1 = document.getElementById('user_name_from').value; |
| 127 | + user_2 = document.getElementById('user_name_to').value; |
128 | 128 | } else { |
129 | | - user_1 = \$(\"user_name_to\").value |
130 | | - user_2 = \"\"; |
| 129 | + user_1 = document.getElementById('user_name_to').value; |
| 130 | + user_2 = ''; |
131 | 131 | } |
132 | | - //user_1 = escape(user_1); |
133 | | - //user_2 = escape(user_2); |
134 | | - var params = (user_2) ? '&conv=' + user_2 : ''; |
| 132 | + var params = ( user_2 ) ? '&conv=' + user_2 : ''; |
135 | 133 | var url = wgScriptPath + '/index.php?title=Special:UserBoard&user=' + user_1 + params; |
136 | 134 | window.location = url; |
137 | 135 | } |
138 | | - }; |
139 | | - var request = YAHOO.util.Connect.asyncRequest('POST', url, callback, pars); |
140 | | - |
| 136 | + ); |
141 | 137 | } |
142 | 138 | } |
143 | | - function delete_message(id){ |
| 139 | + |
| 140 | + function delete_message( id ){ |
144 | 141 | if( confirm( _DELETE_CONFIRM ) ){ |
145 | | - var url = \"index.php?action=ajax\"; |
146 | | - var pars = 'rs=wfDeleteBoardMessage&rsargs[]=' + id |
147 | | - var callback = { |
148 | | - success: function(originalRequest){ |
149 | | - window.location.reload(); |
150 | | - } |
151 | | - }; |
152 | | - var request = YAHOO.util.Connect.asyncRequest('POST', url, callback, pars); |
| 142 | + sajax_request_type = 'POST'; |
| 143 | + sajax_do_call( 'wfDeleteBoardMessage', [ id ], function( originalRequest ){ |
| 144 | + window.location.reload(); |
| 145 | + }); |
153 | 146 | } |
154 | | - |
155 | 147 | } |
156 | 148 | /*]]>*/</script>"; |
157 | 149 | |
— | — | @@ -246,7 +238,7 @@ |
247 | 239 | <textarea name="message" id="message" cols="63" rows="4"/></textarea> |
248 | 240 | |
249 | 241 | <div class="user-page-message-box-button"> |
250 | | - <input type="button" value="' . wfMsg( 'userboard_sendbutton' ) . '" class="site-button" onclick="javascript:send_message();"> |
| 242 | + <input type="button" value="' . wfMsg( 'userboard_sendbutton' ) . '" class="site-button" onclick="javascript:send_message();" /> |
251 | 243 | </div> |
252 | 244 | |
253 | 245 | </div>'; |
Index: trunk/extensions/SocialProfile/UserBoard/SpecialSendBoardBlast.php |
— | — | @@ -24,10 +24,10 @@ |
25 | 25 | * @param $params Mixed: parameter(s) passed to the page or null |
26 | 26 | */ |
27 | 27 | public function execute( $params ) { |
28 | | - global $wgRequest, $wgOut, $wgUser, $IP, $wgUserBoardScripts; |
| 28 | + global $wgRequest, $wgOut, $wgUser, $wgUserBoardScripts; |
29 | 29 | |
30 | 30 | // Add CSS & JS |
31 | | - $wgOut->addStyle( '../..' . $wgUserBoardScripts . '/BoardBlast.css' ); |
| 31 | + $wgOut->addExtensionStyle( $wgUserBoardScripts . '/BoardBlast.css' ); |
32 | 32 | $wgOut->addScriptFile( $wgUserBoardScripts . '/BoardBlast.js' ); |
33 | 33 | |
34 | 34 | wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
— | — | @@ -36,18 +36,18 @@ |
37 | 37 | |
38 | 38 | // This feature is available only to logged-in users. |
39 | 39 | if ( !$wgUser->isLoggedIn() ) { |
40 | | - $wgOut->setPageTitle( wfMsgForContent( 'boardblastlogintitle' ) ); |
41 | | - $output = wfMsgForContent( 'boardblastlogintext' ); |
| 40 | + $wgOut->setPageTitle( wfMsg( 'boardblastlogintitle' ) ); |
| 41 | + $output = wfMsg( 'boardblastlogintext' ); |
42 | 42 | $wgOut->addHTML( $output ); |
43 | 43 | return ''; |
44 | 44 | } |
45 | 45 | |
46 | 46 | if ( $wgRequest->wasPosted() ) { |
47 | | - $wgOut->setPagetitle( wfMsgForContent( 'messagesenttitle' ) ); |
| 47 | + $wgOut->setPageTitle( wfMsg( 'messagesenttitle' ) ); |
48 | 48 | $b = new UserBoard(); |
49 | 49 | |
50 | 50 | $count = 0; |
51 | | - $user_ids_to = explode( ",", $wgRequest->getVal( 'ids' ) ); |
| 51 | + $user_ids_to = explode( ',', $wgRequest->getVal( 'ids' ) ); |
52 | 52 | foreach ( $user_ids_to as $user_id ) { |
53 | 53 | $user = User::newFromId( $user_id ); |
54 | 54 | $user->loadFromId(); |
— | — | @@ -55,9 +55,9 @@ |
56 | 56 | $b->sendBoardMessage( $wgUser->getID(), $wgUser->getName(), $user_id, $user_name, $wgRequest->getVal( 'message' ), 1 ); |
57 | 57 | $count++; |
58 | 58 | } |
59 | | - $output .= wfMsgForContent( 'messagesentsuccess' ); |
| 59 | + $output .= wfMsg( 'messagesentsuccess' ); |
60 | 60 | } else { |
61 | | - $wgOut->setPagetitle( wfMsgForContent( 'boardblasttitle' ) ); |
| 61 | + $wgOut->setPageTitle( wfMsg( 'boardblasttitle' ) ); |
62 | 62 | $output .= $this->displayForm(); |
63 | 63 | } |
64 | 64 | |
— | — | @@ -76,29 +76,29 @@ |
77 | 77 | wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
78 | 78 | |
79 | 79 | $output = '<div class="board-blast-message-form"> |
80 | | - <h2>' . wfMsgForContent( 'boardblaststep1' ) . '</h2> |
| 80 | + <h2>' . wfMsg( 'boardblaststep1' ) . '</h2> |
81 | 81 | <form method="post" name="blast" action=""> |
82 | | - <input type="hidden" name="ids" id="ids"> |
| 82 | + <input type="hidden" name="ids" id="ids" /> |
83 | 83 | <div class="blast-message-text"> |
84 | | - ' . wfMsgForContent( 'boardblastprivatenote' ) . ' |
| 84 | + ' . wfMsg( 'boardblastprivatenote' ) . ' |
85 | 85 | </div> |
86 | 86 | <textarea name="message" id="message" cols="63" rows="4"/></textarea> |
87 | 87 | </form> |
88 | 88 | </div> |
89 | 89 | <div class="blast-nav"> |
90 | | - <h2>' . wfMsgForContent( 'boardblaststep2' ) . '</h2> |
| 90 | + <h2>' . wfMsg( 'boardblaststep2' ) . '</h2> |
91 | 91 | <div class="blast-nav-links"> |
92 | | - <a href="javascript:void(0);" onclick="javascript:select_all()">' . wfMsgForContent( 'boardlinkselectall' ) . '</a> - |
93 | | - <a href="javascript:void(0);" onclick="javascript:unselect_all()">' . wfMsgForContent( 'boardlinkunselectall' ) . '</a> '; |
| 92 | + <a href="javascript:void(0);" onclick="javascript:select_all()">' . wfMsg( 'boardlinkselectall' ) . '</a> - |
| 93 | + <a href="javascript:void(0);" onclick="javascript:unselect_all()">' . wfMsg( 'boardlinkunselectall' ) . '</a> '; |
94 | 94 | |
95 | 95 | if ( $stats_data['friend_count'] > 0 && $stats_data['foe_count'] > 0 ) { |
96 | | - $output .= '- <a href="javascript:void(0);" onclick="javascript:toggle_friends(1)">' . wfMsgForContent( 'boardlinkselectfriends' ) . '</a> -'; |
97 | | - $output .= '<a href="javascript:void(0);" onclick="javascript:toggle_friends(0)">' . wfMsgForContent( 'boardlinkunselectfriends' ) . '</a>'; |
| 96 | + $output .= '- <a href="javascript:void(0);" onclick="javascript:toggle_friends(1)">' . wfMsg( 'boardlinkselectfriends' ) . '</a> -'; |
| 97 | + $output .= '<a href="javascript:void(0);" onclick="javascript:toggle_friends(0)">' . wfMsg( 'boardlinkunselectfriends' ) . '</a>'; |
98 | 98 | } |
99 | 99 | |
100 | 100 | if ( $stats_data['foe_count'] > 0 && $stats_data['friend_count'] > 0 ) { |
101 | | - $output .= '- <a href="javascript:void(0);" onclick="javascript:toggle_foes(1)">' . wfMsgForContent( 'boardlinkselectfoes' ) . '</a> -'; |
102 | | - $output .= '<a href="javascript:void(0);" onclick="javascript:toggle_foes(0)">' . wfMsgForContent( 'boardlinkunselectfoes' ) . '</a>'; |
| 101 | + $output .= '- <a href="javascript:void(0);" onclick="javascript:toggle_foes(1)">' . wfMsg( 'boardlinkselectfoes' ) . '</a> -'; |
| 102 | + $output .= '<a href="javascript:void(0);" onclick="javascript:toggle_foes(0)">' . wfMsg( 'boardlinkunselectfoes' ) . '</a>'; |
103 | 103 | } |
104 | 104 | $output .= '</div> |
105 | 105 | </div>'; |
— | — | @@ -115,11 +115,12 @@ |
116 | 116 | $output .= "<div class=\"blast-" . ( ( $relationship['type'] == 1 ) ? 'friend' : 'foe' ) . "-unselected\" id=\"user-{$relationship["user_id"]}\" onclick=\"javascript:toggle_user({$relationship["user_id"]})\"> |
117 | 117 | {$relationship["user_name"]} |
118 | 118 | </div>"; |
119 | | - if ( $x == count( $relationships ) || $x != 1 && $x % $per_row == 0 ) $output .= '<div class="cleared"></div>'; |
| 119 | + if ( $x == count( $relationships ) || $x != 1 && $x % $per_row == 0 ) |
| 120 | + $output .= '<div class="cleared"></div>'; |
120 | 121 | $x++; |
121 | 122 | } |
122 | 123 | } else { |
123 | | - $output .= '<div>' . wfMsgForContent( 'boardnofriends' ) . '</div>'; |
| 124 | + $output .= '<div>' . wfMsg( 'boardnofriends' ) . '</div>'; |
124 | 125 | } |
125 | 126 | |
126 | 127 | $output .= '</div> |
— | — | @@ -127,7 +128,7 @@ |
128 | 129 | <div class="cleared"></div>'; |
129 | 130 | |
130 | 131 | $output .= '<div class="blast-message-box-button"> |
131 | | - <input type="button" value="' . wfMsgForContent( 'boardsendbutton' ) . '" class="site-button" onclick="javascript:send_messages();"> |
| 132 | + <input type="button" value="' . wfMsg( 'boardsendbutton' ) . '" class="site-button" onclick="javascript:send_messages();" /> |
132 | 133 | </div>'; |
133 | 134 | return $output; |
134 | 135 | } |
Index: trunk/extensions/SocialProfile/UserStats/UserStats.i18n.php |
— | — | @@ -620,17 +620,17 @@ |
621 | 621 | 'top-fans-monthly-points-link' => 'Pisteitä tässä kuussa', |
622 | 622 | 'top-fans-points' => 'pistettä', |
623 | 623 | 'top-fans-bad-field-title' => 'Ups!', |
624 | | - 'top-fans-stats-vote-count' => '{{PLURAL:$1|Ääni|Ääniä}}', |
| 624 | + 'top-fans-stats-vote-count' => '{{PLURAL:$1|ääni|ääniä}}', |
625 | 625 | 'top-fans-stats-monthly-winner-count' => '{{PLURAL:$1|kuukausittainen voitto|kuukausittaista voittoa}}', |
626 | 626 | 'top-fans-stats-weekly-winner-count' => '{{PLURAL:$1|viikottainen voitto|viikottaista voittoa}}', |
627 | 627 | 'top-fans-stats-edit-count' => '{{PLURAL:$1|muokkaus|muokkausta}}', |
628 | 628 | 'top-fans-stats-comment-count' => '{{PLURAL:$1|kommentti|kommenttia}}', |
629 | 629 | 'top-fans-stats-friends-count' => '{{PLURAL:$1|ystävä|ystävää}}', |
630 | 630 | 'top-fans-stats-foe-count' => '{{PLURAL:$1|vihollinen|vihollista}}', |
631 | | - 'top-fans-stats-opinions-published' => '{{PLURAL:$1|Julkaistu mielipide|Julkaistut mielipiteet}}', |
632 | | - 'top-fans-stats-opinions-created' => '{{PLURAL:$1|Mielipide|Mielipiteet}}', |
633 | | - 'top-fans-stats-comment-score-positive-rec' => '{{PLURAL:$1|Peukalo ylös|Peukalot ylös}}', |
634 | | - 'top-fans-stats-comment-score-negative-rec' => '{{PLURAL:$1|Peukalo alas|Peukalot alas}}', |
| 631 | + 'top-fans-stats-opinions-published' => '{{PLURAL:$1|julkaistu mielipide|julkaistua mielipidettä}}', |
| 632 | + 'top-fans-stats-opinions-created' => '{{PLURAL:$1|mielipide|mielipidettä}}', |
| 633 | + 'top-fans-stats-comment-score-positive-rec' => '{{PLURAL:$1|peukalo ylös|peukaloa ylös}}', |
| 634 | + 'top-fans-stats-comment-score-negative-rec' => '{{PLURAL:$1|peukalo alas|peukaloa alas}}', |
635 | 635 | 'top-fans-stats-gifts-rec-count' => '{{PLURAL:$1|saatu lahja|saatua lahjaa}}', |
636 | 636 | 'top-fans-stats-gifts-sent-count' => '{{PLURAL:$1|lähetetty lahja|lähetettyä lahjaa}}', |
637 | 637 | 'right-updatepoints' => 'Päivittää muokkausmääriä', |
Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php |
— | — | @@ -640,7 +640,7 @@ |
641 | 641 | $avatar_img = '<img src="' . $wgUploadPath . '/avatars/' . $avatar->getAvatarImage() . '" alt="" border="0" />'; |
642 | 642 | |
643 | 643 | // Chop down username that gets displayed |
644 | | - $user_name = substr( $friend['user_name'], 0, 9 ); |
| 644 | + $user_name = mb_substr( $friend['user_name'], 0, 9 ); |
645 | 645 | if ( $user_name != $friend['user_name'] ) $user_name .= '..'; |
646 | 646 | |
647 | 647 | $output .= "<a href=\"" . $user->escapeFullURL() . "\" title=\"{$friend["user_name"]}\" rel=\"nofollow\"> |
Index: trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php |
— | — | @@ -2967,7 +2967,6 @@ |
2968 | 2968 | /** Finnish (Suomi) |
2969 | 2969 | * @author Cimon Avaro |
2970 | 2970 | * @author Crt |
2971 | | - * @author Jack Phoenix |
2972 | 2971 | * @author Jack Phoenix <jack@countervandalism.net> |
2973 | 2972 | * @author Str4nd |
2974 | 2973 | */ |
— | — | @@ -2999,7 +2998,6 @@ |
3000 | 2999 | 'user-friends-title' => 'Ystävät', |
3001 | 3000 | 'user-foes-title' => 'Viholliset', |
3002 | 3001 | 'other-info-movies' => 'Elokuvat', |
3003 | | - 'other-info-tv' => 'tv', |
3004 | 3002 | 'other-info-music' => 'Musiikki', |
3005 | 3003 | 'other-info-books' => 'Kirjat', |
3006 | 3004 | 'other-info-video-games' => 'Videopelit', |
— | — | @@ -3073,7 +3071,6 @@ |
3074 | 3072 | 'user-profile-personal-websites' => 'Nettisivut', |
3075 | 3073 | 'user-profile-interests-entertainment' => 'Viihde', |
3076 | 3074 | 'user-profile-interests-movies' => 'Elokuvat', |
3077 | | - 'user-profile-interests-tv' => 'tv', |
3078 | 3075 | 'user-profile-interests-music' => 'Musiikki', |
3079 | 3076 | 'user-profile-interests-books' => 'Kirjat', |
3080 | 3077 | 'user-profile-interests-magazines' => 'Lehdet', |
Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.js |
— | — | @@ -34,7 +34,8 @@ |
35 | 35 | var oldHtml = ''; |
36 | 36 | |
37 | 37 | function showUploadFrame(){ |
38 | | - new YAHOO.widget.Effects.Show('upload-container'); |
| 38 | + document.getElementById( 'upload-container' ).style['display'] = 'block'; |
| 39 | + document.getElementById( 'upload-container' ).style['visibility'] = 'visible'; |
39 | 40 | } |
40 | 41 | |
41 | 42 | function uploadError( message ){ |
— | — | @@ -42,16 +43,19 @@ |
43 | 44 | document.getElementById('upload-frame-errors').innerHTML = message; |
44 | 45 | document.getElementById('imageUpload-frame').src = 'index.php?title=Special:MiniAjaxUpload&wpThumbWidth=75'; |
45 | 46 | |
46 | | - new YAHOO.widget.Effects.Show('upload-container'); |
| 47 | + document.getElementById( 'upload-container' ).style['display'] = 'block'; |
| 48 | + document.getElementById( 'upload-container' ).style['visibility'] = 'visible'; |
47 | 49 | } |
48 | 50 | |
49 | 51 | function textError( message ){ |
50 | | - document.getElementById('upload-frame-errors').innerHTML = message; |
51 | | - new YAHOO.widget.Effects.Show('upload-frame-errors'); |
| 52 | + document.getElementById( 'upload-frame-errors' ).innerHTML = message; |
| 53 | + document.getElementById( 'upload-frame-errors' ).style['display'] = 'block'; |
| 54 | + document.getElementById( 'upload-frame-errors' ).style['visibility'] = 'visible'; |
52 | 55 | } |
53 | 56 | |
54 | 57 | function completeImageUpload(){ |
55 | | - new YAHOO.widget.Effects.Hide('upload-frame-errors'); |
| 58 | + document.getElementById( 'upload-frame-errors' ).style['display'] = 'none'; |
| 59 | + document.getElementById( 'upload-frame-errors' ).style['visibility'] = 'hidden'; |
56 | 60 | document.getElementById('upload-frame-errors').innerHTML = ''; |
57 | 61 | oldHtml = document.getElementById('mini-gallery-' + replaceID).innerHTML; |
58 | 62 | |
— | — | @@ -60,11 +64,12 @@ |
61 | 65 | } |
62 | 66 | document.getElementById('mini-gallery-0').innerHTML = '<a><img height="75" width="75" src="http://images.wikia.com/common/wikiany/images/ajax-loader-white.gif" alt="" /></a>'; |
63 | 67 | |
64 | | - //new YAHOO.widget.Effects.Hide('mini-gallery-nopics'); |
65 | 68 | if( document.getElementById( 'no-pictures-containers' ) ) { |
66 | | - new YAHOO.widget.Effects.Hide( 'no-pictures-containers' ); |
| 69 | + document.getElementById( 'no-pictures-containers' ).style['display'] = 'none'; |
| 70 | + document.getElementById( 'no-pictures-containers' ).style['visibility'] = 'hidden'; |
67 | 71 | } |
68 | | - new YAHOO.widget.Effects.Show( 'pictures-containers' ); |
| 72 | + document.getElementById( 'pictures-containers' ).style['display'] = 'block'; |
| 73 | + document.getElementById( 'pictures-containers' ).style['visibility'] = 'visible'; |
69 | 74 | } |
70 | 75 | |
71 | 76 | function uploadComplete( imgSrc, imgName, imgDesc ){ |
Index: trunk/extensions/SocialProfile/UserRelationship/UserRelationship.js |
— | — | @@ -3,7 +3,8 @@ |
4 | 4 | * Used on Special:ViewRelationshipRequests |
5 | 5 | */ |
6 | 6 | function requestResponse( response, id ){ |
7 | | - YAHOO.widget.Effects.Hide( 'request_action_' + id ); |
| 7 | + document.getElementById( 'request_action_' + id ).style['display'] = 'none'; |
| 8 | + document.getElementById( 'request_action_' + id ).style['visibility'] = 'hidden'; |
8 | 9 | sajax_request_type = 'POST'; |
9 | 10 | sajax_do_call( 'wfRelationshipRequestResponse', [ response, id ], function( request ){ |
10 | 11 | document.getElementById( 'request_action_' + id ).innerHTML = request.responseText; |