Code:
<set name="plenty">
[B] [U]<!--4b7f5274-5658-4f5a-bcba-10167ab5d89f-->[/U][/B]
<item name="package">com.htc.calendar</item>
<item name="class">com.htc.calendar.LaunchActivity</item>
<item name="screen">2</item>
<item name="x">3</item>
<item name="y">2</item>
<item name="itemtype">0</item>
</set>
At the risk of sounding like a complete noob, what is that bolded/underlined part in the snippet above?
I'm editing the default widgets/shortcuts for my latest release of ZenEXP - something I haven't done previously - and the ones I add do not work, probably because they don't include that snippet above.. so, on top of needing to know what that is, how do I find it or create it for widgets/shortcuts I want to add to the default.xml?
TIA!
Also looking to understand default "config" settings
I echo the same questions posted by .mak and have been trying to find wich of the default.xml files are used in the defaul screen layouts...
Basically I am looking to understand the file tree structure and WHERE each of the important "config" files are located, WHAT they control, and WHEN they are read by the applications... Dr. Google has not been able to provide me with much (e.g. I am searching on things like: "android /system/customize/default.xml file use"); so I was hoping someone could point me in the right direction.
I have found that the /system/customize/CID/default.xml has the settings for the setup wizard...
Thanks!
zach.xtr said:
I echo the same questions posted by .mak and have been trying to find wich of the default.xml files are used in the defaul screen layouts...
Basically I am looking to understand the file tree structure and WHERE each of the important "config" files are located, WHAT they control, and WHEN they are read by the applications... Dr. Google has not been able to provide me with much (e.g. I am searching on things like: "android /system/customize/default.xml file use"); so I was hoping someone could point me in the right direction.
I have found that the /system/customize/CID/default.xml has the settings for the setup wizard...
Thanks!
Click to expand...
Click to collapse
I've, since posting this, found that default settings for homescreen layout, browser, mms and a few other things is in /system/customize/MNS/default.xml
.mak said:
I've, since posting this, found that default settings for homescreen layout, browser, mms and a few other things is in /system/customize/MNS/default.xml
Click to expand...
Click to collapse
I have tried modifying these and it did not change the settings when I first flash... is there something more that I must do? I am using Ivans official ROM as base and have removed the rosi (sense home screen) and want to default shortcut, widgets, etc on the native Launcher app...
Thanks!
zach.xtr said:
I have tried modifying these and it did not change the settings when I first flash... is there something more that I must do? I am using Ivans official ROM as base and have removed the rosi (sense home screen) and want to default shortcut, widgets, etc on the native Launcher app...
Thanks!
Click to expand...
Click to collapse
I am having the same issue. If anyone knows private message me.
try editing the launcher module in the \customize\MNS\default.xml. you have to note though that depending on the ROM you are modifying the launcher.apk file may need to be changed. a great example to use is the JacHeroSki2.7.4. once you go to the above file you're most likely to find the file you need to make changes to.
If you want to change a native's launcher default settings , you have to modify default_workspace.xml, every launcher has it. (cfr. Launcher Pro, ADW Launcher,..)
Hello. I wish someone could help me with editing my framework file. I have some problems with apktool Basically I need someobe who could edit some files in res/values. Enable on screen buttons and change their height to 24 pixels. Enable 'ShowNavigationBar' in bools.xml and 'NavigationBarHeight' in dimens.xml. Every helpful post in this thread will be thanked
Edit: oops, there is the link http://db.tt/Dlu60svI
@singh_dd93
First, sorry for my English, I use Google Translate
Because I am a new members are not permitted to post to development-related forums.
It's strange, if you set ur language to english the rom's system ui will be fine , but if you set it as chinese (zh-CN or zh-TW), it will be system ui FC.
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
How to Localize an app by downloading the translated strings from a server . ( without bundling translations as separate strings.xml within APK ) ?
Normally multiple language support is added to android applications by defining extra strings.xml file corresponding the locale.
Recently I came across an android application which downloads the translations in key:value pair format as json from parent server and updates the UI by replacing the strings with the downloaded translations.
I'm curious about how this works within the android application.
Any insights on this topic would be really helpful.
Thanks
Update :
Please consider the scenario where I have hundreds of TextViews in my app to change, and if I want this change to persist when app is opened next time. Is there a way to persist this change on app, so that I don't have to programatically change the strings every time I load the app, which would essentially slow it down. ?