i want to translate my magento-shop to german. i’ve also installed the german translation pack, but translations in javascript error popups won’t be translate.
for example: when i go to checkout and don’t check the shipping method, a javascript-error “Please specify shipping method.” appears. when i add this text-line to my translation csv, it didn’t work.
the alert message is in the js-file “opcheckout.js”:
validate: function() { var methods = document.getElementsByName('shipping_method'); if (methods.length==0) { alert(Translator.translate('Your order can not be completed at this time as there is no shipping methods available for it. Please make neccessary changes in your shipping address.')); return false; }
if(!this.validator.validate()) { return false; }
for (var i=0; i<methods.length; i++) { if (methods[i].checked) { return true; } } alert(Translator.translate('Please specify shipping method.')); return false; },