I'm not sure which sub forum to post this in so could someone help me out?
I know there is a sub forum where people can translate strings for you, but I'm not after that, I'm after how to find the correct files to translate.
I know how to decompile APKs via apktool, but I can't seem to find the correct .xml file to edit and this is where I need help. For some background, I'm trying to translate a certain part of the Mi Home application that I use to control my Xiaomi Mi Robot vacuum cleaner. You have to set your local region to mainland China for the application to find the vacuum cleaner and even though you can set your language to English, the part of the app that controls the cleaner is in Chinese still.
This is what I've tried:
Decompiling the app
Took a Chinese string from the vacuum control part of the app, and searched for this string using grep - with the hope of it returning the .xml file this string appears in
However, nothing is returned - the grep command works as it finds other strings as a test and returns the file locations
Is there any reason why I can't find which file to edit?
Sorry , but this is not a Q&A forum. It is more to guide NEW users to the best place on the site for their problem .
Please read the OPENING THREAD and the Second one , too.
Thank you for your attention in this matter.
malybru
Senior Moderator
Related
Apologies if this thread is not in the correct place. I have a wifi motorola xoom and would like to change the interface language to russian. The only available choices on the rom are English, French and Spanish.
I can add the russian keyboard and voice support no problem but would like the full ui to be russian. I downloaded the android SDK with Eclipse and the Motorola Xoom emulator and checked the language setting on the emulator and the russian language UI works fine on the emulator.
I extracted the CustomLocale.apk file from the SDK system.img and installed it which helped, as now the applications that support russian are displaying properly.
Is there another .apk or file I can push to the Xoom to unlock that russian ui? Any assistance that can be offered would be greatly appreciated, I am new to Android and am trying to stumble through to a solution.
Obviously no one was interested in helping with this. I figured out how to decode and extract the values folders with apktool and was able to recompile most of the apk with the needed russian language values, but am now stuck trying to recompile the framework-res.apk. It refuses to build due to not defined errors in the public.xml file.
There were also mulitple substitution errors in the strings.xml and plurals.xml files that I was able to resolve by changing the strings
%d of %d to %1$d of %2$d
does anyone know the correct positional format for the numeric_date_template string? %s/%s/%s
Any assistance would be greatly appreciated.
Thanks
Privet brat.Any luck with this?
I remember my first Android phone Samsung Behold2 with android 1.6.I could choose russian ui on it.But now im on Samsung Epic Touch(gs2) and cant change ui.
There is gotta be a way.
---------- Post added at 01:22 AM ---------- Previous post was at 01:17 AM ----------
I found free app called Custom Locale,teper umenya ruskoe ui!
Hi all!
I used through many years windows mobile. Because the translations was to my language (Hungarian) very-very wrong and rarely too long, I modified the *.mui files with Reshaker.
Now I'm using Sensation with android and I want to edit the Hungarian language files. But I didn't find they. Where are the language files of the whole system, Sense, etc?
Example by the new Sensation 3.5 are the translated rosie buttons (All apps, Phone, Settings) too long and the text of "All apps" has not enough space. This is on Hungarian: "Összes alkalmazás".
Pls, can you answer me where are the language files and how can I edit they?
Thx and sorry for my English, I hope you understand my wish.
Blackdog
Good question, but wrong section...
Should be in Q&A or in Themes & Apps.
Egyébként ha ki tudnád deríteni a válasz engem is érdekelne.
I read through the section Q&A, but there are only general questions. I thought I must writing my question here in development section, because it is related with the development.
Otherwise I asked another thing in this thread too, because I have problem with the dialer too, but I didn't get any answer.
I'm using by my firm linux, and there I can editing/modifying many things. I thought the android are a linux-thing too, but now I see it is more difficult to modifying as windows mobile...
Ha bármi értelmeset találsz az android editálásáról, akkor kérlek ne habozz, mert ahhoz képest, hogy mennyi program és módosítás van, valahogy mindenki félti ennek titkát. A winmo-s módosításokhoz külön topic volt itt az xda-n.
There are no "language files" as such within the android system, each and every apk contains app specific xml's containing strings, if you decompile rosie.apk for example, you will find the required files/strings under the resources folder
Sent from my s-off HTC sensation running LeeDrOiD Sensational
LeeDroid said:
There are no "language files" as such within the android system
Click to expand...
Click to collapse
Thx your answer!
Then how it works through a reboot? I thought every apks will installed in somewhere onto the system. From your answer I conclude, at every reboots will be install the whole apks again. Is it right? Is it so quickly, that the pda can installing more then 100 apks in about 40 seconds (by normal restart)?
It must be a cache somewhere, no?
I found it! Thanks!
blackdog7 said:
I found it! Thanks!
Click to expand...
Click to collapse
where? how? i am in the same need.
Hello friends, I would like to post this link to this chinese page bbs.gfan.com/android-4197169-1-1.html , someone who has extracted a ROM. Can somebody that speaks chinese help us translated. I used google translate, but english is to rough, not understandable, I also tried spanish but it was even worse. i think you might have to register to download the info (a lot of original files with the rom) may be this will help the cooks with a new ROM. thanks
Hi There,
Actually no need to translate bicuz:
that post was for those users who over killing system APKs/build-in applications, and then causing phone issues/problems.
This post is simply providing the download links on those system default/build-in apks, and how-tos for those who over killing APKs to re-plant the vital APKs back in.
no constructional scripts included.
mostely are Simplyfied Chinese APKs, I doubt that there are English capable (except general applications/APKs e.g. batteryprotect.apk).
no registeration required, please feel free to download them directly.
Cheers.
Cole
hello every one
i have alcatel on touch pixi (4007D)
and i make rom but when i decompile the apk with (apk tool) all thing right :fingers-crossed:
and i change the xml & drawable & values
and come to recompile apk with same programs
Error occurs
please , any Developer help me and take my setting apk and convert to ics setting theme
thanks :highfive:
Apk in the attachments
no one can help me?
bad forum
When you don't get replies, don't just say xda is a bad forum.
The forum isn't the "thing" answering, it's the users. .
Anyways, I have an answer for your problem. And I know what exactly you're talking about.
The reason your "tool" shows an error when it compiles the .apk is because you made an error somewhere in the process of editing. This happens frequently, the easiest way to figure out the cause for this error is to check the error log. It shows precisely where the issue is.
I would help you out by making it for you, but there is two reasons I cannot. One - its too late here and I can't get on my PC, and Two - If we do it, you don't learn anything if you're building or cooking roms.
So what I would like you to do is, get a log of the error you're getting and perhaps I, or someone else could help you.
Also you can "bump" up your thread, read the stickies for rules on this. It'll help. Bumping the thread pushes the thread near the top of list so people see it. You already did this. But in a slightly different way.
Krish
Sent from my Nexus 5 using Tapatalk
Hola guys. To all of you. Particularly the ones who are familiar with MIUI. I will just stick to the point. If you ARE familiar with miui then you must have come across those flashy themes. You must also have found out the way to bypass the infamous theme policy WSM tools and Xposed and all. But I recently started taking interest in those flashy themes. You know that once you download a theme from the default Themes app the mtz file starts getting downloaded and as soon as the downloading has finished it gets unpacked into bits (com.android.contacts, com.miui.home, icons, lock_wallpaper, locksreen and so on) and gets copied to the MIUI folder in main storage and again into data/system/theme. This is the first problem. I can't copy the whole mtz file to a safe place because it gets unpacked as soon as it has been downloaded which is basically a zip file containing several other zip files that is, the 'bits' I was talking about. Second thing. the default themes app does not recognize mtz files downloaded from the official miui themes website. It declares them as third party themes. What I did was, took some of those 'bits' and replaced some XML files inside them and some png elements and put them back into data/system/theme. But miui has a way to prevent this from happening. As soon as it detects a modified file present in data/system/theme it reverts back to the default plain theme by deleting all files from data/system/theme. My guess is it keeps checking out verifying in regular intervals the checksums that it must have generated earlier. The same thing happens if I just replace a bit in the mentioned directory with a bit from another theme. So my questions are:
1. Is there a way to preserve the mtz file downloaded from within the default Themes app as a whole mtz file?
2. Can I make changes to just the Themes app so that it would apply any mtz file?
3. Is there a way to prevent miui from continuously checking or verifying the checksums that it has generated? (just a guess but I reckon thats what it actually does) because for an hour or so after replacing or modifying the 'bits' everything works fine but the reverting process takes place in an hour or so.
Thats all folks! jk. Any help or suggestion would be really appreciated because I think a thread like this was long since needed here. And dont talk about visiting MIUI's official forums. Most of the guys there don't know half the things that is really worth discussing. Thank you guys.
note- dont want to use WSM tools nor can I find one for miui7.
note2- if I change the permissions of the folder (data/system/theme) to 444 allowing READ permissions only, the phone would just reboot without warning and continue to reboot until the permissions are changed back to normal (755).
No one?
Hello and thank you for using XDA Assist,
your device don't have a device specific forum here on XDA. Please create a thread here:
Android Q&A, Help & Troubleshooting
The experts there should be able to help you. Good luck!
Kind regards
Trafalgar Square
XDA Assist
I am starting to feel MIUI is really not so popular here on XDA. Blimey after about a hundred views not a single reply, let alone helpful ones. Anyway I will leave the thread as it is just in case somebody who had the same problem and found a workaround, sees the post.
XDA Assist is for newbies, who need help finding their way oround on XDA. XDA Assist is only for pointing users into the correct section. Not a discussion forum.
Thread closed. Please post in the Q&A section I linked. Normal users are not even able to post in your thread.
Kind regards
Trafalgar Square
XDA Assist