mod_assign::submissionstatementdefault does not get translated in to German

mod_assign::submissionstatementdefault does not get translated in to German

by Visvanath Ratnaweera -
Number of replies: 5
Picture of Particularly helpful Moodlers Picture of Translators
In the assignment the submission statement is displayed in English, although the language used is German. The translation is available in the language package. Moodle version 3.5.6+ (Build: 20190614)
Attachment dateiabgabe.png
Attachment submission_statement.png
Average of ratings: -
In reply to Visvanath Ratnaweera

Re: mod_assign::submissionstatementdefault does not get translated in to German

by Germán Valero -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Do you have a moodledata/lang/de folder in your server? Is there a mod_assign.php file in there?

In reply to Germán Valero

Re: mod_assign::submissionstatementdefault does not get translated in to German

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Germán

Thanks for the reply.

I have a moodledata/lang/de/assign.php file which has this line 507 of 579 lines:
$string['submissionstatementdefault'] = 'Diese Arbeit ist meine persönliche Leistung. Sofern ich irgendwo fremde Quellen verwendet habe, sind diese Stellen entsprechend gekennzeichnet.';
In reply to Visvanath Ratnaweera

Re: mod_assign::submissionstatementdefault does not get translated in to German

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Visvanath,

The problem you describe has been reported as MDL-54731. It seems that all languages are affected, not just German.

A workaround is to go to Site administration / Plugins / Activity modules / Assignment / Assignment settings and enter the submission statement in the required language then save changes.

Average of ratings: Useful (2)
In reply to Helen Foster

Re: mod_assign::submissionstatementdefault does not get translated in to German

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Helen

Thanks for pointing out to the bug. Did the workaround, making everybody reading the submission statement in German. Hope the En. and Fr. "minority courses" do not mind.
wink

I won't have time to look deeper in the short term. But what I don't understand is that Moodle has solved the multilanguage problem brilliantly, right from the beginning. Why does this single string gives trouble? Was there a local planning problem? Its name 'submissionstatementdefault' is a bit suspicious to me. All these strings are default, as long as nobody changes them, aren't they?
In reply to Visvanath Ratnaweera

Re: mod_assign::submissionstatementdefault does not get translated in to German

by Julien Boulen -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi,

I'm currently working on this issue.

My approach was to remove the administration settings and use strings in language packs instead. This solution works very well for a multilingual site, however the language customisation is less user-friendly (you have to use language customisation function, open pack, search the right string identifier, etc).

Another approach would be to keep current administration settings... but definitively I don't see how to bring internalisation in this case. Maybe we can keep those settings. If these variables are empty, so we use strings in language packs. If not, we use administration setting values.

What is your opinion? Any suggestions would be appreciated. smile

Regards,