diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-06-24 09:45:56 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-06-24 09:45:56 +0000 |
| commit | 2da3f3b6ec2521d6c882c556d67a24a01263f452 (patch) | |
| tree | 6b11d0bc5825a0866a025966cf4e4cb698d88344 /repo.php | |
| parent | d1005286f1b5179a18d96a2804096155a09706d8 (diff) | |
| download | webtrees-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.php | 32 |
1 files changed, 28 insertions, 4 deletions
@@ -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().'&action=accept', $controller->repository->getHtmlUrl().'&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() . '&action=accept">' . WT_I18N::translate_c('You should accept or reject it.', 'accept') . '</a>', + '<a href="' . $controller->repository->getHtmlUrl() . '&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().'&action=accept', $controller->repository->getHtmlUrl().'&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() . '&action=accept">' . WT_I18N::translate_c('You should accept or reject it.', 'accept') . '</a>', + '<a href="' . $controller->repository->getHtmlUrl() . '&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>'; |
