how can i add support for regional language for android - Android Software Development

Hi guys,
I need to add support a regional language(malayalam/india) in a device that will release soon.Now it is not supported in Current version of Android (Ginger bread) .All want is change the whole system language to my regional language by going to
Settings-->language and key board settings-->Select locale-->my language
How can i do that I don't know where to start
thanks for your valuable time
Regards,
Sudhish

Hi u got malayalam font?
Sent from my GT-I9000 using XDA App

Hi:
This is extracted from a conversation on cyanogenmod forum:
Locales are controlled by arrays.xml and strings.xml in framework and individual higher level packages (example: cmparts.apk)
Using CMparts.apk as an example once more: https://github.com/CyanogenMod/android_packages_apps_CMParts/tree/froyo/res
In that folder, you will note 'values-xy', where xy = the locale specified. 'xy' follows ISO standards, http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
If your language exists (I will use es/Spanish for this) then, https://github.com/CyanogenMod/android_packages_apps_CMParts/blob/froyo/res/values-es/strings.xml is the file you would specifically alter.
If your language does NOT already exist, copy the US language folder 'values-en', rename it according to ISO standards to 'values-xy' where xy = your country/language, then proceed to translate the strings.xml and necessary components of arrays.xml
You would continue this process (theoretically) for every strings.xml in the CM source.
Once done, submissions should go to gerrit http://wiki.cyanogenmod.com/index.php?title=Howto:_Gerrit
Click to expand...
Click to collapse
You have to look if your regional language is defined in teh ISO standard. If it dows not exists, then you will not be able to add that language, as it is considered a regional dialect.
good luck!

Related

[APP] S2TT²

This thread is made from S2 Mini Config Applications thread because of dropping all other applications.
The main project is S2TT² app, which is designed to aid in translation of S2 applications by A_C (mainly S2U2).
S2TT² requires MS .NET Framework 2.0 to work.
Current version of S2TT² is 2.0.1.4. You can get it from here: View attachment 211681
If you want to translate S2TT² into other languages, here is English language prototype: View attachment English.zip
This is a language class written in C#. You can use Notepad for translating it.
Current version includes three languages:
* English (Default) [by me]
* Russian [by me]
* Italian [by millo1978]
Changes since 2.0.1.2:
* new lang: Italian
* new string: s_HumourPhrase (just for fun)
* some minor fixes
Screenshot:
Application in work.
the attachments are not working dude
I was reuploading them at that time. Sorry.
Thanks
Can also please add some screeshot of this app ?
Already done.
thanks
Very goooooood!
Thanks for your wonderful work
Only one thing...
first time I choose Italian Language and I see in File Menu "none" ...not "nessuno".
after, I Choose Template and then Clear Template and I see now the correct "nessuno" ...
strange!
millo1978 said:
Very goooooood!
Thanks for your wonderful work
Only one thing...
first time I choose Italian Language and I see in File Menu "none" ...not "nessuno".
after, I Choose Template and then Clear Template and I see now the correct "nessuno" ...
strange!
Click to expand...
Click to collapse
This is because language changing function doesn't change << none >>.
It will be corrected later.

[Q] Add another locale

Is it possible to add another locale to the Atrix?
I would like to have a German Android experience on my phone.
Thanks
Nobody?
Would be really nice or at least to force installed apps to use the German language if possible.
What about editing the build.prop system file?
Afaik, the system locale is part of the ROM. You cannot simply edit build.prop, if the menus and labels loaded in the ROM do not include your locale. This is different for apps - those package their locales, and would convert easily.
I think you will need to wait until somebody comes out with a ROM that includes your locale of choice. And/or wait until Atrix comes out in Germany, and a recovery ROM/tool for Germany is available. (Possibly from Moto website, but I would not count on it.)
Hi all just for anyone that is interested and didn't know you can change your locale using MoreLocale2 app from market. It allows you to make your own local that is specific for you.

WanHu's rom Froyo Translations Making

