summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-02 14:20:06 -0700
committerBrion Vibber <brion@pobox.com>2010-11-02 14:20:06 -0700
commit6a181bb12837f477dcaa13619024de2f984b7f20 (patch)
treefbbb04eb69d045c6aeffe45c608c7f27b8edab03 /actions/showstream.php
parent426cda5e1ffd365b6b8915e8d504c0a6672339d3 (diff)
Unrolled tagged vs untagged, page 1 vs page N message variants for showstream title. #2668
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php25
1 files changed, 15 insertions, 10 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index de66bc415..dd6c91b00 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -65,17 +65,22 @@ class ShowstreamAction extends ProfileAction
{
$base = $this->profile->getFancyName();
if (!empty($this->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);
- }
-
- if ($this->page == 1) {
- return $base;
+ 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.
+ 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 {
- // TRANS: Extended page title showing tagged notices in one user's stream. Param 1 is the main title clause; 2 is the page number.
- return sprintf(_('%1$s, page %2$d'),
- $base,
- $this->page);
+ if ($this->page == 1) {
+ return $base;
+ } else {
+ // 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'),
+ $base,
+ $this->page);
+ }
}
}