[CORE] Plugin API now extends a new Module API
This commit is contained in:
@@ -65,19 +65,20 @@ class GroupFavoritedPlugin extends Plugin
|
||||
*
|
||||
* @param array &$versions array of version data arrays; see EVENTS.txt
|
||||
*
|
||||
* @return boolean hook value
|
||||
* @return bool hook value
|
||||
*/
|
||||
function onPluginVersion(array &$versions)
|
||||
public function onPluginVersion(array &$versions): bool
|
||||
{
|
||||
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/GroupFavorited';
|
||||
|
||||
$versions[] = array('name' => 'GroupFavorited',
|
||||
$versions[] = ['name' => 'GroupFavorited',
|
||||
'version' => self::PLUGIN_VERSION,
|
||||
'author' => 'Brion Vibber',
|
||||
'homepage' => $url,
|
||||
'rawdescription' =>
|
||||
// TRANS: Plugin description.
|
||||
_m('This plugin adds a menu item for popular notices in groups.'));
|
||||
_m('This plugin adds a menu item for popular notices in groups.')
|
||||
];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-08-14 14:44+0100\n"
|
||||
"POT-Creation-Date: 2019-08-14 14:50+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -17,18 +17,6 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#. TRANS: %s is a group name.
|
||||
#: actions/groupfavorited.php:48
|
||||
#, php-format
|
||||
msgid "Popular posts in %s group"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: %1$s is a group name, %2$s is a group number.
|
||||
#: actions/groupfavorited.php:51
|
||||
#, php-format
|
||||
msgid "Popular posts in %1$s group, page %2$d"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Menu item in the group navigation page.
|
||||
#: GroupFavoritedPlugin.php:53
|
||||
msgctxt "MENU"
|
||||
@@ -47,3 +35,15 @@ msgstr ""
|
||||
#: GroupFavoritedPlugin.php:80
|
||||
msgid "This plugin adds a menu item for popular notices in groups."
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: %s is a group name.
|
||||
#: actions/groupfavorited.php:48
|
||||
#, php-format
|
||||
msgid "Popular posts in %s group"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: %1$s is a group name, %2$s is a group number.
|
||||
#: actions/groupfavorited.php:51
|
||||
#, php-format
|
||||
msgid "Popular posts in %1$s group, page %2$d"
|
||||
msgstr ""
|
||||
|
Reference in New Issue
Block a user