Tool to translate the dada_mail_foundation_email_templates or ready compiled Themes from a .csv file through a python skript
Place the unziped folder of dada_mail_foundation_email_templates or even a ready compiled Theme from YOUR DATA INSTALLATION > dada_mail_support_files > themes > email
into the folder email
dada-mail-translation-de-formal.csv
(Formal German translation .csv you may create your own) together with the translate.py
and run the comand: python translate.py
.
- Download the
.xlsx
or.csv
and replace the content in the third column of the table with your translation. - Export the file to
dada-mail-translation-YOUR-LANGUAGE-CODE.csv
- Edit the value of translateCSV in
translate.py
:
translateCSV = "dada-mail-translation-YOUR-LANGUAGE-CODE.csv"
- run the comand:
python translate.py
.
This is just a simple search and replace tool in plaintext multiline replacing is working. In HTML-Files multiline replace including insertions is NOT working, therefore these textparts are splited in single lines.