Use profile->getBestName() instead of more complex i18n unfriendly construction.
Update translator documentation. Number parameters where more than one is used. L10n updates. Update README file to break lines at or just before 80 characters. Remove PHP4-ism "?>" Update indentation. Update whitespace.
This commit is contained in:
@@ -61,11 +61,14 @@ class UsermapAction extends MapAction
|
||||
$base = $this->profile->getFancyName();
|
||||
|
||||
if ($this->page == 1) {
|
||||
// @todo CHECKME: inconsisten with paged variant below. " map" missing.
|
||||
return $base;
|
||||
// TRANS: Title for map widget.
|
||||
// TRANS: %s is a user name.
|
||||
return sprintf(_m('%s map'),$base);
|
||||
} else {
|
||||
// @todo CHECKME: Is the part ", page %2$d" relevant here?
|
||||
return sprintf(_m("%s map, page %d"),
|
||||
// TRANS: Title for map widget.
|
||||
// TRANS: %1$s is a user name, %2$d is a page nember.
|
||||
return sprintf(_m("%1$s map, page %2$d"),
|
||||
$base,
|
||||
$this->page);
|
||||
}
|
||||
|
Reference in New Issue
Block a user