X-Git-Url: https://git.mxchange.org/?p=friendica-addons.git;a=blobdiff_plain;f=dav%2Ffriendica%2Fmain.php;h=0974696c502d8828e0333f70a6c70eb4f2c9f6c3;hp=05f6f71406164b5fcf22764e2352980605e4cebb;hb=39dd3dffe07efd69fa1ac6d0bd243c7fc0e3a66f;hpb=5360f08f4295f2306d815a7659fbdff94fda01a3
diff --git a/dav/friendica/main.php b/dav/friendica/main.php
index 05f6f714..0974696c 100644
--- a/dav/friendica/main.php
+++ b/dav/friendica/main.php
@@ -1,22 +1,27 @@
t('Calendar'),
+ $b["tabs"][] = [
+ "label" => L10n::t('Calendar'),
"url" => $a->get_baseurl() . "/dav/wdcal/",
"sel" => "",
- "title" => t('Extended calendar with CalDAV-support'),
- );
+ "title" => L10n::t('Extended calendar with CalDAV-support'),
+ ];
}
@@ -277,10 +282,10 @@ function dav_cron(&$a, &$b)
$text_html = str_replace($find, $repl, "Hi %to%!
\n
\nThe event \"%event%\" is about to begin:
\n%url%");
$params = array(
'fromName' => FRIENDICA_PLATFORM,
- 'fromEmail' => t('noreply') . '@' . $a->get_hostname(),
- 'replyTo' => t('noreply') . '@' . $a->get_hostname(),
+ 'fromEmail' => L10n::t('noreply') . '@' . $a->get_hostname(),
+ 'replyTo' => L10n::t('noreply') . '@' . $a->get_hostname(),
'toEmail' => $user["email"],
- 'messageSubject' => t("Notification: " . $event[0]["Summary"]),
+ 'messageSubject' => L10n::t("Notification: " . $event[0]["Summary"]),
'htmlVersion' => $text_html,
'textVersion' => $text_text,
'additionalMailHeader' => "",
@@ -299,24 +304,24 @@ function dav_cron(&$a, &$b)
* @param App $a
* @param null|object $o
*/
-function dav_plugin_admin_post(&$a = null, &$o = null)
+function dav_addon_admin_post(&$a = null, &$o = null)
{
- check_form_security_token_redirectOnErr('/admin/plugins/dav', 'dav_admin_save');
+ check_form_security_token_redirectOnErr('/admin/addons/dav', 'dav_admin_save');
dav_include_files();
require_once(__DIR__ . "/database-init.inc.php");
if (isset($_REQUEST["install"])) {
$errs = dav_create_tables();
- if (count($errs) == 0) info(t('The database tables have been installed.') . EOL);
- else notice(t("An error occurred during the installation.") . EOL);
+ if (count($errs) == 0) info(L10n::t('The database tables have been installed.') . EOL);
+ else notice(L10n::t("An error occurred during the installation.") . EOL);
}
if (isset($_REQUEST["upgrade"])) {
$errs = dav_upgrade_tables();
if (count($errs) == 0) {
renderAllCalDavEntries();
- info(t('The database tables have been updated.') . EOL);
- } else notice(t("An error occurred during the update.") . EOL);
+ info(L10n::t('The database tables have been updated.') . EOL);
+ } else notice(L10n::t("An error occurred during the update.") . EOL);
}
}
@@ -324,7 +329,7 @@ function dav_plugin_admin_post(&$a = null, &$o = null)
* @param App $a
* @param string $o
*/
-function dav_plugin_admin(&$a, &$o)
+function dav_addon_admin(&$a, &$o)
{
dav_include_files();
require_once(__DIR__ . "/database-init.inc.php");
@@ -332,31 +337,31 @@ function dav_plugin_admin(&$a, &$o)
$dbstatus = dav_check_tables();
$o = '';
- $o .= '' . t("No system-wide settings yet.") . '
';
+ $o .= '' . L10n::t("No system-wide settings yet.") . '
';
- $o .= '