summaryrefslogtreecommitdiff
path: root/repo.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-06-24 09:45:56 +0000
committerfisharebest <fisharebest@gmail.com>2011-06-24 09:45:56 +0000
commit2da3f3b6ec2521d6c882c556d67a24a01263f452 (patch)
tree6b11d0bc5825a0866a025966cf4e4cb698d88344 /repo.php
parentd1005286f1b5179a18d96a2804096155a09706d8 (diff)
downloadwebtrees-2da3f3b6ec2521d6c882c556d67a24a01263f452.tar.gz
webtrees-2da3f3b6ec2521d6c882c556d67a24a01263f452.tar.bz2
webtrees-2da3f3b6ec2521d6c882c556d67a24a01263f452.zip
I18N: do not use %s placeholders for HTML fragments. This breaks the LTR/RTL display logic. Instead, the embedded text needs to be complete HTML.
Add help text for pending changes.
Diffstat (limited to 'repo.php')
-rw-r--r--repo.php32
1 files changed, 28 insertions, 4 deletions
diff --git a/repo.php b/repo.php
index ea6ef47fc8..d177d8398f 100644
--- a/repo.php
+++ b/repo.php
@@ -35,15 +35,39 @@ if ($controller->repository && $controller->repository->canDisplayName()) {
print_header($controller->getPageTitle());
if ($controller->repository->isMarkedDeleted()) {
if (WT_USER_CAN_ACCEPT) {
- echo '<p class="ui-state-highlight">', WT_I18N::translate('This repository has been deleted. You should review the deletion and then <a href="%1$s">accept</a> or <a href="%2$s">reject</a> it.', $controller->repository->getHtmlUrl().'&amp;action=accept', $controller->repository->getHtmlUrl().'&amp;action=undo'), '</p>';
+ echo
+ '<p class="ui-state-highlight">',
+ /* I18N: %1$s is "accept", %2$s is "reject". These are links. */ WT_I18N::translate(
+ 'This repository has been deleted. You should review the deletion and then %1$s or %2$s it.',
+ '<a href="' . $controller->repository->getHtmlUrl() . '&amp;action=accept">' . WT_I18N::translate_c('You should accept or reject it.', 'accept') . '</a>',
+ '<a href="' . $controller->repository->getHtmlUrl() . '&amp;action=undo">' . WT_I18N::translate_c('You should accept or reject it.', 'reject') . '</a>'
+ ),
+ ' ', help_link('pending_changes'),
+ '</p>';
} elseif (WT_USER_CAN_EDIT) {
- echo '<p class="ui-state-highlight">', WT_I18N::translate('This repository has been deleted. The deletion will need to be reviewed by a moderator.'), '</p>';
+ echo
+ '<p class="ui-state-highlight">',
+ WT_I18N::translate('This repository has been deleted. The deletion will need to be reviewed by a moderator.'),
+ ' ', help_link('pending_changes'),
+ '</p>';
}
} elseif (find_updated_record($controller->repository->getXref(), WT_GED_ID)!==null) {
if (WT_USER_CAN_ACCEPT) {
- echo '<p class="ui-state-highlight">', WT_I18N::translate('This repository has been edited. You should review the changes and then <a href="%1$s">accept</a> or <a href="%2$s">reject</a> them.', $controller->repository->getHtmlUrl().'&amp;action=accept', $controller->repository->getHtmlUrl().'&amp;action=undo'), '</p>';
+ echo
+ '<p class="ui-state-highlight">',
+ /* I18N: %1$s is "accept", %2$s is "reject". These are links. */ WT_I18N::translate(
+ 'This repository has been edited. You should review the changes and then %1$s or %2$s them.',
+ '<a href="' . $controller->repository->getHtmlUrl() . '&amp;action=accept">' . WT_I18N::translate_c('You should accept or reject it.', 'accept') . '</a>',
+ '<a href="' . $controller->repository->getHtmlUrl() . '&amp;action=undo">' . WT_I18N::translate_c('You should accept or reject it.', 'reject') . '</a>'
+ ),
+ ' ', help_link('pending_changes'),
+ '</p>';
} elseif (WT_USER_CAN_EDIT) {
- echo '<p class="ui-state-highlight">', WT_I18N::translate('This repository has been edited. The changes need to be reviewed by a moderator.'), '</p>';
+ echo
+ '<p class="ui-state-highlight">',
+ WT_I18N::translate('This repository has been edited. The changes need to be reviewed by a moderator.'),
+ ' ', help_link('pending_changes'),
+ '</p>';
}
} elseif ($controller->accept_success) {
echo '<p class="ui-state-highlight">', WT_I18N::translate('The changes have been accepted.'), '</p>';