From e7c028eed6db8efda3efeb544992e3641f2d13d7 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Tue, 21 Jan 2020 14:30:12 +0100 Subject: [ticket/16332] Code and Quote language strings globally available PHPBB3-16332 --- phpBB/language/en/common.php | 4 ++++ phpBB/language/en/viewtopic.php | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/phpBB/language/en/common.php b/phpBB/language/en/common.php index 3ba63746c8..6a27e6b89d 100644 --- a/phpBB/language/en/common.php +++ b/phpBB/language/en/common.php @@ -167,6 +167,7 @@ $lang = array_merge($lang, array( ), 'COLLAPSE_VIEW' => 'Collapse view', 'CLOSE_WINDOW' => 'Close window', + 'CODE' => 'Code', 'COLOUR_SWATCH' => 'Colour swatch', 'COLON' => ':', 'COMMA_SEPARATOR' => ', ', // Comma used to join lists into a single string, use localised comma if appropriate, eg: Ideographic or Arabic @@ -605,6 +606,9 @@ $lang = array_merge($lang, array( 'POST_UNAPPROVED_ACTION' => 'Post awaiting approval:', 'POST_UNAPPROVED' => 'This post has not been approved.', 'POWERED_BY' => 'Powered by %s', + + 'QUOTE' => 'Quote', + 'PREVIEW' => 'Preview', 'PREVIOUS' => 'Previous', // Used in pagination 'PREVIOUS_STEP' => 'Previous', diff --git a/phpBB/language/en/viewtopic.php b/phpBB/language/en/viewtopic.php index 5d127acb3d..e5c9be0517 100644 --- a/phpBB/language/en/viewtopic.php +++ b/phpBB/language/en/viewtopic.php @@ -49,8 +49,6 @@ $lang = array_merge($lang, array( 'BUMPED_BY' => 'Last bumped by %1$s on %2$s.', 'BUMP_TOPIC' => 'Bump topic', - 'CODE' => 'Code', - 'DELETE_TOPIC' => 'Delete topic', 'DELETED_INFORMATION' => 'Deleted by %1$s on %2$s', 'DISAPPROVE' => 'Disapprove', @@ -98,7 +96,6 @@ $lang = array_merge($lang, array( 'QUICK_MOD' => 'Quick-mod tools', 'QUICKREPLY' => 'Quick Reply', - 'QUOTE' => 'Quote', 'REPLY_TO_TOPIC' => 'Reply to topic', 'RESTORE' => 'Restore', -- cgit v1.2.3-65-gdbad From 5bc7723febf859c7ce75708770c3607baffae7a3 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Tue, 21 Jan 2020 17:43:11 +0100 Subject: [ticket/16332] Amend formatting tests to expect translated code string PHPBB3-16332 --- tests/text_formatter/s9e/default_formatting_test.php | 10 +++++----- tests/text_processing/tickets_data/PHPBB3-11742.html | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/text_formatter/s9e/default_formatting_test.php b/tests/text_formatter/s9e/default_formatting_test.php index 1aa4f0bc3a..ce15a52adc 100644 --- a/tests/text_formatter/s9e/default_formatting_test.php +++ b/tests/text_formatter/s9e/default_formatting_test.php @@ -82,7 +82,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case ), array( '[code]unparsed code[/code]', - '

CODE: Select all

unparsed code
' + '

Code: Select all

unparsed code
' ), array( '[list]no item[/list]', @@ -195,12 +195,12 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case array( // Do not parse textual bbcodes in code '[code]unparsed code [b]bold [i]bold + italic[/i][/b][/code]', - '

CODE: Select all

unparsed code [b]bold [i]bold + italic[/i][/b]
' + '

Code: Select all

unparsed code [b]bold [i]bold + italic[/i][/b]
' ), array( // Do not parse quote bbcodes in code '[code]unparsed code [quote="username"]quoted[/quote][/code]', - '

CODE: Select all

unparsed code [quote="username"]quoted[/quote]
' + '

Code: Select all

unparsed code [quote="username"]quoted[/quote]
' ), array( // Textual bbcode nesting into textual bbcode @@ -209,11 +209,11 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case ), array( "[code]\tline1\n line2[/code]", - '

CODE: Select all

' . "\tline1\n  line2
" + '

Code: Select all

' . "\tline1\n  line2
" ), array( "[code]\n\tline1\n line2[/code]", - '

CODE: Select all

' . "\tline1\n  line2
" + '

Code: Select all

' . "\tline1\n  line2
" ), array( '... http://example.org ...', diff --git a/tests/text_processing/tickets_data/PHPBB3-11742.html b/tests/text_processing/tickets_data/PHPBB3-11742.html index e7890eef19..5ce263f4f9 100644 --- a/tests/text_processing/tickets_data/PHPBB3-11742.html +++ b/tests/text_processing/tickets_data/PHPBB3-11742.html @@ -1 +1 @@ -

CODE: Select all

	tab
\ No newline at end of file +

Code: Select all

	tab
\ No newline at end of file -- cgit v1.2.3-65-gdbad