Capitalize post action translation strings
This commit is contained in:
parent
e7884b1409
commit
cac038639d
|
@ -1086,7 +1086,7 @@ class BBCode
|
||||||
'$avatar' => $attributes['avatar'],
|
'$avatar' => $attributes['avatar'],
|
||||||
'$author' => $attributes['author'],
|
'$author' => $attributes['author'],
|
||||||
'$link' => $attributes['link'],
|
'$link' => $attributes['link'],
|
||||||
'$link_title' => DI::l10n()->t('link to source'),
|
'$link_title' => DI::l10n()->t('Link to source'),
|
||||||
'$posted' => $attributes['posted'],
|
'$posted' => $attributes['posted'],
|
||||||
'$guid' => $attributes['guid'],
|
'$guid' => $attributes['guid'],
|
||||||
'$network_name' => ContactSelector::networkToName($network, $attributes['profile']),
|
'$network_name' => ContactSelector::networkToName($network, $attributes['profile']),
|
||||||
|
|
|
@ -3016,18 +3016,18 @@ class Item
|
||||||
'href' => "display/" . $item['guid'],
|
'href' => "display/" . $item['guid'],
|
||||||
'orig' => "display/" . $item['guid'],
|
'orig' => "display/" . $item['guid'],
|
||||||
'title' => DI::l10n()->t('View on separate page'),
|
'title' => DI::l10n()->t('View on separate page'),
|
||||||
'orig_title' => DI::l10n()->t('view on separate page'),
|
'orig_title' => DI::l10n()->t('View on separate page'),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!empty($item['plink'])) {
|
if (!empty($item['plink'])) {
|
||||||
$ret['href'] = DI::baseUrl()->remove($item['plink']);
|
$ret['href'] = DI::baseUrl()->remove($item['plink']);
|
||||||
$ret["title"] = DI::l10n()->t('link to source');
|
$ret['title'] = DI::l10n()->t('Link to source');
|
||||||
}
|
}
|
||||||
} elseif (!empty($item['plink']) && ($item['private'] != self::PRIVATE)) {
|
} elseif (!empty($item['plink']) && ($item['private'] != self::PRIVATE)) {
|
||||||
$ret = [
|
$ret = [
|
||||||
'href' => $item['plink'],
|
'href' => $item['plink'],
|
||||||
'orig' => $item['plink'],
|
'orig' => $item['plink'],
|
||||||
'title' => DI::l10n()->t('link to source'),
|
'title' => DI::l10n()->t('Link to source'),
|
||||||
'orig_title' => DI::l10n()->t('Link to source'),
|
'orig_title' => DI::l10n()->t('Link to source'),
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -211,7 +211,7 @@ class Post
|
||||||
$origin = $item['origin'] || $item['parent-origin'];
|
$origin = $item['origin'] || $item['parent-origin'];
|
||||||
|
|
||||||
if ($item['pinned']) {
|
if ($item['pinned']) {
|
||||||
$pinned = DI::l10n()->t('pinned item');
|
$pinned = DI::l10n()->t('Pinned item');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Showing the one or the other text, depending upon if we can only hide it or really delete it.
|
// Showing the one or the other text, depending upon if we can only hide it or really delete it.
|
||||||
|
@ -236,7 +236,7 @@ class Post
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
$filer = (($conv->getProfileOwner() == local_user() && ($item['uid'] != 0)) ? DI::l10n()->t("save to folder") : false);
|
$filer = (($conv->getProfileOwner() == local_user() && ($item['uid'] != 0)) ? DI::l10n()->t('Save to folder') : false);
|
||||||
|
|
||||||
$profile_name = $item['author-name'];
|
$profile_name = $item['author-name'];
|
||||||
if (!empty($item['author-link']) && empty($item['author-name'])) {
|
if (!empty($item['author-link']) && empty($item['author-name'])) {
|
||||||
|
@ -300,12 +300,12 @@ class Post
|
||||||
$ignored = PostModel\ThreadUser::getIgnored($item['uri-id'], local_user());
|
$ignored = PostModel\ThreadUser::getIgnored($item['uri-id'], local_user());
|
||||||
if ($item['mention'] || $ignored) {
|
if ($item['mention'] || $ignored) {
|
||||||
$ignore = [
|
$ignore = [
|
||||||
'do' => DI::l10n()->t("ignore thread"),
|
'do' => DI::l10n()->t('Ignore thread'),
|
||||||
'undo' => DI::l10n()->t("unignore thread"),
|
'undo' => DI::l10n()->t('Unignore thread'),
|
||||||
'toggle' => DI::l10n()->t("toggle ignore status"),
|
'toggle' => DI::l10n()->t('Toggle ignore status'),
|
||||||
'classdo' => $ignored ? "hidden" : "",
|
'classdo' => $ignored ? "hidden" : "",
|
||||||
'classundo' => $ignored ? "" : "hidden",
|
'classundo' => $ignored ? "" : "hidden",
|
||||||
'ignored' => DI::l10n()->t('ignored'),
|
'ignored' => DI::l10n()->t('Ignored'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -314,28 +314,28 @@ class Post
|
||||||
$ispinned = ($item['pinned'] ? 'pinned' : 'unpinned');
|
$ispinned = ($item['pinned'] ? 'pinned' : 'unpinned');
|
||||||
|
|
||||||
$pin = [
|
$pin = [
|
||||||
'do' => DI::l10n()->t('pin'),
|
'do' => DI::l10n()->t('Pin'),
|
||||||
'undo' => DI::l10n()->t('unpin'),
|
'undo' => DI::l10n()->t('Unpin'),
|
||||||
'toggle' => DI::l10n()->t('toggle pin status'),
|
'toggle' => DI::l10n()->t('Toggle pin status'),
|
||||||
'classdo' => $item['pinned'] ? 'hidden' : '',
|
'classdo' => $item['pinned'] ? 'hidden' : '',
|
||||||
'classundo' => $item['pinned'] ? '' : 'hidden',
|
'classundo' => $item['pinned'] ? '' : 'hidden',
|
||||||
'pinned' => DI::l10n()->t('pinned'),
|
'pinned' => DI::l10n()->t('Pinned'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
$isstarred = (($item['starred']) ? "starred" : "unstarred");
|
$isstarred = (($item['starred']) ? "starred" : "unstarred");
|
||||||
|
|
||||||
$star = [
|
$star = [
|
||||||
'do' => DI::l10n()->t("add star"),
|
'do' => DI::l10n()->t('Add star'),
|
||||||
'undo' => DI::l10n()->t("remove star"),
|
'undo' => DI::l10n()->t('Remove star'),
|
||||||
'toggle' => DI::l10n()->t("toggle star status"),
|
'toggle' => DI::l10n()->t('Toggle star status'),
|
||||||
'classdo' => $item['starred'] ? "hidden" : "",
|
'classdo' => $item['starred'] ? "hidden" : "",
|
||||||
'classundo' => $item['starred'] ? "" : "hidden",
|
'classundo' => $item['starred'] ? "" : "hidden",
|
||||||
'starred' => DI::l10n()->t('starred'),
|
'starred' => DI::l10n()->t('Starred'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$tagger = [
|
$tagger = [
|
||||||
'add' => DI::l10n()->t("add tag"),
|
'add' => DI::l10n()->t('Add tag'),
|
||||||
'class' => "",
|
'class' => "",
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -345,8 +345,8 @@ class Post
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conv->isWritable()) {
|
if ($conv->isWritable()) {
|
||||||
$buttons['like'] = [DI::l10n()->t("I like this \x28toggle\x29") , DI::l10n()->t("like")];
|
$buttons['like'] = [DI::l10n()->t("I like this \x28toggle\x29") , DI::l10n()->t('Like')];
|
||||||
$buttons['dislike'] = [DI::l10n()->t("I don't like this \x28toggle\x29"), DI::l10n()->t("dislike")];
|
$buttons['dislike'] = [DI::l10n()->t("I don't like this \x28toggle\x29"), DI::l10n()->t('Dislike')];
|
||||||
if ($shareable) {
|
if ($shareable) {
|
||||||
$buttons['share'] = [DI::l10n()->t('Quote share this'), DI::l10n()->t('Quote Share')];
|
$buttons['share'] = [DI::l10n()->t('Quote share this'), DI::l10n()->t('Quote Share')];
|
||||||
}
|
}
|
||||||
|
@ -402,7 +402,7 @@ class Post
|
||||||
|
|
||||||
// Fetching of Diaspora posts doesn't always work. There are issues with reshares and possibly comments
|
// Fetching of Diaspora posts doesn't always work. There are issues with reshares and possibly comments
|
||||||
if (($item['network'] != Protocol::DIASPORA) && empty($comment) && !empty(Session::get('remote_comment'))) {
|
if (($item['network'] != Protocol::DIASPORA) && empty($comment) && !empty(Session::get('remote_comment'))) {
|
||||||
$remote_comment = [DI::l10n()->t('Comment this item on your system'), DI::l10n()->t('remote comment'),
|
$remote_comment = [DI::l10n()->t('Comment this item on your system'), DI::l10n()->t('Remote comment'),
|
||||||
str_replace('{uri}', urlencode($item['uri']), Session::get('remote_comment'))];
|
str_replace('{uri}', urlencode($item['uri']), Session::get('remote_comment'))];
|
||||||
} else {
|
} else {
|
||||||
$remote_comment = '';
|
$remote_comment = '';
|
||||||
|
|
Loading…
Reference in a new issue