need help add locale to phone.apk 4.2.1 - Java for Android App Development

i am working on amoi N850, MTK6589 phone.
i am trying to add the IW locale to the WALTON PRIMO H2 rom that can be flashed on this device.
so far i did it succesfully on:
Browser.apk Settings.apk MMS.apk Contacs.apk
when i tried adding the locale to Phone.apk i get FC all the time, i even tried to use Google traslate toolkit to auto translate it (in order to check if i missed a line or something) and still i get FC's.
i used APK LANGUAGES EXTRATCTOR for this job, i made progress, but yet, the Phone.apk is stubborn.
also, what app contain the notification bar strings?
and how can i add my locale to the languages list in the settings menu?

Related

Android Language files ?

Hi all,
I'm trying to compile Android with full Hebrew support (inc. menus)
I need the language files so I can translate them, or to get from somewhere the HEB files and push them in to the system.
Can someone help me ?
anyone ???
Send a pm to capychimp. He should have them.
Sent from my HTC Magic using XDA App
hedcayce said:
Send a pm to capychimp. He should have them.
Sent from my HTC Magic using XDA App
Click to expand...
Click to collapse
Waiting ... request from the kind
I'm not sure what did you mean by "language files". Before the expert -- capychimp, answer your question, you might want to try the followings:
1. go grab a copy of Rogers Magic stock 2.1 rom with root.
2. go grab a copy of RCMagic v2.0
3. use kitchen to create a working directory based on stock 2.1 rom
4. deodex all apk files
5. extract RCMagic v2.0
6. compare any apk file in /system/app/ or /system/framework/ (one from kitchen's working directory and another from RCMagic v2.0)
7. let's assume that A.apk from kitchen is renamed as stock-A.apk and A.apk from RCMagic is rename as RC-A.apk
8. use apktool to decode both apk files
9. after decoding, check out stock-A/res/values* and RC-A/res/values*. As far as I know, values/* are for English and, take zh_TW (Traditional Chinese) as an example, values-zh-rTW/* are for Traditional Chinese.
So, I guess you can create a values-XXXX for your language code and put whatever needed into values-XXXX/*
threeeye said:
Hi all,
I'm trying to compile Android with full Hebrew support (inc. menus)
I need the language files so I can translate them, or to get from somewhere the HEB files and push them in to the system.
Can someone help me ?
Click to expand...
Click to collapse
Requirements:
JRE 1.6 (Java Runtime Environment)
aapt command in a PATH
basic knowledge of what is SDK, aapt, PATH, smali and Google search engine may be useful
Must learn more.
Thank man
when compiling we are talking aosp, that something else, i have no clue of aosp roms, i can ml up any sense rom, but aosp, acts different, so if you mean compile from aosp source i am noob
sharpt71 said:
I'm not sure what did you mean by "language files". Before the expert -- capychimp, answer your question, you might want to try the followings:
1. go grab a copy of Rogers Magic stock 2.1 rom with root.
2. go grab a copy of RCMagic v2.0
3. use kitchen to create a working directory based on stock 2.1 rom
4. deodex all apk files
5. extract RCMagic v2.0
6. compare any apk file in /system/app/ or /system/framework/ (one from kitchen's working directory and another from RCMagic v2.0)
7. let's assume that A.apk from kitchen is renamed as stock-A.apk and A.apk from RCMagic is rename as RC-A.apk
8. use apktool to decode both apk files
9. after decoding, check out stock-A/res/values* and RC-A/res/values*. As far as I know, values/* are for English and, take zh_TW (Traditional Chinese) as an example, values-zh-rTW/* are for Traditional Chinese.
So, I guess you can create a values-XXXX for your language code and put whatever needed into values-XXXX/*
Click to expand...
Click to collapse
to make it easier, you have 84 apks you need to decode to make a full sense rom multilanguage
Google has some good resources on this topic. I can't find them right now but I am finding some interesting stuff.
http://developer.android.com/guide/topics/resources/localization.html
http://groups.google.com/group/android-developers/web/localizing-android-apps-draft
well thats the apks thats the same for all roms, but how to activate them on aosp no idea, cause in sense you do it in CID/default.xml
I have an Hebrew apk, I unpacked it using apktool.
I got the Hebrew xml file, so I think I'm set, but to translate 84 apk's to make a full Hebrew Android, WOW that's alot !!!
I've attached a flashable ZIP with apk's in Hebrew (I didn't do it).
Is this the only whey to translate Android, or is there a EZer way to do it ?
p.s. thanks for the reply and help...
i am working on a script so you can just unpack a rom, and by menu select to make it ml
well i see you have some of it, but still alot to go
and you would need the rtl support in framework.jar also
In Froyo with a little help from a guide I get RTL in Internet and SMS.
So I think I have full RTL...
Tell me which files do I need to translate and we will work together on this...
O.K, I have the .xml files that I need to translate.
I know there is a program for translating file.po (value on one side and translation on the other side)
But is there a program like that for file.xml ?
Hello ..
1st of all I've Alcatel 985D with gingerbread 2.3.6 and I've its stock rom backup with Arabic locale language support, but I'm using a custom rom that isn't support Arabic so I wanna find a way to copy system language files from stock rom and paste it into custom rom so I can get Arabic language for system ?! is there a way to do that .. any general ideas ?!
delete

[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!

change default_wallpaper in ICS rom

Hello
I want to change the default_wallpaper in my kitchen (rom with an ICS Nand). But do not get it to work. apk starts as soon as I edit the flash no more. I've worked with apk manager 4.9.
sorry for my bad english
Pixelfreak

[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