Issue #71 : add error message if custom search URL is invalid

This commit is contained in:
Sean Owen 2014-02-25 12:14:23 +00:00
parent e9ff0501c7
commit 68234e412d
32 changed files with 144 additions and 39 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">الوقت</string>
<string name="msg_default_type">النوع</string>
<string name="msg_encode_contents_failed">تعذر ترميز رمز شريطي من البيانات المتوفرة.</string>
<string name="msg_error">خطأ</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">عفوا، تعذر تشغيل التطبيق المطلوب. قد تكون محتويات الرمز الشريطي غير صحيحة.</string>
<string name="msg_invalid_value">قيمة غير صالحة</string>
<string name="msg_redirect">إعادة توجيه</string>
<string name="msg_sbc_book_not_searchable">عفوا، لا يمكن البحث في هذا الكتاب.</string>
<string name="msg_sbc_failed">عفوا، حدثت مشكلة في عملية البحث.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Време</string>
<string name="msg_default_type">Тип</string>
<string name="msg_encode_contents_failed">Неуспешно кодиране на подадените данни.</string>
<string name="msg_error">Грешка</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Съжаляваме, но нужното приложение не успя да се стартира. Възможно е баркода или съдържанието му да са невалидни.</string>
<string name="msg_invalid_value">Невалидна стойност</string>
<string name="msg_redirect">Пренасочване</string>
<string name="msg_sbc_book_not_searchable">Съжаляваме, тази книга не може да се претърсва.</string>
<string name="msg_sbc_failed">Съжаляваме, срещнахме проблем при търсенето.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Hora</string>
<string name="msg_default_type">Tipus</string>
<string name="msg_encode_contents_failed">No es pot codificar un codi de barres amb les dades proporcionades.</string>
<string name="msg_error">Error</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">No es pot executar l\'aplicació sol·licitada. És possible que el contingut del codi de barres no sigui vàlid.</string>
<string name="msg_invalid_value">Valor no vàlid</string>
<string name="msg_redirect">Redirecciona</string>
<string name="msg_sbc_book_not_searchable">No es pot cercar en aquest llibre.</string>
<string name="msg_sbc_failed">Hi ha hagut un problema en fer la cerca.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Čas</string>
<string name="msg_default_type">Typ</string>
<string name="msg_encode_contents_failed">Nepodařilo se rozkódovat čárový kód z poskytnutých údajů.</string>
<string name="msg_error">Chyba</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Litujeme, požadovanou aplikaci nelze spustit. Čárový kód je nefunkční.</string>
<string name="msg_invalid_value">Neplatná hodnota</string>
<string name="msg_redirect">Přesměrování</string>
<string name="msg_sbc_book_not_searchable">Omlouváme se, tato kniha nelze nalézt.</string>
<string name="msg_sbc_failed">Omlouváme se, narazili jsme na problém.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Tid</string>
<string name="msg_default_type">Type</string>
<string name="msg_encode_contents_failed">Kunne ikke indkode en stregkode fra oplysningerne givet.</string>
<string name="msg_error">Fejl</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Beklager, den ønskede applikation kunne ikke blive startet. Stregkodeindholdet er måsket ugyldigt.</string>
<string name="msg_invalid_value">Ugyldig værdi</string>
<string name="msg_redirect">Omdirigér</string>
<string name="msg_sbc_book_not_searchable">Beklager, denne bog er ikke søgbar.</string>
<string name="msg_sbc_failed">Beklager, søgningen er stødt på et problem.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Zeit</string>
<string name="msg_default_type">Typ</string>
<string name="msg_encode_contents_failed">Aus den Daten kann kein Barcode erzeugt werden.</string>
<string name="msg_error">Fehler</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Die gewünschte Applikation kann nicht geöffnet werden. Der Barcode könnte ungültig sein.</string>
<string name="msg_invalid_value">Ungültiger Wert</string>
<string name="msg_redirect">Umleiten</string>
<string name="msg_sbc_book_not_searchable">Dieses Buch kann nicht durchsucht werden.</string>
<string name="msg_sbc_failed">Bei der Suche ist ein Fehler aufgetreten.</string>
@ -136,4 +138,4 @@
<string name="wifi_changing_network">Verbindung zum Netzwerk anfordern\u2026</string>
<string name="wifi_ssid_label">WLAN-Name:</string>
<string name="wifi_type_label">Verschlüsselung:</string>
</resources>
</resources>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Ωρα</string>
<string name="msg_default_type">Τύπος</string>
<string name="msg_encode_contents_failed">Δεν γίνεται να παραχθεί barcode από αυτά τα δεδομένα.</string>
<string name="msg_error">Σφάλμα</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Συγνώμη, η ζητούμενη εφαρμογή δεν μπορεί να εκιννηθεί. Τα δεδομληνα του barcode ίσως δεν είναι έγκυρα.</string>
<string name="msg_invalid_value">Μη έγκυρη τιμή</string>
<string name="msg_redirect">Ανακατεύθυνση</string>
<string name="msg_sbc_book_not_searchable">Συγνώμη, αυτό το βιβλίο δεν βρέθηκε.</string>
<string name="msg_sbc_failed">Συγνώμη, η αναζήτηση παρουσίασε πρόβλημα.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Tiempo</string>
<string name="msg_default_type">Tipo</string>
<string name="msg_encode_contents_failed">No se pudo codificar un código de barras a partir de los datos facilitados.</string>
<string name="msg_error">Error</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Lo sentimos, la aplicación solicitada no pudo ser lanzada. El contenido de código de barras puede ser inválida.</string>
<string name="msg_invalid_value">Valor no válido</string>
<string name="msg_redirect">Redirigir</string>
<string name="msg_sbc_book_not_searchable">Lo sentimos, no se puede buscar en este libro.</string>
<string name="msg_sbc_failed">Lo sentimos, la búsqueda ha detectado un problema.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Denbora</string>
<string name="msg_default_type">Mota</string>
<string name="msg_encode_contents_failed">Ezin izan da barra-kode bat kodetu emandako datuetatik.</string>
<string name="msg_error">Error</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Barkatu, eskatutako aplikazioa ezin izan da abiarazi. Behar bada barra-kodearen edukiak baliogabeak dira.</string>
<string name="msg_invalid_value">Balio baliogabea</string>
<string name="msg_redirect">Berbideratu</string>
<string name="msg_sbc_book_not_searchable">Barkatu, liburu honetan ezin da bilaketarik egin.</string>
<string name="msg_sbc_failed">Barkatu, bilaketak arazo bat izan du.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Aika</string>
<string name="msg_default_type">Tyyppi</string>
<string name="msg_encode_contents_failed">Viivakoodia ei voitu muodostaa annetusta datasta.</string>
<string name="msg_error">Virhe</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Valitettavasti pyydettyä sovellusta ei voitu käynnistää. Viivakoodin sisältö voi olla virheellinen.</string>
<string name="msg_invalid_value">Virheellinen arvo</string>
<string name="msg_redirect">Uudelleenohjaus</string>
<string name="msg_sbc_book_not_searchable">Valitettavasti tämä kirja ei ole haettavissa.</string>
<string name="msg_sbc_failed">Valitettavasti haussa tapahtui virhe.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Temps</string>
<string name="msg_default_type">Type</string>
<string name="msg_encode_contents_failed">Impossible de créer le code-barres à partir des données fournies.</string>
<string name="msg_error">Erreur</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Désolé, l\'application demandée n\'a pas pu être lancée. Le contenu du code-barres n\'est peut-être pas valable.</string>
<string name="msg_invalid_value">Valeur invalide</string>
<string name="msg_redirect">Redirection</string>
<string name="msg_sbc_book_not_searchable">Désolé, ce livre est introuvable.</string>
<string name="msg_sbc_failed">Désolé, la recherche a rencontré un problème.</string>

