X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FSample%2Fhello.php;h=da5682b332a0b4e6eadace042f393b725a049df5;hb=5eba1030ae39038b7b6b0aad5de1043fae43e48d;hp=a793ac6de2c98948a13c7268c7cad6312c85a446;hpb=42dd460d3b9aa9a8ad147d00de9b6c8e209ab4e9;p=quix0rs-gnu-social.git diff --git a/plugins/Sample/hello.php b/plugins/Sample/hello.php index a793ac6de2..da5682b332 100644 --- a/plugins/Sample/hello.php +++ b/plugins/Sample/hello.php @@ -108,8 +108,10 @@ class HelloAction extends Action function title() { if (empty($this->user)) { + // TRANS: Page title for sample plugin. return _m('Hello'); } else { + // TRANS: Page title for sample plugin. %s is a user nickname. return sprintf(_m('Hello, %s!'), $this->user->nickname); } } @@ -130,11 +132,15 @@ class HelloAction extends Action { if (empty($this->user)) { $this->element('p', array('class' => 'greeting'), + // TRANS: Message in sample plugin. _m('Hello, stranger!')); } else { $this->element('p', array('class' => 'greeting'), + // TRANS: Message in sample plugin. %s is a user nickname. sprintf(_m('Hello, %s'), $this->user->nickname)); $this->element('p', array('class' => 'greeting_count'), + // TRANS: Message in sample plugin. + // TRANS: %d is the number of times a user is greeted. sprintf(_m('I have greeted you %d time.', 'I have greeted you %d times.', $this->gc->greeting_count),