whatsapp add language - Android Q&A, Help & Troubleshooting

Hello xda community, im a student, i want to make a little project:
I state that im not a programming expert, it's just a passion.
I would like to add a button in the whatsapp menu to set a language created by me (a dialect), I decompiled the whatsapp apk and found the app_srings_en.pack file (translation binary file) that can be modified, I guess, with an android development tool. I'm going to create an app_strings_XX.pack file that can be set from the whatsapp menu, my question is if it is feasible and how to do it.
Thanks for help!
ps: sorry for not perfect translation!

You can add a language to the app over the phone, if your phone is rooted, through the "mt manager" application.
You open the app, open a file with an arsc extension, click on edit arsc, click on the name of the package usually the last line, and go down to string, and click on the options, click on Add, and add the language you want, then you enter the line you created, Click Options and click Add, and choose which strings you want to translate, and save, good luck.

unluckly when i tried to do root i've breaked 2 phones so i don't want to try another times.....i know when there is a root you can do this but i want to make stable app to share, can i do it on android sdk? maybe adding some strings...

Nvust said:
unluckly when i tried to do root i've breaked 2 phones so i don't want to try another times.....i know when there is a root you can do this but i want to make stable app to share, can i do it on android sdk? maybe adding some strings...
Click to expand...
Click to collapse
If it is not an application of the system, you do not need to root your phone you can do it even without rooting

zalmen hatotach said:
If it is not an application of the system, you do not need to root your phone you can do it even without rooting
Click to expand...
Click to collapse
when i said android development tool i meant android sdk on windows.
So do you mean that i can edit the app on the phone and i can debug instantly?

No, I meant you can translate and add Languages the application by phone, through "mt manager"

zalmen hatotach said:
No, I meant you can translate and add Languages the application by phone, through "mt manager"
Click to expand...
Click to collapse
ok now im trying, how it works? i can't find the arsc file, where is located?

Nvust said:
ok now im trying, how it works? i can't find the arsc file, where is located?
Click to expand...
Click to collapse
You open the application, it should be there, not in any folder, a file with a yellow mark.

zalmen hatotach said:
You open the application, it should be there, not in any folder, a file with a yellow mark.
Click to expand...
Click to collapse
I think im gonna edit a language file cause i can't add a string, it gives me an error every time with all format text

Nvust said:
I think im gonna edit a language file cause i can't add a string, it gives me an error every time with all format text
Click to expand...
Click to collapse
What language do you want to add?

zalmen hatotach said:
What language do you want to add?
Click to expand...
Click to collapse
Right now im trying to edit italian language to convert in dialect but on "strings" there is an quarter of the text....i opened a file called "app_string_it.pack" with an hex editor and i found a lot more text, you know how to edit the file? from resurces.arcs i found only "strings" ...
Im using an apkeditor from pc "apk editor studio 1.4.0" cause translate all the text from smartphone is a little bit difficult. I thought that edit some files in apk for translate an app was easy but now i realize...
Maybe after understand this i can try to use a menu to change lang. Thank you again!

Related

Start Menu icons

Is it possible to change main Start Menu icons??(camera icon, calendar, settings icons and other)??
. yes
Can You tell me how??Please by any program or what??
Erofich said:
. yes
Click to expand...
Click to collapse
Now I have seen some cruel answers but this is just ridiculous!!!!
ryncppr do You know how to change the icons??
zarek37 said:
Can You tell me how??Please by any program or what??
Click to expand...
Click to collapse
ResHacker or Restorator
By Reshacker i can't change because after change I can't start application because there is no digital certificate. How to change by restorator??
When editing with both ResHacker and Restorator you need to digitally sign this modified exe/dll file.
If you are using one of my ROMs, you just need to sign it by attached utlity. But if you are using any another roms, you need to install Windows Mobile 6 SDK certificates and then sign your file by attached app.
To sign your files just launch this application and select a folder where these files located, and click OK.
Big thanks for You Erofich. It's working perfect.
Big thanks for You Erofich. It's working perfect.
How did you change the folder icon? When I open reshacker, it opens up the folder and show what is in that folder. Am I looking at the wrong place?
P.S. I'm on windows mobile standard and not a PPC, I came to here after I did a search.
take an Office Mobile folder for example, do you see icon.lnk here (its hidden)? that's it, open it with Notepad and change path to icon

How can I change the package name?

