J4 Issue ?
avatar joeforjoomla
joeforjoomla
22 Oct 2018

Steps to reproduce the issue

Install J4 Alpha5, install a module having language files included in the module path such as:

Joomla40/modules/mod_mymodule/language/en-GB/en-GB.mod_mymodule.ini

Expected result

Language files are correctly loaded from Joomla40/modules/mod_mymodule/language/en-GB/en-GB.mod_mymodule.ini

Actual result

Language files are loaded from Joomla40/modules/mod_mymodule/language/en-GB/en-GB.mod_mymodule.ini but seems lost or overwritten at some point, and the result is having modules strings untranslated.

System information (as much as possible)

Additional comments

avatar joeforjoomla joeforjoomla - open - 22 Oct 2018
avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Oct 2018
avatar infograf768
infograf768 - comment - 23 Oct 2018

Can you post such a module?
I wanted to test for plugins but I can't install a 3.x plugin on j4 because I get a Call to a member function clean() on null from
Undefined variable: pathObject in /Applications/MAMP/htdocs/installmulti/joomla40/libraries/src/Filesystem/File.php on line 472

avatar infograf768
infograf768 - comment - 23 Oct 2018

Also tested after modifying that plugin to use J4 methods. Same result.

avatar infograf768
infograf768 - comment - 23 Oct 2018

Ok, therefore I added the plugin manually and I discovered it Ok.
Language file is loaded fine.
Will try to find a module where the language files are only in its language folder to test your issue (on last j4.0-dev)

avatar infograf768
infograf768 - comment - 23 Oct 2018

Strings are loaded OK in backend for a module.
Do you have the issue in backend as well as frontend?

avatar brianteeman brianteeman - change - 23 Oct 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 23 Oct 2018
avatar laoneo
laoneo - comment - 23 Oct 2018

@joeforjoomla where do you see untranslated strings?

avatar laoneo
laoneo - comment - 23 Oct 2018

@infograf768 please test #22771 if the upload works now.

avatar joeforjoomla
joeforjoomla - comment - 23 Oct 2018

@infograf768 @laoneo refer to this PR #22786 where i narrowed down the problem, probably due to the recently merged modules dispatcher

avatar Quy Quy - change - 23 Oct 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-10-23 21:46:58
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2018
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 23 Oct 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 23 Oct 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/22768

avatar infograf768
infograf768 - comment - 24 Oct 2018

@joeforjoomla
You have not replied to my question.
Is the issue present in frontend too?
IN backend I could not reproduce your issue.

Please add here the zip of a module for which you have the issue as I could not reproduce it.

avatar infograf768
infograf768 - comment - 24 Oct 2018

I again did a test:
I took off from the core language folder in admin the 2 files
en-GB.mod_multilangstatus.ini
en-GB.mod_multilangstatus.sys.ini

These 2 files are also present in the language folder of the module.
They ARE loaded OK, as can be seen in the debug below:

screen shot 2018-10-24 at 07 24 03

avatar infograf768
infograf768 - comment - 24 Oct 2018

To test debug lang for site modules, one has first to apply this patch:
#22775

avatar infograf768
infograf768 - comment - 24 Oct 2018

HMm, tested in frontend and the issue IS in frontend.
will test now #22786

avatar infograf768
infograf768 - comment - 24 Oct 2018

See my comment #22786 (comment)

Add a Comment

Login with GitHub to post a comment