Changing HTC_IME language to Danish and other languages

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.

34 comments.

  1. 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

  2. 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?

  3. Alright, I’m an idiot. Works now. Thanks for the good work! Keep it up!

  4. Haha, glad it worked for you :)

  5. epic. It was exactly what I was looking for!

  6. Nice work …..

  7. Nice man! It worked :P
    Love your blog :D one of the best Android underdog sites ;)

    ———————————————–

    Nice man! Det virkede kraftedme :P
    Elsker din blog :D bedst blandt danske underdog Android sites….

  8. 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

  9. nevermind, glemte lige jeg havde lagt ind under et andet navn :)

  10. 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

  11. Prøv at opdatere HTC_IME til nyeste version, se bunden af post.

  12. Tack för detta! Löste mitt problem :)

  13. 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é?

  14. 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

  15. 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 ?

  16. Solution is to follow the prerequisites and start HTC_IME before trying to pull the configuration from the phone…

  17. Tomasz.. not really… the solution is to try and pull the file while the phone is running in normal mode, and not recovery mode :-P

    tak for guiden

  18. 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.

  19. 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

  20. dzieki Tomek!

  21. Thanks dude!

    Worked perfectly for HTC Hero running MCR 3.1.

  22. …and by the way, I did this directly on my phone after installing ConnectBot terminal SW and connecting to local host as root.

  23. Er der nogen der har test om det virker på en google Nexus one?

  24. 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.

  25. 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

  26. 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

  27. Thanks !

    Worked with AOSP 2.1 r2.
    Don’t forget to reboot your phone ;)

  28. 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 :)

  29. [...] 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 [...]

  30. [...] 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 __________________ [...]

  31. 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)

  32. 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.

  33. [...] Changing HTC_IME language to Danish and other languages, Tomasz Cielecki Yorumlar [...]

  34. 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.

Post a comment.