X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=dav%2Ffriendica%2Fmain.php;h=2534ce9c104cc4451f9c069cf3b2c6b9ac8e9745;hb=f8c162cbfb777793891f885e019eb8eae319dce1;hp=d73edfd3197b1f58baa0765585da68ec2fa4d6af;hpb=c6e5bc3429c9c610895ba826d841cddd8c0f378b;p=friendica-addons.git
diff --git a/dav/friendica/main.php b/dav/friendica/main.php
index d73edfd3..2534ce9c 100644
--- a/dav/friendica/main.php
+++ b/dav/friendica/main.php
@@ -1,6 +1,7 @@
t('Calendar'),
+ "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'),
];
}
@@ -281,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 = [
'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' => "",
@@ -311,15 +312,15 @@ function dav_addon_admin_post(&$a = null, &$o = null)
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);
}
}
@@ -335,31 +336,31 @@ function dav_addon_admin(&$a, &$o)
$dbstatus = dav_check_tables();
$o = '';
- $o .= '' . t("No system-wide settings yet.") . '
';
+ $o .= '' . L10n::t("No system-wide settings yet.") . '
';
- $o .= '