1
1
Fork 0

Merge pull request #13013 from annando/tumblr

Preparation for Tumblr
This commit is contained in:
Hypolite Petovan 2023-04-18 15:59:04 -04:00 committed by GitHub
commit e4ab857d9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 57 deletions

View file

@ -140,6 +140,7 @@ class ContactSelector
Protocol::STATUSNET => DI::l10n()->t('GNU Social Connector'), Protocol::STATUSNET => DI::l10n()->t('GNU Social Connector'),
Protocol::ACTIVITYPUB => DI::l10n()->t('ActivityPub'), Protocol::ACTIVITYPUB => DI::l10n()->t('ActivityPub'),
Protocol::PNUT => DI::l10n()->t('pnut'), Protocol::PNUT => DI::l10n()->t('pnut'),
Protocol::TUMBLR => DI::l10n()->t('Tumblr'),
]; ];
Hook::callAll('network_to_name', $nets); Hook::callAll('network_to_name', $nets);
@ -210,6 +211,7 @@ class ContactSelector
Protocol::STATUSNET => 'gnu-social', Protocol::STATUSNET => 'gnu-social',
Protocol::ACTIVITYPUB => 'activitypub', Protocol::ACTIVITYPUB => 'activitypub',
Protocol::PNUT => 'file-text-o', /// @todo Protocol::PNUT => 'file-text-o', /// @todo
Protocol::TUMBLR => 'tumblr',
]; ];
$platform_icons = ['diaspora' => 'diaspora', 'friendica' => 'friendica', 'friendika' => 'friendica', $platform_icons = ['diaspora' => 'diaspora', 'friendica' => 'friendica', 'friendika' => 'friendica',

View file

@ -120,6 +120,10 @@ class Widget
$networks[] = Protocol::TWITTER; $networks[] = Protocol::TWITTER;
} }
if (!Addon::isEnabled("tumblr")) {
$networks[] = Protocol::TUMBLR;
}
if (DI::config()->get("system", "ostatus_disabled")) { if (DI::config()->get("system", "ostatus_disabled")) {
$networks[] = Protocol::OSTATUS; $networks[] = Protocol::OSTATUS;
} }

View file

