Index: trunk/extensions/Translate/TranslatePage.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | global $wgUser, $wgRequest; |
95 | 95 | |
96 | 96 | $defaults = array( |
97 | | - /* str */ 'task' => 'view', |
| 97 | + /* str */ 'task' => 'untranslated', |
98 | 98 | /* str */ 'sort' => 'normal', |
99 | 99 | /* str */ 'language' => $wgUser->getOption( 'language' ), |
100 | 100 | /* str */ 'group' => 'core', |
Index: trunk/extensions/Translate/README |
— | — | @@ -37,6 +37,8 @@ |
38 | 38 | * (bug 12955) Numbers should be localized in Translate extension |
39 | 39 | * Support branches for core messages |
40 | 40 | * fuzzy.php got support for --comment and --skiplanguages |
| 41 | +* untranslated is now the default task |
| 42 | +* truncate very long message names in table view |
41 | 43 | |
42 | 44 | == Changes in version 8 == |
43 | 45 | * Released 2008-02-06 |
Index: trunk/extensions/Translate/TranslateUtils.php |
— | — | @@ -240,10 +240,12 @@ |
241 | 241 | $original = $m->definition; |
242 | 242 | $message = $m->translation ? $m->translation : $original; |
243 | 243 | |
| 244 | + global $wgLang; |
| 245 | + $niceTitle = $wgLang->truncate( $key, -30, '…' ); |
244 | 246 | if( $m->pageExists ) { |
245 | | - $page['link'] = $sk->makeKnownLinkObj( $page['object'], htmlspecialchars( $key ) ); |
| 247 | + $page['link'] = $sk->makeKnownLinkObj( $page['object'], htmlspecialchars( $niceTitle ) ); |
246 | 248 | } else { |
247 | | - $page['link'] = $sk->makeBrokenLinkObj( $page['object'], htmlspecialchars( $key ) ); |
| 249 | + $page['link'] = $sk->makeBrokenLinkObj( $page['object'], htmlspecialchars( $niceTitle ) ); |
248 | 250 | } |
249 | 251 | if( $m->talkExists ) { |
250 | 252 | $talk['link'] = $sk->makeKnownLinkObj( $talk['object'], $uimsg['talk'] ); |