2012-06-29 12 views
7

otrzymuję ten błąd:Siła szarpie sprawdzić dokładne tłumaczenia na języki

"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

Ale moja aplikacja musi zostać przetłumaczony na język angielski i rosyjski tylko. Jak mogę dostroić lint, by sprawdzać tylko tłumaczenia en, ru?

+0

Prawdopodobny duplikat [języków Lint limitów Androida w celu sprawdzenia brakujących tłumaczeń] (http://stackoverflow.com/questions/14232728/android-lint-litages-languages-to-check-for-missing-translations) – blahdiblah

Odpowiedz

0

Jeśli masz puste foldery w res o nazwie values-XX dla języków innych niż ru je usuń.

+1

I nie ma żadnych innych folderów "wartości" i "wartości-ru" – karabara

0

Sprawdź, czy ustawiłeś zmienną środowiskową ANDROID_LINT_COMPLETE_REGIONS.

Od 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.

Co jest zmienna środowiska i sposobu ich użycia można znaleźć here.

+1

Wygląda na to, że ANDROID_LINT_COMPLETE_REGIONS nie ma żadnego wpływu na brakujące tłumaczenie. Tak przy okazji, to mi nie pomogło. – karabara

+0

Po prostu wywołaj z linii poleceń '$ lint --disable MissingTranslation/folder/with/project'. Lub z otwartych właściwości projektu Eclipse, wybierz Preferencje Linii Androida, znajdź Brakujące Tłumaczenie (znajduje się na środku listy) i wybierz Ważność -> Ignoruj. – vasart

+4

Nie chcę wyłączać MissingTranslation, chcę wyłączyć to tylko dla języków innych niż ru, en – karabara

Powiązane problemy