use Friendica\App;
use Friendica\Content\Nav;
use Friendica\Core\Config;
+use Friendica\Core\L10n;
use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
$onerror_url = System::baseUrl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish";
if (strcmp($finish, $start) < 0 && !$nofinish) {
- notice(t('Event can not end before it has started.') . EOL);
+ notice(L10n::t('Event can not end before it has started.') . EOL);
if (intval($_REQUEST['preview'])) {
echo t('Event can not end before it has started.');
killme();
}
if ((! $summary) || ($start === NULL_DATE)) {
- notice(t('Event title and start time are required.') . EOL);
+ notice(L10n::t('Event title and start time are required.') . EOL);
if (intval($_REQUEST['preview'])) {
echo t('Event title and start time are required.');
killme();
function events_content(App $a) {
if (! local_user()) {
- notice(t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
}
if ($del == 0) {
- notice(t('Failed to remove event' ) . EOL);
+ notice(L10n::t('Failed to remove event') . EOL);
} else {
info(t('Event removed') . EOL);
}