Certificate (add-on)

 
 
Picture of Michael Weiland
Changed text in en/certificate.php does not appear
 

Has this happened to anyone?  I changed the text in /lang/en/certificate.php and it is not appearing on the pdf certificate.  Specifically, I changed  $string['statement'] = 'sometext';

and

$string['title'] = 'sometext';

Any help is appreciated.  Thank you!

 
Average of ratings: -
Picture of Jean-Michel Védrine
Re: Changed text in en/certificate.php does not appear
Group DevelopersGroup Particularly helpful Moodlers

Hello Michael,

All language strings are cached in Moodle.

So you must clear all caches for your changes to appear.

Go to Site administration -> Development -> Purge all caches and purge the caches

 
Average of ratings: -
Picture of Richard Charron
Re: Changed text in en/certificate.php does not appear
 

I want to use the certificate for a course in french, and, despite the fact that I can't find a french language document in the mod/certificate/lang folder, the certificate does print in the french language (Certificat d'achèvement). Where do the french variables come from ? I want to change the second line (Ceci est certifié par), which is not a correct translation.
Thank you for your reply.

 
Average of ratings: -
Picture of Jean-Michel Védrine
Re: Changed text in en/certificate.php does not appear
Group DevelopersGroup Particularly helpful Moodlers

Hello,

Now the new rule is that plugins don't include any other language than English.

when you install the certificate plugin, if your website has the French language installed, the French strings for the plugin are downloaded from AMOS http://lang.moodle.org/ and it works smile. Same way if you update the installed lang pack, languages strings for all plugins are also updated.

Of course the condition for this mecanism to wok is that people (and developers) contribute to AMOS by adding translations. It's very easy, I have just done it for forumng and French language a few weeks ago. You don't need to know anything on programming, you just select he language, the plugin and the version and missing strings are displayed, you translate them online, the maintainer for this language accept your work and that's all.

Now back to your customization problem, first if you think the translation from AMOS is not correct you should login on http://lang.moodle.org/ and submit a correction.

But if you only want to change it on your website, go to Site Administration -> Language -> Language customization open the French language pack, click on "Continue" button, find the certificate component in the list and select itt, click on "Show strings"

Find the string you want to change, enter the desired text in the last column and save.

This the best way to customize a string in Moodle because your changes will no be overwritten when you upgrade your languages packs.

See http://docs.moodle.org/25/en/Language_customization (or http://docs.moodle.org/2x/fr/Personnalisation_de_la_langue ) for details.

 
Average of ratings:Useful (3)
Picture of Jean-Michel Védrine
Re: Changed text in en/certificate.php does not appear
Group DevelopersGroup Particularly helpful Moodlers

Hum, I reviewed French translations for the certificate addon on  the AMOS portal (I must admit I never looked at it !) and IMHO there are a few obvious mistakes

"This is to certify that" should not be "Ceci est certifié par"
"Course Completion" should not be "Cours complet"
"Course Grade" should not be "promotion"
...
Someone using that addon in French will have to improve it.
 
Average of ratings: -
Picture of Richard Charron
Re: Changed text in en/certificate.php does not appear
 

Thank you for the prompt and informative response.

Richard

 

 
Average of ratings: -