Page 1 of 1

Making localization in exported file.

Posted: Fri Jun 29, 2018 6:02 am
by raingame98
Hi, Tony!

I am trying to make localization in exported CSV file, but I can't import it back. What am I doing wrong?

1. I am exporting my database in CSV format (selecting all fields to export)
2. Exported successfully!

1. In my CSV file, I see my conversation's empty fields: "fr", "es", "ru". En's fields is already existing (filled in Unity)
2. Trying to fill those empty fields - localizing!
3. Trying to import my localized file back into Unity. Got fatal error..

Why?
Is it impossible to localize in exported file and import it back? Do I have to localize my conversations and quest only in the Unity Editor?

Thanks! And sorry for my not so good english)

Re: Making localization in exported file.

Posted: Fri Jun 29, 2018 9:15 am
by Tony Li
Hi,

It sounds like you're already using the correct steps. I'll repeat them here in case something was missed:

1. Set up the fields in the Dialogue Editor first. Instructions.

Image

2. Then export to CSV.

2a. TEST: Without changing the CSV, import the CSV back into Unity. Make sure it imports correctly.

3. Open the CSV file in your spreadsheet application and fill in the translations. Please use a spreadsheet application. Don't edit by hand because you could accidentally create errors in the CSV format.

4. Export from your spreadsheet application to CSV.

5. Import CSV into Unity.

If #2a or #5 give you an error, can you post the error message here? If you prefer, you can email the error message to tony (at) pixelcrushers.com.

Re: Making localization in exported file.

Posted: Mon Jul 02, 2018 4:56 am
by raingame98
Hi, I've tried to import without changing anything, and I've got this error: http://prntscr.com/k1ibaa
Then, I've opened exported CSV file in Mircrosoft Excel and filled a column: http://prntscr.com/k1ij1g

Green: filled in the Dialogue System Editor
Red: Filled by me in the exported CSV file

And then I have tried to export it back and again I've got error: http://prntscr.com/k1ijyg

Re: Making localization in exported file.

Posted: Mon Jul 02, 2018 8:34 am
by Tony Li
Hi,

You can ignore the "BeginLayoutGroup" message. It should be fixed in 2.0.2, but it's superficial. It doesn't break anything.

The other error ("Sharing violation") is the problem. This means Unity can't open the CSV file because another application has it open. Close your spreadsheet application. Then try importing again.

Re: Making localization in exported file.

Posted: Mon Jul 02, 2018 8:54 am
by raingame98
LoL, it works! My fail. Thank you very much, Tony!

Re: Making localization in exported file.

Posted: Mon Jul 02, 2018 9:51 am
by Tony Li
Glad to help!