Missing Translation Items

Anything about what happens on the user and teacher side
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Missing Translation Items

Post 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
Attachments
Bildschirmfoto 2022-03-28 um 15.40.49.png
Bildschirmfoto 2022-03-28 um 15.40.07.png
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Missing Translation Items

Post 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
Per supporto GRATUITO contattatemi in privato qui
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: Missing Translation Items

Post 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"..
Attachments
Bildschirmfoto 2022-04-07 um 11.34.23.png
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Missing Translation Items

Post by alfa24 »

I think you're missing something.
I've just tried and got it working.
Per supporto GRATUITO contattatemi in privato qui
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: Missing Translation Items

Post by itworks »

I attach some screenshots.. I think I did exactly what you wrote.
Do I need to clear any additional cache or so...?
Attachments
Bildschirmfoto 2022-04-08 um 08.50.58.png
Bildschirmfoto 2022-04-08 um 08.52.30.png
Bildschirmfoto 2022-04-08 um 08.53.18.png
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Missing Translation Items

Post 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.
Per supporto GRATUITO contattatemi in privato qui
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: Missing Translation Items

Post 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?
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: Missing Translation Items

Post by itworks »

Okay - I just found that version 3.2 is out. Upgraded, and now it works.
Thank you
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: Missing Translation Items

Post by itworks »

Hi again, how can the text "dashboard blockcertificates no records" within the Certificates Dashboard Module be edited? Thank you!
Attachments
Bildschirmfoto 2022-04-22 um 12.44.37.png
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Missing Translation Items

Post by alfa24 »

Create _DASHBOARD_BLOCKCERTIFICATES_NO_RECORDS language key in dashboard module.
Per supporto GRATUITO contattatemi in privato qui
Post Reply