Index: trunk/extensions/CentralAuth/CentralAuth.php |
— | — | @@ -80,27 +80,37 @@ |
81 | 81 | if( $global->exists() ) { |
82 | 82 | if( $global->isAttached() ) { |
83 | 83 | // Local is attached... |
84 | | - $attached = count( $global->listAttached() ); // $attached var not used. |
| 84 | + $attached = count( $global->listAttached() ); |
85 | 85 | $unattached = count( $global->listUnattached() ); |
86 | 86 | if( $unattached ) { |
87 | 87 | // Migration incomplete |
88 | | - $message = $global->getId() . " $unattached wikis left to migrate"; |
| 88 | + $message = '<strong>' . wfMsgHtml( 'centralauth-prefs-migration' ) . '</strong>' . |
| 89 | + '<br />' . |
| 90 | + wfMsgHtml( 'centralauth-prefs-count-attached', $attached ) . |
| 91 | + '<br />' . |
| 92 | + wfMsgHtml( 'centralauth-prefs-count-unattached', $unattached ); |
89 | 93 | } else { |
90 | 94 | // Migration complete |
91 | | - $message = $global->getId() . " Migration complete"; |
| 95 | + $message = '<strong>' . wfMsgHtml( 'centralauth-prefs-complete' ) . '</strong>' . |
| 96 | + '<br />' . |
| 97 | + wfMsgHtml( 'centralauth-prefs-count-attached', $attached ); |
92 | 98 | } |
93 | 99 | } else { |
94 | 100 | // Account is in migration, but the local account is not attached |
95 | | - $message = "This wiki has not been verified to the unified account"; |
| 101 | + $message = '<strong>' . wfMsgHtml( 'centralauth-prefs-unattached' ) . '</strong>' . |
| 102 | + '<br />' . |
| 103 | + wfMsgHtml( 'centralauth-prefs-detail-unattached' ); |
96 | 104 | } |
97 | 105 | } else { |
98 | 106 | // Not migrated. |
99 | | - $message = "Not using unified account."; |
| 107 | + $message = wfMsgHtml( 'centralauth-prefs-not-managed' ); |
100 | 108 | } |
101 | 109 | |
102 | | - $html .= $prefsForm->addRow( |
103 | | - wfMsgHtml( 'centralauth-globalid' ), |
104 | | - $message . ' (' . $skin->makeKnownLinkObj( $special, 'merge your accounts' ) . ')' ); |
| 110 | + $manageLink = $skin->makeKnownLinkObj( $special, |
| 111 | + wfMsgHtml( 'centralauth-prefs-manage' ) ); |
| 112 | + $html .= $prefsForm->tableRow( |
| 113 | + wfMsgHtml( 'centralauth-prefs-status' ), |
| 114 | + "$message<br />($manageLink)" ); |
105 | 115 | return true; |
106 | 116 | } |
107 | 117 | |
Index: trunk/extensions/CentralAuth/CentralAuth.i18n.php |
— | — | @@ -93,8 +93,25 @@ |
94 | 94 | 'No accounts selected to modify.', |
95 | 95 | |
96 | 96 | // Info panel in preferences |
97 | | - 'centralauth-globalid' => |
98 | | - 'Unified account ID:', |
| 97 | + 'centralauth-prefs-status' => |
| 98 | + 'Global account status:', |
| 99 | + 'centralauth-prefs-not-managed' => |
| 100 | + 'Not using unified account', |
| 101 | + 'centralauth-prefs-unattached' => |
| 102 | + 'Unconfirmed', |
| 103 | + 'centralauth-prefs-complete' => |
| 104 | + 'All in order!', |
| 105 | + 'centralauth-prefs-migration' => |
| 106 | + 'In migration', |
| 107 | + 'centralauth-prefs-count-attached' => |
| 108 | + 'Your account is active on $1 project sites.', |
| 109 | + 'centralauth-prefs-count-unattached' => |
| 110 | + 'Unconfirmed accounts with your name remain on $1 projects.', |
| 111 | + 'centralauth-prefs-detail-unattached' => |
| 112 | + 'This project site has not been confirmed as belonging to the global account.', |
| 113 | + 'centralauth-prefs-manage' => |
| 114 | + 'Manage your global account', |
| 115 | + |
99 | 116 | ); |
100 | 117 | |
101 | 118 | $wgCentralAuthMessages['de'] = array( |
— | — | @@ -192,11 +209,6 @@ |
193 | 210 | 'Ungültige Auswahl', |
194 | 211 | 'centralauth-admin-none-selected' => |
195 | 212 | 'Es wurden keine zu ändernden Benutzerkonten ausgewählt.', |
196 | | - |
197 | | - // Info panel in preferences |
198 | | - 'centralauth-globalid' => |
199 | | - 'ID der zusammengeführten Benutzerkonten:', |
200 | | - |
201 | 213 | ); |
202 | 214 | |
203 | 215 | // Based on r18928 |
— | — | @@ -283,10 +295,6 @@ |
284 | 296 | 'Séparer sélection', |
285 | 297 | 'centralauth-admin-merge' => |
286 | 298 | 'Réunir sélection', |
287 | | - |
288 | | - // Info panel in preferences |
289 | | - 'centralauth-globalid' => |
290 | | - 'ID compte unifié :', |
291 | 299 | ); |
292 | 300 | |
293 | 301 | $wgCentralAuthMessages['he'] = array( |
— | — | @@ -333,9 +341,6 @@ |
334 | 342 | 'centralauth-admin-merge' => 'מיזוג החשבונות שנבחרו', |
335 | 343 | 'centralauth-admin-bad-input' => 'בחירה שגויה של מיזוג', |
336 | 344 | 'centralauth-admin-none-selected' => 'לא נבחרו חשבונות לשינוי.', |
337 | | - |
338 | | - # Info panel in preferences |
339 | | - 'centralauth-globalid' => 'מספר משתמש ממוזג:', |
340 | 345 | ); |
341 | 346 | |
342 | 347 | $wgCentralAuthMessages['id'] = array( |
— | — | @@ -422,10 +427,6 @@ |
423 | 428 | 'Pilihan penggabungan tak sah', |
424 | 429 | 'centralauth-admin-none-selected' => |
425 | 430 | 'Tidak ada akun yang dipilih untuk diubah.', |
426 | | - |
427 | | - // Info panel in preferences |
428 | | - 'centralauth-globalid' => |
429 | | - 'ID akun gabungan:', |
430 | 431 | ); |
431 | 432 | |
432 | 433 | $wgCentralAuthMessages['it'] = array( |
— | — | @@ -585,10 +586,6 @@ |
586 | 587 | 'Талғанғанды түйістірілеме', |
587 | 588 | 'centralauth-admin-merge' => |
588 | 589 | 'Талғанғанды түйістіріле', |
589 | | - |
590 | | - // Info panel in preferences |
591 | | - 'centralauth-globalid' => |
592 | | - 'Бірегейленген тіркелгі нөмірі:', |
593 | 590 | ); |
594 | 591 | |
595 | 592 | $wgCentralAuthMessages['kk-tr'] = array( |
— | — | @@ -675,10 +672,6 @@ |
676 | 673 | 'Talğanğandı tüýistirileme', |
677 | 674 | 'centralauth-admin-merge' => |
678 | 675 | 'Talğanğandı tüýistirile', |
679 | | - |
680 | | - // Info panel in preferences |
681 | | - 'centralauth-globalid' => |
682 | | - 'Biregeýlengen tirkelgi nömiri:', |
683 | 676 | ); |
684 | 677 | |
685 | 678 | $wgCentralAuthMessages['kk-cn'] = array( |
— | — | @@ -765,10 +758,6 @@ |
766 | 759 | 'تالعانعاندى تٷيٸستٸرٸلەمە', |
767 | 760 | 'centralauth-admin-merge' => |
768 | 761 | 'تالعانعاندى تٷيٸستٸرٸلە', |
769 | | - |
770 | | - // Info panel in preferences |
771 | | - 'centralauth-globalid' => |
772 | | - 'بٸرەگەيلەنگەن تٸركەلگٸ نٶمٸرٸ:', |
773 | 762 | ); |
774 | 763 | |
775 | 764 | $wgCentralAuthMessages['kk'] = $wgCentralAuthMessages['kk-kz']; |
— | — | @@ -868,7 +857,6 @@ |
869 | 858 | 'centralauth-admin-merge' => 'Smelt sammen valgte', |
870 | 859 | 'centralauth-admin-bad-input' => 'Ugyldig flettingsvalg', |
871 | 860 | 'centralauth-admin-none-selected' => 'Ingen kontoer valgt for endring.', |
872 | | - 'centralauth-globalid' => 'Sammensmeltet konto-ID:', |
873 | 861 | ); |
874 | 862 | |
875 | 863 | $wgCentralAuthMessages['oc'] = array( |
— | — | @@ -899,7 +887,6 @@ |
900 | 888 | 'centralauth-admin-permission' => 'Sols los stewards pòdon acampar los comptes d’autras personas a lor plaça.', |
901 | 889 | 'centralauth-admin-unmerge' => 'Separar la seleccion', |
902 | 890 | 'centralauth-admin-merge' => 'Acampar la seleccion', |
903 | | - 'centralauth-globalid' => 'ID compte unificat:', |
904 | 891 | ); |
905 | 892 | |
906 | 893 | $wgCentralAuthMessages['ru'] = array( |
— | — | @@ -986,10 +973,6 @@ |
987 | 974 | 'Разделить выбранные', |
988 | 975 | 'centralauth-admin-merge' => |
989 | 976 | 'Объединить выбранные', |
990 | | - |
991 | | - // Info panel in preferences |
992 | | - 'centralauth-globalid' => |
993 | | - 'Идентификатор единой учётной записи:', |
994 | 977 | ); |
995 | 978 | |
996 | 979 | $wgCentralAuthMessages['sk'] = array( |
— | — | @@ -1022,7 +1005,6 @@ |
1023 | 1006 | 'centralauth-admin-merge' => 'Zlúčenie zvolených', |
1024 | 1007 | 'centralauth-admin-bad-input' => 'Neplatný výber pre zlúčenie', |
1025 | 1008 | 'centralauth-admin-none-selected' => 'Neboli vybrané účty, ktoré sa majú zmeniť.', |
1026 | | - 'centralauth-globalid' => 'ID zjednoteného účtu:', |
1027 | 1009 | ); |
1028 | 1010 | |
1029 | 1011 | $wgCentralAuthMessages['sr-ec'] = array( |
— | — | @@ -1109,10 +1091,6 @@ |
1110 | 1092 | 'Одвоји селектоване', |
1111 | 1093 | 'centralauth-admin-merge' => |
1112 | 1094 | 'Споји селектоване', |
1113 | | - |
1114 | | - // Info panel in preferences |
1115 | | - 'centralauth-globalid' => |
1116 | | - 'Јединствен ID налога:', |
1117 | 1095 | ); |
1118 | 1096 | |
1119 | 1097 | $wgCentralAuthMessages['sr-el'] = array( |
— | — | @@ -1199,10 +1177,6 @@ |
1200 | 1178 | 'Odvoji selektovane', |
1201 | 1179 | 'centralauth-admin-merge' => |
1202 | 1180 | 'Spoji selektovane', |
1203 | | - |
1204 | | - // Info panel in preferences |
1205 | | - 'centralauth-globalid' => |
1206 | | - 'Jedinstven ID naloga:', |
1207 | 1181 | ); |
1208 | 1182 | |
1209 | 1183 | $wgCentralAuthMessages['pt'] = array( |
— | — | @@ -1293,10 +1267,6 @@ |
1294 | 1268 | 'Selecção para fusão inválida', |
1295 | 1269 | 'centralauth-admin-none-selected' => |
1296 | 1270 | 'Não foram seleccionadas contas a serem modificadas.', |
1297 | | - |
1298 | | - // Info panel in preferences |
1299 | | - 'centralauth-globalid' => |
1300 | | - 'ID de conta unificada:', |
1301 | 1271 | ); |
1302 | 1272 | |
1303 | 1273 | $wgCentralAuthMessages['pt-br'] = array( |
— | — | @@ -1388,10 +1358,6 @@ |
1389 | 1359 | 'Selecção para fusão inválida', |
1390 | 1360 | 'centralauth-admin-none-selected' => |
1391 | 1361 | 'Não foram seleccionadas contas a serem modificadas.', |
1392 | | - |
1393 | | - // Info panel in preferences |
1394 | | - 'centralauth-globalid' => |
1395 | | - 'ID de conta unificada:', |
1396 | 1362 | ); |
1397 | 1363 | |
1398 | 1364 | $wgCentralAuthMessages['de'] = array( |
— | — | @@ -1501,7 +1467,6 @@ |
1502 | 1468 | 'centralauth-admin-permission' => 'Nu bisa ngahijikeun rekening batur mah ngan steward.', |
1503 | 1469 | 'centralauth-admin-unmerge' => 'Pisahkeun nu dipilih', |
1504 | 1470 | 'centralauth-admin-merge' => 'Hijikeun nu dipilih', |
1505 | | - 'centralauth-globalid' => 'ID rekening gabungan:', |
1506 | 1471 | ); |
1507 | 1472 | |
1508 | 1473 | $wgCentralAuthMessages['zh-cn'] = array( |