Customizing SMF > Graphics and Templates
How to format the translated strings of Mods?
Vahid Damanafshan:
Suppose a Mod has been translated into another language. How to format the translated text? I mean by formatting making the text bold or changing the color of the text. In short, how can I format the underlined text shown below?
$txt['some_text'] = 'bla bla bla bla';
SMFHacks.com Team:
You can use html code tags such as <b> <u> <i>
Vahid Damanafshan:
--- Quote from: SMFHacks.com Team on June 07, 2012, 04:13:03 PM ---You can use html code tags such as <b> <u> <i>
--- End quote ---
I've already tried it. When I use these code, the result is like the following. In other words, the code itself is displayed in the output, too.
--- Code: ---$txt['some_text'] = '[b]bla bla bla bla[/b]';
--- End code ---
SMFHacks.com Team:
The mod may not allowed html in those text strings and is auto stripping it from formatting.
Vahid Damanafshan:
--- Quote from: SMFHacks.com Team on June 07, 2012, 04:46:58 PM ---The mod may not allowed html in those text strings and is auto stripping it from formatting.
--- End quote ---
I have the same problem when translating files such as post.template.php, too.
You mean there isn't any solution for this problem?
Navigation
[0] Message Index
[#] Next page
Go to full version