if ($conv->isWritable()) {
$buttons = [
- 'like' => [t("I like this \x28toggle\x29"), t("like")],
- 'dislike' => Feature::isEnabled($conv->getProfileOwner(), 'dislike') ? [t("I don't like this \x28toggle\x29"), t("dislike")] : '',
+ 'like' => [L10n::t("I like this \x28toggle\x29"), L10n::t("like")],
+ 'dislike' => Feature::isEnabled($conv->getProfileOwner(), 'dislike') ? [L10n::t("I don't like this \x28toggle\x29"), L10n::t("dislike")] : '',
];
if ($shareable) {
- $buttons['share'] = [t('Share this'), t('share')];
+ $buttons['share'] = [L10n::t('Share this'), L10n::t('share')];
}
-
- // If a contact isn't writable, we cannot send a like or dislike to it
- if (!$item['writable']) {
- unset($buttons["like"]);
- unset($buttons["dislike"]);
- }
}
$comment = $this->getCommentBox($indent);