[anchor={INTTEXT1} goto={INTTEXT2}]{TEXT}[/anchor]
<a id="quoted{INTTEXT1}" href="#quoted{INTTEXT2}" class="anchor postlink-local" title="Go to Anchor {INTTEXT2}">{TEXT}</a>
[anchor=Identifier goto=Identifier] Some Text [/anchor]
[anchor={INTTEXT1} goto={INTTEXT2}]{TEXT}[/anchor]
<a id="quoted{INTTEXT1}" href="#quoted{INTTEXT2}" class="anchor postlink-local" title="{L_LANGUAGE_VARIABLE_1} {INTTEXT2}">{TEXT}</a>
[anchor={L_LANGUAGE_VARIABLE_2}goto={L_LANGUAGE_VARIABLE_3}] {L_LANGUAGE_VARIABLE_4} [/anchor]
bbcode_helpline
in the source and it seems like it's already supported in a way. The whole helpline is replaced if it matches a translatable string. It's in display_custom_bbcodes()
MY_LANG_KEY
(uppercase)Code: Select all
'MY_LANG_KEY' => '[anchor=Identifier goto=Identifier] Some Text [/anchor]',
Just that without { } ? And without the L_ ? is that it?3Di wrote: ↑Sat Jan 13, 2018 5:53 pm ACP
BBcode helpline:MY_LANG_KEY
(uppercase)
Lang file, IE.: my_ext_common.phpCode: Select all
'MY_LANG_KEY' => '[anchor=Identifier goto=Identifier] Some Text [/anchor]',
Code: Select all
'MY_LANG_KEY' => '[anchor=Identifier goto=Identifier] Some Text [/anchor]',
'MY_LANG_KEY'
is {L_MY_LANG_KEY}
in BBCodeACP
> POSTING
> BBCodes
> [Add a new BBCode]
wrote:Within the HTML replacement you can also use any language string present in yourlanguage/ directory
like this:{L_<STRINGNAME>}
where<STRINGNAME>
is the name of the translated string you want to add. For example,{L_WROTE}
will be displayed as "wrote
" or its translation according to user’s locale.
As it is.Tarantino wrote: ↑Sat Jan 13, 2018 6:14 pmJust that without { } ? And without the L_ ? is that it?3Di wrote: ↑Sat Jan 13, 2018 5:53 pm ACP
BBcode helpline:MY_LANG_KEY
(uppercase)
Lang file, IE.: my_ext_common.phpCode: Select all
'MY_LANG_KEY' => '[anchor=Identifier goto=Identifier] Some Text [/anchor]',
And about the HTML, do you know something about it?
title="{{ lang('MY_LANG_KEY') }}"