[cBB chat 1.1.0] language variables are not loaded




leschek
 
Posts: 59
Joined: Sat Sep 08, 2012 10:08 pm

[cBB chat 1.1.0] language variables are not loaded

Postby leschek » Sun May 24, 2015 4:26 pm • via Web
It seems that language variables are not loaded (in chat window on index) from language files if they are from different language than the default language of board. For example if I set board language to English, but in UCP I change language to Czech (extension's files are translated) the chat window shows English lines and not Czech as it should. I think it is similar problem as I reported couple of months ago to author of phpBB Gallery extension.
User avatar

IvanPF
Site Admin
 
Posts: 1428
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)

Re: [cBB chat 1.1.0] language variables are not loaded

Postby IvanPF » Mon May 25, 2015 10:35 am • via Web
Hi,

Try with this:
1. Open: /ext/canidev/chat/event/listener.php
2. find:
Code: Select all
$this->user->add_lang_ext('canidev/chat', 'main');

3. Replace with:
Code: Select all
      $lang_set_ext = $event['lang_set_ext'];
      $lang_set_ext[] = array(
         'ext_name' => 'canidev/chat',
         'lang_set' => 'main',
      );
      $event['lang_set_ext'] = $lang_set_ext;


leschek
 
Posts: 59
Joined: Sat Sep 08, 2012 10:08 pm

Re: [cBB chat 1.1.0] language variables are not loaded

Postby leschek » Mon May 25, 2015 12:56 pm • via Web
Thank you,
it seems it's working now.

Who is online

Users browsing this forum: No registered users and 1 guest

cron