From: Hypolite Petovan Date: Wed, 24 Jan 2018 16:48:55 +0000 (-0500) Subject: Merge pull request #4312 from zeroadam/feature/L10n X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30c1cc0e8cec5438fd8fe36bd4ea00991dc01934;p=friendica.git Merge pull request #4312 from zeroadam/feature/L10n Move pgettext to src --- 30c1cc0e8cec5438fd8fe36bd4ea00991dc01934 diff --cc src/Object/Post.php index f933da9d0f,b45f77ed76..67ce3b7cce --- a/src/Object/Post.php +++ b/src/Object/Post.php @@@ -289,12 -291,18 +290,12 @@@ class Post extends BaseObjec 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);