I want to make a custom translation. Actually I want to show the (English source) of column E of the translations csv plus the translated term (column F) together. In my case it is a combination of English and Chinese so practically I want to see "Sales 销售“ for the 'Sales' Module for example
I have a python script that should do that (combining column E and column F of the Chinese language .csv) that looks like this
import csv
import sysfilename = sys.argv[1]
with open(filename, 'rb') as f:
rows = list(csv.reader(f))
for row in rows:
if row[4] != row[5]:
row[5] = ' '.join((row[4], row[5]))
#print row[5]with open('chinese_english_combined.csv', 'wb') as f:
writer = csv.writer(f)
writer.writerows(rows)
this worked with an older v7 but now trying to combine languages in v8 I get an error
Traceback (most recent call last):
File "combineLanguages.py", line 9, in <module>
if row[4] != row[5]:
IndexError: list index out of range
EDIT: I did not write the script myself and I don't know python, that's why I'm asking here