Updated language engine to support multiple character sets, and added the Chinese translation.
This commit is contained in:
parent
a22aeaf155
commit
564392cced
8 changed files with 695 additions and 29 deletions
|
|
@ -79,8 +79,8 @@ sub addInternationalizedEntry {
|
|||
$internationalId = $_[3];
|
||||
$namespace = $_[4] || "WebGUI";
|
||||
$status = $_[5] || 'notice';
|
||||
%message = WebGUI::SQL->buildHash("select language,message from international where internationalId=$internationalId and namespace='$namespace'");
|
||||
%subject = WebGUI::SQL->buildHash("select language,message from international where internationalId=523 and namespace='WebGUI'");
|
||||
%message = WebGUI::SQL->buildHash("select languageId,message from international where internationalId=$internationalId and namespace='$namespace'");
|
||||
%subject = WebGUI::SQL->buildHash("select languageId,message from international where internationalId=523 and namespace='WebGUI'");
|
||||
if ($groupId ne "") {
|
||||
@users = WebGUI::SQL->quickArray("select userId from groupings where groupId=$groupId");
|
||||
}
|
||||
|
|
@ -88,9 +88,9 @@ sub addInternationalizedEntry {
|
|||
foreach $user (@users) {
|
||||
$u = WebGUI::User->new($user);
|
||||
if ($u->userId ne "") {
|
||||
$subject{$u->profileField("language")} = $subject{'English'} if ($subject{$u->profileField("language")} eq "");
|
||||
$subject{$u->profileField("language")} = $subject{1} if ($subject{$u->profileField("language")} eq "");
|
||||
$subject = $subject{$u->profileField("language")};
|
||||
$message{$u->profileField("language")} = $message{'English'} if ($message{$u->profileField("language")} eq "");
|
||||
$message{$u->profileField("language")} = $message{1} if ($message{$u->profileField("language")} eq "");
|
||||
$message = WebGUI::Macro::process($message{$u->profileField("language")});
|
||||
WebGUI::SQL->write("insert into messageLog values ($messageLogId,".$u->userId.",
|
||||
".quote($message).",".quote($url).",".time().",".quote($message).",".quote($status).")");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue