]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Mapstraction/usermap.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / Mapstraction / usermap.php
index 0ee956159c92f8fa95de398ac7d826547e9a773b..99a43e538a5c81fb09ac551fec98b101450ba936 100644 (file)
@@ -58,19 +58,17 @@ class UsermapAction extends MapAction
 
     function title()
     {
-        if (!empty($this->profile->fullname)) {
-            // @todo FIXME: Bad i18n. Should be '%1$s (%2$s)'
-            $base = $this->profile->fullname . ' (' . $this->user->nickname . ')';
-        } else {
-            $base = $this->user->nickname;
-        }
+        $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);
         }