Hi all.
So, i'm currently translating WanHu's rom to russian.
Here some problems that i get:
Settings.apk - signature failed, added translations with 7za -mx0
Contacts.apk, Phone.apk, TelephonyProvider - right now don't translated - translations get phone module to stop working.
For language settings:
in build.prop:
Code:
ro.product.locale.language=ru
ro.product.locale.region=RU
To change locale from terminal/add shell:
Code:
setprop persist.sys.language ru;
setprop persist.sys.country RU
Translating kitchen
Hi all. I write that kit for translate apk and framework-res.apk to russian language.
You can use it for your own lang.
What you need to do:
Kit consist from folders:
apk - it's point where all apk's on foreigh language are kept.
apk-trans - it's point where kept language files with suck path: ApkName/res/values-ru(where ru - your lang)
frame-trans - it's point where kept translation to framework-res.apk.
framework - it's point where kept original framework-res.apk
newpatch - skel for new patch.
signed - points where "signed" apk are holds
tools - tools..
unsigned - points where "unsigned" apk not holds
kitchen.sh - main file.
How to use it:
Move your apps to apk folder.
Move your apps translations to apk-trans
Move your framework-res.apk to framework
move framework-res tranlation to frame-trans
Now good luck and type:
sh kitchen.sh
If there will be errors - then something goes wrong with:
a) tools
B) your translations
But errors doesn't mean something goes wrong(sometimes it is.. but...)
Good luck for everyone with that kit.
Hope it helps someone.
P.S. RusMod and RusMod 2.0(WanHu rom) are translated with that kitchen for 100% on russian.
fjfalcon said:
Translating kitchen
Hi all. I write that kit for translate apk and framework-res.apk to russian language.
You can use it for your own lang.
What you need to do:
Kit consist from folders:
apk - it's point where all apk's on foreigh language are kept.
apk-trans - it's point where kept language files with suck path: ApkName/res/values-ru(where ru - your lang)
frame-trans - it's point where kept translation to framework-res.apk.
framework - it's point where kept original framework-res.apk
newpatch - skel for new patch.
signed - points where "signed" apk are holds
tools - tools..
unsigned - points where "unsigned" apk not holds
kitchen.sh - main file.
How to use it:
Move your apps to apk folder.
Move your apps translations to apk-trans
Move your framework-res.apk to framework
move framework-res tranlation to frame-trans
Now good luck and type:
sh kitchen.sh
If there will be errors - then something goes wrong with:
a) tools
B) your translations
But errors doesn't mean something goes wrong(sometimes it is.. but...)
Good luck for everyone with that kit.
Hope it helps someone.
P.S. RusMod and RusMod 2.0(WanHu rom) are translated with that kitchen for 100% on russian.
Click to expand...
Click to collapse
Very nice Fj, thanx for the kit
If you want, you can paste me into a text file texts to translate (in english) and I can send you it back into french.
fjfalcon said:
Translating kitchen
Hi all. I write that kit for translate apk and framework-res.apk to russian language.
You can use it for your own lang.
What you need to do:
Kit consist from folders:
apk - it's point where all apk's on foreigh language are kept.
apk-trans - it's point where kept language files with suck path: ApkName/res/values-ru(where ru - your lang)
frame-trans - it's point where kept translation to framework-res.apk.
framework - it's point where kept original framework-res.apk
newpatch - skel for new patch.
signed - points where "signed" apk are holds
tools - tools..
unsigned - points where "unsigned" apk not holds
kitchen.sh - main file.
How to use it:
Move your apps to apk folder.
Move your apps translations to apk-trans
Move your framework-res.apk to framework
move framework-res tranlation to frame-trans
Now good luck and type:
sh kitchen.sh
If there will be errors - then something goes wrong with:
a) tools
B) your translations
But errors doesn't mean something goes wrong(sometimes it is.. but...)
Good luck for everyone with that kit.
Hope it helps someone.
P.S. RusMod and RusMod 2.0(WanHu rom) are translated with that kitchen for 100% on russian.
Click to expand...
Click to collapse
What should the translation files look like xml right?
For example apk-trans folders for russian lang:
http://www.xt720.ru/Files/Translations/
fjfalcon said:
For example apk-trans folders for russian lang:
http://www.xt720.ru/Files/Translations/
Click to expand...
Click to collapse
Okkkkkk got you thanks,
fjfalcon said:
For example apk-trans folders for russian lang:
http://www.xt720.ru/Files/Translations/
Click to expand...
Click to collapse
can you tell me that if i can translate into Myanmar (Burmese) language ? or font i just wanna let the phone appears the sms and setting menu in Burmese (Myanmar font)
Burmese font are like this www.mizzimaburmese.com (you'll have to install Zawgyi font to see the correct Burmese language)
Yes, you can translate it.
Ofcouse you will need to set Zawgyi fonts.
But that won't be a problem for translaiting.
But, this kitchen don't catch errors, it created to build patch.zip with all apks, that could be compiled.
So first - try to compile every app for yourself - if there will be no errors - that
you may create patch, after that - make nandroid - and here you rom with Myanmar language
About 1/2 way through Fr and Es....
http://www.megaupload.com/?d=GB61CDAV
Since your the going to do it your self type Thanks btw,
Will the patch add the lang or replace, i would like to eventually put out a complete ROM nandroid With Kor Ru En Fr Es Cn language toguether is that possible in one patch?
I think i know what to do...
But any way you da man!
Will see, i may try to add all languages..
But it won't be selectable in settings.apk.
You will need or use commands from first post or use app like morelocale to change lanuage.
fjfalcon said:
Will see, i may try to add all languages..
But it won't be selectable in settings.apk.
You will need or use commands from first post or use app like morelocale to change lanuage.
you tried adding to build prop i'm sure i don't see what would be missing... yet
Click to expand...
Click to collapse
updated fjKit with beta of apktool, cause get some errors with some apks.
http://xt720.ru/DexTrans - Translation files from Dexter 1.3.
Will use them for translating Wanhu.
>> you tried adding to build prop i'm sure i don't see what would be missing... yet
build.prop works only for one language.
So we should redist nandroids for every lang.
Or give people patch..
Or use morelocale2 - better...
To add lang as system locale(to get it in settings.apk) we should recompile framework from source...
http://xt720.ru/Files/other/trans_patch.zip
Waiting for report about how it works.
First version.
No build.prop or either - so to choose your language use program morelocale2 from market.
fjfalcon said:
updated fjKit with beta of apktool, cause get some errors with some apks.
http://xt720.ru/DexTrans - Translation files from Dexter 1.3.
Will use them for translating Wanhu.
>> you tried adding to build prop i'm sure i don't see what would be missing... yet
build.prop works only for one language.
So we should redist nandroids for every lang.
Or give people patch..
Or use morelocale2 - better...
To add lang as system locale(to get it in settings.apk) we should recompile framework from source...
Click to expand...
Click to collapse
Working on translations French, German and Dutch all choosable from the language menu. If you provide russian language files i can compile them 2 in the framework-res for you 2. Tested and working framework and settings.apk only had 2 remove Khals blue theme icons or else you get compilation errors have replaced them with the originals.
http://www.xt720.ru/Files/Translations/
That about russian.
gommers1978 said:
Working on translations French, German and Dutch all choosable from the language menu. If you provide russian language files i can compile them 2 in the framework-res for you 2. Tested and working framework and settings.apk only had 2 remove Khals blue theme icons or else you get compilation errors have replaced them with the originals.
Click to expand...
Click to collapse
For WanHu rom there only Korean, English and Chinise... i think
hellmonger said:
fjfalcon said:
Will see, i may try to add all languages..
But it won't be selectable in settings.apk.
You will need or use commands from first post or use app like morelocale to change lanuage.
you tried adding to build prop i'm sure i don't see what would be missing... yet
Click to expand...
Click to collapse
I will edit framework-res.apk then you can choose language from settings menu.
Allready tested and working. Will post framework-res.apk for you soon with languages added so you can test.
Click to expand...
Click to collapse
Ok, what have you changed in framework-res that languages becomes visible?
Cause i already study much time about it.
values-ru doesn't adds language to settings.apk.(also in framework-res)
fjfalcon said:
Ok, what have you changed in framework-res that languages becomes visible?
Cause i already study much time about it.
values-ru doesn't adds language to settings.apk.(also in framework-res)
Click to expand...
Click to collapse
You allso need values-ru-rRU to make it visible in settings
gommers1978 said:
You allso need values-ru-rRU to make it visible in settings
Click to expand...
Click to collapse
Then in mine patch.zip you can choose this languages!
Thanks!

[Q] Is there any guide for changing the language of the ROM??

Hope flash english to chinese.Anyone can offer a guide about how to do this?
Thanks in advance!
clarkkov said:
It's quite easy, but it depends on the ROM you are using. Some ROMs support specific languages (locales). To change the locale go to phone's "Settings" app. Tap on "Locale and text" entry and then tap on "Select locale" entry. Select your desired locale and reboot the device.
Sadly I have not seen Chinese locale in SG3 ROMs (probably because I was never looking for it). There is Korean locale in most of SG3 ROMs. Try flashing a couple of stock ROMs to see if they have Chinese locale or wait if someone replies which ROM is he using to get Chinese locale...
Click to expand...
Click to collapse
Thank you all the same……
Maybe my description is not clear enough ,I mean how to make the ROM support chinese by modifing some files of the ROM.
My english is not good enough,hope you can understand……
clarkkov said:
Oh, that's another matter...This would include translation of the corresponding files in the framework, and the OS itself. All .apk(s) need to be translated, which considers decompiling and the recompiling the whole .apk, hunting down the GUI .xml(s), adding the translation and so on...Isn't there Chinese Android translation/localization?
...and I forgot one very important thing, the Chinese fonts and grammar! This can cause many compatibility issues. As I understand, Chinese characters cannot be translated respectively from Alphabetical characters. This would involve coding/writing a new/separate module for decoding and encoding Chinese characters. If Chinese is similar to Korean, this is the place to start. Word prediction and autocerrect software would have to be written also - for the keyboard, new keyboard layout etc...A lot of work (assuming there is no Chinese localization for Android).
Click to expand...
Click to collapse
Thx a lot.
There are people who do the translation work on the Internet.But they are not able to turn every ROM to chinese version,especially when i find a ROM which i like from xda. I think i should try to find out how they do the work and learn it……

[GUIDE] How to "add" 5 more languages to XX based stock roms

So,
It seems like Samsung has introduced a new way for supporting languages on the Galaxy S3.
If you go inside the language settings you will see a nice bunch of languages.
But! Those are not all the available languages on the phone!
There are 5(!) more languages you can "unlock" in 2 ways.
The languages are:
Arabic (ar)
Farsi (fa)
Hebrew (iw)
Japanese (ja)
Thai (th)
Vietnamese (vi)
Chinese (zh)
The easy way to enable them is to download the application "morelocale2" and add to choose or add the language code you want.
With this method you will not see these languages in your language settings.
To enable these languages in the language setting of your phone, you will need to root it.
you can use Chainfires method here: http://forum.xda-developers.com/showthread.php?t=1660918
The next step is to use root explorer or any other familiar application and go into /system/csc.
There is a file there named languages.xml.
If you open the file you will see a list of languages to display.
Just add your desired language code from the list above (in 2 places in the file) + country code, reboot, and then you will see that language in your language setting!
good luck!
Another way, you can flash XXLEF to enable some hidden languages. Change modem will change your languages support
It's not the modem, it's the CSC file
firefds said:
It's not the modem, it's the CSC file
Click to expand...
Click to collapse
Ah ok! I forgot that I flashed ZS firmware
Well..i used the "morelocale2" method and i found them added in the "language settings" rebooted and they are still there, my rom is XXALE9
Back in the days of i9000 and Froyo, my country was only having Froyo 2.2 while many other countries were already having 2.2.1. What I did was decompiling all the 2.2 system apps, and implanting the languages into the 2.2.1, and thereby creating a genuine feeling of having a 2.2.1 rom with my area locale. Though not 100% fit, but at least it was better than using the Morelocale app.
Refer to this link for the details of how to do it.
Though we are talking about different phones and different Android system since then, but I believe the methodology is the same.
But there is no need to do that here, as the xml files are already inside the rom, just not enabled.
I gave the instruction on how to enable them
Sent from my GT-I9100 using xda premium
Unable to save Language.XML in Galaxy S3
I roted my SGS3 and tried to add Hebrew (iw_IL) to the Language.xml file but i cannot save the file. i am using ES Explore and i marked in settings the Root Explore Option.
love. agtonsc
thanks to your post i was able to add hebrew to my stock firmware on sgs2
http://forum.xda-developers.com/showthread.php?t=1744808 :good:
R/O file editor
firefds said:
But there is no need to do that here, as the xml files are already inside the rom, just not enabled.
I gave the instruction on how to enable them
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Yes, but how did you edit the Read Only language.xml file? That is the problem. I can edit it, but I can't save it.
ES Eplorer settings
LGS3 said:
I roted my SGS3 and tried to add Hebrew (iw_IL) to the Language.xml file but i cannot save the file. i am using ES Explore and i marked in settings the Root Explore Option.
Click to expand...
Click to collapse
You have to go to settings in ES Explorer and scroll down to root settings and also check "Mount File System". I was able to save the file after adding the codes for Chinese, but after I rebooted the phone, there still was no option for Chinese.
and what about the keyboard?
hi, i'm new here.
i added my language and it's working great.
but i still don't have it on the keyboard. what can i do?
hysknz said:
hi, i'm new here.
i added my language and it's working great.
but i still don't have it on the keyboard. what can i do?
Click to expand...
Click to collapse
you can use this app Wanam just made:
http://forum.xda-developers.com/showthread.php?t=1925831
thanks but i don't want to use an app for this.
i've already edited the language file so i do have my language as a display language.
i still don't have it as an input language in Samsung's default keyboard. there is a way to enable it?
I tried to added the languages to the CSC file and also tried the applications .. but nothing worked for me..
I have Sprint Samsung S3 FreeGS3 Rom (Stock rooted)
Of course my version of the GS3 phone is SPH-L170 but I don't see why that would be a problem?
Is there anyway to enable Arabic in the languages tap and the keyboard?
I use hackers keyboard and that works fine with Arabic but I want the stock one to have it as well.
Thank.
Still waiting for someone to help..
Use the morelocale2 app but it only changed the language in a couple of apps that's about it.

Categories

Resources