unclemaps Posted May 31, 2016 Share Posted May 31, 2016 Hi, Can anyone provide a bash script to search and replace from all mail translations: uses <a href="http://www.prestashop.com/" style="color:#337ff1;">PrestaShop™</a> with '' I also need to remove: uses PrestaShop [http://www.prestashop.com/] It's to much work to do this manually ;-) Thank you! Link to comment Share on other sites More sharing options...
selectshop.at Posted May 31, 2016 Share Posted May 31, 2016 You can do this by using for ex. Notepad. Download all Mails to your local machine. Open all them at once with notepad ++ and use there the function search/repalce. Save than all mails again to your webspace to the same folder. on your FTP /mails/choose language/choose all files Link to comment Share on other sites More sharing options...
unclemaps Posted May 31, 2016 Author Share Posted May 31, 2016 Looking in my prestashop files i see that the mail-translations are both in the root folder and the theme folder. Can I delete the theme mail translations, or do I need to edit in both places? Link to comment Share on other sites More sharing options...
eleazar Posted May 31, 2016 Share Posted May 31, 2016 Forget the files in your root folder. You need to change those files in the themes folder. In any case you have to save changed mail files there, because otherwise your changes would be overwritten with the next update. When updating you should not forget to disable the theme update then. Notepad++ was a good suggestion. In window seach --> replace use option Replace all in all opened documents. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now