mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-14 12:52:08 +02:00
Merge pull request #5833 from mrgoldy/ticket/16332
[ticket/16332] Code and Quote language strings globally available
This commit is contained in:
commit
eff3b08d49
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -82,7 +82,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
||||
),
|
||||
array(
|
||||
'[code]unparsed code[/code]',
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code</code></pre></div>'
|
||||
'<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code</code></pre></div>'
|
||||
),
|
||||
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]',
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code [b]bold [i]bold + italic[/i][/b]</code></pre></div>'
|
||||
'<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code [b]bold [i]bold + italic[/i][/b]</code></pre></div>'
|
||||
),
|
||||
array(
|
||||
// Do not parse quote bbcodes in code
|
||||
'[code]unparsed code [quote="username"]quoted[/quote][/code]',
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code [quote="username"]quoted[/quote]</code></pre></div>'
|
||||
'<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code [quote="username"]quoted[/quote]</code></pre></div>'
|
||||
),
|
||||
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]",
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>' . "\tline1\n line2</code></pre></div>"
|
||||
'<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>' . "\tline1\n line2</code></pre></div>"
|
||||
),
|
||||
array(
|
||||
"[code]\n\tline1\n line2[/code]",
|
||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>' . "\tline1\n line2</code></pre></div>"
|
||||
'<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>' . "\tline1\n line2</code></pre></div>"
|
||||
),
|
||||
array(
|
||||
'... http://example.org ...',
|
||||
|
@ -1 +1 @@
|
||||
<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code> tab</code></pre></div>
|
||||
<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code> tab</code></pre></div>
|
Loading…
x
Reference in New Issue
Block a user