Page 1 of 1
localization Export/import for Arabic language
Posted: Tue Aug 04, 2020 4:08 pm
by Gagwieg
Hi Tony,
for importing localization from CSV file for arabic language it imported strange characters
- strange characters.PNG (4.21 KiB) Viewed 1360 times
and need to know how process imported text from csv for arabic before save in database
thanks
Re: localization Export/import for Arabic language
Posted: Tue Aug 04, 2020 5:45 pm
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);
}
Re: localization Export/import for Arabic language
Posted: Tue Aug 04, 2020 8:51 pm
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?)
Re: localization Export/import for Arabic language
Posted: Wed Aug 05, 2020 10:46 am
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
Re: localization Export/import for Arabic language
Posted: Wed Aug 05, 2020 10:52 am
by Tony Li
Ah, I understand. Thanks for explaining about the script.