This blog post is not relevant anymore since a new version of HTC_IME is out with big changes. See more in the blog post covering this.
Prerequisites are to have had started the program once, so that it has made the configuration files and a properly installed AndroidSDK on you computer.
OK, so there are two ways of achieving this. On ROM’s that support Danish as a system language you should go choose that in Settings>Locale & text>Select locale, here you will find your language. Change to it and HTC_IME should also be in that language as well. Super easy. Now you might want to have the UI language to be English. If you change it back to English in the Locale picker, the HTC_IME language will revert to English also, which you don’t want if you want Danish word prediction.
What we have to do then is to echo “en” to /data/property/persist.sys.language, which contains the information about what language the user UI should be. This is done by executing following commands in your command line.
adb shell
echo en > /data/property/persist.sys.language
reboot
You can also do this without changing any locales and change the settings only for HTC_IME, and not making them system wide.
This is done by pulling the configuration file for HTC_IME to your computer, editing it and pushing it back.
adb pull /data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml . (remember the dot!)
edit the line saying <string name=”keyboard_language”>x<?string>, where x is the value we need to change to 8 to get Danish dictionary (see bottom of post for other languages). Save the file and push it back to the phone and reboot.
adb push com.htc.android.htcime_preferences.xml /data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml
Now you only need to either reboot the phone or change the layout to Compact QWERT and back and you should have your chosen dictionary and word prediction. This ofcourse works for other languages aswell. Here are the following values that seems to work for the last method:
English 0
Arabic (Egypt) 14
Arabic (Israel) 14
Czech 7
Danish 8
Dutch 11
Spanish 4
Finnish 12
French 1
German 2
Greek 17
Italian 3
Norvegian (Bokmål) 10
Polish 13
Portugese 5
Romanian 16
Russian 6
Swedish 9
Turkish 15
This was tested on CyanogenMod 4.1.11.1 and up and will most likely work on other ROM’s aswell. Also notice that it will keep saying English in the Settings menu.
Latest version of HTC_IME for donut can be aquired on XDA-developers – thanks to Cyanogen.
Sweet, trying it out now, as I had a bunch of problems getting HTC_IME to work in danish in Cyanogen 4.1.11.1
Posted by emil visti on October 4th, 2009.
Gah, I still can’t get it working. I just did your fix, but HTC_IME is still in English. Just to clarify, I’m running a completely stock Cyanogen 4.1.11.1. Do I need to get a dictionary from somewhere and then do this or what?
Posted by emil visti on October 4th, 2009.
Alright, I’m an idiot. Works now. Thanks for the good work! Keep it up!
Posted by emil visti on October 4th, 2009.
Haha, glad it worked for you
Posted by Tomasz Cielecki on October 4th, 2009.
epic. It was exactly what I was looking for!
Posted by Tomas on October 6th, 2009.
Nice work …..
Posted by gel on October 15th, 2009.
Nice man! It worked
one of the best Android underdog sites
Love your blog
———————————————–
Nice man! Det virkede kraftedme
bedst blandt danske underdog Android sites….
Elsker din blog
Posted by FanBoy on October 17th, 2009.
jeg får:
“remote object ‘/data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml’ does not exist”,
desværre, Any ideas ?
CyanogenMod 4.1.9999
Posted by Fisker on October 22nd, 2009.
nevermind, glemte lige jeg havde lagt ind under et andet navn
Posted by Fisker on October 22nd, 2009.
Hey. jeg kan ikke få det til at virke. Jeg kører CM 4.1.9999, så hvis Fisker lige ser det her, så må du da gerne lige fortælle hvordan du har fået det til at virke. Eller hvis der er andre der ved hvad jeg skal gøre.
Per
Posted by Per on October 22nd, 2009.
Prøv at opdatere HTC_IME til nyeste version, se bunden af post.
Posted by Tomasz Cielecki on October 25th, 2009.
Tack för detta! Löste mitt problem
Posted by Joakim on October 31st, 2009.
Jeg har prøvet at opdatere tl den nyeste HTC_IME, men får stadig:
“remote object ‘/data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml’ does not exist”
Jeg har bare downloaded Clicker.apk og HTC_IME.apk og installeret dem. Så skulle da vist gerne have gjort det rigtigt
Men nogen der har en idé?
Posted by Per on November 1st, 2009.
Nå, fik hentet filen over på min computer og ændret den til dansk, og smidt den tilbage. Fandt ud af at jeg skulle genstarte telefonen efter jeg havde installeret HTC_IME. og nu virker det med i hvertflad med det tastatur der hedder “telefontastatur”.
Og jeg kører forresten med Cyanogen 4.2.3.1, så kan bekræfte at denne metode også du til den ROM
Posted by Per on November 1st, 2009.
I also get “remote object ‘/data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml’ does not exist”
i have installed Clicker and HTC_ime from http://n0rp.chemlab.org/android/apps/
anyone with a solution for that ?
Posted by Cagra on November 29th, 2009.
Solution is to follow the prerequisites and start HTC_IME before trying to pull the configuration from the phone…
Posted by Tomasz Cielecki on November 30th, 2009.
Tomasz.. not really… the solution is to try and pull the file while the phone is running in normal mode, and not recovery mode
tak for guiden
Posted by Cagra on November 30th, 2009.
I haven’t stated anywhere that you should pull it from Recovery mode, so I don’t understand that you were trying to do that.
Posted by Tomasz Cielecki on November 30th, 2009.
det ved jeg godt du ikke havde, men alt det andet jeg lige havde siddet og rodet med var igennem recovery, så det regnede jeg med dette også var, men jeg fandt da ud af det
endnu en gang tak for guiden
Posted by Cagra on December 1st, 2009.
dzieki Tomek!
Posted by Marek on January 7th, 2010.
Thanks dude!
Worked perfectly for HTC Hero running MCR 3.1.
Posted by dogei22 on January 8th, 2010.
…and by the way, I did this directly on my phone after installing ConnectBot terminal SW and connecting to local host as root.
Posted by dogei22 on January 8th, 2010.
Er der nogen der har test om det virker på en google Nexus one?
Posted by lars on January 12th, 2010.
Yes, I just tested and it works well on the Nexus One as long as you have the N1 version of HTC_IME installed (Google will find it for you). The Keyboard itself is a bit pixelated but works perfectly.
Posted by dogei22 on January 16th, 2010.
Hi, this is exactly what I’ve been looking for, but since I’m on Mac, I only have Terminal, and am not sure which commands I need to enter in order to push/pull/echo any of the commands above.
If anyone can help that would be much appreciated.
BTW I’m using a Nexus one, rooted, modded, and allready have the HTC_ime running and working well…I switched the language to French on the phone and the dictionary became french, but I would juslt like to be able to switch between french and English from within HTC_IME.
Thanks again,
Lou
Posted by Lou on January 20th, 2010.
Hi, I got it working.
Have been playing around with the strings so that I can change between french and English, but it’s either French or English, I can’t change from within the htcime settings. Once it starts it’s in French, and when I pick language it becomes English, but I can’t uncheck English, so it remains in English…
What values do I need to change or what string should I add to do this?
Thanks,
Lou
Posted by Lou on January 22nd, 2010.
Thanks !
Worked with AOSP 2.1 r2.
Don’t forget to reboot your phone
Posted by Wiz on January 23rd, 2010.
you rock m’an
I was thriving for turkish predictive input, and I now have it. If only I could change the interface too LoL
Posted by kirpi on January 25th, 2010.
[...] De enige manier die ik ken om makkelijk nederlandse spelling op een engelse ROM te krijgen is door HTC_IME .apk te installeren en daarna deze guide te volgen: Ostebaronen.dk — Changing HTC_IME language to Danish and other languages [...]
Posted by Nederlandse Spelling op Google Nexus - Android Forum | Alles over Google Android | Androidworld on January 31st, 2010.
[...] dat gelukt? Oftewel waar gaat het bij mij mis? Groeten… Om dat te doen heb ik dit gebruikt: Ostebaronen.dk — Changing HTC_IME language to Danish and other languages __________________ [...]
Posted by Andere talen op je custom ROM? - Android Forum | Alles over Google Android | Androidworld on February 11th, 2010.
Does one require root acces to change the language?
adb returns a device number, but every other action returns a “denied”
(HTC Magic Vodafone stock Dutch)
Posted by david on March 17th, 2010.
You have to enable USB debugging. I am not sure if you need to root your device, but I would think so in order to modify system files and configurations for applications.
Posted by Tomasz Cielecki on March 17th, 2010.
[...] Changing HTC_IME language to Danish and other languages, Tomasz Cielecki Yorumlar [...]
Posted by Türkiye’nin Android’inde Türkçe klavye « Kirpi’nin Yeri on April 4th, 2010.
HTC_IME may be worked for language trnslation wizard but it may also help you to set in mobile and computer.you can use it for any language to translate.
Posted by Vickie Tisdale on May 6th, 2010.