From 9419edd6862aabf59a989ab7cb88d938cf3b0247 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 12 Mar 2014 00:56:07 +0100 Subject: [PATCH 1/3] [ticket/8041] Merge item name into "Return to" string for better translations PHPBB3-8041 --- phpBB/includes/ucp/ucp_pm.php | 5 +++-- phpBB/language/en/acp/common.php | 1 - phpBB/language/en/common.php | 2 +- phpBB/search.php | 1 + phpBB/styles/prosilver/template/jumpbox.html | 6 +++--- phpBB/styles/prosilver/template/search_results.html | 2 +- phpBB/styles/prosilver/template/ucp_pm_message_header.html | 2 +- phpBB/viewforum.php | 1 + phpBB/viewtopic.php | 1 + 9 files changed, 12 insertions(+), 9 deletions(-) diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php index 517ae0b08c..1500a24bc1 100644 --- a/phpBB/includes/ucp/ucp_pm.php +++ b/phpBB/includes/ucp/ucp_pm.php @@ -353,8 +353,9 @@ class ucp_pm { $template->assign_vars(array( 'S_VIEW_MESSAGE' => true, - 'MSG_ID' => $msg_id) - ); + 'L_RETURN_TO_FOLDER'=> $user->lang('RETURN_TO', $folder_status['folder_name']), + 'MSG_ID' => $msg_id, + )); if (!$msg_id) { diff --git a/phpBB/language/en/acp/common.php b/phpBB/language/en/acp/common.php index 0e867c64a9..a44002559a 100644 --- a/phpBB/language/en/acp/common.php +++ b/phpBB/language/en/acp/common.php @@ -288,7 +288,6 @@ $lang = array_merge($lang, array( 'RESYNC' => 'Resynchronise', 'RESYNC_FILES_STATS' => 'Resynchronise files statistics', 'RESYNC_FILES_STATS_EXPLAIN' => 'Recalculates the total number and size of files attached to posts and private messages.', - 'RETURN_TO' => 'Return to…', 'SELECT_ANONYMOUS' => 'Select anonymous user', 'SELECT_OPTION' => 'Select option', diff --git a/phpBB/language/en/common.php b/phpBB/language/en/common.php index 1550271a3e..0385edcc41 100644 --- a/phpBB/language/en/common.php +++ b/phpBB/language/en/common.php @@ -600,7 +600,7 @@ $lang = array_merge($lang, array( 'RETURN_FORUM' => '%sReturn to the forum last visited%s', 'RETURN_PAGE' => '%sReturn to the previous page%s', 'RETURN_TOPIC' => '%sReturn to the topic last visited%s', - 'RETURN_TO' => 'Return to', + 'RETURN_TO' => 'Return to %s', 'FEED' => 'Feed', 'FEED_NEWS' => 'News', 'FEED_TOPICS_ACTIVE' => 'Active Topics', diff --git a/phpBB/search.php b/phpBB/search.php index d03cef5e14..4756a941f5 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -1020,6 +1020,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) { $template->assign_vars(array( 'SEARCH_TOPIC' => $topic_title, + 'L_RETURN_TO_TOPIC' => $user->lang('RETURN_TO', $topic_title), 'U_SEARCH_TOPIC' => $view_topic_url )); } diff --git a/phpBB/styles/prosilver/template/jumpbox.html b/phpBB/styles/prosilver/template/jumpbox.html index 201b2dece2..47d322407d 100644 --- a/phpBB/styles/prosilver/template/jumpbox.html +++ b/phpBB/styles/prosilver/template/jumpbox.html @@ -1,10 +1,10 @@ -

{L_RETURN_TO} {FORUM_NAME}

+

{L_RETURN_TO_FORUM}

-

{L_RETURN_TO} {L_INDEX}

+

{L_RETURN_TO_INDEX}

-

{L_RETURN_TO}{L_COLON} {SEARCH_TOPIC}

+

{L_RETURN_TO_TOPIC}

{L_RETURN_TO_SEARCH_ADV}

diff --git a/phpBB/styles/prosilver/template/search_results.html b/phpBB/styles/prosilver/template/search_results.html index 1a83484235..da73a7eef9 100644 --- a/phpBB/styles/prosilver/template/search_results.html +++ b/phpBB/styles/prosilver/template/search_results.html @@ -6,7 +6,7 @@

{L_PHRASE_SEARCH_DISABLED}

-

{L_RETURN_TO}{L_COLON} {SEARCH_TOPIC}

+

{L_RETURN_TO_TOPIC}

{L_RETURN_TO_SEARCH_ADV}

diff --git a/phpBB/styles/prosilver/template/ucp_pm_message_header.html b/phpBB/styles/prosilver/template/ucp_pm_message_header.html index 7a80f72348..a6ef3fc7dd 100644 --- a/phpBB/styles/prosilver/template/ucp_pm_message_header.html +++ b/phpBB/styles/prosilver/template/ucp_pm_message_header.html @@ -18,7 +18,7 @@