fixed a few bugs and also made it so language translators can enable the translations for javascript helpers

This commit is contained in:
JT Smith 2005-07-29 15:00:30 +00:00
parent cca54fb0c3
commit 4033ad4b83
7 changed files with 33 additions and 5 deletions

View file

@ -452,6 +452,11 @@ sub getRichEditor {
push(@plugins,"") if ($button eq "");
push(@plugins,"") if ($button eq "");
}
my $language = WebGUI::International::getLanguage($session{user}{language},"languageAbbreviation");
unless ($language) {
$language = WebGUI::International::getLanguage("English","languageAbbreviation");
}
$config{language} = $language;
$config{content_css} = $self->getValue("cssFile") if ($self->getValue("cssFile") ne "");
$config{width} = $self->getValue("editorWidth") if ($self->getValue("editorWidth") > 0);
$config{height} = $self->getValue("editorHeight") if ($self->getValue("editorHeight") > 0);