2012-06-29 6 views
7

consigo este error:Fuerza pelusa para comprobar traducciones de idiomas exactos

"preferences_default_reminder_labels" is not translated in cs, de, es, fr, it, ja, ko, nl, pl, pt, pt-rBR, zh

Issue: Checks for incomplete translations where not all strings are translated Id: MissingTranslation

Pero mi aplicación necesita ser traducido sólo en Inglés y ruso. ¿Cómo puedo ajustar la pelusa para verificar solo las traducciones en, ru?

+0

Posible duplicado de [Android Lint limita idiomas para comprobar las traducciones que faltan] (http://stackoverflow.com/questions/14232728/android-lint-limit-languages-to-check-for-missing-translations) – blahdiblah

Respuesta

0

Si tiene carpetas vacías en res llamadas values-XX para idiomas distintos de ru elimínelos.

+1

I no tiene ninguna otra carpeta solamente "values" y "values-ru" – karabara

0

Compruebe si ha establecido la variable de entorno ANDROID_LINT_COMPLETE_REGIONS.

De lint docs:

MissingTranslation


Summary: Checks for incomplete translations where not all strings are translated

Priority: 8/10
Severity: Fatal
Category: Correctness:Messages

If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.

By default this detector allows regions of a language to just provide a subset of the strings and fall back to the standard language strings. You can require all regions to provide a full translation by setting the environment variable ANDROID_LINT_COMPLETE_REGIONS.

Qué es variable ambiental y la forma de utilizarlos se pueden encontrar here.

+1

Parece que ANDROID_LINT_COMPLETE_REGIONS no tiene ninguna influencia en MissingTranslation. Por cierto, no me ayudó – karabara

+0

Luego solo llame desde la línea de comando '$ lint --disable MissingTranslation/folder/with/project'. O desde las propiedades de proyectos abiertos de Eclipse, elija Preferencias de Android Lint, encuentre MissingTranslation (está en el medio de la lista) y seleccione Severity -> Ignore. – vasart

+4

No quiero deshabilitar MissingTranslation, solo quiero deshabilitarlo para otros idiomas además de ru, en – karabara