4
android/res/values-he/strings.xml Executable file → Normal file
View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">זמן</string>
<string name="msg_default_type">סוג</string>
<string name="msg_encode_contents_failed">לא היתה אפשרות לקודד ברקוד מהנתונים שסופקו.</string>
<string name="msg_error">שגיאה</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">סליחה, לא ניתן להפעיל את היישום המבוקש. ייתכן שתוכן הברקוד לא תקין.</string>
<string name="msg_invalid_value">ערך לא חוקי</string>
<string name="msg_redirect">נתב מחדש</string>
<string name="msg_sbc_book_not_searchable">סליחה, ספר זה אינו ניתן לחיפוש.</string>
<string name="msg_sbc_failed">סליחה, החיפוש נתקל בבעיה.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">समय</string>
<string name="msg_default_type">टाइप</string>
<string name="msg_encode_contents_failed">उपलब्ध कराए गए आंकड़ों से एक बारकोड सांकेतिक शब्दों में बदलना नहीं कर सका.</string>
<string name="msg_error">त्रुटि</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">क्षमा करें, अनुरोध आवेदन शुरू नहीं किया जा सका. बारकोड सामग्री अमान्य हो सकता है.</string>
<string name="msg_invalid_value">अवैध मान</string>
<string name="msg_redirect">पुनर्निर्देशन</string>
<string name="msg_sbc_book_not_searchable">क्षमा करें, इस किताब को खोजा नहीं है.</string>
<string name="msg_sbc_failed">क्षमा करें, खोज एक समस्या का सामना करना पड़ा.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Idő</string>
<string name="msg_default_type">Típus</string>
<string name="msg_encode_contents_failed">Nem sikerült létrehozni a vonalkódot a megadott adatokból.</string>
<string name="msg_error">Hiba</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">A kért alkalmazást nem lehet elindítani. A vonalkód tartalma lehet, hogy érvénytelen.</string>
<string name="msg_invalid_value">Érvénytelen érték</string>
<string name="msg_redirect">Átirányítás</string>
<string name="msg_sbc_book_not_searchable">Ez a könyv nem kereshető.</string>
<string name="msg_sbc_failed">A keresés problémába ütközött.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Waktu</string>
<string name="msg_default_type">Tipe</string>
<string name="msg_encode_contents_failed">Tidak dapat meng-encode barcode dari data yang diberikan.</string>
<string name="msg_error">Kesalahan</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Maaf, aplikasi yang diminta tidak dapat dijalankan. Mungkin ada kesalahan isi barcode.</string>
<string name="msg_invalid_value">Nilai tidak valid</string>
<string name="msg_redirect">Pengalihan</string>
<string name="msg_sbc_book_not_searchable">Maaf, buku ini tidak dapat dicari.</string>
<string name="msg_sbc_failed">Maaf, pencarian mengalami masalah.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Tempo</string>
<string name="msg_default_type">Tipo</string>
<string name="msg_encode_contents_failed">Impossibile codificare un codice a barre dai dati forniti.</string>
<string name="msg_error">Errore</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Spiacenti, l\'applicazione richiesta non può essere avviata. Il contenuto del codice a barre può essere non valido.</string>
<string name="msg_invalid_value">Valore non valido</string>
<string name="msg_redirect">Inoltra</string>
<string name="msg_sbc_book_not_searchable">Spiacenti, questo libro non è ricercabile.</string>
<string name="msg_sbc_failed">Spiacenti, la ricerca ha avuto un problema.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">時間</string>
<string name="msg_default_type">タイプ</string>
<string name="msg_encode_contents_failed">このデータからQRコードを作成できませんでした</string>
<string name="msg_error">エラー</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">指定されたアプリケーションを起動できませんでした。QRコードの内容が無効である可能性があります。</string>
<string name="msg_invalid_value">無効値</string>
<string name="msg_redirect">リダイレクト</string>
<string name="msg_sbc_book_not_searchable">この書籍は検索できません</string>
<string name="msg_sbc_failed">検索中に問題が発生しました</string>
@ -109,7 +111,7 @@
<string name="preferences_front_light_summary">スキャン時のライトを制御します</string>
<string name="preferences_front_light_title">ライトの制御</string>
<string name="preferences_general_title">一般設定</string>
<string name="preferences_invert_scan_summary">黒地に白のバーコードをスキャン。一部のデバイスでは使用できません。</string>
<string name="preferences_invert_scan_summary">黒地に白のバーコードをスキャン。一部のデバイスでは使用できません。</string>
<string name="preferences_invert_scan_title">スキャンを反転</string>
<string name="preferences_name">設定</string>
<string name="preferences_play_beep_title">通知音</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">시간</string>
<string name="msg_default_type">종류</string>
<string name="msg_encode_contents_failed">주어진 데이터로 바코드를 만들지 못하였습니다.</string>
<string name="msg_error">오류</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">죄송합니다. 어플리케이션이 실행되지 않습니다. 바코드 내용이 잘못 되었을 수도 있습니다.</string>
<string name="msg_invalid_value">값이 잘못되었습니다</string>
<string name="msg_redirect">리디렉션</string>
<string name="msg_sbc_book_not_searchable">죄송합니다. 이 책은 검색이 되지 않습니다.</string>
<string name="msg_sbc_failed">죄송합니다. 검색 도중 문제가 발생했습니다.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Tijd</string>
<string name="msg_default_type">Type</string>
<string name="msg_encode_contents_failed">Kan geen barcode genereren op basis van de opgegeven gegevens.</string>
<string name="msg_error">Fout</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Sorry, de opgevraagde applicatie kan niet worden gestart. De barcode is mogelijk ongeldig.</string>
<string name="msg_invalid_value">Ongeldige waarde</string>
<string name="msg_redirect">Doorverwijzing</string>
<string name="msg_sbc_book_not_searchable">Sorry, dit boek kan niet worden doorzocht.</string>
<string name="msg_sbc_failed">Sorry, er is een fout opgetreden bij het zoeken.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Czas</string>
<string name="msg_default_type">Typ</string>
<string name="msg_encode_contents_failed">Nie można zakodować kodu paskowego z dostarczonych danych.</string>
<string name="msg_error">Błąd</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Przepraszamy, żadana aplikacja nie może zostać uruchomiona. Zawartość kodu paskowego może być nieprawidłowa.</string>
<string name="msg_invalid_value">Nieprawidłowa wartość</string>
<string name="msg_redirect">Przekierowanie</string>
<string name="msg_sbc_book_not_searchable">Przepraszamy, ta książka nie jest przeszukiwalna.</string>
<string name="msg_sbc_failed">Przepraszamy, wyszukiwania napotkało problem.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Tempo</string>
<string name="msg_default_type">Tipo</string>
<string name="msg_encode_contents_failed">Não foi possível codificar o código de barradas apartir dos dados fornecidos.</string>
<string name="msg_error">Erro</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Desculpe, a aplicação solicitada não pode ser iniciada. O conteúdo do código de barras poderá ser inválido.</string>
<string name="msg_invalid_value">Valor inválido</string>
<string name="msg_redirect">Redirecionar</string>
<string name="msg_sbc_book_not_searchable">Desculpe, este livro não é pesquisável.</string>
<string name="msg_sbc_failed">Desculpe, foi encontrado um erro na pesquisa.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -47,8 +47,8 @@
<string name="contents_phone">Telefon</string>
<string name="contents_sms">Număr de SMS</string>
<string name="contents_text">Text</string>
<string name="history_clear_text">Șterge istoricul</string>
<string name="history_clear_one_history_text">Șterge</string>
<string name="history_clear_text">Șterge istoricul</string>
<string name="history_email_title">Istoric Barcode Scanner</string>
<string name="history_empty">Nicio înregistare</string>
<string name="history_empty_detail">Nicio scanare de coduri de bară nu a fost înregistrată</string>
@ -69,9 +69,11 @@
<string name="msg_default_time">Ora</string>
<string name="msg_default_type">Tip</string>
<string name="msg_encode_contents_failed">Codificare eșuată a codului de bare, din datele furnizate</string>
<string name="msg_error">Eroare</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Aplicația solicitată nu a putut fi lansată. Codul de bare poate fi incorect.</string>
<string name="msg_invalid_value">Valoare nevalidă</string>
<string name="msg_redirect">Redirecționare</string>
<string name="msg_sbc_book_not_searchable">Cartea nu poate fi căutată</string>
<string name="msg_sbc_failed">Căutarea a întâmpinat probleme</string>
@ -103,14 +105,14 @@
<string name="preferences_disable_continuous_focus_title">Dezactivează focalizarea continuă</string>
<string name="preferences_disable_exposure_title">Nicio expunere</string>
<string name="preferences_disable_metering_title">Nicio contorizare</string>
<string name="preferences_front_light_summary">Îmbunătățește scanarea în lumină redusă, dar poate cauza strălucire excesivă. Nu funcționează la toate aparatele.</string>
<string name="preferences_front_light_title">Folosește lumina frontală</string>
<string name="preferences_front_light_auto">Iluminare automată</string>
<string name="preferences_front_light_off">Oprește</string>
<string name="preferences_front_light_on">Pornește</string>
<string name="preferences_front_light_summary">Îmbunătățește scanarea în lumină redusă, dar poate cauza strălucire excesivă. Nu funcționează la toate aparatele.</string>
<string name="preferences_front_light_title">Folosește lumina frontală</string>
<string name="preferences_general_title">Configurări generale</string>
<string name="preferences_invert_scan_summary">Scanează coduri de bară albe pe fundal negru. Indisponibil pe unele aparate.</string>
<string name="preferences_invert_scan_title">Scanare în negativ</string>
<string name="preferences_invert_scan_summary">Scanează coduri de bară albe pe fundal negru. Indisponibil pe unele aparate.</string>
<string name="preferences_name">Configurări</string>
<string name="preferences_play_beep_title">Sună</string>
<string name="preferences_remember_duplicates_summary">Înregistrează în Istoric, scanări multiple ale aceluiași cod de bare</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Время</string>
<string name="msg_default_type">Тип</string>
<string name="msg_encode_contents_failed">Невозможно создать штрих-код из текущих данных.</string>
<string name="msg_error">Ошибка</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">К сожалению, запрошенное приложение не может быть запущенно. Возможно, содержимое штрих-кода повреждено.</string>
<string name="msg_invalid_value">Неверное значение</string>
<string name="msg_redirect">Переслать</string>
<string name="msg_sbc_book_not_searchable">К сожалению, поиск книги не удался.</string>
<string name="msg_sbc_failed">К сожалению, возникла ошибка поиска.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Čas</string>
<string name="msg_default_type">Typ</string>
<string name="msg_encode_contents_failed">Nie je možné zakódovať čiarový kód z poskytnutých údajov.</string>
<string name="msg_error">Chyba</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Ospravedlňujeme sa, požadovaná aplikácia nemohla byť spustená. Obsah čiarového kódu je možno neplatný.</string>
<string name="msg_invalid_value">Neplatná hodnota</string>
<string name="msg_redirect">Presmerovať</string>
<string name="msg_sbc_book_not_searchable">Ospravedlňujeme sa, táto kniha nie je prehliadateľná.</string>
<string name="msg_sbc_failed">Ospravedlňujeme sa, vyhľadávanie narazilo na problém.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Čas</string>
<string name="msg_default_type">Tip</string>
<string name="msg_encode_contents_failed">Ni bilo mogoče narediti črtne kode iz podanih podatkov</string>
<string name="msg_error">Napaka</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Oprostite, zahtevana aplikacija se ne more zagnati. Lahko da gre za napačno vsebino črtne kode.</string>
<string name="msg_invalid_value">Neveljavna vrednost</string>
<string name="msg_redirect">Preusmeritev</string>
<string name="msg_sbc_book_not_searchable">Oprostite, po tej knjigi se ne da iskati.</string>
<string name="msg_sbc_failed">Oprostite, iskanje je naletelo na napako.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Tid</string>
<string name="msg_default_type">Typ</string>
<string name="msg_encode_contents_failed">Det gick inte att avkoda en streckkod från den erhållna informationen.</string>
<string name="msg_error">Fel</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Den begärda applikationen kunde tyvärr inte startas. Streckkodens innehåll kan vara ogiltigt.</string>
<string name="msg_invalid_value">Ogiltigt värde</string>
<string name="msg_redirect">Omdirigering</string>
<string name="msg_sbc_book_not_searchable">Den här boken är tyvärr inte sökbar.</string>
<string name="msg_sbc_failed">Det uppstod tyvärr ett fel vid sökning. </string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Süre</string>
<string name="msg_default_type">Tür</string>
<string name="msg_encode_contents_failed">Sağlanan verilerden bir barkod kodlanamadı.</string>
<string name="msg_error">Hata</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Üzgünüz, istenen uygulama başlatılamadı. Barkod içeriği geçersiz olabilir.</string>
<string name="msg_invalid_value">Geçersiz değer</string>
<string name="msg_redirect">Yönlendirme</string>
<string name="msg_sbc_book_not_searchable">Üzgünüz, bu kitapla ilgili arama yapılamıyor.</string>
<string name="msg_sbc_failed">Üzgünüz, arama esnasında bir sorun oluştu.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Час</string>
<string name="msg_default_type">Тип</string>
<string name="msg_encode_contents_failed">Неможливо створити штрих-код з наданих даних.</string>
<string name="msg_error">Помилка</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Нажаль, неможливо запустити дану програму. Можливо, вміст штрих-коду пошкоджено.</string>
<string name="msg_invalid_value">Некоректна</string>
<string name="msg_redirect">Переслати</string>
<string name="msg_sbc_book_not_searchable">Нажаль, пошук книги був невдалим.</string>
<string name="msg_sbc_failed">Нажаль, виникла помилка пошуку.</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">时间</string>
<string name="msg_default_type">类型</string>
<string name="msg_encode_contents_failed">无法根据已有数据生成条码。 </string>
<string name="msg_error">错误</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">抱歉,无法打开所需软件。 条码内容可能无效。</string>
<string name="msg_invalid_value">值无效</string>
<string name="msg_redirect">重定向</string>
<string name="msg_sbc_book_not_searchable">抱歉,无法找到此图书。</string>
<string name="msg_sbc_failed">抱歉,搜索时遇到错误。</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">時間</string>
<string name="msg_default_type">類型</string>
<string name="msg_encode_contents_failed">無法讀取條碼。</string>
<string name="msg_error">錯誤</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">抱歉,無法打開所需軟體,條碼內容可能不符規格。</string>
<string name="msg_invalid_value">值無效</string>
<string name="msg_redirect">重定向</string>
<string name="msg_sbc_book_not_searchable">無法找到此圖書。</string>
<string name="msg_sbc_failed">搜尋時發生錯誤。</string>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2010 ZXing authors
Copyright (C) 2014 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -69,9 +69,11 @@
<string name="msg_default_time">Time</string>
<string name="msg_default_type">Type</string>
<string name="msg_encode_contents_failed">Could not encode a barcode from the data provided.</string>
<string name="msg_error">Error</string>
<string name="msg_google_books">Google</string>
<string name="msg_google_product">Google</string>
<string name="msg_intent_failed">Sorry, the requested application could not be launched. The barcode contents may be invalid.</string>
<string name="msg_invalid_value">Invalid value</string>
<string name="msg_redirect">Redirect</string>
<string name="msg_sbc_book_not_searchable">Sorry, this book is not searchable.</string>
<string name="msg_sbc_failed">Sorry, the search encountered a problem.</string>

