miuiv5 là 1 rom đẹp,nhiều tính năng hay và rất nhiều bạn thích. thường thì các bản từ bên tàu chỉ có 2 ngôn ngữ anh,trung. để cho ngừoi việt sử dụng dễ dàng ta fải việt hóa nó đi. tuy nhiên,miui có cách việt hóa riêng,tool riêng để sử dụng mới viêt hóa được. mình không làm rom này nữa, topic này sẽ hướng dẫn cách để việt hóa rom này ,cũng như cách việt hóa nhanh mà không phải ngồi đó dịch từng câu ,từng chữ (ko ai rảnh rỗi mà ngồi dịch ::d

1. tool cần thiết để việt hóa rom miui:
- download tool này về,giải nén được thư mục apktool,bỏ vào ổ đĩa nào đó,tốt nhất để ở ngoài cho dễ : http://d-h.st/fgu
- máy tính cần cài java trước để sử dụng apktool
- trong thư mục apktool gồm có 3 file chính là: aapt.exe,apktool.bat và apktool.jar ,ngoài ra còn có 4 file apk khác là 2,3.4,5.apk
- 1 cái quan trong nữa là source việt hóa miuiv5 để giúp ta không phải ngồi dịch từng câu,từng chữ mất thời gian. source việt hóa tham khảo ở link này: https://github.com/hoangtubot/ma-xml-v5-vietnam/tree/master/vietnamese/main . trong này có chứa phần việt hóa các file apk trong rom miuiv5,down về và dùng tool compare của notepadd++ để so sánh với file apk của rom miuiv5 cần dịch và dịch cho nhanh.
2. các bước việt hóa:
- tiến hành lôi 2 file framework-res và framework-miui-res.apk trong thư mục system/framework từ rom miuiv5 ra
- mở cmd,vào thư mục apktool,tiến hành if 2 file framework-res.apk và framework-miui-res.apk ngoài ra if luôn 4 file còn lại 2,3,4,5.apk:
e:\apktool>apktool if framework-res.apk
i: framework installed to: c:\users\quan nguyen\apktool\framework\1.apk

e:\apktool>apktool if framework-miui-res.apk
i: framework installed to: c:\users\quan nguyen\apktool\framework\6.apk

e:\apktool>apktool if 2.apk
i: framework installed to: c:\users\quan nguyen\apktool\framework\2.apk

e:\apktool>apktool if 3.apk
i: framework installed to: c:\users\quan nguyen\apktool\framework\3.apk

e:\apktool>apktool if 4.apk
i: framework installed to: c:\users\quan nguyen\apktool\framework\4.apk

e:\apktool>apktool if 5.apk
i: framework installed to: c:\users\quan nguyen\apktool\framework\5.apk

- xong bước này là ta có thể bắt đầu việt hóa các apk trong rom.
đầu tiên là file framework-res.apk. tiến hành decompile file này ra như sau: (chú ý đối với miuiv5 của wangsai thì ko cần việt hóa file này vì đã có sẵn rồi):
e:\apktool>apktool d framework-res.apk
i: loading resource table...
i: loaded.
i: decoding androidmanifest.xml with resources...
i: regular manifest package...
i: decoding file-resources...
i: decoding values */* xmls...
i: done.
i: copying assets and libs...

mở thư mục framework-res /res kiểm tra nếu có 2 thư mục values-vi và values-vi-rvn rồi thì xem như đã có tiếng việt,còn không thì phải việt hóa bằng cách thêm vào 2 thư mục trên. để dễ dàng ta có thể xem source ngôn ngữ việt hóa miuiv5 theo link ở trên. sau khi việt hóa xong ta compile lại :
e:\apktool>apktool b framework-res
w: could not find sources
i: checking whether resources has changed...
i: building resources...
i: building apk file...

như trên là thành công, sau đó dùng soft 7zip hoặc winrar mở file framework-res.apk trong thư mục apktool lên. vào thư mục framework-res/build/apk/ lôi file resources.arsc bỏ vào file framework-res.apk đang mở là xong.
- tiếp đến là file framework-miui-res.apk. đây là file quan trọng để có lựa chọn tiêng việt, tiến hành compile file này như framework-res.apk ở trên được thư mục framework-miui-res. mở thư mục này ra,mở file apktool.yml bằng notepadd++ . thêm vào như sau:

usesframework:
ids:
- 1
- 2
- 3
- 4
- 5

tiếp theo vào thư mục res thêm vào thư mục values-vi-rvn để có lựa chọn tiếng việt. thư mục values-vi-rvn sẽ gồm 3 file array,plural và string.xml copy từ thư mục values,dùng cái link source việt hóa phía trên để dịch cho nhanh.
chú ý để có lựa chọn tiếng việt,trong file array.xml phải thêm vào dòng sau:
<string-array name="supported_locale">
<item>zh_cn</item>
<item>zh_tw</item>
<item>en_us</item>
<item>vi_vn</item>
</string-array>
sau đó tiến hành compile lại và các bước tương tự như framework-res.
chú ý khi compile lai mà có hiện dòng này,ví dụ:
aapt: warning: string 'deprecated_50' has no default translation in e:\apktool\f
ramework-miui-res
es; found: vi_vn
thì không sao cả,miễn dòng cuối cùng là building apk file ... là thành công.
làm tương tự với cái file apk hệ thống còn lại