It's probably relatively simple to implement, but I'm not sure how to. I have hundreds of long multi-line strings in my project, and putting localization files together was a bit of a pain with the way language file syntax works at the moment. As an example, I'd like to do away with this:
L1.Scene1.Window1.Label1, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. \n\nDonec faucibus nisl a orci pulvinar laoreet. Pellentesque eu condimentum dui. Nunc quis justo tortor. Fusce quis massa ut enim pellentesque semper vitae eget elit. Phasellus ut turpis egestas augue tempor laoreet.\n\nPraesent suscipit commodo ligula eu dignissim. Morbi at arcu eu quam ornare vehicula. Duis mollis sem in lorem fringilla, porta lobortis justo suscipit. Vivamus venenatis ullamcorper diam quis mattis.\n\nAliquam ante dolor, ultrices et vestibulum vel, dignissim ut magna. Donec tempus lacus at sapien fermentum fermentum. Morbi convallis eleifend arcu, vel imperdiet libero varius aliquet. Aenean justo metus, dignissim nec nisl vitae, lobortis vulputate sapien. Donec quis tortor sit amet tortor pulvinar lacinia. Vivamus interdum massa ut venenatis facilisis. Morbi lacinia fermentum ipsum, at ornare massa posuere ac. Duis tempus mi nec leo semper vulputate. In fermentum ac lacus vel interdum. Pellentesque et hendrerit nulla. Sed tristique dignissim hendrerit. Praesent id rhoncus nibh. Nunc nec egestas nisi. Morbi et tincidunt magna. Nam ut velit nec ligula feugiat ultrices.\n\nPraesent lacinia vestibulum nulla vitae mollis. Aenean dolor lectus, porttitor quis rutrum eu, scelerisque non augue. Donec in nunc eros. Morbi adipiscing vitae felis condimentum pellentesque."
And use something like this in my files:
L1.Scene1.Window1.Label1 =
"Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec faucibus nisl a orci pulvinar laoreet. Pellentesque eu condimentum dui. Nunc quis justo tortor. Fusce quis massa ut enim pellentesque semper vitae eget elit. Phasellus ut turpis egestas augue tempor laoreet.
Praesent suscipit commodo ligula eu dignissim. Morbi at arcu eu quam ornare vehicula. Duis mollis sem in lorem fringilla, porta lobortis justo suscipit. Vivamus venenatis ullamcorper diam quis mattis.
Aliquam ante dolor, ultrices et vestibulum vel, dignissim ut magna. Donec tempus lacus at sapien fermentum fermentum. Morbi convallis eleifend arcu, vel imperdiet libero varius aliquet. Aenean justo metus, dignissim nec nisl vitae, lobortis vulputate sapien. Donec quis tortor sit amet tortor pulvinar lacinia. Vivamus interdum massa ut venenatis facilisis. Morbi lacinia fermentum ipsum, at ornare massa posuere ac. Duis tempus mi nec leo semper vulputate. In fermentum ac lacus vel interdum. Pellentesque et hendrerit nulla. Sed tristique dignissim hendrerit. Praesent id rhoncus nibh. Nunc nec egestas nisi. Morbi et tincidunt magna. Nam ut velit nec ligula feugiat ultrices.
Praesent lacinia vestibulum nulla vitae mollis. Aenean dolor lectus, porttitor quis rutrum eu, scelerisque non augue. Donec in nunc eros. Morbi adipiscing vitae felis condimentum pellentesque."
At the moment the parser expects every single new line to begin with a key name, which renders this impossible. Obviously it would be nicer to somehow change that so that it will e.g. recognize only the contents of the lines starting without " and ending with = as valid key names, and all the rest inside the following "..." blocks as assigned values. Particular syntax doesn't matter, though, I'll be more than happy with something like that too:
<key name="KeyName1">
<value>TextLine1InEnglish
TextLine2InEnglish
TextLine3InEnglish
TextLine4InEnglish</value>
<value>TextLine1InGerman
TextLine2InGerman
TextLine3InGerman
TextLine4InGerman</value>
</key>
Or with any other setup that makes sense and allows you to use new lines freely. How should I go about modifying Localization.cs and ByteReader.cs to achieve that?
Most likely I need to change how ReadCSV() in the ByteReader works.