Welcome, Guest
Username: Password: Remember me

TOPIC: Text formatting

Text formatting 5 months 2 weeks ago #2308

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: 5 months 2 weeks ago by jscott1972.
The administrator has disabled public write access.

Text formatting 5 months 2 weeks ago #2313

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 915
  • Thank you received: 196
  • Karma: 58
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
The administrator has disabled public write access.

Text formatting 5 months 2 weeks ago #2314

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 915
  • Thank you received: 196
  • Karma: 58
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
The administrator has disabled public write access.

Text formatting 2 months 6 days ago #2471

  • bennett
  • bennett's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Karma: 0
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
The administrator has disabled public write access.

Text formatting 2 months 6 days ago #2476

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 915
  • Thank you received: 196
  • Karma: 58
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
The administrator has disabled public write access.
Time to create page: 0.138 seconds
Colors