Re: Face-to-face Currency

Re: Face-to-face Currency

by Lester Cunningham -
Number of replies: 5
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
Average of ratings: -
In reply to Lester Cunningham

Re: Face-to-face Currency

by François Marier -
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
In reply to François Marier

Re: Face-to-face Currency

by Lester Cunningham -
Brilliant Francois, that has done the trick and saved me hours of painful and ineffective work.

Thank you very much.

Lester
In reply to François Marier

Re: Face-to-face Currency

by Amir Elion -

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

In reply to Amir Elion

Re: Face-to-face Currency

by François Marier -
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
In reply to François Marier

Re: Face-to-face Currency

by Amir Elion -

Hi Francois,

Worked perfectly!

Thanks for the help,

Amir