forked from GNUsocial/gnu-social
Unrolled tagged vs untagged, page 1 vs page N message variants for showstream title. #2668
This commit is contained in:
parent
426cda5e1f
commit
6a181bb128
@ -65,19 +65,24 @@ class ShowstreamAction extends ProfileAction
|
|||||||
{
|
{
|
||||||
$base = $this->profile->getFancyName();
|
$base = $this->profile->getFancyName();
|
||||||
if (!empty($this->tag)) {
|
if (!empty($this->tag)) {
|
||||||
|
if ($this->page == 1) {
|
||||||
// TRANS: Page title showing tagged notices in one user's stream. Param 1 is the username, 2 is the hash tag.
|
// TRANS: Page title showing tagged notices in one user's stream. Param 1 is the username, 2 is the hash tag.
|
||||||
$base = sprintf(_('%1$s tagged %2$s'), $base, $this->tag);
|
return sprintf(_('%1$s tagged %2$s'), $base, $this->tag);
|
||||||
|
} else {
|
||||||
|
// TRANS: Page title showing tagged notices in one user's stream. Param 1 is the username, 2 is the hash tag, 3 is the page number.
|
||||||
|
return sprintf(_('%1$s tagged %2$s, page %3$d'), $base, $this->tag, $this->page);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
if ($this->page == 1) {
|
if ($this->page == 1) {
|
||||||
return $base;
|
return $base;
|
||||||
} else {
|
} else {
|
||||||
// TRANS: Extended page title showing tagged notices in one user's stream. Param 1 is the main title clause; 2 is the page number.
|
// TRANS: Extended page title showing tagged notices in one user's stream. Param 1 is the username, param 2 is the page number.
|
||||||
return sprintf(_('%1$s, page %2$d'),
|
return sprintf(_('%1$s, page %2$d'),
|
||||||
$base,
|
$base,
|
||||||
$this->page);
|
$this->page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function handle($args)
|
function handle($args)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user