Posts made by Joseph Rézeau

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

What do you mean by "at the top level"? the root of your Moodle site?

As explained in my original post, I do NOT want grunt to watch ALL AMP/JavaScript scripts on my site, just those for a specific plugin. And I can achieve this by setting the root to that plugin folder...

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

Hi Tim and thanks for your help.

This worked for me:

And the following config values are set as admin:
       | usergraph | 1 | questionnaire |

As you suggested I looked up the config_plugins table in the DB to confirm the correct use.

Average of ratings: Useful (1)
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

When writing Behat tests, how can I use a plugin's settings? For example the Questionnaire plugin has this setting:

Display charts for "Personality Test" feedback: 
questionnaire | usergraph
I've tried to add this to my behat test: 

And the following config values are set as admin:
      | questionnaire/usergraph | 1 |

but it does not work.

Is the only solution to put, at the beginning of my Behat scenario something like: And I go to Administration / plugins /Questionnaire/ settings

And I click on the checkbox: Display charts for "Personality Test" feedback: questionnaire | usergraph ???

Are there examples of such scenario in core Moodle behat tests somewhere?

Average of ratings: -

Moodle en français -> Traduction en français de Moodle -> WYSIWYG -> Re: WYSIWYG

by Joseph Rézeau -
Picture of Développeurs Picture of Développeurs de plugins Picture of Testeurs Picture of Traducteurs

Hello Nicolas,

Wikipédia écrit : "Il existe une traduction française [de WYSIWYG] mais qui reste peu usitée : « pétale », pour « présentation à l'écrit telle qu'à l'écran ». Elle n'a cependant été officialisée par aucune institution."

Du coup je pense qu'on ne va pas ajouter ce "pétale" au bouquet de fleurs de notre Moodle francophone... et je vote pour "Éditeur HTML"

Joseph le jardinier

Average of ratings: Utile (2)
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Mark,

Thanks for taking up my little challenge. Actually, soon after posting I had one of those "rubber duck" moments and came up with a working solution, but not as elegant as yours.😉 Thanks for mentioning the question of capitalised first word of sentences. Since it's not possible to automatically decide whether that first word is a capitalised common name or a proper name, I'll leave it as "non gappable".

Thanks also for posting your code to JSFiddle, but it looks like the code there works like my original code, not like the code you put in your forum message. I really ought to learn how to use JSFiddle some day. One question: how can I display the result of the output inside that "result" frame rather than in my browser's console?

One more feature I'd like to add to my automatic gapping routine is to only skip gapping the first occurrence of proper names, but to gap any ensuing occurrences. I guess that will require using an array of such proper names/words as I go through the text.

Thanks again for your help!