Hi everybody, I'm trying to make a soundboard to put on the android market. I downloaded a soundboard template from http://myandroidsoundboard.com/, and it works great except I don't know how to successfully change the package name from "com.soundboard" to something else without making the project go all "error" crazy.
I click the package name in the the package explorer and click refactor and I change the package name, but then everything becomes an error because the package name is now different. How can I change the package name successfully so I don't get errors everywhere?
Thank you.
You don't need to change package name of Java classes. You must change package name stored in AndroidManifest.xml and maybe some other files.
Brut.all said:
You don't need to change package name of Java classes. You must change package name stored in AndroidManifest.xml and maybe some other files.
Click to expand...
Click to collapse
I've gone through the android manifest file and I've changed everything there, but do you know what other files might need some changing? The only errors I see are coming from anything with the "R" next to it.
PrestoMovie said:
I've gone through the android manifest file and I've changed everything there, but do you know what other files might need some changing? The only errors I see are coming from anything with the "R" next to it.
Click to expand...
Click to collapse
I think it may be caused by the fact that after changing package name R.java file is generated in different Java package, but app code references original one. I see several ways, how to fix this: you could alter ant building process, use some refactoring tools to modify all references to R class or manually move generated R.java to proper place (and modify package declaration in it).
If you know, what I'm talking, then good. If you don't then it probably does not have sense to explain it further - it will take several pages of posting until you will get it.
Brut.all said:
I think it may be caused by the fact that after changing package name R.java file is generated in different Java package, but app code references original one. I see several ways, how to fix this: you could alter ant building process, use some refactoring tools to modify all references to R class or manually move generated R.java to proper place (and modify package declaration in it).
If you know, what I'm talking, then good. If you don't then it probably does not have sense to explain it further - it will take several pages of posting until you will get it.
Click to expand...
Click to collapse
which way would you say is this easiest? And would you be able to point me in the direction of a link that explains any of them well?
For what it's worth - archival value & others reading this thread now - a link to such info would be appreciated
PrestoMovie said:
which way would you say is this easiest? And would you be able to point me in the direction of a link that explains any of them well?
Click to expand...
Click to collapse
Ok, actually this can be done very simply ;-)
I think the best solution is to refactor code. Do you use some good IDE? Eclipse, Netbeans? If so you could use their refactoring tools, but it is also doable by simple find/replace. Just replace all occurrences of "import old.package.name.R;" in all *.java files by "import new.package.name.R;".
These are basics of Java/Android developing: if you know them, then you should have no problems
Brut.all said:
Ok, actually this can be done very simply ;-)
I think the best solution is to refactor code. Do you use some good IDE? Eclipse, Netbeans? If so you could use their refactoring tools, but it is also doable by simple find/replace. Just replace all occurrences of "import old.package.name.R;" in all *.java files by "import new.package.name.R;".
These are basics of Java/Android developing: if you know them, then you should have no problems
Click to expand...
Click to collapse
I'm using Eclipse. And thank you! Hopefully I can get it working now!
K, for some reason I'm only getting one error now in the androidmanifest.xml and it says "class com.soundboard.SoundBoard doesn't exist", but com.soundboard is no longer the package name.
bump bump bump.
bump.
I'm having the same problems. I've been able to create working .apk's but need to share it in the market and the market won't let me if the package name is the same thanks.
agentkalaw said:
bump.
I'm having the same problems. I've been able to create working .apk's but need to share it in the market and the market won't let me if the package name is the same thanks.
Click to expand...
Click to collapse
Advanced tasks require some knowledge. You must know, what is Android's package name and then changing it will be really easy thing to do.
Ahh and there is new "--rename-manifest-package" switch in newest aapt tool. I didn't test it, but it's official Android tool, so this should work.
PrestoMovie said:
K, for some reason I'm only getting one error now in the androidmanifest.xml and it says "class com.soundboard.SoundBoard doesn't exist", but com.soundboard is no longer the package name.
Click to expand...
Click to collapse
thanks for the help! I was actually able to change the package name and I'm having the exact same problem as the OP ^. I basically just need to edit the androidmanifest.xml file and i should be all set I tried searching on how to edit it after changing package names but no luck. any ideas? how do i edit androidmanifest.xml files to recognize the package name change? thanks again
Its been a long time since this post, but if it helps someone:
Issue: You have a source, you want to build 2 different apks from the same source, and be able to install both in the same device at the same time.
General Solution: Use a refactoring tool, like in eclipse, and rename all package names.
Better Solution: use aapt flag --rename-manifest-package. This does not require you change even a single line in the original source. Just this flag, and pass in a different package name, and whoa, you have a new apk with the different package name. I used it as follows, in the Android.mk:
LOCAL_AAPT_FLAGS := --rename-manifest-package new.package.name
Click to expand...
Click to collapse
Cheers

