?
avatar SharkyKZ
SharkyKZ
16 Mar 2019

Steps to reproduce the issue

Enable language debug. Enable some plugins that autoload language files. Check loaded language files.

Expected result

Plugin language files loaded.

Actual result

Plugin language files not loaded.

System information (as much as possible)

4.0-dev nightly.

Additional comments

Seems to be stemming from #21768. CC @laoneo.

avatar SharkyKZ SharkyKZ - open - 16 Mar 2019
avatar joomla-cms-bot joomla-cms-bot - change - 16 Mar 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Mar 2019
avatar SharkyKZ SharkyKZ - change - 16 Mar 2019
Title
[4.0] Language not loaded in plugin constructors
[4.0] Language files not loaded by plugin constructors
avatar SharkyKZ SharkyKZ - edited - 16 Mar 2019
avatar SharkyKZ SharkyKZ - change - 16 Mar 2019
The description was changed
avatar SharkyKZ SharkyKZ - edited - 16 Mar 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Mar 2019
Status New Discussion
avatar SharkyKZ
SharkyKZ - comment - 16 Mar 2019

$locale = $conf->get('language');

This returns NULL but it should be language code?

avatar laoneo
laoneo - comment - 16 Mar 2019

Is it a specific plugin or all of them?

avatar ReLater
ReLater - comment - 16 Mar 2019

Related? #17444

avatar SharkyKZ
SharkyKZ - comment - 16 Mar 2019

@laoneo this happens with plugins that load language in the constructor. Loading language manually later on during any plugin event works fine.

@ReLater Yes, it's the same. Guess I should close this.

avatar SharkyKZ SharkyKZ - change - 16 Mar 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-03-16 15:41:42
Closed_By SharkyKZ
avatar SharkyKZ SharkyKZ - close - 16 Mar 2019
avatar brianteeman
brianteeman - comment - 16 Mar 2019

This is what @wilsonge struggled and failed to work out last week

Add a Comment

Login with GitHub to post a comment