Best practice forum (Archived)

تمت إزالة منتدى المناقشة هذا

 
لقد تمت إزالة مشاركة المنتدى هذه
Monday, 23 May 2011, 8:42 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
Craig Eves
Re: Currency settings
بواسطة Monday, 23 May 2011, 2:18 PM - Craig Eves (Totara Support)
مجموعة Totara

Hi Oliver

I can't see anywhere in the course settings to do this - there has been a similar question in 2009 where Francois Marier suggested the following (hopefully this still applies)

Have you tried changing this line:

$string['locale'] = 'en_AU.UTF-8';

in the following Totara file:

lang/en_utf8/langconfig.php

The following suggestion was also made.

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

Francois still works for Catalyst so I can get him to give further details if this doesn't work.

Craig

لقد تمت إزالة مشاركة المنتدى هذه
Monday, 23 May 2011, 8:22 PM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
لقد تمت إزالة مشاركة المنتدى هذه
Tuesday, 24 May 2011, 12:30 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
لقد تمت إزالة مشاركة المنتدى هذه
Tuesday, 24 May 2011, 8:16 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
Craig Eves
Re: Currency settings
بواسطة Tuesday, 24 May 2011, 1:48 PM - Craig Eves (Totara Support)
مجموعة Totara

Hi Oliver

I would definitely refresh the cache (Ctrl + R) the cache seems to hang on for a while in Totara. If this doesn't work i will get some input from Francois

I agree that this shouldn't need code changes to change settings, this is the aim of the rewritten modules in Totara are. The face to face module has been extensively modified for Totara with notifications and integrating into the training calendar and this may have been not high on the priority or overlooked.

I will add a feature request for this as this seems a useful feature to have in the face to face module.

Craig

Simon Coggins
Re: Currency settings
بواسطة Wednesday, 25 May 2011, 6:26 PM - Simon Coggins
مجموعة Totara

Looking at the code it appears to use the line you changed only as a fallback if the locale information is not available:

    $symbol = $localeinfo['currency_symbol'];
if (empty($symbol)) {
// Cannot get the locale information, default to en_US.UTF-8
return '$' . $amount;
}

Therefore I would try what Craig suggested before about setting the locale.

Simon

لقد تمت إزالة مشاركة المنتدى هذه
Thursday, 26 May 2011, 2:16 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
لقد تمت إزالة مشاركة المنتدى هذه
Tuesday, 11 September 2012, 4:18 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها