• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Get Windows languages and put them inside DropDownList

Enthusiast ,
May 28, 2022 May 28, 2022

Copy link to clipboard

Copied

Get Windows languages and put them inside DropDownList

Untitled-1.jpg
And when writing inside the text box.. it is written in the language that was chosen from the list

002.jpg001.jpg

TOPICS
Actions and scripting

Views

199

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
May 28, 2022 May 28, 2022

Copy link to clipboard

Copied


@Mohamed Hameed wrote:

A colleague here gave me the solution, but I did not understand it.

 

Perhaps it would be helpful to post the code?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 28, 2022 May 28, 2022

Copy link to clipboard

Copied

@Stephen_A_Marsh 

I found this code but it doesn't work when the language is English
I want a code when writing inside the text that automatically makes the language Arabic

 

var dlg=
"dialog{text:'Script Interface',bounds:[100,100,470,170],"+
"test:EditText{bounds:[10,10,360,30] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
"button1:Button{bounds:[10,40,350,60] , text:'Cancel' }};"
var win = new Window(dlg,'test');
win.center();

win.test.onChanging = function() {
     this.text = this.text.replace(/[^[\u0600-\u06FF\s0-9\p{N}]/, '');
 }
win.show();

 

The problem is that you are working on Windows and there is more than one language..and switching between them is difficult..especially when working on 100 cards.
I want to stick to only one language when writing name and address
I hope I conveyed what I want clearly 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 29, 2022 May 29, 2022

Copy link to clipboard

Copied

I searched and found an article on this topic but inside javascript
-- on focus change language input to Arabic automatic

I found this code but in javascript format

 

SnVlA.png

 

Using the attr function of jquery.
<input type="text" id="myClass" lang="arabisk" /> 
<script>
$(document).ready(function(){
    // change to arabic input language
    $(document).on('focus','.myClass',function(this){
        this.attr('lang', 'arbasic')
    });
    // change to english input language
    $(document).on('outfocus','.myClass',function(this){
          this.attr('lang', 'eng')
    });
});
</script>


Is there a code that does this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 31, 2022 May 31, 2022

Copy link to clipboard

Copied

LATEST

Is the situation too difficult?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines