Text formatting

More
6 years 10 months ago - 6 years 10 months ago #2308 by jscott1972
Text formatting was created by jscott1972
we have lots of text in our game and lots of formatting using \n and \n\n. In the localised text this formatting doesn't work.

Any ideas?
Last edit: 6 years 10 months ago by jscott1972.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #2313 by Frank
Replied by Frank on topic Text formatting
Hi,
The plugin doesn't convert \n into real newlines.
If you specify \n in your translation, then you will get a '\' and a 'n' characters.

To create new lines, you need to make real new lines by pressing 'enter':



Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #2314 by Frank
Replied by Frank on topic Text formatting
Said that, if you can't change your text to use real newlines, you could set a callback to your localize components and in there, replace "\\n" by '\n".
inter-illusion.com/assets/I2LocalizationManual/Callbacks.html

That will do the trick!

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #2471 by bennett
Replied by bennett on topic Text formatting
Hey Frank - I have real newlines in my text, but when I go to export to a csv, it breaks each line into a new field (and all the columns get broken). Is there a workaround for this?

Thanks

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #2476 by Frank
Replied by Frank on topic Text formatting
Hi,
Where are you generating the csv file? With I2 Localization or with another program?
I'm exporting csv files with term having multiple lines and the resulting csv is correct (i.e. it has quotes surrounding the multi-line translations)

This explains a bit more:
inter-illusion.com/forum/i2-localization...le-in-v2-8-0-b6#2475

If you are generating the csv file from I2 Localization and its exported wrong, could you please, email me the I2Languages.prefab so that I can try it for myself and see why its failing?

If you generate the csv from an external spreadsheet program (e.g. Excel), please check the exporter settings so that it generates quotes around those lines.

Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds
Template by JoomlaShine