I am using xlsxwriter to write a boolean to a worksheet:
worksheet.write_boolean(i, 9, export, style_normal)
When I open the xlsx file in Excel (the language is set to Dutch by company policy), the boolean shows up in the cell as 'WAAR' or 'ONWAAR'
I am trying to add validation:
worksheet.data_validation('J{0}'.format(i+1), {'validate': 'list', 'source': [True, False]})
But the dropdown I see in Excel from this data_validation list contains 'True' and 'False' instead of 'WAAR' and 'ONWAAR'. And if you select one of the values in the dropdown the value in the cell changes to True or False.
How can I make validation for a boolean cell with the same (translated) values as in the cell WAAR/ONWAAR?
If I make the validation like this, it will not work for people with a different language setting?
worksheet.data_validation('J{0}'.format(i+1), {'validate': 'list', 'source': ['WAAR', 'ONWAAR']})