Android: Add a language to the HTC IME keyboard

I like Android OS and cellphones that run that OS and lately, disillusioned by the lack of the official updates, I've been running some custom roms on my Moto Cliq. Custom roms allow me to run different versions of Android OS, or simply run a version similar to stock, but without Motorola's added apps.

One of the things i didn't like much from the stock rom was a virtual keyboard that Motorola decided to supply Cliq with:

Sexy? I think not! (Screenshot by BGR)

Personally, I much rather prefer the virtual keyboard that comes with Sense enabled phones by HTC:

Well, rawr! What a sweet keyboard like you.. (yeah, yeah.. screenshot by Droidie)

So after I managed to get HTC IME keyboard going, I realized that it also was only in English. That is not a big deal if that the only language you use, however in my case - i needed to have Russian working as well. Sure, I could've installed a Russian-English keyboard from the Market, but that would completely defeat the purpose of using HTC IME.

So I had done some research and finally found a solution for this problem. I hope you will find it helpful:

<Brotip> You will need to have ADB installed and working for this, plus cell phone connected to the computer </Brotip>

Once all set and done, you will need to issue a following command in the console:

<span style="line-height: 14px; white-space: pre;">adb pull /data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml com.htc.android.htcime_preferences.xml</span> 

This would copy the preferences file for HTC keyboard to your hard drive from the phone and would allow you to edit it. Now, open the pulled file with your favorite text editor and change the following lane:

<span style="line-height: 14px; white-space: pre;"><string name=”keyboard_language”>0<⁄string></span> 

to something that suits you. In my case:

<span style="line-height: 14px; white-space: pre;"><string name=”keyboard_language”>8<⁄string></span> 

"6" being a code for Russian language. Please take a look at the list of supported languages and corresponding codes:

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 

Once that is done, save your file and lets push it back to the cell phone:

<span style="line-height: 14px; white-space: pre;">adb push com.htc.android.htcime_preferences.xml /data/data/com.htc.android.htcime/shared_prefs/com.htc.android.htcime_preferences.xml</span> 

Done. Now reboot your cell phone and you should be good to go. The keyboard will look something like this:

Note the language switcher button. Now we're talkin'! (Screenshot by Samsung-Galaxy.ru)

Game Hack: Making Civilization III play nice with higher screen resolutions

Being an older game, Civilization III locks the display resolution at 1027x768 during the game play, without offering an option in settings to change it. That may often be quite annoying - especially if you have a monitor with a large resolution and like to alt-tab to switch the game with other applications while playing.

We can make the game play nice with higher resolution by adding this option:

keepres=1

to the game's .ini file. Generally, the file would be found in game's directory and if you have extensions installed - it would be located in extension's folder. 
For example - if you have Civ3 with Conquests extension installed - you will find conquests.ini in your Conquests game folder.

PS. The game will keep resolution intact, however if you run Windows Vista or 7 with Aero effects enabled the game will still disable them.