[Q] Adding other locales - G1 Q&A, Help & Troubleshooting

Hello,
I've searched the forum, but I can't find an answer to this question:
Is it possible to add other locales than just English?
Dude's G build had a bunch of them. I'd like to have my national locale on JF1.5 as well.

No one? C'mon guys :/

I think the Locales are in the kernel, because i've never seen some files of them in the system directory for example. Could someone say if this is right?

I´d love Danish locales.

it depends. most of the UI you see belongs to different system apps. you'll have to modify the apks and add you own localization xml files. i guess you can get the original xmls from the source code repositories, otherwise you'll have to figure out a way to decompress the xmls in the apk.

Yeah but the hole system is still in English. The menus for example.

But I wonder why Dude's build has many locales and JF's doesn't?

KozzioU said:
But I wonder why Dude's build has many locales and JF's doesn't?
Click to expand...
Click to collapse
What are the langueges that Dude's build supports ?

Nayyak said:
What are the langueges that Dude's build supports ?
Click to expand...
Click to collapse
Dude's build has plenty, I have a MASSIVE list of them. I remember reading 72 somewher in his massive thread...
What I want to know is how to add different input methods. I'd love to be able to type in Japanese using the proper input rather than copy-pasting.

Locale
I'm searching too how to add other locale... and how to map my AZERTY keyboard...

I'm not sure but I think this is what you're looking for: http://developer.android.com/reference/java/util/Locale.html
There's a custom locales app too, compile that and run it and you can add locales to your phone. The system's language won't change though, each part has it's own XML file that stores the text for that language.
Look at the source of any of the built in apps, you'll see a values directories (more than one if you're looking at a cupcake build).
There are also values-fr, values-de, etc directories. The system loads the text from each of these depending on what locale is chosen.
You can also specify regions (values-en-rGB: English (Great Britain)).
In short, just setting a locale won't change the language of the phone, each individual app has to support that locale. If it doesn't, it uses the default values directory which is in English (US).

ganny said:
What I want to know is how to add different input methods. I'd love to be able to type in Japanese using the proper input rather than copy-pasting.
Click to expand...
Click to collapse
Well, I know that it has been a while since you posted this comment, but there is presently a REALLY good Japanese IME on the marketplace. Just search for simeji. It is made by a guy that goes by the name adamrocker you can find his blog and details about the IME on www.adamrocker.com. He just recently put the latest version on the marketplace, for a while it was just a horribly outdated version and he only released updates on his website.
For now I would just recommend that you do not download one of the local dictionaries as it makes the conversion table generation a little clunky.

the system language can be adjusted in many roms (cupcake based). The thing I am still looking for is the foreign (german) text prediction, I would like to add. The best would be to combine german and english, as I write in both languages.
Haven't found a solution for this yet

Since the threads moving forward, close to the right direction, github has some generous people helping filling in missing locals.

Related

Changing the Locale Setting

Guys,
At first I'd like to thank to all developers releasing us great firmware. I have a question; how can I configure or edit the Locale settings?
I have seen many Locale's on The Dude's edition, I wonder how can it be done?
Thank you in advance,
I would like to know... can we add Locale's? I am using the JF1.5 build and I only see english--- no biggie, I can just add hebrew (although it does remove chinese) by adding the dejavu fonts. I would just like to be able to choose a locale... like the regular folks.
I'm also interested in this
I've sent a PM to TheDude, haven't got a reply yet.
yochaigal said:
I would like to know... can we add Locale's? I am using the JF1.5 build and I only see english--- no biggie, I can just add hebrew (although it does remove chinese) by adding the dejavu fonts. I would just like to be able to choose a locale... like the regular folks.
Click to expand...
Click to collapse
we alredy have a hebrew onscreen keboard, by Hezi Cohen.
Come on ‪iandroid.com...
Just to potentially bring this issue back out there, I am also interested in this. I have spent the last 4-5 hours scouring the internet with google trying to figure out how to add locales to builds, but I have not succeeded. I love the JF build, all that I am missing is Japanese Local as some of the apps look horrible when localized to English and there is no way to force an app to load in a specific language.
I recently started a new thread on this:
http://forum.xda-developers.com/showthread.php?t=535780&highlight=locales
What I have discovered is:
There is an app, called Custom Locales, that allows you to add new locales. You can either compile it from source, or run the emulator and adb pull it out.
I would try it, but eclipse no longer works on my ubuntu box, so I'll have to find another way.
CustomLocale.apk
So I was able to extract the custom locale app from the emulator... here it is:
http://yochai.dyndns.org:8888/android/apps/CustomLocale.apk
hope this helps someone, somehow!

