DanDiplo / Diplo.DictionaryEditor

An Umbraco package that creates a custom section for editing Dictionary values in Umbraco. It allows easy editing of all dictionary items and also allows the dictionary to be exported and imported in CSV format.
https://www.diplo.co.uk/blog/web-development/diplo-dictionary-editor-for-umbraco/
1 stars 4 forks source link

Language names with commas break CSV #5

Closed LottePitcher closed 4 years ago

LottePitcher commented 5 years ago

Hi @DanDiplo,

We are trying this package on a v7.13.2 site. We have two localised Chinese languages on this site. The names of those two languages in Umbraco are:

When I use the 'export' feature of this package these two language names are being split over two cells, because of the comma.

An example couple of lines from the CSV are (with most of the data replaced with placeholders to hopefully make it clearer!)

{id},{guid},Chinese (Traditional, Hong Kong S.A.R.),"{name}","{translation}" {id},{guid},Chinese (Simplified, PRC),"{name}","{translation}"

If the country name was enclosed in quotes I believe this would fix this issue. I will fork the source now to see if I can get this working.

Lotte