[cBB chat 1.1.0] language variables are not loaded


no_avatar
leschek
 
Mensajes: 65
Registrado: Sab Sep 08, 2012 10:08 pm
 Dom May 24, 2015 4:26 pm • a través de 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.
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2010
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Lun May 25, 2015 10:35 am • a través de Web
Hi,

Try with this:
1. Open: /ext/canidev/chat/event/listener.php
2. find:
Código: Seleccionar todo
$this->user->add_lang_ext('canidev/chat', 'main');

3. Replace with:
Código: Seleccionar todo
      $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;
no_avatar
leschek
 
Mensajes: 65
Registrado: Sab Sep 08, 2012 10:08 pm
 Lun May 25, 2015 12:56 pm • a través de Web
Thank you,
it seems it's working now.

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados