Page 1 of 1

Unwanted text on LMS homepage

Posted: Thu Jul 05, 2018 8:58 pm
by pmanly
I have just upgraded my formalms from 1.4.2 to 2.0 in a test environment. When I open the LMS homepage to list all the courses, two text lines appear on the header. The lines are 'Applica filtro' and 'Azzera filtro'. See attached screen shot.

How to I eliminate those lines, or at least translate them into English?
Capture.PNG

Re: Unwanted text on LMS homepage

Posted: Fri Jul 06, 2018 8:45 am
by alfa24
Both files /widget/coursefilter/views/coursefilter.php and /widget/tablefilter/views/tableefilter.php contain this snippet:

Code: Select all

<div class="input-group">
                        <a href='#' id='<?php echo $id; ?>_filter_set1'>Applica filtro</a><br><br>
                        <a href='#' id='<?php echo $id; ?>_filter_reset'>Azzera filtro</a>
                    </div>
With the unwanted text hardcoded in Italian language, as you can see.
You can get rid of the whole snippet or, if you want to keep the functions, to change it as follows:

Code: Select all

<div class="input-group">
                        <a href='#' id='<?php echo $id; ?>_filter_set1'><?php echo Lang::t('_FILTER_APPLY'); ?></a><br><br>
                        <a href='#' id='<?php echo $id; ?>_filter_reset'><?php echo Lang::t('_FILTER_RESET'); ?></a>
                    </div>
If you edit the snippet, you must add a language key.
To do this, go to language administration page and add:

module: standard
key: _FILTER_APPLY
translation: as you wish

and same for the second:

module: standard
key: _FILTER_RESET
translation: as you wish

Re: Unwanted text on LMS homepage

Posted: Fri Jul 06, 2018 8:56 am
by canelli
Tanks for the resolution

The bug will be fixed in the next release

Re: Unwanted text on LMS homepage

Posted: Fri Jul 06, 2018 7:19 pm
by pmanly
Thank you for the resolution.