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!
Related
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.
if i want to add a"third party" keyboard to Cyanogen's build
how to accomplish that?
and if i want to make it the default keyboard
how to do that..?
thanks in advance
Roy
if this "third party" keyboard is an app like better keyboard or something similar, i would assume just install it or put into your update.zip package and flash it. it should appear under settings-locale and text and just check it on and uncheck any other keyboards like with the htc_ime. unless you are talking about something else then in theory this should work.
thanks for the comment
yes it is an App file.. so i just need to add it to system/app in the update?
and how i can make it the default keyboard so right after a fresh install it would appear and ready to use with specific config that i set?
thanks again
Barina said:
thanks for the comment
yes it is an App file.. so i just need to add it to system/app in the update?
and how i can make it the default keyboard so right after a fresh install it would appear and ready to use with specific config that i set?
thanks again
Click to expand...
Click to collapse
I don't think you can. All roms use android kbt as default (don't quote me on this but I believe so)and it's more trouble then it's worth to make something else default before install. It would be easier to go into settings->locale and text the first time you use it and just make it default (i.e. uncheck all other VKs). Once you do that, your vk will pop up everytime you touch fill-able field. Hope that helps.
OK, I'm curious about the other keyboard. The hardware keyboard. I have a German G1, and have actually become quite fond of QWERTZ even though I mostly only speak English. I've gotten used to reaching down for y and up for z. Also, There are keys like the euro symbol that I actually use a lot living in Deutschland. Not to mention that all the little symbols are laid out completely differently than QWERTY, so looking at the keys just makes life that much tougher. Anyways, I want to change QWERTZ to be my default keyboard, other than having to type in a long string of commands each time or use gscript. I would like it to be so that it works in recovery, and doesn't get lost each time I change builds. Is this possible?
hmmm, I would say yes...I wouldn't be able to tell you how though. I downloaded Russian keyboard from the market and it has the ability to change mapping of hardware KBT and change languages on it. So obviously there is a way. I believe devs name is Game Warrior (could be one word). It's on the market... contact him-he may be able to point you in the right direction.
Also... did you try switching locales in Settings->Locale and Text menu? That could do the trick (not sure what would you choose though as I'm not familiar what country uses QWERTz set-up).
Good luck, I hope you figure it out... sorry I had it easy.. I just dl'd my vk from the market
I DID have it working when I first got my phone. Everything was just dandy with JF1.51 as well. I decided to install the latest DizzyJACHero, and had to update my recovery image, SPL and Radio. Somewhere in there, it borked things up. I tried going back to another SPL and recovery, but only ended up in bootloops when I did that. I redid everything, but I'm stuck with QWERTY unless I do some terminal stuff each time I change roms. And with all the nice new ones (I LOVE Rosie, but she's a resource/battery hog) it's becoming more frequent that I change roms. Eh, I guess I'm just stuck having to terminal my way out of it, like usual with computers.
SPL, Radio and/or Recovery image have nothing to do with the way your keyboard behaves... hmmmm
Here... talk to DudeOfLife in the developement forum (pm him or something). His rom at some point had every language and every layout included.. he should know about this. As an alternative... you can make a script of what you put in terminal and have G1 run it on start-up to change mapping for you. Rogro82 is the king of scripts fyi.
Good luck
all u need to do is istall the new keyboard as an update. thats if it come in an update.zip format. otherwise, just install the .apk file and you should be good to go. best of luck!
shelay said:
all u need to do is istall the new keyboard as an update. thats if it come in an update.zip format. otherwise, just install the .apk file and you should be good to go. best of luck!
Click to expand...
Click to collapse
He is not talking about virtual keyboard... he is talking about hardware.
borodin1 said:
I don't think you can. All roms use android kbt as default (don't quote me on this but I believe so)and it's more trouble then it's worth to make something else default before install. It would be easier to go into settings->locale and text the first time you use it and just make it default (i.e. uncheck all other VKs). Once you do that, your vk will pop up everytime you touch fill-able field. Hope that helps.
Click to expand...
Click to collapse
thanks a lot
Well, I actually feel kinda smart for once. I just opened up a build which had the QWERTZ files in it. I deleted everything else except that folder (and the ones inline above it) and those files. Renamed them to the v3 files. I also added in all the ringers/notifications/alarms that I wanted from other builds in the right locations as well. I now can unzip any build I want to check out, copy the system folder I created over, and it fixes all my keyboard issues, plus ensures I'm never left with just one ringtone/alarm again. Just rezip and resign, then I can flash it right over. Just verified it all worked before posting. If anyone else wants that, I recommend trying it. My next question will be, can I JUST use these files, make a new update.zip that I will flash over any existing rom. If so, I'll just make one and post it up. Well, I guess I may as well try that now. I'm not doing much else tonight.
So, quick answer, NO. It didn't work like I hoped.
Long answer, If I understood more about the update script, I may have been able to get it to work. I noticed it was formatting the System folder when it went to install, pretty much screwing EVERYthing up. Maybe if someone knows how to make the script only replace the files instead of completely wiping the system folder, I may have something others can use. As it stands, it's really useful for me, and pretty much noone else.
ghrayfahx said:
So, quick answer, NO. It didn't work like I hoped.
Long answer, If I understood more about the update script, I may have been able to get it to work. I noticed it was formatting the System folder when it went to install, pretty much screwing EVERYthing up. Maybe if someone knows how to make the script only replace the files instead of completely wiping the system folder, I may have something others can use. As it stands, it's really useful for me, and pretty much noone else.
Click to expand...
Click to collapse
1. Can't you put your commands (that you type in the terminal) into your userinit.sh and it will run on every start up? Not a pro about this but I think it's one way of doing it.
2. There's a guy in the development forum who will build a custom rom for you. He made a post, you should see it on first or second page. Drop him a line. He may just show the way how to do it or he may just build you a rom. Don't worry, we'll figure it out one way or another
Cool, sounds good. I was looking at the script, and it's pretty straight forward. I COULD possibly figure it out if I wanted, but I wouldn't want to put other people's phones at the risk of me being an idiot. Heh. I'll check with the other guy. Thanks
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.
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
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...