lmsace / eguru

Eguru - a free responsive moodle theme developed by LMSACE
9 stars 9 forks source link

the language of the slovak login page #2

Open mediapk opened 6 years ago

mediapk commented 6 years ago

Hello, when I change the language into Slovak, the login window in theme eGuru shows firm text: "Login into your account" instead of Slovak translation "Prihláste sa do vášho účtu" It is the same in other languages.

ouzun commented 6 years ago

same as mine. i use Turkish language and it shows english Login into your account

mediapk commented 6 years ago

Yes, It is a bug in the code. The best way is ask LMSACE for repair.

Pavol

2018-03-15 12:53 GMT+01:00 ouzun notifications@github.com:

same as mine. i use Turkish language and it shows english Login into your account

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lmsace/eguru/issues/2#issuecomment-373351200, or mute the thread https://github.com/notifications/unsubscribe-auth/AiwE_ag1Ww1TfYY5yElk01pQ5cRAhwCZks5telZOgaJpZM4SDcXc .

muga42 commented 6 years ago

I solved the problem by adding this code in the moodle settings "HTML additional".

<script> var Login = document.querySelectorAll("h2"); if (Login[1].innerHTML == "Login into your account") { Login[1].innerHTML = "Your login message"; } </script>

Put your message in "Your login message". It's not an ideal solution, but will work for what you need.

atronat commented 6 years ago

To solve this problem you need to fix the string 126 in the file eguru/templates/login_form.mustache String must be like this: <h2>{{#str}}loginheader,theme_eguru{{/str}}</h2>