Remapped keyboard issues in 2.1

Ok, I rooted and remapped the keyboard, and ti works fine, however, in order to get rid of the ugly language bar in landscape mode, I unchecked "default input settings" in the settings and.... they keyboard started acting as finnish/swedish again! When I checked "default input settings" - it reverted to normal. Is there any other file to edit?
ive got teh same problem
hmm since its still trying to grab qwerty-se-fi....what if we replace that with the qwerty-en.xml.
nope no dice
Any other ideas where the keyboard layout might be hiding?
if you uncheck the default input, the system uses the qwerty.kcm.bin file in /system/usr/keychars folder.
to get that replaced by the english layout you have to copy the qwerty-en.kcm.bin file from the /system/usr/keychars/mimmi/keyprints folder up into the /system/usr/keychars folder and save it as the qwerty.kcm.bin file.
i have read this somewhere on the x10 forum. i can't find the topic at the moment.
as i mentioned in another thread, the paths are from android 1.6. they might be different on 2.1.
__________________________
edit: i actually read it here: http://forum.xda-developers.com/showthread.php?t=777660
also, i don't know how to make modifications inside these bin files but would very much like to find out.
go here >
forum . xda-developers.com/showthread.php?t=822050
Click to expand...
Click to collapse
(remove spaces)
i don't know lunux as well, but i use root explorer. just change the properties(rw) and mount first b4 u edit the file. after u edit and save, reopen the file to verify that the changes were saved b4 u reboot.
zanndoth said:
go here > (remove spaces)
i don't know lunux as well, but i use root explorer. just change the properties(rw) and mount first b4 u edit the file. after u edit and save, reopen the file to verify that the changes were saved b4 u reboot.
Click to expand...
Click to collapse
You didn´t understand. This is easy, and everyobody does it. The problems start when you untick the default entry method in keyboard properties. Read carefully first post.
any updates?
ozzy1212 said:
any updates?
Click to expand...
Click to collapse
I downgraded to 1.6 German and will wait for official release. Having a Swedish layout on a German keyboard using English for typing is too much for my poor brains. Meanwhile since you ar on 2.1 can you check the idea below?
thekindladies said:
if you uncheck the default input, the system uses the qwerty.kcm.bin file in /system/usr/keychars folder.
to get that replaced by the english layout you have to copy the qwerty-en.kcm.bin file from the /system/usr/keychars/mimmi/keyprints folder up into the /system/usr/keychars folder and save it as the qwerty.kcm.bin file.
i have read this somewhere on the x10 forum. i can't find the topic at the moment.
as i mentioned in another thread, the paths are from android 1.6. they might be different on 2.1.
__________________________
edit: i actually read it here: http://forum.xda-developers.com/showthread.php?t=777660
Click to expand...
Click to collapse
thekindladies said:
if you uncheck the default input, the system uses the qwerty.kcm.bin file in /system/usr/keychars folder.
to get that replaced by the english layout you have to copy the qwerty-en.kcm.bin file from the /system/usr/keychars/mimmi/keyprints folder up into the /system/usr/keychars folder and save it as the qwerty.kcm.bin file.
i have read this somewhere on the x10 forum. i can't find the topic at the moment.
as i mentioned in another thread, the paths are from android 1.6. they might be different on 2.1.
__________________________
edit: i actually read it here: http://forum.xda-developers.com/showthread.php?t=777660
Click to expand...
Click to collapse
it works
replace /system/usr/keychars/mimmi_keypad.kcm.bin and chmod to rw-r--r--
ps. the attached file is of en layout
magizhang said:
it works
replace /system/usr/keychars/mimmi_keypad.kcm.bin and chmod to rw-r--r--
ps. the attached file is of en layout
Click to expand...
Click to collapse
i'll confirm in a while...
looking for a pc to unzip in...dont know how to open 7zip on a mac...
ozzy1212 said:
i'll confirm in a while...
looking for a pc to unzip in...dont know how to open 7zip on a mac...
Click to expand...
Click to collapse
http://www.wobzip.org/
I strongly suspect that this file will be the same in 1.6 . So what I will try to do - save this file from a german version of 1.6, flash nordic, and install the file from german version.
PS - tested it works.
great!works!
thanks everyone!
@magizhang...where'd you get the en layout?
ozzy1212 said:
great!works!
thanks everyone!
@magizhang...where'd you get the en layout?
Click to expand...
Click to collapse
He could get it only from UK generic 1.6, as I got my german layout from DE generic 1.6
Did you test it as well on 2.1?
works perfect on 2.1!
i'm back to using Swiftkey again!
ozzy1212 said:
works perfect on 2.1!
i'm back to using Swiftkey again!
Click to expand...
Click to collapse
Don´t forget that we will have to repeat this monkey business after every upgrade!
On the other note - I see here people of all nations, from all corners of the world rapidly and efficiently working together and solving all kinds of problems and I ask myself why it doesn´t happen offline in the real life. Makes me really sad.
vlissine said:
Don´t forget that we will have to repeat this monkey business after every upgrade!
On the other note - I see here people of all nations, from all corners of the world rapidly and efficiently working together and solving all kinds of problems and I ask myself why it doesn´t happen offline in the real life. Makes me really sad.
Click to expand...
Click to collapse
or just use a different build.prop again?
well, be happy, we just made it work and whipped SE's ass again!
now to crack bootloader...

