Page 1 of 1

Different name for custom block in different languages

Posted: 8. November 2008 21:23
by JirkaX
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hi, is it possible to have different name for custom block for different language? To the name field of custom block I added {L_ADVERTISEMENT} and to common.php I added

Code: Select all

'ADVERTISEMENT'		=> 'REKLAMNÍ BANNER',
for Czech and

Code: Select all

'ADVERTISEMENT'		=> 'ADVERTISEMENT',
for English ... but it doesn't work. Do you have any idea?[/i]

Re: Different name for custom block in different languages

Posted: 9. November 2008 00:55
by Kevin
You need to set this variable in the language files of the portal, not in the common.php:

\root\language\en\mods\lang_portal.php

Code: Select all

    'ADVERTISEMENT'      => 'ADVERTISEMENT', 
and
\root\language\cz\mods\lang_portal.php

Code: Select all

    'ADVERTISEMENT'      => 'REKLAMNÍ BANNER', 
replace in the template e.g.:

Code: Select all

{PORTAL_CUSTOM_CENTER_HEADLINE} 
with:

Code: Select all

{L_ADVERTISEMENT}  
Don't forget to purge the cache. ;)

Re: Different name for custom block in different languages

Posted: 9. November 2008 10:13
by JirkaX
thanks a lot