Boring issue in more than one of the presented rom's

Hi all,
I have flashed some of the ROM's provided here and am seeing an issue which might not disturb many, but disturbs me.
I am a Dutch guy living in Russia, but not willing to accept either Russian or Dutch as a normal language. For me English is the only acceptable language for a ROM. On the other hand, numbers, currency, date and time are favourite to be "Dutch" again.
If I download a WWE or ENglish ROM (as I downloaded an Energy ROM now) I get the English language, so far so good.
But when I try to install the following format for numbers 1.000.000,00 (same for currency) I am told that the character to divide between full numbers or parts cannot be changed to "," or worse between each three digits I cannot place a ".".
Is there a way to change this in registry, so I can change this anyway, even if the regional setting does not allow this ?
Just to make sure You understand me, if I choose for Dutch regional settings, all looks fine, but Calendar or some programs are immediately "talking" Dutch to me, something I dislike again. Sunday should always be Sunday on computers (even if I do understand Zondag)
Any help would be appreciated.
Ruud
When you change to a non-English regional setting, like Dutch, it automatically changes the names of the months and days (and a few other related things) into the language for that region. That's what you're seeing. You can still keep those in English and get the other settings you want, but the settings have to be entered in manually.
To do this, start with one of the English regions that's closest to what you want. Then, you can change all of the other settings to what you expect. For the command/period problem with long numbers, you have to type in the command and period. They will not be in the drop down. Also, you'll need to adjust the order of month/day/year, etc. to what you expect it to be.
I just tried it on my phone to be sure it would work. For your reference, it should be exactly the same process to do it on your computer running Windows.
Also...
I don't know about anyone else, but I thought it was an interesting question. But that's probably just because I have to deal with localization and internationalization in my regular work.
Hello fenux,
thanks that my boring issue is interesting for somebody
But , this does not seem to solve the issue for me.
I have the Energy Rom at the moment I have chosen the Dutch regional settings, as they are what I need for numbers or at least I can change it to what I need.
As for testing your proposal I change the regional settings to English (United Kingdom) so I would get the Englisch language. I go to "numbers" and try to change the "," to a "." not by using the dropdown menu, but by using the keyboard instead. New character is not accepted. Tried to do the same through the software keyboard, same result.
Actually that was why I asked if I can change such in the registry somewhere.
Any more ideas maybe ?
Regards,
Ruud
I'm not sure why it's not letting you change them. I did find this page (http://www.pcoperative.com/ppc/registry_tweaks.htm#Override Date & Time Format) which includes some of the information on where the override information is stored. But it doesn't include changing the decimal and thousands separator.
Here are the settings for those, taken from my registry after I overrode them:
Code:
[HKEY_LOCAL_MACHINE\nls\overrides]
; Decimal for normal numbers
"SDeci":","
; Digit grouping (thousands) for normal numbers
"SThsn":"."
; And for currency
"SMDcS":","
"SMThS":"."
Hi fenux,
interesting information, I will play around with those. It is visible that some of those strings are not available after chosing a certian regional setting, but I can add them. I will see if I can get to solve my issue with this.
Yes, this looks perfect on first try, thank You VERY much.
regards,
Ruud
Now if You can answer me another question: what is the most stable and fastest ROM around here, I really need it.
I've had good luck with the 21885/Sense 2.1 version of EnergyROM (not as many extras as the other versions, but it's stable and fast). I'm working on my own that fits my needs a little better, but it's nowhere near ready for public use.
Hi fenux,
I am sorry if unclear, but that last sentence was supposed to be more of a joke.
But of course thanks for the answer anyway.
When I downloaded the Energy I made some mistake and took the 28011 instead. When I tried to download the other I was made to understand that there is a time limit, so I did not bother anymore. I like the ROM itself, very nice, but am actually downloading the 21885 at the moment. Reason is that my AlarmMaster 2.0 does not work anymore, as soon as an alarm is supposed to ring, the display is being switched on and the program hangs. The program is too important to me, so I have to change here.
This was my line before editing : I very much like the Action and OK button on the lower part of the screen, so I use the Sense 2,5 version.
But : after a succesfull flash I noticed that actually that ROM does not include the Action and OK buttons below. It also does not have any issue with the regional settings at all. I will continue to install all programs (as I lack time for playing) and hope / presume this ROM to be stable.
Thanks again.

Norwegian Apple Wireless Keyboard settings and how to make your own

I have a Norwegian Samsung Galaxy Tab and Norwegian Apple Wireless Keyboard.
Norwegian letters "æøå" on bluetooth keyboards are not supported out-of-the-box, so I searched forums without much luck. I found some helpful threads and decided to solve the problem and share the solution. Others can make their own modified keyboard settings quite easily using the same methods.
Using "adb logcat" I found that the keyboard layout files used were the "Broadcom_Bluetooth_HID.kcm.bin" and "Broadcom_Bluetooth_HID.kl" (might not be the same on other devices - CHECK!). I had the "adb logcat" going while connecting and disconnecting the keyboard, so that I could see what keyboard files were used by the apple keyboard. I made a backup of these and started modifying them, with success.
DON'T BLAME ME IF YOU DESTROY YOUR DEVICE WITH THIS!
I offer no guarantee this will work for everybody!
HOW TO USE:
"Broadcom_Bluetooth_HID.kcm.bin" --> /system/usr/keychars/
"Broadcom_Bluetooth_HID.kl" --> /system/usr/keylayout/
I did this simply by copying the files with the app "Super Manager".
Make backup first. My backups are included just in case.
HOW TO MAKE YOUR OWN KEYBOARD SETTINGS:
I used a hex editor called UltraEdit on pc to change some symbols in the .kcm.bin-file, and I used the "KeyTest.apk" from github to make out all the scancodes and used them when editing the .kl-layout file in Notepad on the phone.
NB! If you use the hex editor, make sure you always change one symbol at a time and always do backups for each little change. Whenever I did some change that the system didn't like, it would turn to using the "qwerty.kcm.bin" as default, then I could use the backup to make it work again.
This is my first attempt of a sort of contribution to this great forum after
using it for years. Hope that others can use what I have learn't to make
their own settings. I have attached my original and edited settings files,
and a picture of the keyboard with scancodes.
I would be so happy if you could provide us with a swedish layout aswell as I am not so into programming!
mikaveikko said:
I would be so happy if you could provide us with a swedish layout aswell as I am not so into programming!
Click to expand...
Click to collapse
+1. . .. . .
Danish would be nice aswell.
Atleast its the same letters and not all that weird swedish stuff... ;-D
Martin
Sent from my GT-P1000 using XDA App
Nice find, qsarklam!
Could you post some info which hex key is which character, and how to identify individual buttons in the hex editor?
mikaveikko said:
I would be so happy if you could provide us with a swedish layout aswell as I am not so into programming!
Click to expand...
Click to collapse
+1 ...........
I have exactly the same issue, need though the German layout. Can anyone from you help me with this?
I would also appreciate the Swedish layout so count me in that one aswell.
Thanks!!!
Spanish anyone?
Same issue, but in Spanish. The wireless Apple Spanish-ISO keyboard mostly works, even the Ñ, but some letters are not right and accented characters like áéíóú don't work. Also, the caps lock key LED doesn't light.
I tried using HexEditor on my rooted Samsung Galaxy Tab to edit the binaries but I can't figure out what maps to what so I'm stuck.
It's just so frustrating to have that nice keyboard sitting around. Would be a waste to have to buy and carry two keyboards, one for the iPhone and another one for the Tab.
To make matters more complicated, I like running the Galaxy Tab's Android UI in English, and I have a Mac so I can't run the suggested bin editors for Windows.
One would think that with the OS X being Unix-based and Android being Linux-based it should be as easy as copying a keyboard layout file from the Mac (or the iPhone) to the Tab, but it seems there is no such luck.
mikaveikko said:
I would be so happy if you could provide us with a swedish layout aswell as I am not so into programming!
Click to expand...
Click to collapse
This thread is great! Anyone who has made a Swedish layout for the Apple Wireless Keyboard yet?
... I have attached my original and edited settings files,
and a picture of the keyboard with scancodes.
Click to expand...
Click to collapse
I've got one apple wireless keyboard also, and i'm remapping it. Does your Fn button works? How did you manage to find the scancodes from the F1, F2 ... keys?
Are you able pass the lockscreen with the keyboard? without touching the screen i mean.
For those who are not rooted or just don't want to mess with a hexeditor I've got an app that takes care of this and allready supports a lot of different layouts:
http://www.apedroid.com/android-applications/external-keyboard-helper