View file

@ -16,12 +16,17 @@
package com.google.zxing.client.android;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collection;
import android.app.AlertDialog;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.EditTextPreference;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.PreferenceScreen;
@ -46,6 +51,10 @@ public final class PreferencesFragment
PreferencesActivity.KEY_DECODE_AZTEC,
PreferencesActivity.KEY_DECODE_PDF417);
disableLastCheckedPref();
EditTextPreference customProductSearch = (EditTextPreference)
preferences.findPreference(PreferencesActivity.KEY_CUSTOM_PRODUCT_SEARCH);
customProductSearch.setOnPreferenceChangeListener(new CustomSearchURLValidator());
}
private static CheckBoxPreference[] findDecodePrefs(PreferenceScreen preferences, String... keys) {
@ -74,4 +83,38 @@ public final class PreferencesFragment
}
}
private class CustomSearchURLValidator implements Preference.OnPreferenceChangeListener {
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
if (!isValid(newValue)) {
AlertDialog.Builder builder =
new AlertDialog.Builder(PreferencesFragment.this.getActivity());
builder.setTitle(R.string.msg_error);
builder.setMessage(R.string.msg_invalid_value);
builder.setCancelable(true);
builder.show();
return false;
}
return true;
}
private boolean isValid(Object newValue) {
// Allow empty/null value
if (newValue == null) {
return true;
}
String valueString = newValue.toString();
if (valueString.isEmpty()) {
return true;
}
// Require a scheme otherwise:
try {
URI uri = new URI(valueString);
return uri.getScheme() != null;
} catch (URISyntaxException use) {
return false;
}
}
}
}