2013-01-09 13 views
8

Próbuję eksportować (podpisane lub niepodpisane) mój wniosek. Ale byłem witany z tego błędu. enter image description herecommon_google_play_services_unknown_issue”nie jest przetłumaczony w AF, am, ar, BE, BG

tutaj jest to, co mówi

"common_google_play_services_unknown_issue" is not translated in af, am, ar, be, bg, ca, cs, da, de, el, en-rGB, es, es-rUS, et, fa, fi, fr, hi, hr, hu, in, it, iw, ja, ko, lt, lv, nb, nl, pl, pt, pt-rPT, ro, ru, sk, sl, sr, sv, sw, th, tl, tr, uk, vi, zh-rCN, zh-rTW, zu 

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

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

If the string should not be translated, you can add the attribute translatable="false" on the <string> element, or you can define all your non-translatable strings in a resource file called donottranslate.xml. Or, you can ignore the issue with a tools:ignore="MissingTranslation" attribute. 

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. 

jest to pierwszy raz, kiedy wystąpi ten błąd. I nie mogę znaleźć żadnego rozwiązania w sieci. Każdy pomysł jak to naprawić?

Odpowiedz

22

miałem ten sam problem. problemem jest Lint flagowania ciąg tłumaczenie jako błąd krytyczny. W Eclipse musisz przejść do preferencji (Okno -> Preferencje -> Android -> Sprawdzanie błędów Lint) i ustawić "Brakujące tłumaczenie", aby ostrzec lub zignorować. Jest to omówione here

+0

Tylko uzupełniając ... Musisz to zrobić za każdym razem, gdy aktualizujesz Eclipse. Zrobiłem to kilka miesięcy temu, zaktualizuję Eclise i problem pojawia się ponownie. Ta odpowiedź bardzo pomogła (znowu)! – Cordovaing

2

Jest to problem, czy „nieznane problem” naprawdę dzieje się w języku, dla którego nie ma po polsku - to spowoduje, że aplikacja przestanie działać z tym stacktrace:

android.content.res.Resources$NotFoundException: String resource ID #0x7f0d0039 
    at android.content.res.Resources.getText(Resources.java:201) 
    at android.content.res.Resources.getString(Resources.java:254) 
    at com.google.android.gms.common.GooglePlayServicesUtil.b(Unknown Source) 
    at com.google.android.gms.internal.c.a(Unknown Source) 
    at com.google.android.gms.internal.c.onCreateView(Unknown Source) 
    at com.google.android.gms.maps.SupportMapFragment.onCreateView(Unknown Source) 
    ... 

Co ja zrobiłem było otworzyć projekt google-play-services-lib otworzyć domyślną res/values/strings.xml oraz:

  1. egzemplarzu w językach angielskim tłumaczeniem - to pozbywa się długich ostrzeżenia kompilacji.
  2. Dodaj „tłumaczenie” dla common_google_play_services_unknown_issue:

<string name="common_google_play_services_unknown_issue">"Unknown issue."</string>

To rozwiązuje problem z ostrzeżeniami i nie upaść aplikację przy starcie powinno się zdarzyć nieprzewidziane okoliczności.

1

Albo można dodać translatable="false" do każdej struny więc żadne błędy są produced.For przykład:

<string name="hello" translatable="false" >Hello World!</string> 
1

Ten problem jest rzeczywiście spowodowane przez wszystkich językach, które mają wsparcie ze strony Google Play obsługa, ale które nie są obsługiwane w Twoim własna aplikacja. Możesz po prostu usunąć wszystkie języki z domeny google_play_services_lib, które nie będą obsługiwane przez Twoją aplikację.

Musisz tylko rozwiązać wszystkie pozostałe niekompletne tłumaczenia.

Powiązane problemy