1
svaha
Newbb2 multilingo problems
  • 2004/10/14 17:18

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I've installed newbb2, everything is ok, except the translation of name forums, cat forums.
Content is Ok.
I don't understand because I thought that : getvar : automatically leads to the textsanitizer and it would be filtered to display the proper language.

Anyone?

You can see it : here

2
marcan
Re:Newbb2 multilingo problems
  • 2004/10/14 18:59

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Hi svaha !

Quote:
I don't understand because I thought that : getvar : automatically leads to the textsanitizer and it would be filtered to display the proper language.

Actually, it depends of the type of the property.

I've changed kernel/object.php to fix this problem. I did not fully tested it thought. You can download it here : object_hack_ml.zip

Could you test this and let me know if it works ?

Thanks !

3
svaha
Re:Newbb2 multilingo problems
  • 2004/10/14 21:45

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Thanks for your effort Marcan, I tested it and it's partly solved now.
Forum index is multilingo
In 'forum view'the topic is not yet translated : viewforum forum =6

In topic view, the tree menu above is not yet translated as you can see : here

The recent topics block is not in multilingo as is the recent topics scroller.

Cheers

4
marcan
Re:Newbb2 multilingo problems
  • 2004/10/15 12:34

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Hi svaha

I currently don't have time to test newbb2 and look in the code to find where is the code that produces those not translated strings. However, if you could do that part and point me where it is in the code, I would be able to fix it really quickly. And I think a lot of xoopsers will soon ask for the ML hack of newbb2 so, why not do it now !

Let me know !

5
davidyanez
Re:Newbb2 multilingo problems
  • 2004/10/15 23:12

  • davidyanez

  • Just popping in

  • Posts: 1

  • Since: 2004/10/15


Hi, Marcan
I enter in this site to look the problem
http://www.rainbowshaman.com/modules/newbb/viewtopic.php?topic_id=36&forum=6

I'm find this language code
Rainbow Shaman Forum Index
XOOPS [ee]English[/ee][nl]Nederlands[/nl]
[ee]Testing[/ee][nl]Testen[/nl] newbb


QuestionThe correct code in ML for English language is [en][/en] or [ee][/ee] or we can add any code for ML?

Do you have a list the code for different languages?
1. English [en][/en]
2. Spanish [sp][/sp]
3. Portuguese [br][/br]
etc, etc,

Thanks,
David

6
marcan
Re:Newbb2 multilingo problems
  • 2004/10/15 23:58

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Good point David

svaha, could you check that and post te feedback here ?

Thanks !

7
svaha
Re:Newbb2 multilingo problems
  • 2004/10/16 14:10

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Yes I use [ee][/ee] for my english content. Only in theme I use _en.
Now I solved the multilingo problem, with exception of the topic_name display in viewforum. Until now I could not solve this, you can see it here

Now, I don't know if this is good programming, see for yourself, this is what I changed :

blocks/newbb_new.php
From line 157 :
// hhts multilingo
$topic['forum_name'] = $myts->makeTboxData4Show($myts->htmlSpecialChars($arr['forum_name']));
$topic['id'] = $arr['topic_id'];

if(in_array($arr['topic_poster'], $forum_admin) && $allow_moderator_html){
// hhts multilingo
$topic['title'] = $myts->makeTboxData4Show($arr['topic_title']);
}else{
$topic['title'] = $myts->makeTboxData4Show($myts->htmlSpecialChars($arr['topic_title']));

viewtopic.php
From line 183 :
// hhts multilingo
$forumdata['topic_title'] = $myts->makeTboxdata4Show($myts->undohtmlSpecialChars($forumdata['topic_title']));
else
$forumdata['topic_title'] = $myts->makeTboxData4Show($forumdata['topic_title']);
$forumdata['forum_name'] = $myts->makeTboxData4Show($forumdata['forum_name']);
// hhts multilingo

8
svaha
Re:Newbb2 multilingo problems
  • 2004/10/19 14:25

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


search.php
From line 146
// hhts multilingo
$xoopsTpl->append('results', array('forum_name' => $myts->makeTboxdata4Show($myts->htmlSpecialChars($row['forum_name'])), 'forum_id' => $row['forum_id'], 'topic_id' => $row['topic_id'], 'topic_title' => $myts->makeTboxData4Show($myts->htmlSpecialChars($row['topic_title'])), 'topic_replies' => $row['topic_replies'], 'topic_views' => $row['topic_views'], 'poster' => $row['poster'], 'post_time' => formatTimestamp($row['time'], "m")));

Login

Who's Online

255 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 255


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits