[CORE] Plugin API now extends a new Module API
This commit is contained in:
@@ -212,15 +212,17 @@ class DirectMessagePlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
public function onPluginVersion(array &$versions) : bool
|
||||
public function onPluginVersion(array &$versions): bool
|
||||
{
|
||||
$versions[] = ['name' => 'Direct Message',
|
||||
'version' => self::PLUGIN_VERSION,
|
||||
'author' => 'Mikael Nordfeldth, Bruno Casteleiro',
|
||||
'homepage' => 'http://gnu.io/',
|
||||
'rawdescription' =>
|
||||
// TRANS: Plugin description.
|
||||
_m('Direct Message to other local users.')];
|
||||
$versions[] = [
|
||||
'name' => 'Direct Message',
|
||||
'version' => self::PLUGIN_VERSION,
|
||||
'author' => 'Mikael Nordfeldth, Bruno Casteleiro',
|
||||
'homepage' => 'https://gnu.social/',
|
||||
'rawdescription' =>
|
||||
// TRANS: Plugin description.
|
||||
_m('Direct Message to other local users.')
|
||||
];
|
||||
|
||||
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-21 10:51+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"
|
||||
@@ -19,25 +19,45 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
||||
|
||||
#. TRANS: Menu item in personal group navigation menu.
|
||||
#: DirectMessagePlugin.php:130
|
||||
#: DirectMessagePlugin.php:134
|
||||
msgctxt "MENU"
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Link text for link on user profile.
|
||||
#: DirectMessagePlugin.php:150
|
||||
#: DirectMessagePlugin.php:167
|
||||
msgctxt "BUTTON"
|
||||
msgid "Message"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Plugin description.
|
||||
#: DirectMessagePlugin.php:176
|
||||
msgid "Direct Message to other local users (broken out of core)."
|
||||
#: DirectMessagePlugin.php:223
|
||||
msgid "Direct Message to other local users."
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Form legend for direct notice.
|
||||
#: lib/messageform.php:99
|
||||
msgid "Send a direct notice"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Label entry in drop-down selection box in direct-message inbox/outbox.
|
||||
#. TRANS: This is the default entry in the drop-down box, doubling as instructions
|
||||
#. TRANS: and a brake against accidental submissions with the first user in the list.
|
||||
#: lib/messageform.php:157
|
||||
msgid "No subscriptions"
|
||||
msgstr ""
|
||||
|
||||
#: lib/messageform.php:157
|
||||
msgid "Select recipient:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/messageform.php:164
|
||||
msgid "To"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Button text for sending a direct notice.
|
||||
#: lib/messageform.php:175
|
||||
msgctxt "Send button for sending notice"
|
||||
#: lib/messageform.php:199
|
||||
msgctxt "Send button for direct notice"
|
||||
msgid "Send"
|
||||
msgstr ""
|
||||
|
||||
@@ -63,40 +83,106 @@ msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#. TRANS: A possible notice source (web interface).
|
||||
#: lib/messagelistitem.php:137
|
||||
#: lib/messagelistitem.php:127
|
||||
msgctxt "SOURCE"
|
||||
msgid "web"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: A possible notice source (XMPP).
|
||||
#: lib/messagelistitem.php:139
|
||||
#: lib/messagelistitem.php:129
|
||||
msgctxt "SOURCE"
|
||||
msgid "xmpp"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: A possible notice source (e-mail).
|
||||
#: lib/messagelistitem.php:141
|
||||
#: lib/messagelistitem.php:131
|
||||
msgctxt "SOURCE"
|
||||
msgid "mail"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: A possible notice source (OpenMicroBlogging).
|
||||
#: lib/messagelistitem.php:143
|
||||
#: lib/messagelistitem.php:133
|
||||
msgctxt "SOURCE"
|
||||
msgid "omb"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: A possible notice source (Application Programming Interface).
|
||||
#: lib/messagelistitem.php:145
|
||||
#: lib/messagelistitem.php:135
|
||||
msgctxt "SOURCE"
|
||||
msgid "api"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Title for outbox for any but the fist page.
|
||||
#. TRANS: %1$s is the user nickname, %2$d is the page number.
|
||||
#: actions/outbox.php:50
|
||||
#, php-format
|
||||
msgid "Outbox for %1$s - page %2$d"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Title for first page of outbox.
|
||||
#: actions/outbox.php:54
|
||||
#, php-format
|
||||
msgid "Outbox for %s"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Instructions for outbox.
|
||||
#: actions/outbox.php:84
|
||||
msgid "This is your outbox, which lists private messages you have sent."
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Client error displayed requesting a single message that does not exist.
|
||||
#: actions/showmessage.php:63
|
||||
msgid "No such message."
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Client error displayed requesting a single direct message the requesting user was not a party in.
|
||||
#: actions/showmessage.php:83
|
||||
msgid "Only the sender and recipients may read this message."
|
||||
msgstr ""
|
||||
|
||||
#: actions/showmessage.php:109
|
||||
#, php-format
|
||||
msgid "Message to many on %1$s"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Page title for single direct message display when viewing user is the sender.
|
||||
#. TRANS: %1$s is the addressed user's nickname, $2$s is a timestamp.
|
||||
#: actions/showmessage.php:115
|
||||
#, php-format
|
||||
msgid "Message to %1$s on %2$s"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Page title for single message display.
|
||||
#. TRANS: %1$s is the sending user's nickname, $2$s is a timestamp.
|
||||
#: actions/showmessage.php:123
|
||||
#, php-format
|
||||
msgid "Message from %1$s on %2$s"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Form validation error displayed when message content is too long.
|
||||
#. TRANS: %d is the maximum number of characters for a message.
|
||||
#: actions/apidirectmessagenew.php:104 actions/newmessage.php:112
|
||||
#: actions/apidirectmessagenew.php:104 actions/newmessage.php:99
|
||||
#, php-format
|
||||
msgid "That's too long. Maximum message size is %d character."
|
||||
msgid_plural "That's too long. Maximum message size is %d characters."
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#. TRANS: Title for all but the first page of the inbox page.
|
||||
#. TRANS: %1$s is the user's nickname, %2$s is the page number.
|
||||
#: actions/inbox.php:50
|
||||
#, php-format
|
||||
msgid "Inbox for %1$s - page %2$d"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Title for the first page of the inbox page.
|
||||
#. TRANS: %s is the user's nickname.
|
||||
#: actions/inbox.php:55
|
||||
#, php-format
|
||||
msgid "Inbox for %s"
|
||||
msgstr ""
|
||||
|
||||
#. TRANS: Instructions for user inbox page.
|
||||
#: actions/inbox.php:85
|
||||
msgid "This is your inbox, which lists your incoming private messages."
|
||||
msgstr ""
|
||||
|
@@ -9,7 +9,7 @@ msgstr ""
|
||||
"Project-Id-Version: GNU social\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-02-02 17:47+0100\n"
|
||||
"PO-Revision-Date: 2015-03-07 18:12+0000\n"
|
||||
"PO-Revision-Date: 2019-08-21 10:53+0100\n"
|
||||
"Last-Translator: Luke Hollins <luke@farcry.ca>\n"
|
||||
"Language-Team: English (United Kingdom) (http://www.transifex.com/gnu-social/gnu-social/language/en_GB/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
Reference in New Issue
Block a user