[Q] Input language in CM7

I remember having a lot more languages to choose from and now there is only one page. Before I could scroll through a lot.
Understand that I'm not talking about the locale which changes the entire phone and menus to a different language. I'm just speaking about the keyboard input language option. I'm sure Google provides all languages in Gingerbread for this as well as dictionaries for all. Where are they and how can I get/download them?
I speak a 2nd language other than English and have friends who communicate text messages using it. I hate having to switch keyboards or use anything other than stock GB keyboard.
obsanity said:
I remember having a lot more languages to choose from and now there is only one page. Before I could scroll through a lot.
Understand that I'm not talking about the locale which changes the entire phone and menus to a different language. I'm just speaking about the keyboard input language option. I'm sure Google provides all languages in Gingerbread for this as well as dictionaries for all. Where are they and how can I get/download them?
I speak a 2nd language other than English and have friends who communicate text messages using it. I hate having to switch keyboards or use anything other than stock GB keyboard.
Click to expand...
Click to collapse
CM7 for the CDMA Hero no longer includes the full language pack. It may or may not be possible to add them back in after the fact, but if you build the ROM image yourself you can enable the full language pack.
Thanks Jason, I was hoping you see this post So is there a reason why they dumped most of them? After all, keyboard input can be used by others in many languages. Was it just to save space?
obsanity said:
Thanks Jason, I was hoping you see this post So is there a reason why they dumped most of them? After all, keyboard input can be used by others in many languages. Was it just to save space?
Click to expand...
Click to collapse
Relevant change from Gerrit Code Review. It was part of an attempt to shrink the ROM image size. Looks like the rationale was that the biggest change would be the TTS language packs not being included, and that these could be downloaded from the market. But that is separate from the ROM languages being removed.
If you would like, I can submit a change to add the full language pack again.
jasonmaloney said:
Relevant change from Gerrit Code Review. It was part of an attempt to shrink the ROM image size. Looks like the rationale was that the biggest change would be the TTS language packs not being included, and that these could be downloaded from the market. But that is separate from the ROM languages being removed.
If you would like, I can submit a change to add the full language pack again.
Click to expand...
Click to collapse
I hate to be responsible for extra size but if you could add an extra language (polish) to the list of defaults many people from my town Chicago would be happy
In case someone finds this thread here is what I found:
Some info on the android keyboard and the issue:
http://blog.cone.be/2010/08/19/android-keyboard-dictionaries/
http://blog.cone.be/2010/08/20/creating-dutch-dictionary-for-android/
http://code.google.com/p/cyanogenmod/issues/detail?id=1827
http://forum.xda-developers.com/showthread.php?t=1027207
Here is the exact keyboard but with some additional language packs which, unlike Google's, can be added later:
https://market.android.com/details?id=com.moo.android.inputmethod.latin.free
I believe there is already a few submits to Google about this very issue and they will have most languages as an option language pack from their menu which you can choose to install. I hope that's coming up in Ice Cream Sandwich

[Obsolete] [MOD] Non-censoring AOSP keyboard (v1.1)

