A function to change the language in a text editor

i develop a text editor in director MX and i want a function
to can change the language with a button in english and in greek.
Specifically the user will press the "greek button" if he
want to write text on greek and the "english button" if he want to
write text in english.
thanks
Sergios sergiou

The latest version of ActiveCompanionSet xtras provides full
control over keyboard layout. You may check the current
layout/language and switch to another one. See details here:
http://www.xtramania.com/Documentation/VbScriptXtra/Usage2/Wrappers/System/
This functionality is free. You may just download and use
it.

Similar Messages

  • Problem, change the language with dynamic text

    I am looking for a way to change simply the language of my flash animation
    I work with flash cs4
    of course I got Mylocale.as:
    import mx.lang.Locale;
    class MyLocale extends mx.lang.Locale {
    static function start():Void {  
    var langCode:String = xmlLang;
    currentXMLMapIndex = 0;
    xmlDoc.load(xmlMap[langCode][0]);
    static function setXMLLang(langCode:String):Void {
    xmlLang = langCode;
    and different xml files in the same folder than my swf file
    in string , I ticked : "replace  strings automatically during the execution"
      with a default language (I am wondering if the problem is not from there)
      if I tick: "replace strings manually using the scene language " or "replace strings via actionscript"
    my code does not work.
      then I kept: "replace strings automatically during the execution"
    in my flash animation I have several scenes (pages)
    p1, p2, p3, p4
    in p1
    I created a language bar
    then 2 layers inside
    Layer--action:
    langListener = new Object();
    langListener.change = function(eventObj) {
    var target = eventObj.target;
    var newLang = target.selectedItem.data;
    MyLocale.setXMLLang(newLang);
    MyLocale.start();
    lang_cb.addEventListener("change", langListener);
    // Force Japanese
    lang_cb.selectedIndex = 1;
    lang_cb.dispatchEvent({type:"change"});
    Layer--language ex Fr:
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "fr") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    ex Ja :
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "ja") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    When I change the language in p1 , the language is also modified in p2, p3 and p4
    however , after a navigation in p2, p3 and p4 , once I come back in p1 , the default language is back automatically although I did not touch the language bar!!
    I don't know how to solve the problem
    to my mind , the script reset itself each time I come back on p1
    is there a way to keep the saved settings even when I am back on p1 until I modify manually again the language bar
    thanks a lot

    I am looking for a way to change simply the language of my flash animation
    I work with flash cs4
    of course I got Mylocale.as:
    import mx.lang.Locale;
    class MyLocale extends mx.lang.Locale {
    static function start():Void {  
    var langCode:String = xmlLang;
    currentXMLMapIndex = 0;
    xmlDoc.load(xmlMap[langCode][0]);
    static function setXMLLang(langCode:String):Void {
    xmlLang = langCode;
    and different xml files in the same folder than my swf file
    in string , I ticked : "replace  strings automatically during the execution"
      with a default language (I am wondering if the problem is not from there)
      if I tick: "replace strings manually using the scene language " or "replace strings via actionscript"
    my code does not work.
      then I kept: "replace strings automatically during the execution"
    in my flash animation I have several scenes (pages)
    p1, p2, p3, p4
    in p1
    I created a language bar
    then 2 layers inside
    Layer--action:
    langListener = new Object();
    langListener.change = function(eventObj) {
    var target = eventObj.target;
    var newLang = target.selectedItem.data;
    MyLocale.setXMLLang(newLang);
    MyLocale.start();
    lang_cb.addEventListener("change", langListener);
    // Force Japanese
    lang_cb.selectedIndex = 1;
    lang_cb.dispatchEvent({type:"change"});
    Layer--language ex Fr:
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "fr") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    ex Ja :
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "ja") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    When I change the language in p1 , the language is also modified in p2, p3 and p4
    however , after a navigation in p2, p3 and p4 , once I come back in p1 , the default language is back automatically although I did not touch the language bar!!
    I don't know how to solve the problem
    to my mind , the script reset itself each time I come back on p1
    is there a way to keep the saved settings even when I am back on p1 until I modify manually again the language bar
    thanks a lot

  • Change the language of a text field

    Hello to everyone, maybe you can help me.
    I have a JTextFields which each one of them should have a different default language (english or hebrew).
    How can I determine the default language of the JTextField.
    I tried to do it using the class Robot but it isn't good enough because I can't find the current language. I tried to find the current displayed language using Locale but it didn't help. I also tried to write a character using the class Robot and then anlyse it but it also didn't help.
    What can I do?
    Is there a solution for this problem?
    Does someone have any other ideas?

    Java cannot translate the language for you. You have to provide a properties file for the Language.
    For example, if you are in France, your locale is French.
    Try this code.
    languageManager.java
    import java.util.*;
    public class LanguageManager {
       private static final String BUNDLE = "conf.lang_IDE";
       public static LanguageResourceBundle getLanguage(UserPreferences userPref) {
          try {
          Locale locale = new Locale(userPref.getLanguage(), userPref.getCountry(), userPref.getVariant());
          ResourceBundle resource = ResourceBundle.getBundle(BUNDLE, locale);
          return (new LanguageResourceBundle(resource));
          } catch (IOException e) {
          ErrorDialog error = new ErrorDialog("Cannot Read the Language File", JOptionPane.ERROR_MESSAGE, "ERROR");
          return null;
    LanguageResourceBundle.java
    public class LanguageResourceBundle {
       private ResourceBundle resource = null;
       public LanguageResourceBundle(ResourceBundle resource) throws IOException {
          this.resource = resource;
       public String getString(String property) {
          return (resource.getString(property));
    UserPreferences.java
    public class UserPreferences {
       private String language;
       private String country;
       private String variant;
       public static String selectedLanguage;
       public static String selectedCountry;
        * Constructor, set the language, country and variant
       public UserPreferences() {
          setLanguage(getLanguageCode(selectedLanguage));
          setCountry(getCountryCode(selectedCountry));
          setVariant("");
        * Sets the Language
        * @param lang Language (in String) to be set
       public void setLanguage(String lang) {
          this.language = lang;
        * Returns the Language
        * @return Language
       public String getLanguage() {
          return language;
        * Sets the Country
        * @param country Country (in String) to be set
       public void setCountry(String country) {
          this.country = country;
        * Returns the Country
        * @return Country Code
       public String getCountry() {
          return country;
        * Sets the Variant
        * @param var Variant to be set
       public void setVariant(String var) {
          this.variant = var;
        * Get the Variant
        * @return Variant
       public String getVariant() {
          return variant;
    }And your proprties file is some thing like this
    lang.properties
    MENU_FILE=File
    MENU_FILE_NEW=New
    MENU_FILE_OPEN=Open
    So from your class, you use something like this
    private LanguageResourceBundle language = LanguageManager.getLanguage(new UserPreferences());
    menu1.setText(language.getString(MENU_FILE));This is how Language Resource Bundle works.
    If your locale is french and you provide a proeprty file named lang_fr_FR.properties with French for example
    MENU_FILE=Dossier
    MENU_FILE_NEW=Nouveau
    MENU_FILE_OPEN=Ouvert
    then java picks the French file. and displays everything in French.
    HTH

  • How do i change the language of my text?

    pages think i'm writing danish and the spell checker messes up! I have looked in toolbar, menus, boxes -

    But aren't you Danish?
    What language do you want?
    What language have you set in your System Preferences?
    How does the spell checker "mess up".
    Just for the sake of this discussion pretend we are not in the room with you and can't see what you are looking at.
    Peter

  • HT5312 I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? th

    I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? then I was unable to enter until 8 hours then called Apple Japan 4 times each time threy asked me would you like to speak with an English speaker,I said yes then they told me sorry today is Sunday no English speakers ,but they refused to speak Japanese, then I called 5th time and a kind guy could speak English we were on 1and 1/2 hours he got me to log in but the reset key chain could not be completed still pending.
    He said do not mess with that ! then I got a text from somewhere to reset 4 pins suddenly it was very strange I said to him that I got this pin this morning but it said you can use maximum 3 hours it had a UK number and I told him I do not like this and will not enter the code he said do not do it if it is from the UK and then I said to him ok you did a lot to help but we can not go any further ! and we cut of I went back to my computer to re do the ID but I found everything a mess so I call and a stupid sounding Japanese women with a squeaky voice came on I was calm at first and they want your phone number your IMEI number your iPhone serial number date of birth Address email address it takes 10 munutes to check then they ask what are you caling about so I try to explain my keychain is broken or problems with language security questions and can not change my pasword because the security question have failed me so it is ONE BIG HEADACHE AND I START I GET STRESSED she says Do want an ENGLISH speaker ,I say yes ,that guy i talked to earlier but I never got his name and first time I ever talked to him but they said he is not here so I said ok and then she said today is sunday so call back in the morning ,I said ,well ok in Japanese but they make you feel stupid because they do not want to speak Jap@anese with none natives and they are to busy,And they feel that I should not bother them ,then I say that Apple Japan is trying to refuse Apple foreign customers and then she wants to hang up and ask me to visit the shop ,but they are the same I have a very bad time with Apple Japan since they do not discuss software problems or security with customer meaning if you have a problem they ask you to come on a time 20 minutes max so they do hardware test and say you phone is fine then I say no I can not reset my ID they say you must call call centre so I am going around in circles ,When I call English it is usually Australia so if my problem is in Japan surely if do not want me to talk to them in Japanese and they ask me to call Australia but every time my call charge is expensive after asking them is this free because I have Apple care they say yes but when the call goes to Australia 0120 277 535 it might change to paid call so I call then I have to ask is this charging they say we can not give you that information ! so what can I do I have have been at the computer and phone all day on my day off work and in tre week I am so busy and can not use my phone I can not work without it ,this new technology for you ,they can not cope with the fact that the customer have problems yet they do not want to deal with us because they can not solve it and so it shows them to be useless they like to walk around in their cool tee shirts and retro shop but when it comes to functionality we are unwelcome they got the money so do not return because apple is perfect that nothing should go wrong .
    But it does somehow my English security answers do not work on a Japanese Question especialy if I did not choose that question I set  up the multiple choice In English and wrote the answers in English or Roman and set them langauge preferences in English, do you really think you can correctly write english name or word in Japanese they write a police patrol car  pato caa パトカア they do not have r and l .So it is my choice to make my security easy for me and as difficult for others to hack.But they also have patororoo choo meaning ' now patrolling ' so why they have pato caa patrol car and patoro patrol and have thousands of Chinese words kanji they can find patrol.
    I am getting off the topic but I am at a loss to fix this problem when they hold the keys and i have all the info to verify my ID.

    You have to enter the Apple ID and password. You are running into the Activation Lock
    iCloud: Find My iPhone Activation Lock in iOS 7
    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

  • How to change the language  for better usage of englisch books

    I use audition 5.0 and have bought the Classroom in book.
    I have installed in french.
    It would help me to aply the lessons when I might change the language of the software from french to englisch.
    Under PRESETS there is not such a function.
    Thanks, adob1948

    This information is, I believe, partly or completely stored in the registry. What this means is that you have to do a complete uninstall, and reinstall selecting English as the installation language.

  • Hi All,i am currently working on a flex application that will allow the user to change the language

    Hi All,i am currently working on a flex application that will allow the user to change the language within the application from english to Japanese and vice versa. And everything works fine.
    I am using flex 4.5
    We allow the user to save records with english or japanese texts.
    problem
    When the user manually enters Japanese text and tries to save it the record defaults back to the default name (which is in english). But if you copy the entered text and paste it and then save it.It works fine.
    Any idea , why this is happening?
    Please let me know if the question is not clear.
    Looks like there was already a bug
    https://issues.apache.org/jira/browse/FLEX-28894?page=com.atlassian.jira.plugin.system.iss uetabpanels:all-tabpanel
    Not sure why does it say , Resolved .
    -KB
    Message was edited by: bKartik.b

    By Payal integration , you mean paypal button html ? or payment gateway setup etc ? If its a gateway configuration for your site domain then single page for all layout will work , but if you are using button code for all renditions then you would need to create separate pages for all.
    Thanks,
    Sanjit

  • I,m using macbook pro retina, I have changed the language to Arabic but still I find that password and downloading are coming in arabia

    I,m using macbook pro retina, I have changed the language from arabic to Endlish through system preference, but still I find that password and downloading are coming in arabia, when I start my computer it show password request in Arabic.

    http://support.apple.com/kb/ht4102

  • How can I change the language in Motion 5 from German to English

    Hi Folks,
    I just bought Motion 5 and I am eager to learn. I also bought some video tutorials about the program.
    Now my problem is, that motion is set to German, since I live there and that's my native language. But the tutorials are english. so in order for me to understand the program even better; i'd like to change the language in motion to english without changing my whole system.
    Ist that even possible?
    Thnaks for your help
    Cheers from Germany
    Pat

    That worked out great
    Thanks a bunch for your quick help

  • How can i change the language from spanish to english on a palm 750 that i just bought in spain?

    hi
    can anyone tell me if it is possible to change the language on a palm 750 from spanish to english? I just bought this phone in spain and can not use it well as everything is in spanish
    please let me know how to change this if possible
    Post relates to: Treo 750 (AT&T)

    Hello and thank you for using the Palm Help Forums!
    For this device, you will need to perform a hard reset to be able to set the language. A hard reset will erase all data on the device and restore settings to factory default. You will want to make sure you back up your information to a computer (via Activesync) before performing this action.
    To do a hard reset you will need to remove the battery. Press and hold the end call button (red key) while putting the battery back in the device. Continue holding the end call key until the loading bar at the bottom of the screen completes. Once you see the loading bar disappear, release the end call button and you will be prompted on the screen, Erase all data? Y or N? Press up on your 5 way navigator to confirm this.
    Once the device boots up you will be prompted for what language you want. I hope this helps!
    -Pat

  • How to change the language in smartform?

    hi
    how to change the language in smartform?

    Hi,
    U can't change the language in the smartform, the main language of the smartform is the language used to create it (so the language used for SAP log on.
    But u can translate it (by trx SE63) and if u need to print in a new language u have to indicate it when the smartform is called.
    U can transfer the language to be used for the print in the parameter CONTROL_PARAMETERS, like structure SSFCTRLOP, here u can indicate the language in the field LANGU.
    see this..
    Use transaction SE63, after activate your smartform, to translate.
    In the First Page of your Smart Forms click on Global Settings under that click Form Attributes
    now in the Right side screen Go to Subscreen Language Attributes.
    select the Radiobutton Translate To all Languages
    from the Translate subscreen out of three radio buttons.
    rewaards if useful
    regards,
    nazeer

  • How can I change the language of after effect or creative cloud  for a while .. ( I have bought  a template which expressions are in english  )

    hello, I think that this problem has to resolved if it's not yet..  I am on creative cloud in french and all my APPS are in french 
    I  have bought a template for after effect on video hive and its expressions do not work because they are in english..
    what can I do ? ,
    except changing the language and if it's the only solution How can I do that ?  just for a week .. I don't want to keep an english version
    thanks
    JC

    running After Effects in English, even if you’ve installed and activated it in another language

  • I change the language on my ipod and most of my songs were gone, how do i get them back?

    Ok so, today i had the brightest idea to change the language on my ipod, after that of course i wanted to listen to some music and most of my music dissapeared, i thought that changing the language back to english was gonna be the solution but it wasn’t, i just connect the ipod to itunes and sync it again and nothing happend, i de select and select all of my music again manually to sync it and nothing happend,
    Can someone help me? Should i trow away my ipod already?

    Hi Solesisita,
    definitly don't throw your iPod away.
    Which iPod touch do you have?  And, have you tried shutting it off completely and then turning it back on? Press and hold the button on the top until it powers off, wait about a minute and then press and hold the button until it comes back on.
    Let us know what it's like after you do that.
    Regards, Richard

  • HT4314 I want to change the  language of my Game Center (it was set to German because I put the data of my Austrian credit card)

    I want to change the  language of my Game Center (it was set to German because I put the data of my Austrian credit card)

    Mikeandnicki wrote:
    I have looked through everything but cannot find a way to delete or spend the 69 cents credit. Can anyone help me?
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How to change the language used for Aperture?

    I'm new to Aperture, I'm a Photoshop Elements 6.0 user, however I found that Aperture has some things that I like better than Photoshop.
    Now I downloaded the test version in order to check if its worth it, therefore I downloaded from the Apple homepage in the US, becuase I want to have it in English, I even select English to read the terms of use, but at the end the program is installed in German, languaege in wich I have my iMac.
    Do you know How could I do it in order to change the language and been able to use Aperture in English?

    Thank you so much, like that will make my life so easy and I'll be able to understand Aperture, due to the translation of the words is not always the same sometimes another word is used and then you just need to search for it.

Maybe you are looking for

  • Good Movement issue in SAP retail ITS

    Hi All,     Business is posting goods movement using SAP retail store ITS. The document gets posted in SAP successfully but storage location is not coming correct for a movement type. We have checked the configuration and it is fine. We are not able

  • Supplier Replication from MM to SUS

    Hi Experts, We are working on SRM 701 & ECC 600 EHP5 & PI 7.01. Requirement is to replicate suppliers from the ERP system to the SUS system through PI. Which integration scenario should I use in PI to do the required configuration? I tried with the i

  • Platform independency

    I have developed an implementation of High Availability Servers using Java in Linux. But the problem is it runs only in Linux because I have used the System class to execute a native OS command "ipconfig eth0 192.168.0.0.123" to change the Ip of the

  • Non valuated project stock

    Can I use one material with valuated stock in a project and same material with non valuated stock in another project ? How to do this ?

  • [AS] Linking to/copying graphics to a server location in ID CS4

    Situation: I have an indesign CS4 document with a graphic placed locally from the desktop. I then via script copy that indesign file to a folder, and then copy the graphic files into a sub-folder. (that part works ok). If I open the indesign document