Public Member Functions | |
__construct () | |
getTranslatorScript () |
Definition at line 35 of file Js.php.
__construct | ( | ) |
Definition at line 38 of file Js.php.
00039 { 00040 $this->_translateData = array( 00041 'Complete' => $this->__('Complete'), 00042 'File size should be more than 0 bytes' => $this->__('File size should be more than 0 bytes'), 00043 'Upload Security Error' => $this->__('Upload Security Error'), 00044 'Upload HTTP Error' => $this->__('Upload HTTP Error'), 00045 'Upload I/O Error' => $this->__('Upload I/O Error'), 00046 'SSL Error: Invalid or self-signed certificate' => $this->__('SSL Error: Invalid or self-signed certificate'), 00047 'Tb' => $this->__('Tb'), 00048 'Gb' => $this->__('Gb'), 00049 'Mb' => $this->__('Mb'), 00050 'Kb' => $this->__('Kb'), 00051 'b' => $this->__('b') 00052 ); 00053 }
getTranslatorScript | ( | ) |
Retrieve JS translator initialization javascript
Reimplemented from Mage_Core_Helper_Js.
Definition at line 60 of file Js.php.
00061 { 00062 $script = 'if (!window.Translator) {' 00063 . ' var Translator = new Translate('.$this->getTranslateJson().');' 00064 . '} else {' 00065 . ' Translator.add('.$this->getTranslateJson().');' 00066 . '}'; 00067 return $this->getScript($script); 00068 }