Index: trunk/extensions/LiquidThreads/Lqt.i18n.php |
— | — | @@ -17,6 +17,8 @@ |
18 | 18 | 'lqt_newmessages' => 'New messages', |
19 | 19 | 'lqt_movethread' => 'Move thread to another page', |
20 | 20 | 'lqt_deletethread' => 'Delete or undelete thread', |
| 21 | + 'lqt_archive_month_annotation' => "from $1", |
| 22 | + 'lqt_archive_month_range_annotation' => 'between $1 and $2', |
21 | 23 | 'lqt_browse_archive_without_recent' => 'View archived threads', |
22 | 24 | 'lqt_browse_archive_with_recent' => 'older', |
23 | 25 | 'lqt_recently_archived' => 'Recently archived:', |
Index: trunk/extensions/LiquidThreads/LqtPages.php |
— | — | @@ -298,7 +298,14 @@ |
299 | 299 | |
300 | 300 | $this->datespan = $this->starti - $this->endi; |
301 | 301 | |
302 | | - $annotations[] = "from {$this->selstart->text()} to {$this->selend->text()}"; |
| 302 | + $formattedFrom = $this->formattedMonth($this->selstart->text()); |
| 303 | + $formattedTo = $this->formattedMonth($this->selend->text()); |
| 304 | + |
| 305 | + if( $this->datespan == 0 ) { |
| 306 | + $annotations[] = wfMsg('lqt_archive_month_annotation', $formattedFrom); |
| 307 | + } else { |
| 308 | + $annotations[] = wfMsg('lqt_archive_month_range_annotation', $formattedFrom, $formattedTo); |
| 309 | + } |
303 | 310 | } else if (isset($this->selstart)) { |
304 | 311 | $annotations[] = "after {$this->selstart->text()}"; |
305 | 312 | } else if (isset($this->selend)) { |