Posts tagged “Language”

HTC_IME mod with language change built in and other fixes

So it has been a while since I last wrote about this application, and since then there has been some modding to it. A guy called jonasl on XDA-Developers.com, did some modding to it.

Some new features include that you can now change language inside the application, which you could not do before because it required the HTC Framework, which could only be done by changing a configuration file by hand. A lot of other hacks and mods has been done to it, which you can all see in the tread on XDA-developers.com

A new thing is that there are now two versions of the HTC_IME, one for low res screens such as the G1 and Magic and a high res version for Nexus one and other similar devices. But you can read all that in the thread.

This also means that the instructions in my old post about changing language in HTC_IME, is not releveant anymore, and should be considered obsolete, though you are still welcome to use them.

Install batches of apps through adb

I made a small script just to test the syntax highlighting plug-in I installed for WordPress. So here it goes:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# Scipt that installs a batch of apk files on an Android device,
# through the adb tool from Android SDK.
adbPath="/home/tomasz/android/android-sdk/tools/adb"
 
if [ $# -ne 1 ]; then
        echo "usage: `basename $0` foldername"
        exit 1
fi
 
for f in $( ls "$1" );
do
        $adbPath install "$f"
done


The script is very simple and installs apk files in a folder through adb (Android Debug Bridge). This of course requires the Android SDK and a some kind of a Linux distribution.

Google translate tools!

I have added the Google Translate tool for you to use on the Blog. It is found in the sidebar on the right at the top, where you can choose a language you want the entire page to be translated into. For more information about this awesome translation tool visit Googles Translate Tools webpage, here you can find the code you need to paste into your template for the tool to function. Super simple and it just works flawlessly! Though the quality of the translation is not perfect, but it will give you an idea what the content is about in the language you translate into.

For now Google Translate tools support 51 languages and will most likely support more in the future. This is also a great opportunity to reach out to an audience which does not speak English, which this Blog is written in. Cool beans!

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.