MOD Request - User agent mod on Default Browser

Hi Everyone,
I'm a long time lurker on these forums but have finally decided to make a post,
I have found these forums very helpful over the past couple of years with my android devices.
Anyway back to the thread,
When I had my old Galaxy S2 someone modded the default internet browser to have a permanent user-agent option which allowed you to select desktop user-agent so it stopped loading up mobile versions of websites.
I'm now asking kindly if someone can mod the default browser on the Note 2 to have a user agent option which permanently solves the problem of loading mobile pages
I have tried the about:debug trick but it's not a permanent fix, next time you load up your internet it resets back to android
I will also point out I have tried other browsers such as Dolphin, Firefox etc... but I honestly really like the default browser more than the others, it just needs a user agent option in the settings menu.
Thanks in advance
For the record I'm running a rooted N7100 in UK- BTU
Won't be bad but I have seen that if I select 'Desktop view' and even exit the browser when I go back in I see the same website loading as Desktop mode. So I think it remembers the option.
jujuburi said:
Won't be bad but I have seen that if I select 'Desktop view' and even exit the browser when I go back in I see the same website loading as Desktop mode. So I think it remembers the option.
Click to expand...
Click to collapse
Yes but when you open a new page it then goes back to android,
I know this might seem a small issue and may not bother some users but it's just something that bothers me,
I know someone modded the browser on the galaxy s2 so I'm sure it can be done on the Note 2
Yeah, I'd love to set my user agent as an iPad, so that I'd get tablet sites.
http://forum.xda-developers.com/showthread.php?t=2012770
Sent from my GT-N7105 using xda app-developers app
There is a mod in this xposed framework thread that forces the stock browser to desktop view
add this string
<CscFeature_Web_SetUserAgent></CscFeature_Web_SetUserAgent>
in system/csc folder into "others" or "feature" folder with rootexplorer and reboot your phone!
antoniomistretta said:
add this string
<CscFeature_Web_SetUserAgent></CscFeature_Web_SetUserAgent>
in system/csc folder into "others" or "feature" folder with rootexplorer and reboot your phone!
Click to expand...
Click to collapse
Hi, can you go into more detail where I apply this string?
I didn't find a features folder or others folder under system/csc but I did find others.xml file, do I add the string to this? If so where do I paste that string in the xml file? Also do I reboot into recovery and clear cache etc...
martytarty said:
Hi, can you go into more detail where I apply this string?
I didn't find a features folder or others folder under system/csc but I did find others.xml file, do I add the string to this? If so where do I paste that string in the xml file? Also do I reboot into recovery and clear cache etc...
Click to expand...
Click to collapse
Yes only this:
<CscFeature_Web_SetUserAgent></CscFeature_Web_SetUserAgent>
Open others.xml with test editor. Or put it on your pc desktop, open with notes, add string and save, replace it into the phone.
antoniomistretta said:
Yes only this:
<CscFeature_Web_SetUserAgent></CscFeature_Web_SetUserAgent>
Open others.xml with test editor. Or put it on your pc desktop, open with notes, add string and save, replace it into the phone.
Click to expand...
Click to collapse
Sorry for all the questions and thanks for your help so far
I did add that string in the others.xml file using the text editor in root explorer, i saved and rebooted but it hasn't worked
I must be doing something wrong, do I need to replace any strings or simply add to the strings that already exist in the file, if so then do i simply paste the string onto the bottom of .xml file
Thanks again
martytarty said:
Sorry for all the questions and thanks for your help so far
I did add that string in the others.xml file using the text editor in root explorer, i saved and rebooted but it hasn't worked
I must be doing something wrong, do I need to replace any strings or simply add to the strings that already exist in the file, if so then do i simply paste the string onto the bottom of .xml file
Thanks again
Click to expand...
Click to collapse
Give me your OTHERS.xml
antoniomistretta said:
Give me your OTHERS.xml
Click to expand...
Click to collapse
Here you go, please bare in mind the string you gave me is currently at the bottom inside xml file
martytarty said:
Here you go, please bare in mind the string you gave me is currently at the bottom inside xml file
Click to expand...
Click to collapse
Try this with rw-r-r permission.
antoniomistretta said:
Try this with rw-r-r permission.
Click to expand...
Click to collapse
Cheers, will give it a go
Will let you know if its worked
I assume if its worked I'll see an option to change user agent in the settings menu?
(EDIT)
So I copied your file over mine, set the RW/R/R Permissions, rebooted but it hasn't worked
martytarty said:
Cheers, will give it a go
Will let you know if its worked
I assume if its worked I'll see an option to change user agent in the settings menu?
(EDIT)
So I copied your file over mine, set the RW/R/R Permissions, rebooted but it hasn't worked
Click to expand...
Click to collapse
Sorry!
+1 for this mod
martytarty said:
Cheers, will give it a go
Will let you know if its worked
I assume if its worked I'll see an option to change user agent in the settings menu?
(EDIT)
So I copied your file over mine, set the RW/R/R Permissions, rebooted but it hasn't worked
Click to expand...
Click to collapse
Hi, try this: https://www.dropbox.com/s/mhdol8nt3wg87jx/others.zip
The other file did not seem to be correct. I also added the string to add the button to exit the browser. Put others.xml in system/csc, set permissions to rw-r--r-- and reboot. Let me know if works.
Linuxx84 said:
Hi, try this: https://www.dropbox.com/s/mhdol8nt3wg87jx/others.zip
The other file did not seem to be correct. I also added the string to add the button to exit the browser. Put others.xml in system/csc, set permissions to rw-r--r-- and reboot. Let me know if works.
Click to expand...
Click to collapse
Your a legend! It worked
Thanks so such, I now see an option to exit browser which is handy, and it seems that websites are automatically going to thier true desktop state
I looked at the other.xls file you edited, I assume your desktop string simply makes sure that the "desktop view' option is always ticked.
Thanks again!
God knows why samsung can't add these options themselves
Linuxx84 said:
Hi, try this: https://www.dropbox.com/s/mhdol8nt3wg87jx/others.zip
The other file did not seem to be correct. I also added the string to add the button to exit the browser. Put others.xml in system/csc, set permissions to rw-r--r-- and reboot. Let me know if works.
Click to expand...
Click to collapse
Could someone reupload this file.
hagba said:
Could someone reupload this file.
Click to expand...
Click to collapse
Here you go
martytarty said:
Here you go
Click to expand...
Click to collapse
You've got my thanks. .:good:

[Q] [U] Where can I find dictionaries and how to edit them

Hi,
I'd like to edit a dictionary - add much more words. I know where is the user dictionary (data/data/com.android.providers.userdictionary/databases/user_dict.db) and I've tried to edit it with SQLite Manager (Addon for firefox - couldn't find something better while searching google for 5 seconds) but with no effect - when I tried to export it as a .db and open again, it shows database is corrupted :crying:
Can anyone tell me step by step how to and with which program may I edit dictionary?
Thanks in advance :cyclops:
@refresh
I dont think manually editing that db would be possible so easiest thing, create a blank Dictionary, add the words you want from Rom, then copy over the .db file
from Rom
Click to expand...
Click to collapse
You mean writing it by phone? It may take to much time :x
Sorry mate Im afraid my previous response was wrong ;( As it turns out, the db file is encrpyted with the rom. If you install another rom, I believe it wont work again Not sure, If someone could confirm, could be nice

Categories

Resources