Skip to main content
Mohamed Hameed21513110
Inspiring
December 6, 2021
Answered

Typing with Default language on edittext

  • December 6, 2021
  • 1 reply
  • 2014 views
Hi Everybody ..
I want to make the language when writing in the edittext
to Arabic or English automatically
when writing inside the edittext without converting the language
Meaning I want to make the device language Arabic 
when writing inside the Edittext
This topic has been closed for replies.
Correct answer Stephen Marsh

Thank you for caring

I don't want a code that deletes numbers

I want a code only when writing inside the edittext that only accepts Arabic letters

Without writing any English letters

@Stephen Marsh 



@Mohamed Hameed21513110 wrote:

I don't want a code that deletes numbers

I want a code only when writing inside the edittext that only accepts Arabic letters


 

I understand, I was commenting on the code that you found that relates to your question.

 

The key point being that the code in question uses a regular expression based find/replace.

 

You would need to look into how regular expressions work with Arabic input if using a regular expression, however, this sounds more like an extendscript/scriptUI requirement issue that you would need to research.

1 reply

Omar.Fathy
Community Expert
Community Expert
December 6, 2021

The language is controlled by the operation system. That is means that if it is Arabic in your OS (IOS or Windows), the application will write Arabic and the same in any language so you can set your OS language.

Mohamed Hameed21513110
Inspiring
December 6, 2021

There is a code that writes numbers only in the edittext. I want a code that writes Arabic when writing inside the edittext

Mohamed Hameed21513110
Inspiring
December 8, 2021

@Omar.Fathy , @Zaid Al Hilali

ليس بالامكان السماح بالأحرف العربية فقط في مربع نص التحرير باستخدام اكود الجافا سكربت للفوتوشوب

that it is not possible to allow Arabic characters only in the editing text box

using the javascript code for Photoshop.