]> git.mxchange.org Git - friendica-addons.git/blobdiff - morepokes/morepokes.php
update membersince addon to version 1.1 since it does now support frio
[friendica-addons.git] / morepokes / morepokes.php
index bdbd7dcf3c3b019f2d63f3b31424adc660d9ac94..e0caaa5221c5a1435394d7c6c80e9f07a27bfa33 100644 (file)
@@ -6,33 +6,37 @@
  * Author: Thomas Willingham <https://kakste.com/profile/beardyunixer>
  *
  */
+use Friendica\Core\Addon;
+use Friendica\Core\L10n;
 
-function morepokes_install() {
-         register_hook('poke_verbs', 'addon/morepokes/morepokes.php', 'morepokes_poke_verbs');
+function morepokes_install()
+{
+         Addon::registerHook('poke_verbs', 'addon/morepokes/morepokes.php', 'morepokes_poke_verbs');
 }
 
-function morepokes_uninstall() {
-         unregister_hook('poke_verbs', 'addon/morepokes/morepokes.php', 'morepokes_poke_verbs');
+function morepokes_uninstall()
+{
+         Addon::unregisterHook('poke_verbs', 'addon/morepokes/morepokes.php', 'morepokes_poke_verbs');
 }
 
-function morepokes_poke_verbs($a,&$b) {
-       $b['bitchslap'] = array('bitchslapped', t('bitchslap'), t('bitchslapped'));
-       $b['shag'] = array('shag', t('shag'), t('shagged'));
-       $b['somethingobscenelybiological'] = array('something obscenely biological', t('do something obscenely biological to'), t('did something obscenely biological to'));
-       $b['newpokefeature'] = array('pointed out the new poke feature to', t('point out the new poke feature to'), t('pointed out the new poke feature to'));
-       $b['declareundyinglove'] = array('declared undying love for', t('declare undying love for'), t('declared undying love for'));
-       $b['setfireto'] = array('set fire to', t('set fire to'), t('set fire to'));
-       $b['patent'] = array('patented', t('patent'), t('patented'));
-       $b['strokebeard'] = array('stroked their beard at', t('stroke beard'), t('stroked their beard at'));
-       $b['bemoan'] = array('bemoaned the declining standards of modern secondary and tertiary education to', t('bemoan the declining standards of modern secondary and tertiary education to'), t('bemoans the declining standards of modern secondary and tertiary education to'));
-       $b['hugs'] = array('hugged', t('hug'), t('hugged'));
-       $b['kiss'] = array('kissed', t('kiss'), t('kissed'));
-       $b['raiseeyebrows'] = array('raised their eyebrows at', t('raise eyebrows at'), t('raised their eyebrows at'));
-       $b['insult'] = array('insulted', t('insult'), t('insulted'));
-       $b['praise'] = array('praised', t('praise'), t('praised'));
-       $b['bedubiousof'] = array('was dubious of', t('be dubious of'), t('was dubious of'));
-       $b['eat'] = array('ate', t('eat'), t('ate'));
-       $b['giggleandfawn'] = array('giggled and fawned at', t('giggle and fawn at'), t('giggled and fawned at'));
-       $b['doubt'] = array('doubted', t('doubt'), t('doubted'));
-       $b['glare'] = array('glared at', t('glare'), t('glared at'));
-;}
\ No newline at end of file
+function morepokes_poke_verbs($a, &$b)
+{
+       $b['bitchslap'] = ['bitchslapped', L10n::t('bitchslap'), L10n::t('bitchslapped')];
+       $b['shag'] = ['shag', L10n::t('shag'), L10n::t('shagged')];
+       $b['somethingobscenelybiological'] = ['something obscenely biological', L10n::t('do something obscenely biological to'), L10n::t('did something obscenely biological to')];
+       $b['newpokefeature'] = ['pointed out the poke feature to', L10n::t('point out the poke feature to'), L10n::t('pointed out the poke feature to')];
+       $b['declareundyinglove'] = ['declared undying love for', L10n::t('declare undying love for'), L10n::t('declared undying love for')];
+       $b['patent'] = ['patented', L10n::t('patent'), L10n::t('patented')];
+       $b['strokebeard'] = ['stroked their beard at', L10n::t('stroke beard'), L10n::t('stroked their beard at')];
+       $b['bemoan'] = ['bemoaned the declining standards of modern secondary and tertiary education to', L10n::t('bemoan the declining standards of modern secondary and tertiary education to'), L10n::t('bemoans the declining standards of modern secondary and tertiary education to')];
+       $b['hugs'] = ['hugged', L10n::t('hug'), L10n::t('hugged')];
+       $b['kiss'] = ['kissed', L10n::t('kiss'), L10n::t('kissed')];
+       $b['raiseeyebrows'] = ['raised their eyebrows at', L10n::t('raise eyebrows at'), L10n::t('raised their eyebrows at')];
+       $b['insult'] = ['insulted', L10n::t('insult'), L10n::t('insulted')];
+       $b['praise'] = ['praised', L10n::t('praise'), L10n::t('praised')];
+       $b['bedubiousof'] = ['was dubious of', L10n::t('be dubious of'), L10n::t('was dubious of')];
+       $b['eat'] = ['ate', L10n::t('eat'), L10n::t('ate')];
+       $b['giggleandfawn'] = ['giggled and fawned at', L10n::t('giggle and fawn at'), L10n::t('giggled and fawned at')];
+       $b['doubt'] = ['doubted', L10n::t('doubt'), L10n::t('doubted')];
+       $b['glare'] = ['glared at', L10n::t('glare'), L10n::t('glared at')];
+}