@ -56,6 +56,7 @@ class Protocol
const STATUSNET = 'stac'; // Statusnet connector const STATUSNET = 'stac'; // Statusnet connector
const TWITTER = 'twit'; // Twitter const TWITTER = 'twit'; // Twitter
const DISCOURSE = 'dscs'; // Discourse const DISCOURSE = 'dscs'; // Discourse
const TUMBLR = 'tmbl'; // Tumblr
// Dead protocols // Dead protocols
const APPNET = 'apdn'; // app.net - Dead protocol const APPNET = 'apdn'; // app.net - Dead protocol

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2023.03-rc\n" "Project-Id-Version: 2023.03-rc\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-09 08:27-0400\n" "POT-Creation-Date: 2023-04-18 19:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -770,17 +770,17 @@ msgstr ""
msgid "All contacts" msgid "All contacts"
msgstr "" msgstr ""
#: src/BaseModule.php:432 src/Content/Widget.php:235 src/Core/ACL.php:194 #: src/BaseModule.php:432 src/Content/Widget.php:239 src/Core/ACL.php:194
#: src/Module/Contact.php:407 src/Module/PermissionTooltip.php:127 #: src/Module/Contact.php:407 src/Module/PermissionTooltip.php:127
#: src/Module/PermissionTooltip.php:149 #: src/Module/PermissionTooltip.php:149
msgid "Followers" msgid "Followers"
msgstr "" msgstr ""
#: src/BaseModule.php:437 src/Content/Widget.php:236 src/Module/Contact.php:408 #: src/BaseModule.php:437 src/Content/Widget.php:240 src/Module/Contact.php:408
msgid "Following" msgid "Following"
msgstr "" msgstr ""
#: src/BaseModule.php:442 src/Content/Widget.php:237 src/Module/Contact.php:409 #: src/BaseModule.php:442 src/Content/Widget.php:241 src/Module/Contact.php:409
msgid "Mutual friends" msgid "Mutual friends"
msgstr "" msgstr ""
@ -1105,7 +1105,11 @@ msgstr ""
msgid "pnut" msgid "pnut"
msgstr "" msgstr ""
#: src/Content/ContactSelector.php:178 #: src/Content/ContactSelector.php:143
msgid "Tumblr"
msgstr ""
#: src/Content/ContactSelector.php:179
#, php-format #, php-format
msgid "%s (via %s)" msgid "%s (via %s)"
msgstr "" msgstr ""
@ -1579,7 +1583,7 @@ msgid ""
msgstr "" msgstr ""
#: src/Content/ForumManager.php:151 src/Content/Nav.php:276 #: src/Content/ForumManager.php:151 src/Content/Nav.php:276
#: src/Content/Text/HTML.php:878 src/Content/Widget.php:524 #: src/Content/Text/HTML.php:878 src/Content/Widget.php:528
msgid "Forums" msgid "Forums"
msgstr "" msgstr ""
@ -1587,16 +1591,16 @@ msgstr ""
msgid "External link to forum" msgid "External link to forum"
msgstr "" msgstr ""
#: src/Content/ForumManager.php:156 src/Content/Widget.php:503 #: src/Content/ForumManager.php:156 src/Content/Widget.php:507
msgid "show less" msgid "show less"
msgstr "" msgstr ""
#: src/Content/ForumManager.php:157 src/Content/Widget.php:405 #: src/Content/ForumManager.php:157 src/Content/Widget.php:409
#: src/Content/Widget.php:504 #: src/Content/Widget.php:508
msgid "show more" msgid "show more"
msgstr "" msgstr ""
#: src/Content/Item.php:326 src/Model/Item.php:2913 #: src/Content/Item.php:326 src/Model/Item.php:2921
msgid "event" msgid "event"
msgstr "" msgstr ""
@ -1604,7 +1608,7 @@ msgstr ""
msgid "status" msgid "status"
msgstr "" msgstr ""
#: src/Content/Item.php:335 src/Model/Item.php:2915 #: src/Content/Item.php:335 src/Model/Item.php:2923
#: src/Module/Post/Tag/Add.php:123 #: src/Module/Post/Tag/Add.php:123
msgid "photo" msgid "photo"
msgstr "" msgstr ""
@ -2010,8 +2014,8 @@ msgid ""
"<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">%2$s</a> %3$s" "<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">%2$s</a> %3$s"
msgstr "" msgstr ""
#: src/Content/Text/BBCode.php:956 src/Model/Item.php:3598 #: src/Content/Text/BBCode.php:956 src/Model/Item.php:3606
#: src/Model/Item.php:3604 src/Model/Item.php:3605 #: src/Model/Item.php:3612 src/Model/Item.php:3613
msgid "Link to source" msgid "Link to source"
msgstr "" msgstr ""
@ -2027,11 +2031,11 @@ msgstr ""
msgid "Encrypted content" msgid "Encrypted content"
msgstr "" msgstr ""
#: src/Content/Text/BBCode.php:1881 #: src/Content/Text/BBCode.php:1869
msgid "Invalid source protocol" msgid "Invalid source protocol"
msgstr "" msgstr ""
#: src/Content/Text/BBCode.php:1900 #: src/Content/Text/BBCode.php:1888
msgid "Invalid link protocol" msgid "Invalid link protocol"
msgstr "" msgstr ""
@ -2114,72 +2118,72 @@ msgstr ""
msgid "Local Directory" msgid "Local Directory"
msgstr "" msgstr ""
#: src/Content/Widget.php:211 src/Model/Group.php:587 #: src/Content/Widget.php:215 src/Model/Group.php:587
#: src/Module/Contact.php:394 src/Module/Welcome.php:76 #: src/Module/Contact.php:394 src/Module/Welcome.php:76
msgid "Groups" msgid "Groups"
msgstr "" msgstr ""
#: src/Content/Widget.php:213 #: src/Content/Widget.php:217
msgid "Everyone" msgid "Everyone"
msgstr "" msgstr ""
#: src/Content/Widget.php:242 #: src/Content/Widget.php:246
msgid "Relationships" msgid "Relationships"
msgstr "" msgstr ""
#: src/Content/Widget.php:244 src/Module/Contact.php:338 #: src/Content/Widget.php:248 src/Module/Contact.php:338
#: src/Module/Group.php:291 #: src/Module/Group.php:291
msgid "All Contacts" msgid "All Contacts"
msgstr "" msgstr ""
#: src/Content/Widget.php:283 #: src/Content/Widget.php:287
msgid "Protocols" msgid "Protocols"
msgstr "" msgstr ""
#: src/Content/Widget.php:285 #: src/Content/Widget.php:289
msgid "All Protocols" msgid "All Protocols"
msgstr "" msgstr ""
#: src/Content/Widget.php:313 #: src/Content/Widget.php:317
msgid "Saved Folders" msgid "Saved Folders"
msgstr "" msgstr ""
#: src/Content/Widget.php:315 src/Content/Widget.php:346 #: src/Content/Widget.php:319 src/Content/Widget.php:350
msgid "Everything" msgid "Everything"
msgstr "" msgstr ""
#: src/Content/Widget.php:344 #: src/Content/Widget.php:348
msgid "Categories" msgid "Categories"
msgstr "" msgstr ""
#: src/Content/Widget.php:401 #: src/Content/Widget.php:405
#, php-format #, php-format
msgid "%d contact in common" msgid "%d contact in common"
msgid_plural "%d contacts in common" msgid_plural "%d contacts in common"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Content/Widget.php:497 #: src/Content/Widget.php:501
msgid "Archives" msgid "Archives"
msgstr "" msgstr ""
#: src/Content/Widget.php:521 #: src/Content/Widget.php:525
msgid "Persons" msgid "Persons"
msgstr "" msgstr ""
#: src/Content/Widget.php:522 #: src/Content/Widget.php:526
msgid "Organisations" msgid "Organisations"
msgstr "" msgstr ""
#: src/Content/Widget.php:523 src/Model/Contact.php:1656 #: src/Content/Widget.php:527 src/Model/Contact.php:1656
msgid "News" msgid "News"
msgstr "" msgstr ""
#: src/Content/Widget.php:527 src/Module/Settings/Account.php:453 #: src/Content/Widget.php:531 src/Module/Settings/Account.php:453
msgid "Account Types" msgid "Account Types"
msgstr "" msgstr ""
#: src/Content/Widget.php:528 src/Module/Moderation/BaseUsers.php:69 #: src/Content/Widget.php:532 src/Module/Moderation/BaseUsers.php:69
msgid "All" msgid "All"
msgstr "" msgstr ""
@ -3180,81 +3184,81 @@ msgstr ""
msgid "Edit groups" msgid "Edit groups"
msgstr "" msgstr ""
#: src/Model/Item.php:2014 #: src/Model/Item.php:2022
#, php-format #, php-format
msgid "Detected languages in this post:\\n%s" msgid "Detected languages in this post:\\n%s"
msgstr "" msgstr ""
#: src/Model/Item.php:2917 #: src/Model/Item.php:2925
msgid "activity" msgid "activity"
msgstr "" msgstr ""
#: src/Model/Item.php:2919 #: src/Model/Item.php:2927
msgid "comment" msgid "comment"
msgstr "" msgstr ""
#: src/Model/Item.php:2922 src/Module/Post/Tag/Add.php:123 #: src/Model/Item.php:2930 src/Module/Post/Tag/Add.php:123
msgid "post" msgid "post"
msgstr "" msgstr ""
#: src/Model/Item.php:3084
#, php-format
msgid "%s is blocked"
msgstr ""
#: src/Model/Item.php:3086
#, php-format
msgid "%s is ignored"
msgstr ""
#: src/Model/Item.php:3088
#, php-format
msgid "Content from %s is collapsed"
msgstr ""
#: src/Model/Item.php:3092 #: src/Model/Item.php:3092
#, php-format #, php-format
msgid "%s is blocked"
msgstr ""
#: src/Model/Item.php:3094
#, php-format
msgid "%s is ignored"
msgstr ""
#: src/Model/Item.php:3096
#, php-format
msgid "Content from %s is collapsed"
msgstr ""
#: src/Model/Item.php:3100
#, php-format
msgid "Content warning: %s" msgid "Content warning: %s"
msgstr "" msgstr ""
#: src/Model/Item.php:3510 #: src/Model/Item.php:3518
msgid "bytes" msgid "bytes"
msgstr "" msgstr ""
#: src/Model/Item.php:3541 #: src/Model/Item.php:3549
#, php-format #, php-format
msgid "%2$s (%3$d%%, %1$d vote)" msgid "%2$s (%3$d%%, %1$d vote)"
msgid_plural "%2$s (%3$d%%, %1$d votes)" msgid_plural "%2$s (%3$d%%, %1$d votes)"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Model/Item.php:3543 #: src/Model/Item.php:3551
#, php-format #, php-format
msgid "%2$s (%1$d vote)" msgid "%2$s (%1$d vote)"
msgid_plural "%2$s (%1$d votes)" msgid_plural "%2$s (%1$d votes)"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Model/Item.php:3548 #: src/Model/Item.php:3556
#, php-format #, php-format
msgid "%d voter. Poll end: %s" msgid "%d voter. Poll end: %s"
msgid_plural "%d voters. Poll end: %s" msgid_plural "%d voters. Poll end: %s"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Model/Item.php:3550 #: src/Model/Item.php:3558
#, php-format #, php-format
msgid "%d voter." msgid "%d voter."
msgid_plural "%d voters." msgid_plural "%d voters."
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Model/Item.php:3552 #: src/Model/Item.php:3560
#, php-format #, php-format
msgid "Poll end: %s" msgid "Poll end: %s"
msgstr "" msgstr ""
#: src/Model/Item.php:3586 src/Model/Item.php:3587 #: src/Model/Item.php:3594 src/Model/Item.php:3595
msgid "View on separate page" msgid "View on separate page"
msgstr "" msgstr ""