#!/usr/bin/perl # # $Id: languagelib.pl,v 1.6 2005/12/14 19:24:34 ddoughty Exp $ # # Source File: languagelib.pl %LANGUAGE_ID = ( 'enu' => 'English (U.S.)', 'ena' => 'English (Aus)', 'euv' => 'English (U.S.) VM', 'fr' => 'French', 'deu' => 'German', 'sp' => 'Spanish', 'arb' => 'Arabic', 'cyr' => 'Cyrillic', 'my' => 'Malay', 'kor' => 'Korean', 'afr' => 'Afrikaans', 'hin' => 'Hindi'); %LANGUAGE_FLAG = ( 'enu' => 'flagsussm.gif', 'sp' => 'flagsspsm.gif', 'fr' => 'flagsfrsm.gif', 'deu' => 'flagsdeusm.gif', 'my' => 'flagsmysm.gif'); # # Load English as the default Language # $idEnglish = "enu"; &LoadLanguage($idEnglish); $SYSTEM{'supportedlanguages'} = &GetSupportedLanguages('enu','Y','N','N'); # # $lok = &LanguageIsSupported(_LANGUAGE_ID); # sub LanguageIsSupported { if ($LANGUAGE_ID{$_[0]} eq '') { return 0; } else { return 1; } } # # $options = &GetSupportedLanguages($defaultlanguage,$enabkeytrans, $setsystem, $multipleselect); # sub GetSupportedLanguages { $deflang = ",$_[0],"; $onchangeevent = ($_[1] eq 'Y') ? " onChange=\"return langselect(this)\"" : ""; $sreturn=""; if ($_[3] eq 'Y') { $sreturn = join('',$sreturn,"