# AndroidRefactorTools **Repository Path**: hanrong/AndroidRefactorTools ## Basic Information - **Project Name**: AndroidRefactorTools - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-16 - **Last Updated**: 2025-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 导入xml到strings.xml 1. 生成 strings.xml```cd python_script && python3 excel2xml.py``` 2. 跑 CompareKey,把缺失的添加进生成的 strings.xml 中 3. 跑 FindPlaceholder,把错误格式的占位符揪出来,需要手动纠正(需要注意程序中的 shouldSkipKeys 成员) 4. 跑 SortStringXmlFile 排序 5. 再跑 CompareKey 看看以保上述操作不会把某些翻译字段删除 6. 跑 CompareStringXml 把生成的 strings.xml 中的修改应用到项目中的 strings.xml 文件中去 7. 再跑一下 FindPlaceholder,看看新增的有占位符的字条会不会错误(需要注意程序中的 shouldSkipKeys 成员) 8. 手动更新 string-array