Page 1 of 2

Missing Translation Items

Posted: Mon Mar 28, 2022 2:42 pm
by itworks
Hi,

when a student logs in tp Forma LMS 3.0.1, german language, there are a few items that I can not find in the translation area.
For example "Cerca/Azzera" and the heading "MENU COURSE".
I attach two screenshots showing exactly what I mean.
How can I translate such items?

I attach 2 screenshots showing what I mean...

Thank you,
Florian

Re: Missing Translation Items

Posted: Mon Mar 28, 2022 3:06 pm
by alfa24
For "menu course", there's a bug in /appLms/views/lo/show.html.twig:

Code: Select all

<h1>{{ Lang_translate('menu_course', '_STORAGE') }}</h1>
There's no menu_course key, no _STORAGE module.

I'll suggest to change it to:

Code: Select all

<h1>{{ Lang_translate('_MENU_COURSE', 'storage') }}</h1>
then add the key with language manager guy.

Or, if you are ok with the existing translation, you can try:

Code: Select all

<h1>{{ Lang_translate('_MENUCOURSE', 'menu_over') }}</h1>
For "Cerca / Azzera", you'll find them hardcoded in /widget/coursefilter/views/coursefilter.php

Re: Missing Translation Items

Posted: Thu Apr 07, 2022 10:37 am
by itworks
Hello,

thank you very much for your reply.
I was able to translate cerca/azzera via hardcoding.

Regarding the course menu header, I changed the line to

Code: Select all

<h1>{{ Lang_translate('_MENU_COURSE', 'storage') }}</h1>
And added the key (see attachment).

Then I did "empty Twig Cache", not sure if this was neccessary...
Also cleared my browser cache.
But the page still shows "MENU COURSE"..

Re: Missing Translation Items

Posted: Thu Apr 07, 2022 10:57 am
by alfa24
I think you're missing something.
I've just tried and got it working.

Re: Missing Translation Items

Posted: Fri Apr 08, 2022 7:54 am
by itworks
I attach some screenshots.. I think I did exactly what you wrote.
Do I need to clear any additional cache or so...?

Re: Missing Translation Items

Posted: Fri Apr 08, 2022 7:59 am
by alfa24
I should be on your instance to investigate further.
I can't say what you're missing, but I'm sure there's something you're missing.

Re: Missing Translation Items

Posted: Fri Apr 08, 2022 9:15 am
by itworks
I edit the file
/appLms/views/lo/show.html.twig

There is no change in the frontend even if I edit it like this:

Code: Select all

<div class="page-header">
    <h1>test</h1>
</div>
Am I in the correct file?

Re: Missing Translation Items

Posted: Fri Apr 08, 2022 11:38 am
by itworks
Okay - I just found that version 3.2 is out. Upgraded, and now it works.
Thank you

Re: Missing Translation Items

Posted: Fri Apr 22, 2022 11:45 am
by itworks
Hi again, how can the text "dashboard blockcertificates no records" within the Certificates Dashboard Module be edited? Thank you!

Re: Missing Translation Items

Posted: Fri Apr 22, 2022 12:01 pm
by alfa24
Create _DASHBOARD_BLOCKCERTIFICATES_NO_RECORDS language key in dashboard module.