X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FSample%2Fhello.php;h=dfbd0ad4f256ffa578a2a7cdde65a0e2cd4580de;hb=623faf9f2d83b8fd6134e77ad6f5dd1cedc7a5c1;hp=0cfd8a1c3e9d9eb7e3f33a7e1830cc7ef437db13;hpb=3f3d6905deb1f292d9f0c5aacb67b98bdfa100c5;p=quix0rs-gnu-social.git diff --git a/plugins/Sample/hello.php b/plugins/Sample/hello.php index 0cfd8a1c3e..dfbd0ad4f2 100644 --- a/plugins/Sample/hello.php +++ b/plugins/Sample/hello.php @@ -119,13 +119,15 @@ class HelloAction extends Action } /** - * show content in the content area + * Show content in the content area * * The default StatusNet page has a lot of decorations: menus, * logos, tabs, all that jazz. This method is used to show * content in the content area of the page; it's the main * thing you want to overload. * + * This method also demonstrates use of a plural localized string. + * * @return void */ @@ -138,7 +140,9 @@ class HelloAction extends Action $this->element('p', array('class' => 'greeting'), sprintf(_m('Hello, %s'), $this->user->nickname)); $this->element('p', array('class' => 'greeting_count'), - sprintf(_m('I have greeted you %d time(s).'), + sprintf(_m('I have greeted you %d time.', + 'I have greeted you %d times.', + $this->gc->greeting_count), $this->gc->greeting_count)); } }