Invalid String resource problem


Status
Not open for further replies.

Trần Anh

Members
Aug 6, 2014
307
67
Hi,
This bug is about string in Settings.apk
Below is steps to reproduce:
- Go to Contacts setting
- Scroll down and tap "More"
- Tap Clear data

Then I search in ingbrzy's github to find out the problem and found this string with key: battery_summary in Settings.apk
- For ysl, whyred, wayne, vince, dipper, sirius... it look like (call this *1)
Code:
  <string name="battery_summary">%1$s use since last full charge</string>
- For ugg, rolex, rosy, ... it look like
Code:
  <string name="battery_summary">%1$d%% use since last full charge</string>

This issue does not happen in English or China because language pack is for every single device, I think so
The problem is happen to device which have battery_summary like 1* when using other language


Hear is the log:
Screenshot_2019-01-03-02-10-04-428_com.miui.bugreport.png
 

Attachments

  • Screenshot_2019-01-02-10-48-34-306_com.miui.bugreport.png
    Screenshot_2019-01-02-10-48-34-306_com.miui.bugreport.png
    312.3 KB · Views: 173
Another screen rendered before crash (used screen recorder to take it)
Inside the red is "Battery & performance" in English

Screenshot_2019-01-03-02-13-17-556_com.miui.videoplayer.png
 
About which language are you talking? report it to translation repository..
 
so? it depends on app version and android version.. its translation issue..
 
Wow thanks. I don't know we can do this before. Thanks for example repository too. I'll do some work
 
One more question, in device's folder, it contain the different string only or whole file? Thanks
 
@ingbrzy Sorry, just for clarification, I found it different from stable and weekly, a few device. That mean I must to create both original folder and _stable folder?
 
Nope.. We do not split translations between stable and weekly.. It's disadvantage of stable versions..
 
  • Like
Reactions: Trần Anh
Status
Not open for further replies.