[various] Rename forum to group

- Drop support for forumdirectory
- Add support for groupdirectory
This commit is contained in:
Hypolite Petovan 2023-06-03 15:57:29 -04:00 committed by heluecht
parent aa0f74832a
commit 49d308c44b
51 changed files with 1636 additions and 85 deletions

View file

@ -5,8 +5,8 @@ With this addon you can enable a widget for the sidebar of the network tab,
which will be displayed for new members. It contains a linkt to friendicas
introduction pages at /newmember and optionally
* a link to the global support forum
* a link to an eventually existing local support forum
* a link to the global support group
* a link to an eventually existing local support group
* a welcome message you might want to send to your new members.
There is no extra styling added for this added, so it should work with any

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-01 18:15+0100\n"
"POT-Creation-Date: 2023-06-03 15:50-0400\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"
@ -26,48 +26,48 @@ msgid "Tips for New Members"
msgstr ""
#: newmemberwidget.php:33
msgid "Global Support Forum"
msgid "Global Support Group"
msgstr ""
#: newmemberwidget.php:37
msgid "Local Support Forum"
msgid "Local Support Group"
msgstr ""
#: newmemberwidget.php:65
#: newmemberwidget.php:62
msgid "Save Settings"
msgstr ""
#: newmemberwidget.php:66
#: newmemberwidget.php:63
msgid "Message"
msgstr ""
#: newmemberwidget.php:66
#: newmemberwidget.php:63
msgid "Your message for new members. You can use bbcode here."
msgstr ""
#: newmemberwidget.php:67
msgid "Add a link to global support forum"
#: newmemberwidget.php:64
msgid "Add a link to global support group"
msgstr ""
#: newmemberwidget.php:67
msgid "Should a link to the global support forum be displayed?"
#: newmemberwidget.php:64
msgid "Should a link to the global support group be displayed?"
msgstr ""
#: newmemberwidget.php:68
msgid "Add a link to the local support forum"
#: newmemberwidget.php:65
msgid "Add a link to the local support group"
msgstr ""
#: newmemberwidget.php:68
#: newmemberwidget.php:65
msgid ""
"If you have a local support forum and want to have a link displayed in the "
"If you have a local support group and want to have a link displayed in the "
"widget, check this box."
msgstr ""
#: newmemberwidget.php:69
#: newmemberwidget.php:66
msgid "Name of the local support group"
msgstr ""
#: newmemberwidget.php:69
#: newmemberwidget.php:66
msgid ""
"If you checked the above, specify the <em>nickname</em> of the local support "
"group here (i.e. helpers)"

View file

@ -30,11 +30,11 @@ function newmemberwidget_network_mod_init ($b)
$t .= '<a href="newmember" id="newmemberwidget-tips">' . DI::l10n()->t('Tips for New Members') . '</a><br />';
if (DI::config()->get('newmemberwidget','linkglobalsupport', false)) {
$t .= '<a href="https://forum.friendi.ca/profile/helpers" target="_new">'.DI::l10n()->t('Global Support Forum').'</a><br />';
$t .= '<a href="https://forum.friendi.ca/profile/helpers" target="_new">' . DI::l10n()->t('Global Support Group') . '</a><br />';
}
if (DI::config()->get('newmemberwidget','linklocalsupport', false)) {
$t .= '<a href="'.DI::baseUrl().'/profile/'.DI::config()->get('newmemberwidget','localsupport').'" target="_new">'.DI::l10n()->t('Local Support Forum').'</a><br />';
$t .= '<a href="' . DI::baseUrl() . '/profile/' . DI::config()->get('newmemberwidget', 'localsupport') . '" target="_new">' . DI::l10n()->t('Local Support Group') . '</a><br />';
}
$ft = DI::config()->get('newmemberwidget','freetext', '');
@ -61,8 +61,8 @@ function newmemberwidget_addon_admin(string &$o)
$o = Renderer::replaceMacros($t, [
'$submit' => DI::l10n()->t('Save Settings'),
'$freetext' => ["freetext", DI::l10n()->t("Message"), DI::config()->get("newmemberwidget", "freetext"), DI::l10n()->t("Your message for new members. You can use bbcode here.")],
'$linkglobalsupport' => ["linkglobalsupport", DI::l10n()->t('Add a link to global support forum'), DI::config()->get('newmemberwidget', 'linkglobalsupport'), DI::l10n()->t('Should a link to the global support forum be displayed?')." (<a href='https://forum.friendi.ca/profile/helpers'>@helpers</a>)"],
'$linklocalsupport' => ["linklocalsupport", DI::l10n()->t('Add a link to the local support forum'), DI::config()->get('newmemberwidget', 'linklocalsupport'), DI::l10n()->t('If you have a local support forum and want to have a link displayed in the widget, check this box.')],
'$linkglobalsupport' => ["linkglobalsupport", DI::l10n()->t('Add a link to global support group'), DI::config()->get('newmemberwidget', 'linkglobalsupport'), DI::l10n()->t('Should a link to the global support group be displayed?')." (<a href='https://forum.friendi.ca/profile/helpers'>@helpers</a>)"],
'$linklocalsupport' => ["linklocalsupport", DI::l10n()->t('Add a link to the local support group'), DI::config()->get('newmemberwidget', 'linklocalsupport'), DI::l10n()->t('If you have a local support group and want to have a link displayed in the widget, check this box.')],
'$localsupportname' => ["localsupportname", DI::l10n()->t('Name of the local support group'), DI::config()->get('newmemberwidget', 'localsupport'), DI::l10n()->t('If you checked the above, specify the <em>nickname</em> of the local support group here (i.e. helpers)')],
]);
}