Francois,
I am struggling to change the $ sign that appears in the Face-to-face module to a £ sign for use here in the UK. In your words: "F2F Respect the system's date and currency format when displaying dates and costs" Although I am using a dedicated server I am unable to change the server locale. Can this symbol be set within Moodle itself? If not can we please have this as an option. The most obvious place would be the language file lang/en_utf8/facetoface.php.
Thanks.
Lester
Hi Lester,
Have you tried changing this line:
$string['locale'] = 'en_AU.UTF-8';
in the following moodle file:
lang/en_utf8/langconfig.php
Cheers,
Francois
Have you tried changing this line:
$string['locale'] = 'en_AU.UTF-8';
in the following moodle file:
lang/en_utf8/langconfig.php
Cheers,
Francois
Brilliant Francois, that has done the trick and saved me hours of painful and ineffective work.
Thank you very much.
Lester
Thank you very much.
Lester
I have a similar issue with Hebrew currency.
When user is in English lang shows USD. When in Hebrew show Israeli currency sign.
In which file am I supposed to make this code change?
Obviously I need all other things to stay in Hebrew when choosing Hebrew lang.
Thanks,
Amir
Hi Amir,
If you need to force the currency to be displayed regardless of the locale/language, you could put something like:
return '$' . $amount;
at the top of the format_cost() function in /mod/facetoface/lib.php
Cheers,
Francois
If you need to force the currency to be displayed regardless of the locale/language, you could put something like:
return '$' . $amount;
at the top of the format_cost() function in /mod/facetoface/lib.php
Cheers,
Francois
Hi Francois,
Worked perfectly!
Thanks for the help,
Amir