kronoszx
7/4/2017 - 2:46 PM

Traducciones Rapidas en Chrome

Traducciones Rapidas en Chrome

On page translations of Prestashop in Chrome, you translate the page to the desired language, and runs the script below in the console

jQuery('tbody tr').each(function(i){
  var vau = jQuery(this).find('input').val() || jQuery(this).find('textarea').val();
  if(!vau){
	jQuery(this).find('input').val(jQuery(this).find('td').eq(0).text());
	jQuery(this).find('textarea').val(jQuery(this).find('td').eq(0).text());
	//console.log(jQuery(this).find('td').eq(0).text());
  }
});





The translated terms of the browser, were transferred to the fields, so now it's just correct, and save your translation.
Remember, symbols are wrongly translated, so remember to pass the translation, and change, for exemple, the '% d' to '%d' ..., remove a blank ..., or improve script...