(Q) Translation - Galaxy Ace S5830 Q&A, Help & Troubleshooting

1. how to translate an app?
2. How to translate a rom
3. How to translate lewa and miui? (this is the most important, cause i want to translate miui gb rc3 by team copper, to some other langauges)
Thanks for help,
Mentafagyi
Sent from my GT-S5830 using xda premium

Anyone?
Sent from my GT-S5830 using xda premium

To Translate an app u need to decompile it first then :
Go in "res" and there u will find a "values" folder or "values-es-rUS" and in this folders is a file named "strings" ... this is the file that u need to edit to add your desired language ...
This exemple i give contain 2 languages, english and spanish.
If u want u can edit files from "values" if u want another language or just add new folders ex: "values-it-rUS" (for italian) ...
To translate a rom u need to do the same as with app but there u need to edit more than 1 file ... framework, systemui, twframework i guess ... i never try to translate a rom .... but i give u a start !

I Extracted it with winrar, opened "res" folder, but there isn't values or something like that...
What can i do then?
I'll link you the system, what i want to translate, and the APKs inside it (what i want to translate):
http://forum.xda-developers.com/showthread.php?t=1586773
download: http://www.mediafire.com/?pp60pbitfpwpqrb
direct: http://199.91.152.124/x4ztr9pcfzsg/pp60pbitfpwpqrb/miui_gb_rc3.zip
original:http://www.4shared.com/zip/3zhxanZ6/miui_gb_rc3.html

Mentafagyi said:
I Extracted it with winrar, opened "res" folder, but there isn't values or something like that...
What can i do then?
I'll link you the system, what i want to translate, and the APKs inside it (what i want to translate):
http://forum.xda-developers.com/showthread.php?t=1586773
download: http://www.mediafire.com/?pp60pbitfpwpqrb
direct: http://199.91.152.124/x4ztr9pcfzsg/pp60pbitfpwpqrb/miui_gb_rc3.zip
original:http://www.4shared.com/zip/3zhxanZ6/miui_gb_rc3.html
Click to expand...
Click to collapse
You dont extract it. You decompile it. Use search button. Lots of tutorials here.
Sent from my GT-S5830 using xda premium

Sorry, i thought the two things are same
Now i know its different...
Thanks

Related

[TUT][cyanogenMod 7] How to add soft button to your rom

thank to autoradio for astuce
Hello all there is tut for all want to add soft button to Rom
is simple
decompile [7zip] framework-res.apk..go to res\values\ ...
in values creat an txt file name it bools.txt open with text editor and add
Code:
<bool name="cm_default_is_tablet">true</bool>
<bool name="cm_default_has_soft_buttons">true</bool>
save and rename bools.txt to bools.xml now
add PNG on drawable-mdpi and resize it [ PNG soft button pic it from ics or web ]
rezip your framwork-res.apk [ winrar right clic save zip rename it change zip by .apk
that all
and enjoy soft button
if you dont have soft button add him on drawable-mdpi and resize it and add it to drawable-ldpi that all
PS : if you dont find values folder in your framwork-res.apk just creat new folder name it values and creat bools.xml in values folder
is this work for custom rom based on stock?
can you make it works?
tested on cm7 work now test it on stock rom and feed
To what size do we resize the soft buttons pictures?
And am guessing this would work on any device running cm7/cm9 right?
medicjunKie said:
To what size do we resize the soft buttons pictures?
And am guessing this would work on any device running cm7/cm9 right?
Click to expand...
Click to collapse
mdpi are sized to 76x76 for ldpi i have used 45x45 is perfect
medicjunKie said:
this would work on any device running cm7/cm9
Click to expand...
Click to collapse
tested on cm7 test on cm9 normaly work now feed and add it on thread for help avery one
How bout HDPI?
medicjunKie said:
How bout HDPI?
Click to expand...
Click to collapse
tree 112x112
Do I have to rename the PNG before resize? And how to resize?
After I add bools.xml, rezip, flash, my phone stucks on android logo
spawk said:
decompile [7zip] framework-res.apk..go to res\values\ ...
in values creat an txt file name it bools.txt open with text editor and add
Code:
<bool name="cm_default_is_tablet">true</bool>
<bool name="cm_default_has_soft_buttons">true</bool>
save and rename bools.txt to bools.xml now
Click to expand...
Click to collapse
Where is my credits man?
Inviato dal mio GT-S5570 con Tapatalk 2
where can I download the softbuttons png?
Using a zip software [7zip etc..] != decompiling.
if u dont see the values folder it's because u've not decompiled/decoded the apk but just extracted it.
need to use apktool.
Guys, just want to share. check my mods here:
http://forum.xda-developers.com/showthread.php?t=1649999
roofrider said:
Using a zip software [7zip etc..] != decompiling.
if u dont see the values folder it's because u've not decompiled/decoded the apk but just extracted it.
need to use apktool.
Click to expand...
Click to collapse
tested with apk tool and not find it but work after creat it
sorry. You're teaching an expert ppl make some difficulties for newbie as me to catch up. Can you guide for newbie as well.?
Tq
what if our rom (cm9) already has a bools.xml in res/values?
medicjunKie said:
what if our rom (cm9) already has a bools.xml in res/values?
Click to expand...
Click to collapse
bools.xml and value already existe in cm7 but with 7zip is nor find it but if you decompile with apk decompiler you find it
So what, do i delete it and create a new bools.xml?
Or do i just add the lines you mention in the bools.xml that's already there?
Fyi, i decompiles framework-res.apk with APKTool.
Sent from my LG-E739 using Tapatalk 2
medicjunKie said:
So what, do i delete it and create a new bools.xml?
Or do i just add the lines you mention in the bools.xml that's already there?
Fyi, i decompiles framework-res.apk with APKTool.
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
yes if find it just add line creat it only if dont find it after extraction
where can i find res\values
exz8 said:
where can i find res\values
Click to expand...
Click to collapse
That's the directory lol
You find the folder values inside the folder res.
Make sure you decompile the apk.
Sent from my LG-E739 using Tapatalk 2

[SOLVED] Can't decompile SecSettings.apk

Hey buddys, I found a [HOW TO] for Multi-window port.. I'm going to give a try
Now, my problem is that the environment is setted up, I think, correctly but I can't decompile "SecSettings.apk"
Every time I try with "APK Multi Tool" "Apktool" "Apk Manager" I have errors like this:
This is my ADB Variable:
And my PATH is this:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_11\bin;C:\Program Files\Java\jre7\bin;C:\Program Files (x86)\Android\android-sdk;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files (x86)\Android\android-sdk\tools
The PATH is correct because there are JDK and JRE installed, same for SDK..
How can I fix this? Thanks in advance people!!
Re: [Q] [HELP] Can't decompile SecSettings.apk
Did you install the framework and tw-framework?
Sent from my GT-I9070 using xda premium
I installed correctly the frameworks now and edited the files using the SGS II [HOW TO]..
Bootloop.. Im sure bootloops because I used the SGS II files, I dont know if are the same smali and jar's files of Advance..
I'll study better this later, now im going to find another mods for JB..
Thanks Shaaan!
fedevd said:
I installed correctly the frameworks now and edited the files using the SGS II [HOW TO]..
Bootloop.. Im sure bootloops because I used the SGS II files, I dont know if are the same smali and jar's files of Advance..
I'll study better this later, now im going to find another mods for JB..
Thanks Shaaan!
Click to expand...
Click to collapse
You didn't sign file. Copy Meta-INF from original to the new one. Open files with WINRAR for that.
Still bootlops..
Leave this thread like SOLVED and when you can gimme a hand, if you want of course
Does multiwindow works
Sent from my GT-I9070 using Tapatalk 2
Одг: [SOLVED] Can't decompile SecSettings.apk
fedevd said:
Still bootlops..
Leave this thread like SOLVED and when you can gimme a hand, if you want of course
Click to expand...
Click to collapse
Try to put resurces.arsc from compiled to original file. With WINRAR, and set compression to lowest - storage it is I think. And then try it.
Sent from Galaxy S Advance
shut_down said:
Try to put resurces.arsc from compiled to original file. With WINRAR, and set compression to lowest - storage it is I think. And then try it.
Sent from Galaxy S Advance
Click to expand...
Click to collapse
The problem is completely solved. Merry Christmas.:good::fingers-crossed:

How to reduce the font in the lockscreen clock???

Hello everyone, I was wondering how shrink the character clock and date on the lock screen ... Can someone explain what to change?
I have the original version 2.3.6 Gingerbread.
I'll post a picture. I edited with Paint to understand the idea.
Who can help me?
Is there anyone could answer at my question?
I
dnasalentino91 said:
Is there anyone could answer at my question?
Click to expand...
Click to collapse
Simple answer, I think no one knows on our forum. See if someone did it with some more popular phone. Like S2, S3... If it is done there, it should be possible for our phone. It need some modding, change in some xml if it is even possible.
I think you should find xml for lockscreen in framework-res.apk, and see if there is possibility for font size change. And after that there is question is there way to put it in place where you put it in picture.
Sent from Galaxy S Advance I9070
So should I do a search in the sections dedicated to Galaxy SII and Galaxy SIII?
dnasalentino91 said:
So should I do a search in the sections dedicated to Galaxy SII and Galaxy SIII?
Click to expand...
Click to collapse
You should search all over xda, for GB TouchWiz modification of that lockscreen. And if you find it, you can't use that, our framework need to be moded like that.
Sent from Galaxy S Advance I9070
it should be in /system/framework/framework-res.apk; unzip it, go into drawable-hdpi, edit files "zzz_unlock_clock_[number].png" to suit your taste, push it into zip, rename to .apk, push to system, change permissions to 644 and reboot
adamuadamu said:
it should be in /system/framework/framework-res.apk; unzip it, go into drawable-hdpi, edit files "zzz_unlock_clock_[number].png" to suit your taste, push it into zip, rename to .apk, push to system, change permissions to 644 and reboot
Click to expand...
Click to collapse
How do unzip a file .apk?
(On your PC) Just use WinZip or 7zip to open the APK file.... Go to your destination folder.. Drag and drop it on where ever you want... Open it.. Make the changes... And put the folder back in... Therefore replacing the original one..
Note that this can be done only for replacing normal PNG or JPEG files.. For editing anything else you will have to decompile the apk and do it
Sent from your Phone using the XDA Developer's app
adamuadamu said:
it should be in /system/framework/framework-res.apk; unzip it, go into drawable-hdpi, edit files "zzz_unlock_clock_[number].png" to suit your taste, push it into zip, rename to .apk, push to system, change permissions to 644 and reboot
Click to expand...
Click to collapse
Thanks for the answer but now it appears so
Please use a Transparent PNG file and the white background should disappear
I think you just resized the original PNG file using something like MS Paint.... Just use Microsoft Office Picture Manager or anything similar for this...
Or use the software tool Fast Stone Image Resizer (sorry I forgot the exact name) for Windows.... Its pretty simple to use..
Its better if you still have the original backup of the original framework-res.apk... Because you can't use your new PNG files as you might need Photoshop or any advanced photo editing software to remove that white background.....
Sent from your Phone using the XDA Developer's app
Sami Kabir said:
Please use a Transparent PNG file and the white background should disappear
I think you just resized the original PNG file using something like MS Paint.... Just use Microsoft Office Picture Manager or anything similar for this...
Or use the software tool Fast Stone Image Resizer (sorry I forgot the exact name) for Windows.... Its pretty simple to use..
Its better if you still have the original backup of the original framework-res.apk... Because you can't use your new PNG files as you might need Photoshop or any advanced photo editing software to remove that white background.....
Sent from your Phone using the XDA Developer's app
Click to expand...
Click to collapse
I just resized the original file ... She says that instead of resize with "Paint" I have to do with other software specific to that type of change?
Photoshop, Gimp... Save it in transparent png.
Послато са GT-I9070 користећи Тапаток 2
@OP: I'm a dude.... I'm a "he"
As I told you before; to only resize your PNG files use Fast stone Image resizer... (google it!!) And for any advanced image editing use GIMP or Pinta (if you find GIMP hard to use)
Sent from your Phone using the XDA Developer's app
Sami Kabir said:
@OP: I'm a dude.... I'm a "he"
Click to expand...
Click to collapse
Oh my god! Sorryyyyyy!!!! I'm using Google Traslator and this sometimes confuses the words

Framework-res.apk for touchwiz revolutionised cm9 with navigation bar size 24dip

Got big navigation bar[height] in Touchwiz Revolutionised 5 Rom...
here i bring suitable Navibar Framework app...
Instructions:
Download apk..
load it to sdcard..
copy apk to System folder[use any file manager which can do this]..
now change the permissions to rw-r--r--[as that of other apks]..
move apk to framework folder..
reboot..
now enable navigation bar by adding " qemu.hw.mainkeys=0 "[without quotations] in build.prop file..
Reboot again..
done:good:
for version4.4,check post number #3..
Credits:
arpitkh96[For awesome rom]
Venkatesh[for guiding me]
Myself
Press "Thanks" if you like my work...
the above framework is for v4..
here is the framework apk with 20dip navigation bar for v4.4 rom..
follow same instructions mentioned in #1 post..
press thanks if you like my work...
Will it work on any ICS?
Will this mod work on any ICS ROM Like This ROM? Also where exactly in the system folder we have to put this file in I guess its should go inside /system/framework. Correct me if I'm wrong
intelprakash said:
Will this mod work on any ICS ROM Like This ROM? Also where exactly in the system folder we have to put this file in I guess its should go inside /system/framework. Correct me if I'm wrong
Click to expand...
Click to collapse
I think it wont work for the rom which you specified..[i am not sure]..
yea directly if you paste it in framework folder...previous framework of rom will be replaced which makes phone not to boot[reason:as permissions are not set correctly]..
so first paste it in System folder,change permissions and then move apk to framework folder.. reboot enjoy..
Press Thanks if i helped you..
intelprakash said:
Will this mod work on any ICS ROM Like This ROM? Also where exactly in the system folder we have to put this file in I guess its should go inside /system/framework. Correct me if I'm wrong
Click to expand...
Click to collapse
naresh babu said:
I think it wont work for the rom which you specified..[i am not sure]..
yea directly if you paste it in framework folder...previous framework of rom will be replaced which makes phone not to boot[reason:as permissions are not set correctly]..
so first paste it in System folder,change permissions and then move apk to framework folder.. reboot enjoy..
Press Thanks if i helped you..
Click to expand...
Click to collapse
It'll work..but it'll contain tw files in it...it is a bad idea to paste directly....create a flashable package, nd flash it via recovery. naresh why don't you create flashable zip for it? Btw i am using 18dip...it is good too.
Venkatesh said:
It'll work..but it'll contain tw files in it...it is a bad idea to paste directly....create a flashable package, nd flash it via recovery. naresh why don't you create flashable zip for it? Btw i am using 18dip...it is good too.
Click to expand...
Click to collapse
Yea 18dip looks better for mini.. okay i will try to release flashable zip..thanks for the suggestions..:good:
Looks like you are compressing it more.it may effect the performance and battery
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
Looks like you are compressing it more.it may effect the performance and battery
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I dont know after decompiling and compiling it again ,apk got compressed..
Performance is not bad it is running better in my phone..
and its Awesome rom from you..

[RESOURCES]Samsung Galaxy S5 Framework

Hello
Hello guys iam going to share framework-res.apk
Resources for rom devs
To easly cherry pic them
Ihave resized them to mdpi-ldpi
And also included Non resized In Each drawble folder
Also there is some xmls included in drawbles to get some clues
Good usage of that will give u retty rom
Download
How to flash itt.....???
Sent from my GT-S5830i
Just change the format from zip to apk
And then place it in system/framework
Press thank if I helped you.
Conan Edogawa said:
Just change the format from zip to apk
And then place it in system/framework
Press thank if I helped you.
Click to expand...
Click to collapse
Oh no its just res u can never do tht

Categories

Resources