use Friendica\App;
use Friendica\Core\Config;
+use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Database\DBM;
function group_post(App $a) {
if (! local_user()) {
- notice(t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
goaway(System::baseUrl() . '/group/' . $r);
}
} else {
- notice(t('Could not create group.') . EOL);
+ notice(L10n::t('Could not create group.') . EOL);
}
goaway(System::baseUrl() . '/group');
return; // NOTREACHED
intval(local_user())
);
if (! DBM::is_result($r)) {
- notice(t('Group not found.') . EOL);
+ notice(L10n::t('Group not found.') . EOL);
goaway(System::baseUrl() . '/contacts');
return; // NOTREACHED
}
$change = false;
if (! local_user()) {
- notice(t('Permission denied') . EOL);
+ notice(L10n::t('Permission denied') . EOL);
return;
}
if ($result) {
info(t('Group removed.') . EOL);
} else {
- notice(t('Unable to remove group.') . EOL);
+ notice(L10n::t('Unable to remove group.') . EOL);
}
}
goaway(System::baseUrl() . '/group');
);
if (! DBM::is_result($r)) {
- notice(t('Group not found.') . EOL);
+ notice(L10n::t('Group not found.') . EOL);
goaway(System::baseUrl() . '/contacts');
}