[lint] 사용하지 않는 String, 번역빠진 String 찾기
Android/Tips 2014. 8. 28. 17:50 |Library에 포함되어 있는 lint를 사용하면
손 쉽게 string.xml에서 사용하지 않는 String이나, 번역이 되지 않은 String을 찾을 수 있다.
lint --nolines --check Correctness:Messages [FOLDER]
If you need to check for missing or extra translations, you can use the "lint" tool included with the Android SDK.
It is integrated into Eclipse, but unfortunately, the Eclipse integration has problems (in particular, we use the Facebook SDK library, which includes translations in many languages, and Eclipse includes that, which causes lint to complain that our strings aren't translated into, for example, Italian).
Therefore, if you need to verify translation strings, you can use lint from the terminal directly:
lint --nolines --check Correctness:Messages nexVideoEditorApp_SmartPhone/
android
If you see [MissingTranslation] errors, they must be addressed before release.
Here are some errors from the current version (I will be asking Justin for translation):
res/values/arrays.xml:10: Error: "audio_rec_src_values" is not translated in ja, ko, zh-rCN [MissingTranslation]
res/values/guide_strings.xml:
33: Error: "guide_clip_longpress_vmedia" is not translated in ja [MissingTranslation]
Altogether, we have 15 missing translations.
In addition, you may see [ExtraTranslation]. These are not a serious problem, but should be removed because they just waste space. (This happens when the original string was deleted, but the translations weren't).
'Android > Tips' 카테고리의 다른 글
Round Componet 만들기 (0) | 2015.02.04 |
---|---|
[assert] 사용법 (0) | 2014.10.28 |
[TypedValue] DP, pixel간 변환 (0) | 2014.08.26 |
[ADB] 어플리케이션의 cache 지우기 (0) | 2014.08.12 |
안드로이드 잡 지식 (0) | 2014.07.24 |