]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Unrolled tagged vs untagged, page 1 vs page N message variants for showstream title...
authorBrion Vibber <brion@pobox.com>
Tue, 2 Nov 2010 21:20:06 +0000 (14:20 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 2 Nov 2010 21:20:06 +0000 (14:20 -0700)
actions/showstream.php

index de66bc415aa0cf3c318264abddd6aca704d7e796..dd6c91b00481cdb7f5c907887d5b984bd7fa6f40 100644 (file)
@@ -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);
+            }
         }
     }