Your message dated Fri, 7 Nov 2008 11:48:44 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Moodle traditional Chinese locale
has caused the Debian Bug report #450906,
regarding Chinese month names not encoded correctly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
450906: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450906
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: moodle
Version: 1.6.3-2

1) try to create a new quiz or a new activity.
2) it allows you to enter a "available date". One of the element
is the month. In the combo box it is supposed to list the month
names. But if the locale is traditional Chinese, they will
appear as garbage.

After investigation, I found that it is because moodle is using
code like:

  setlocale(LC_TIME, "zh_TW");
  echo strftime("%B");

to get the month names. But on my system, this returns the
month name in the Big5 encoding, not UTF-8. Then moodle goes
ahead and treat it as in UTF-8 and thus the output will become
garbage.

If I change the code to:

  setlocale(LC_TIME, "zh_TW.UTF-8");
  echo strftime("%B");

then it will work.

Thanks!

--
Kent Tong
Useful news for network admins at http://www2.cpttm.org.mo/cyberlab/netadmin-news



--- End Message ---
--- Begin Message ---
Hi Kent,

Thanks for your report!

My investigations into the utf8 language packs available for Moodle 1.6 and 
later
indicate that this issue has been fixed in the new language packs. Please see:

http://cvs.moodle.org/lang/zh_tw_utf8/langconfig.php?view=markup

In order to resolve this issue you just need to ensure that the zh_tw_utf8 
language pack is installed. I suspect you had the existing zh_tw language pack
instead.

Please feel free to reopen this issue if it is still a problem.

thanks,

Dan

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to