Localised version inner workings with display

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
derebo
Active Member
Posts: 10
Joined: 18. September 2010 18:31

Localised version inner workings with display

Post by derebo »

Your Portal Version: 1.0.6
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Advanced Knowledge
Boardlink: http://www.ponlestulanota.com

What have you done before the problem was there?
Install board3 and localised lang files

What have you already tryed to solve the problem?
checked all lang files in board3, localised language version and phpbb3 language files for mistakes in string construction.

Description and Message
Hello,

Could anyone please confirm if my intuition is right concerning board3 internationalization and front-end localised strings?

First, board3 looks for text string in xx/mods/lang_portal.php

If the string is not there it resources to language/xx/common.php

So is there any reason why after a proper install of board3 and language files some module names (right and left positions) on the front-end are displayed in localised version and others in English when the translated string is properly constructed in xx/mods/lang_portal.php?

e.g. the string below is shown in localised language:

// last bots
'LAST_VISITED_BOTS' => 'Última %s visita de robots',

However, other strings are shown in English:

// links
'LINKS' => 'Links',

instead of Spanish:

// links
'LINKS' => 'Enlaces',

Thank you for your attention,

Topic author
derebo
Active Member
Posts: 10
Joined: 18. September 2010 18:31

Re: Localised version inner workings with display

Post by derebo »

phpBB-3.0.7-PL1
board3_portal_1_0_6

English-based forum install; Spanish set as default language in ACP.

Strangely, some mod names in board3_portal_1_0_6 user frontpage are shown in English instead of Spanish.

eg. Clock
board3_portal_1_0_6 Spanish language file reads:
language/es/mods/lang_portal.php

Code: Select all

	'CLOCK'				=> 'Reloj',
whereas board3_portal_1_0_6 English language file reads:
language/en/mods/lang_portal.php

Code: Select all

	'CLOCK'		=> 'Clock',
As Spanish is set as default language 'Reloj' should be displayed. However, 'Clock' is displayed!

Same thing happens with enabled mods in my forum's left side column displayed as:
clock
random member
peak posters
newest members
link to us

... with enabled mods in my forum's right side column displayed as:
calendar
links

and with enabled mods in my forum's centar part displayed as:
welcome
recent
latest global annoucements
latest news
paypal donations


Trying to trace the Clock mistake I have landed in:

styles/prosilver/template/portal/block/clock.html

Code: Select all

{$LR_BLOCK_H_L}<!-- IF $S_BLOCK_ICON --><img src="{T_THEME_PATH}/images/portal/portal_clock.png" width="16" height="16" alt="" />&nbsp;<!-- ENDIF -->{L_CLOCK}{$LR_BLOCK_H_R}
where the last part of the code is reponsible for displaying the text string:

Code: Select all

{L_CLOCK}{$LR_BLOCK_H_R}
Might it be that something should be changed in the string above so that the text is properly displayed in Spanish?

The strings below also show the text in English

styles/prosilver/template/portal/block/random_member.html

Code: Select all

{L_RND_MEMBER}{$LR_BLOCK_H_R}
styles/prosilver/template/portal/block/birthday_list.html

Code: Select all

{L_BIRTHDAYS}{$LR_BLOCK_H_R}
And the strings below show the text in Spanish
styles/prosilver/template/portal/block/statistics.html

Code: Select all

{L_STATISTICS}{$LR_BLOCK_H_R}
styles/prosilver/template/portal/block/latest_bots.html

Code: Select all

{LAST_VISITED_BOTS}{$LR_BLOCK_H_R}
So I don't see a real difference or a hint that could help me find the error, if any. So I kindly ask your assistance in this matter that might be of interest to admins in multilingual settings.

BIG Thank you!
Locked

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