mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Allow translation of Custom BBCode help messages.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9328 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e18d7df6c0
commit
07523011d2
2 changed files with 8 additions and 1 deletions
|
@ -105,6 +105,7 @@
|
||||||
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
|
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
|
||||||
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>
|
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>
|
||||||
<li>[Change] Added new options for visual confirmation.</li>
|
<li>[Change] Added new options for visual confirmation.</li>
|
||||||
|
<li>[Feature] Allow translation of Custom BBCode help messages. (Patch by bantu)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a name="v303"></a><h3>1.ii. Changes since 3.0.3</h3>
|
<a name="v303"></a><h3>1.ii. Changes since 3.0.3</h3>
|
||||||
|
|
|
@ -846,7 +846,7 @@ function topic_status(&$topic_row, $replies, $unread_topic, &$folder_img, &$fold
|
||||||
*/
|
*/
|
||||||
function display_custom_bbcodes()
|
function display_custom_bbcodes()
|
||||||
{
|
{
|
||||||
global $db, $template;
|
global $db, $template, $user;
|
||||||
|
|
||||||
// Start counting from 22 for the bbcode ids (every bbcode takes two ids - opening/closing)
|
// Start counting from 22 for the bbcode ids (every bbcode takes two ids - opening/closing)
|
||||||
$num_predefined_bbcodes = 22;
|
$num_predefined_bbcodes = 22;
|
||||||
|
@ -860,6 +860,12 @@ function display_custom_bbcodes()
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
|
// If the helpline is defined within the language file, we will use the localized version, else just use the database entry...
|
||||||
|
if (isset($user->lang[strtoupper($row['bbcode_helpline'])]))
|
||||||
|
{
|
||||||
|
$row['bbcode_helpline'] = $user->lang[strtoupper($row['bbcode_helpline'])];
|
||||||
|
}
|
||||||
|
|
||||||
$template->assign_block_vars('custom_tags', array(
|
$template->assign_block_vars('custom_tags', array(
|
||||||
'BBCODE_NAME' => "'[{$row['bbcode_tag']}]', '[/" . str_replace('=', '', $row['bbcode_tag']) . "]'",
|
'BBCODE_NAME' => "'[{$row['bbcode_tag']}]', '[/" . str_replace('=', '', $row['bbcode_tag']) . "]'",
|
||||||
'BBCODE_ID' => $num_predefined_bbcodes + ($i * 2),
|
'BBCODE_ID' => $num_predefined_bbcodes + ($i * 2),
|
||||||
|
|
Loading…
Add table
Reference in a new issue