Posts made by Joseph Rézeau

Picture of Développeurs Picture of Développeurs de plugins Picture of Testeurs Picture of Traducteurs

Oui, les expressions régulières ce n'est pas "simple". Mais il faut savoir ce qu'on veut. On a le choix entre "analyse simpliste et facile à programmer" ou "analyse complexe difficile à programmer". C'est la vie.wink

Joseph

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Aaron,

In yourmoodle/mod/questionnaire/questionnaire.class.php, locate function response_send_email($rid, $userid=false). That's from line 1602 in Questionnaire version 2.7. Comment out these lines:

for ($i = 0; $i < count($answers[0]); $i++) {
            $sep = ' : ';

            switch($i) {
                case 1:
                    $sep = ' ';
                    break;
                case 4:
                    $bodyhtml        .= get_string('user').' ';
                    $bodyplaintext   .= get_string('user').' ';
                    break;
                case 6:
                    if ($this->respondenttype != 'anonymous') {
                        $bodyhtml         .= get_string('email').$sep.$USER->email. $endhtml;
                        $bodyplaintext    .= get_string('email').$sep.$USER->email. $endplaintext;
                    }
            }
            $bodyhtml         .= $answers[0][$i].$sep.$answers[1][$i]. $endhtml;
            $bodyplaintext    .= $answers[0][$i].$sep.$answers[1][$i]. $endplaintext;
        }

Joseph

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Thanks for the Swedish translation, Peter. However, since a few years already, all translations should be done using the AMOS site at https://lang.moodle.org/login/index.php.

See https://docs.moodle.org/dev/Contributing_a_translation

I suggest you contact the Swedish language maintainer, at https://lang.moodle.org/local/amos/credits.php#credits-language-sv for more info.

All the best,

Joseph