Created
October 25, 2013 09:21
-
-
Save bekapod/7151977 to your computer and use it in GitHub Desktop.
MAGENTO: Translating text in JS File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- AFTER getTranslateScript(); --> | |
<script> | |
Translator.add( 'Text to translate', '<?php echo $this->__( 'Text to translate' ); ?>' ); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Translator.translate( 'Text to translate' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Text to translate | Translated text |
---|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment