From where are the Languages loaded into Settings.apk?? - Android Q&A, Help & Troubleshooting

Hi Guys,
does somebody knows from where are the languages loading to the settings menu?
I know normally language strings are stored inside the apk, but I would know where can I edit the languages list which is selectable from any user.
I have attached a picture too
Thank you:
Teufel

teufel007 said:
Hi Guys,
does somebody knows from where are the languages loading to the settings menu?
I know normally language strings are stored inside the apk, but I would know where can I edit the languages list which is selectable from any user.
I have attached a picture too
Thank you:
Teufel
Click to expand...
Click to collapse
Inside the apk file, look in res folder, values then strings.XML
res/values/strings.xml
I believe, it should be inside res folder though. :thumbup:

Related

[Q] Help wanted

How to change icon for *.exe and link? Can I use "ResourceHacker" to change icon? Please tell me in detail. Thank you in advance!
vagrantman, if you are asking about some standalone executable, containing icon - than yes - you can change built-in icon by means of resource editor. Not sure how RezHacker works (never used it - I use restorator) but it's possible. Just extract ico, edit it in any image editor and paste back to the place. Or paste any wanted ready image in correspondent format.
If you are talking about changing icon in StartMenu of 6.5-6.5.x - resource icons are normally not used for standard applications. All icons in rom are png files (usually names as Start_Icon_Bla-Bla-Bla.png)....
They are fixed in
[HKEY_LOCAL_MACHINE\Security\Shell\StartInfo\Start]
Find the exact name of the icon you want to change in the registry, make your custom png with the same name and just replace original one
More info 'bout the matter: http://forum.xda-developers.com/showthread.php?t=1115201
Thanks a lot! I will try as you teach me. First of all, I will try to find "resource editor".
thank you once more!!!

[Q] How to find list of available LOCALES (LANGUAGES) from ROM image (file system)

How to find list of SYSTEM LOCALES (language list that we see in settings) from ROM file system image/file tree
(assuming that /system can be mounted as folder)?
Which files/folders have this information?
omyg said:
Some manufacturer and custom rom builds do not include ALL languanges in their ROMs.
How it is possible to find list of available SYSTEM LOCALES and DEFAULT KEYBOARD input languanges from FILE SYSTEM image (assuming that /system and/or other folders can be extracted or mounted in linux as folder)? Which files/folders have this information?
Click to expand...
Click to collapse
))))
DubbyDum said:
))))
Click to expand...
Click to collapse
so how ?
omyg said:
so how ?
Click to expand...
Click to collapse
+1
1- extract the Framework-res.apk
2- decompile the " framework-res.apk "
3- goto decompiled folder and check this folders.
for example:
framework-res.apk/res
/values-en-rAU
/values-de
/values-it
/values-pl
/values-nl
/Values-GB
/Values-Fa
/Values-Ar
, for example when you add " Values-Fa " to framework-res.apk, the Farsi language will add to locale settings.
if you add "values-it" , the Italian language will add to system and so on.
all languages are defined on android, you need just to create right folders.
this is for system language.
-------------------
for every application you need to create the folder same as framework-res.apk folders, and translate "Strings.xml" file.
every application have a different parameters, and you must know for keyboards some information will defines on lib files.
thanks, now i got it.
but what does it mean if this 3 system files have different sets of languages :
framework-res.apk
twframework-res.apk
Settings.apk
first file will be most accurate source ?
omyg said:
thanks, now i got it.
but what does it mean if this 3 system files have different sets of languages :
framework-res.apk
twframework-res.apk
Settings.apk
first file will be most accurate source ?
Click to expand...
Click to collapse
but how to see this apk code
You use an APK decompiler.

[Q] after translating Settings.apk language doesnt appear int the menu

Hi, everyone. I am translating a ROM and so I translated the Settings.apk & framework-res.apk & twframework-res.apk, added the values-xx into each one, but the problem now is that the device doesn't show the language which I added. I wanted Albanian language and its code in ISO 639-2 is "sq" so I created values-sq, but nothing appears in "Locale and text" menu...
anyone could help me...

[APK][Xposed] resOverloader - Overload applications res files

Hello community,
I'm very glad to share my first trial of development which ran successfully for me and hope this will be useful for the rest.
I'm a big fan of a few chinese apps (baidu cloud, weiyun). Previously I was able to decompose and translate these apks to english until vendors injected apk signature validations into their apps. I even used these apps in foreign language but the experience were annoying. So I decided to translate these apps with some development. Eventually I came across resXploit by WisdomSky which give me a clue and I started this and it works :good:.
Basically resOverloader overloads strings.xml file for any apk (application). Source code is hosted on github for other devs to incorporate other resources as well. I'm not experienced dev and sharing this here for others and further development.
How to setup
Extract strings.xml from your target apk using apktool. read more
Translate strings.xml to your language. (I had developed a tool for it and would share it later)
Now create resOverloader folder in sdcard.
Find your app full qualified name in applications under settings and create a folder with app full name. (eg. com.baidu.netdisk)
Now copy the translated strings.xml to app folder inside resOverloader.
Restart your phone and it is done.
Hope this will help starters and requesting experience devs to add arrays.xml to this.
Github: https://github.com/babuilyas/resOverloader
Change log:
2.0 : rebuilt with targetSDK 14 and it should work for 2.2+ now. pls confirm.
Thank you for reading... Cheers.
reserved
Thanks all for praising my work. Here is my translation utility which can help you translate any xml file with auto fixing of literals and escapes within source text.
How it works!
The first step is, hand your xml file (strings.xml). Read OP
Run XML_translator.exe and select the file to translate. (language selectors are not working now and hardcoded to CN->EN)
Click Start translating.
The utility will take time and depends on source file length. At the end you will see strings-new.xml file. Rename it to strings.xml and use it with resOverloader.
I would soon remove the hardcoded part to enable multilingual translations.
Thank you very much.
I made a request for this feature in the request thread sometime back, but no developer was interested. . I will try it now and report back.
Edit: IT WORKS. My translated texts show up.
However, I would like only to see the translated texts when the system language is switched to that language only. So I could see original English texts when the system language is set to English.
nqk said:
Thank you very much.
I made a request for this feature in the request thread sometime back, but no developer was interested. . I will try it now and report back.
Edit: IT WORKS. My translated texts show up.
However, I would like only to see the translated texts when the system language is switched to that language only. So I could see original English texts when the system language is set to English.
Click to expand...
Click to collapse
OP could add localized string switching by checking filename suffix against Locale.getDefault().getLanguage(). So if you wanted to add multiple languages to an app, you'd just need strings-en.xml, strings-it.xml, etc etc
Yay , now yunpan/tencent/baidu drive shall all become translated
I was thinking about it latest two weeks and someone made it! Impressive!
nice work.. i'm waiting the translate strings tool..
This is really impressive.
Thank you very much for you work m8.
I'm on stock N4, and can't get this module to work. I decompiled and translated strings.xml, but there's no change in app. Should be translated strings.xml compiled back, before putting it to sdcard?
Great module, thx for your work. Also very interested in your translation tool. Also been thinking a lot about how to automate APK translation but to no avail.
Some features that i was thinking that can be added BUT not sure if they can be implemented:
- Load list of installed apps via GUI;
- Decompile the apk and extract the strings to a full app name folder (No idea if apk can be decompile from within an app)
- Tell user to edit the strings.xml
- Check if strings.xml was edited and in case it was prompt for reboot.
joluke said:
Some features that i was thinking that can be added BUT not sure if they can be implemented:
- Load list of installed apps via GUI;
- Decompile the apk and extract the strings to a full app name folder (No idea if apk can be decompile from within an app)
- Tell user to edit the strings.xml
- Check if strings.xml was edited and in case it was prompt for reboot.
Click to expand...
Click to collapse
I'm new and still learning android development. Im planning to integrate translating utility inside this app and would allow users to translate any app on the fly on the device.
geekon said:
I'm on stock N4, and can't get this module to work. I decompiled and translated strings.xml, but there's no change in app. Should be translated strings.xml compiled back, before putting it to sdcard?
Click to expand...
Click to collapse
make sure, you have copied translated xml in resOverloader\[your app full name]\strings.xml in internal memory (sdcard).
Bug: translated apps show an escaping slash-chars.
Can you add a possibility:
- to download and update of translation resources from github for all installed apps? In such case you should only define a resource location URL.
- for localization of res/layout/*.xml & res/xml/*.xml & etc
Is there a opportunity to use also preferences.xml?
babuilyas said:
make sure, you have copied translated xml in resOverloader\[your app full name]\strings.xml in internal memory (sdcard).
Click to expand...
Click to collapse
I tried with 4 apps, the results are as follows:
- AppSetting (xposed module): OK
- Nova Launcher: Partially OK, many strings remain in English
- Omniswitch (OmniRom): Not working (all texts are still in English)
- Transdroid: OK
:highfive:
nqk said:
I tried with 4 apps, the results are as follows:
- AppSetting (xposed module): OK
- Nova Launcher: Partially OK, many strings remain in English
- Omniswitch (OmniRom): Not working (all texts are still in English)
- Transdroid: OK
:highfive:
Click to expand...
Click to collapse
Share Xposed log and thanks for testing this app.
I saw the log, but didn't find any FC. See if there is anything in translated xml.
Benko111 said:
Great module, thx for your work. Also very interested in your translation tool. Also been thinking a lot about how to automate APK translation but to no avail.
Click to expand...
Click to collapse
i have some more ideas, so i will fork your module and add my ideas.
babuilyas said:
Share Xposed log.
Click to expand...
Click to collapse
Please have a look
https://m.app.box.com/view/f_16953900439
Sent from my Nexus 4
Very pleased.. Share it with all..
Sent from my LG-GEEB using Tapatalk

[Help] how to edit the text appears on startup of an apk

How to edit the text appears on startup of an android application. Some application are modified and they show an message like apk is modded by ****. I want to edit that text.
Thanks.
rockingjassie said:
How to edit the text appears on startup of an android application. Some application are modified and they show an message like apk is modded by ****. I want to edit that text.
Thanks.
Click to expand...
Click to collapse
Decompile using apk-tool. And edit accordingly.
After decompiling,
If its just simple image, editing PNG inside drawable folders should be sufficient.
If its text, you will have to find string inside res/values folder.
Jaskaranbir Singh said:
Decompile using apk-tool. And edit accordingly.
After decompiling,
If its just simple image, editing PNG inside drawable folders should be sufficient.
If its text, you will have to find string inside res/values folder.
Click to expand...
Click to collapse
Thanks. I will try.
How do you get this to display when loading up the APK please?
Checked res folder and images but no luck yet.

Categories

Resources