我想程式的組譯和反組譯你應該都知道了,我就直接進入重點...
反組譯後
去找到\framework-res\res\values\strings.xml
以編譯軟體打開檔案後
直接拉到最下面...
如果有顯示行數,在1464~1471行
原程式碼:
<string name="reboot">Reboot</string>
<string name="reboot_progress">Rebooting..</string>
<string name="reboot_confirm">Your phone will reboot.</string>
<string name="reboot_confirm_question">Would you like to reboot?</string>
<string name="recovery">CWM Recovery</string>
<string name="recovery_progress">Reboot into CWM Recovery…</string>
<string name="recovery_confirm">Your phone will reboot.</string>
<string name="recovery_confirm_question">Would you like to reboot?</string>
再來就看你想怎樣翻譯...
然後去找到\framework-res\res\values-zh-rTW\strings.xml
也是以編譯軟體打開檔案後
直接拉到最下面...
在最後結尾</resources>前加入上面改好的定義字串
完成了
畫面會顯示英文的原因是因為在values-zh-rTW\strings.xml中沒有定義中文顯示,
所以會以預設的values\strings.xml裡面的定義去顯示,所以畫面顯示變成英文...
再接下來的部分我想你應該就會了,我就不再敘述了... |