How to changeIME mode
-
Hi, Currently I am working on a multilingual application. 1. I willing provide a Button on UI which will toggle IME mode, say from English to Japanese. How can do that ? 2. How can I detect if systems IME mode is changed by user ? 3. As well as above I want to transliterate the inputed text to english. Can I do it ? Regards Prasad
-
Hi, Currently I am working on a multilingual application. 1. I willing provide a Button on UI which will toggle IME mode, say from English to Japanese. How can do that ? 2. How can I detect if systems IME mode is changed by user ? 3. As well as above I want to transliterate the inputed text to english. Can I do it ? Regards Prasad
Erhm, there are several ways to 'translate' your application. I'm also currently working on a project which must be able to support multiple languages. I choose to create a new set of controls to support multiple languages. Therefore created an interface containing translation methods, and make all controls (for example buttons and labels) member of this interface. Then as soon as the user changes the interface language, set the CultureInfo object to the new language, and call the translate method on every control member of the interface ;) However, VS.NET contains full support for multi-language apps (using resources) you should consider some options, and find 'the best solution' for you ;)
.: I love it when a plan comes together :. http://www.zonderpunt.nl
-
Hi, Currently I am working on a multilingual application. 1. I willing provide a Button on UI which will toggle IME mode, say from English to Japanese. How can do that ? 2. How can I detect if systems IME mode is changed by user ? 3. As well as above I want to transliterate the inputed text to english. Can I do it ? Regards Prasad
iprasad007 wrote:
1. I willing provide a Button on UI which will toggle IME mode, say from English to Japanese. How can do that ?
All text in the UI is set using the control.Text property on each control. To change the text change that value. Heres a search for how to use satallite assemblies to achive this. http://www.google.co.uk/search?hl=en&q=c%23+localisation+satallite+assemblies&meta=[^]
iprasad007 wrote:
2. How can I detect if systems IME mode is changed by user ?
Not sure. You might be able to find out more about this whilst researching localisation.
iprasad007 wrote:
3. As well as above I want to transliterate the inputed text to english. Can I do it ?
It's possible theres some software out there that will do it badly. If you want decent results you'd have to get a human to do it. Heres some computer translated text. I've no idea if it's mangled or not since I don't read japanese but it should give you an idea of the quality. English: This is an example of some computer translated text. It's probably not very good. Japanese: これはコンピュータによって翻訳されるテキストの例である。それは非常によくないおそらく。
-
Erhm, there are several ways to 'translate' your application. I'm also currently working on a project which must be able to support multiple languages. I choose to create a new set of controls to support multiple languages. Therefore created an interface containing translation methods, and make all controls (for example buttons and labels) member of this interface. Then as soon as the user changes the interface language, set the CultureInfo object to the new language, and call the translate method on every control member of the interface ;) However, VS.NET contains full support for multi-language apps (using resources) you should consider some options, and find 'the best solution' for you ;)
.: I love it when a plan comes together :. http://www.zonderpunt.nl
Thanx Allot Eduard, I am developing framework for mentioned project now, and I have done with the display part using resource files (i.e. to display label and button text dynamically from resource files). That works fine, problem is with data entry controls like TextBoxes, where IME comes into picture. I wanted to know how can I change IME mode (say from English to Japanese or any Asian language) programatically ? Awaiting ur reply. Prasad
-
iprasad007 wrote:
1. I willing provide a Button on UI which will toggle IME mode, say from English to Japanese. How can do that ?
All text in the UI is set using the control.Text property on each control. To change the text change that value. Heres a search for how to use satallite assemblies to achive this. http://www.google.co.uk/search?hl=en&q=c%23+localisation+satallite+assemblies&meta=[^]
iprasad007 wrote:
2. How can I detect if systems IME mode is changed by user ?
Not sure. You might be able to find out more about this whilst researching localisation.
iprasad007 wrote:
3. As well as above I want to transliterate the inputed text to english. Can I do it ?
It's possible theres some software out there that will do it badly. If you want decent results you'd have to get a human to do it. Heres some computer translated text. I've no idea if it's mangled or not since I don't read japanese but it should give you an idea of the quality. English: This is an example of some computer translated text. It's probably not very good. Japanese: これはコンピュータによって翻訳されるテキストの例である。それは非常によくないおそらく。
Hi originSH, It seems that u didn't got me correctly. U have told me about Text property of control, but I was talking about setting IME mode. U have told me about translation but I was asking about Transliteration. Anyways thanx for ur efforts. Regards Prasad
-
Hi originSH, It seems that u didn't got me correctly. U have told me about Text property of control, but I was talking about setting IME mode. U have told me about translation but I was asking about Transliteration. Anyways thanx for ur efforts. Regards Prasad