Different name for custom block in different languages

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

Different name for custom block in different languages

Post 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]
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Different name for custom block in different languages

Post 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. ;)
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

Re: Different name for custom block in different languages

Post by JirkaX »

thanks a lot
Locked

Return to “board3 Portal 1.0.x - English Support”