Note: This is no longer really necessary, as Google released an alternative keyboard with an option to disable censorship. This is most useful for CM10.1 users that want to continue using the CM10.1-style keyboard. And fortunately, it's compiled for multiple versions of Android, so more people can use it.
Rationale:
I wish to use a broad vocabulary in my electronic communications. I want to type colorful words with the same user interface as other words (gesture typing). I want prediction. I want automatic spelling correction. By default, Android will recognize dirty words but won't correct their spelling and won't recognize them through gesture typing.
There are two keyboard mods attached: one to try out the keyboard, and one that will survive subsequent ROM flashes via an addon.d script. To restore the old keyboard, flash the restore package. I can also make a corresponding keyboard that supports a few other languages. (German, French, and Russian can definitely be added, but other languages would be harder.)
Build Details/Source
I regenerated the Android keyboard dictionaries from their source XML files, after changing them so the censored frequency was the same as the uncensored frequency. A new keyboard was then built. The base for this was CyanogenMod 10.1, so I'm not sure whether this will work on other ROMs. Please let me know. There are not significant changes from the CyanogenMod source. I built the source tree (which included a tool called "dicttool"), then used dicttool to regenerate main_en.dict file from input files en_whitelist.xml and the modified en_us_wordlist.xml (part of the codebase). Inspiration/information came from:
- http://forum.xda-developers.com/showthread.php?t=2087318
- https://code.google.com/p/softkeyboard/wiki/BinaryDictionaries
Changelog
1.1:
- Used the same predictive weights as the Google keyboard, except where the Google keyboard sets weight=0 (profanity, medical words).
- Added backup/restore capabilities. New users can flash the restore script. (1.0 users will have to install an original LatinIME.apk manually.)
Download
LatinIME-explicit-1.1.zip
LatinIME-explicit-persistent-1.1.zip
LatinIME-restore-1.1.zip
i`m gonna try it pm-ing you ... don`t get it wrong , just trying to see if it works
xanthrax said:
i`m gonna try it pm-ing you ... don`t get it wrong , just trying to see if it works
Click to expand...
Click to collapse
you wont have to send the PM to see if it works lol. if it works, just discard the PM
nah ... only if he/she`s gonna sue me ...:silly:
flashed both zips, doesn't work.
unsungkhan said:
flashed both zips, doesn't work.
Click to expand...
Click to collapse
do you know how to swear against someone ? type fuc... and check if the prediction appears
xanthrax said:
do you know how to swear against someone ? type fuc... and check if the prediction appears
Click to expand...
Click to collapse
lol, I did try, suggestion doesn't show up for curse words
did it work for you?
unsungkhan said:
lol, I did try, suggestion doesn't show up for curse words
did it work for you?
Click to expand...
Click to collapse
sure it does ! well , flashed only the first zip
-=-=-
down below it shows how useful it is when texting your boss
-=-=-
 @fenstre , you can use it on OP :angel:
xanthrax said:
sure it does ! well , flashed only the first zip
-=-=-
down below it shows how useful it is when texting your boss
-=-=-
@fenstre , you can use it on OP :angel:
Click to expand...
Click to collapse
okay, flashed it once again, it works now.
thank you.
I just noticed for some reason "ill" is weighted more highly than "I'll". I'll investigate on Monday. If anybody else notices weird linguistic inconsistencies, please let me know. Cue before cute and cure. I think Google must use a different corpus for this dictionary.
I have flashed twice and still have no luck. I downloaded the first .zip, then flashed it via ROM Manager. The phone rebooted into recovery and I made sure that the package was installed.
What could I be doing wrong?
As I was testing this, I noticed the package sometimes didn't install when I selected it from within ROM Manager. It always installed from recovery, though. Does the md5sum of /system/app/LatinIME.apk start with "19dee2"? It should. Check it with any md5sum checker from Google Play.
Looking forward to next update....
Tap, tap says the wicked G()()GLE N4
Going to try on carbon and going to use it phablet mode on XYE
Sent from my Nexus 4 using xda app-developers app
New version
Version 1.1 fixes many incorrect word weights: I was taking the wrong word frequency from the XML dictionary. Also added a restore script (useful for new users only).
Does it work for Italian too?
Can you supply a change-log with detailed listings of words included or added?
How about a post with requests for words to be added?
Sent from my Nexus 4 using xda app-developers app
Just downloaded. Excited about testing. You would not believe how much the word duck annoys me.
---- update still the occasional duck when swyping but it seems to know what I mean with using tap tap auto correct . love it!
Sent from my Nexus 4 using Tapatalk 2
andynx1 said:
Can you supply a change-log with detailed listings of words included or added?
How about a post with requests for words to be added?
Click to expand...
Click to collapse
I took the words that were already in the phone's dictionary (with prediction frequency=0) and gave them nonzero frequency values. I didn't come up with these values myself, they were stored in a different part of the dictionary (being ignored). The list is exhaustive (see attached). If a word you use isn't on this list, the imperfect workaround is to add it to your personal dictionary in the phone's language settings.
gpvecchi said:
Does it work for Italian too?
Click to expand...
Click to collapse
The Italian dictionary that comes with CyanogenMod or AOSP Android doesn't have any frequency data at all for colorful Italian words, though they are enumerated. If you can find a linguistic corpus (sample of Italian word usage) that contains at least 10 or 20 instances of every swear word, I can use that to generate frequency data. Gesture typing and prediction don't work well without frequency values, because the wrong words would usually be predicted. So get me a large (very large) sample of Italian language, including all types of profanity (not just the words you like), and I'll regenerate the Italian dictionary.
A large sample of Italian dirty words? Once I found a public bathroom with a list written on a wall: it was named "**** dictionary" and it listed a serie of synonymous... It was "open source", so everyone could add it's own. One wall was already filled up...

Categories

Resources