localization Export/import for Arabic language

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Gagwieg
Posts: 3
Joined: Tue Aug 04, 2020 4:00 pm

localization Export/import for Arabic language

Post by Gagwieg »

Hi Tony,
for importing localization from CSV file for arabic language it imported strange characters
strange characters.PNG
strange characters.PNG (4.21 KiB) Viewed 1361 times
and need to know how process imported text from csv for arabic before save in database
thanks
Gagwieg
Posts: 3
Joined: Tue Aug 04, 2020 4:00 pm

Re: localization Export/import for Arabic language

Post by Gagwieg »

Solution found
for encoding need save csv as UTF-8 encoding
and can process imported text in DialogueEditorWindow

Code: Select all

                                if(language == "ar")
                                {

                                    Field.SetValue(entry.fields, language,ArabicFixer.Fix(columns[4]), FieldType.Localization);
                                    Field.SetValue(entry.fields, "Menu Text " + language, ArabicFixer.Fix(columns[6]), FieldType.Localization);


                                }
                                else
                                {
                                    Field.SetValue(entry.fields, language, columns[4], FieldType.Localization);
                                    Field.SetValue(entry.fields, "Menu Text " + language, columns[6], FieldType.Localization);
                                }
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: localization Export/import for Arabic language

Post by Tony Li »

Hi,

Arabic should import properly, as long as you use UTF-8 in your CSV file, without having to modify any Dialogue System scripts. If it isn't importing properly for you, please let me know what import option you are using. (Are you using the CSV Importer window? The Dialogue Editor's Localization Export/Import feature?)
Gagwieg
Posts: 3
Joined: Tue Aug 04, 2020 4:00 pm

Re: localization Export/import for Arabic language

Post by Gagwieg »

Hi,
now after saving CSV file in UTF-8 format it import correctly the script is for fixing unity issue with arabic that all letters are not connected so instead of fixing it in runtime the script connected the letters and save it in correct form
do not worry Tony CSV importer is working fine
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: localization Export/import for Arabic language

Post by Tony Li »

Ah, I understand. Thanks for explaining about the script.
Post Reply