Hi Tony,
for importing localization from CSV file for arabic language it imported strange characters
and need to know how process imported text from csv for arabic before save in database
thanks
localization Export/import for Arabic language
Re: localization Export/import for Arabic language
Solution found
for encoding need save csv as UTF-8 encoding
and can process imported text in DialogueEditorWindow
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
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?)
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
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
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
Ah, I understand. Thanks for explaining about the script.