X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=morepokes%2Fmorepokes.php;h=abe59a6e6c2b506dfb40e67735a8b4ebfd5c41d9;hb=96a354bc6540c1a729729ba361a26d4ec0a8b1d2;hp=e0caaa5221c5a1435394d7c6c80e9f07a27bfa33;hpb=7ab24791667ab0ab1a04d01802e0a3ff47110c24;p=friendica-addons.git diff --git a/morepokes/morepokes.php b/morepokes/morepokes.php index e0caaa52..abe59a6e 100644 --- a/morepokes/morepokes.php +++ b/morepokes/morepokes.php @@ -6,37 +6,34 @@ * Author: Thomas Willingham * */ -use Friendica\Core\Addon; -use Friendica\Core\L10n; -function morepokes_install() -{ - Addon::registerHook('poke_verbs', 'addon/morepokes/morepokes.php', 'morepokes_poke_verbs'); -} +use Friendica\App; +use Friendica\Core\Hook; +use Friendica\DI; -function morepokes_uninstall() +function morepokes_install() { - Addon::unregisterHook('poke_verbs', 'addon/morepokes/morepokes.php', 'morepokes_poke_verbs'); + Hook::register('poke_verbs', 'addon/morepokes/morepokes.php', 'morepokes_poke_verbs'); } -function morepokes_poke_verbs($a, &$b) +function morepokes_poke_verbs(array &$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')]; + $b['bitchslap'] = ['bitchslapped', DI::l10n()->t('bitchslap'), DI::l10n()->t('bitchslapped')]; + $b['shag'] = ['shag', DI::l10n()->t('shag'), DI::l10n()->t('shagged')]; + $b['somethingobscenelybiological'] = ['something obscenely biological', DI::l10n()->t('do something obscenely biological to'), DI::l10n()->t('did something obscenely biological to')]; + $b['newpokefeature'] = ['pointed out the poke feature to', DI::l10n()->t('point out the poke feature to'), DI::l10n()->t('pointed out the poke feature to')]; + $b['declareundyinglove'] = ['declared undying love for', DI::l10n()->t('declare undying love for'), DI::l10n()->t('declared undying love for')]; + $b['patent'] = ['patented', DI::l10n()->t('patent'), DI::l10n()->t('patented')]; + $b['strokebeard'] = ['stroked their beard at', DI::l10n()->t('stroke beard'), DI::l10n()->t('stroked their beard at')]; + $b['bemoan'] = ['bemoaned the declining standards of modern secondary and tertiary education to', DI::l10n()->t('bemoan the declining standards of modern secondary and tertiary education to'), DI::l10n()->t('bemoans the declining standards of modern secondary and tertiary education to')]; + $b['hugs'] = ['hugged', DI::l10n()->t('hug'), DI::l10n()->t('hugged')]; + $b['kiss'] = ['kissed', DI::l10n()->t('kiss'), DI::l10n()->t('kissed')]; + $b['raiseeyebrows'] = ['raised their eyebrows at', DI::l10n()->t('raise eyebrows at'), DI::l10n()->t('raised their eyebrows at')]; + $b['insult'] = ['insulted', DI::l10n()->t('insult'), DI::l10n()->t('insulted')]; + $b['praise'] = ['praised', DI::l10n()->t('praise'), DI::l10n()->t('praised')]; + $b['bedubiousof'] = ['was dubious of', DI::l10n()->t('be dubious of'), DI::l10n()->t('was dubious of')]; + $b['eat'] = ['ate', DI::l10n()->t('eat'), DI::l10n()->t('ate')]; + $b['giggleandfawn'] = ['giggled and fawned at', DI::l10n()->t('giggle and fawn at'), DI::l10n()->t('giggled and fawned at')]; + $b['doubt'] = ['doubted', DI::l10n()->t('doubt'), DI::l10n()->t('doubted')]; + $b['glare'] = ['glared at', DI::l10n()->t('glare'), DI::l10n()->t('glared at')]; }