Skip to content

Commit

Permalink
Extensions: add link on how to develop one
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Feb 29, 2024
1 parent 8a67eb6 commit 1ef4574
Show file tree
Hide file tree
Showing 41 changed files with 51 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,14 @@ class ExtensionsConfigurationFragment : Fragment() {
// list of installed, but disabled extensions
for (i in disabledExtensions.indices) {
val extension = disabledExtensions[i]
menu.add(Menu.NONE, i + 1, Menu.NONE, extension.label)
menu.add(Menu.NONE, i + 2, Menu.NONE, extension.label)
}
// no third-party extensions supported on Amazon app store for now
if (!Utils.isAmazonVersion()) {
// link to get more extensions
menu.add(Menu.NONE, 0, Menu.NONE, R.string.action_extensions_search)
}
menu.add(Menu.NONE, 1, Menu.NONE, R.string.action_extensions_develop)
popupMenu.setOnMenuItemClickListener { item: MenuItem ->
if (item.itemId == 0) {
// special item: search for more extensions
Expand All @@ -268,9 +269,17 @@ class ExtensionsConfigurationFragment : Fragment() {
)
return@setOnMenuItemClickListener true
}
if (item.itemId == 1) {
// special item: develop an extension link
WebTools.openInApp(
requireContext(),
getString(R.string.url_extensions_develop)
)
return@setOnMenuItemClickListener true
}

// add to enabled extensions
val extension = disabledExtensions[item.itemId - 1]
val extension = disabledExtensions[item.itemId - 2]
enabledNames?.add(extension.componentName)
saveExtensions()
// scroll to end of list
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@
<string name="action_extensions_configure">تخصيص الإضافات</string>
<string name="action_extensions_add">إضافة ملحق</string>
<string name="action_extensions_search">المزيد من الإضافات</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">إزالة</string>
<string name="extension_amazon">البحث في أمازون</string>
<string name="description_extension_amazon">البحث المحلي بواسطة موقع أمازون</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-bg/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Персонализиране на разширения</string>
<string name="action_extensions_add">Добави разширение</string>
<string name="action_extensions_search">Вземи още разширения</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Премахване</string>
<string name="extension_amazon">Търсене в Amazon</string>
<string name="description_extension_amazon">Търси във вашия локален Amazon сайт</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Personalitzeu extensions</string>
<string name="action_extensions_add">Afegeix extensió</string>
<string name="action_extensions_search">Obtén més extensions</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Elimina</string>
<string name="extension_amazon">Cerca a Amazon</string>
<string name="description_extension_amazon">Cerqueu al vostre Amazon local</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
<string name="action_extensions_configure">Přispůsobit rozšíření</string>
<string name="action_extensions_add">Přidat rozšíření</string>
<string name="action_extensions_search">Získat další rozšíření</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Odstranit</string>
<string name="extension_amazon">Vyhledat na Amazonu</string>
<string name="description_extension_amazon">Vyhledávání na místní síti Amazonu</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-cy/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@
<string name="action_extensions_configure">Addasu estyniadau</string>
<string name="action_extensions_add">Ychwanegu estyniad</string>
<string name="action_extensions_search">Cael mwy o estyniadau</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Tynnu</string>
<string name="extension_amazon">Chwiliad Amazon</string>
<string name="description_extension_amazon">Chwiliwch eich gwefan Amazon leol</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-da/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Tilpas udvidelser</string>
<string name="action_extensions_add">Tilføj udvidelse</string>
<string name="action_extensions_search">Hent flere udvidelser</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Fjern</string>
<string name="extension_amazon">Amazon-søgning</string>
<string name="description_extension_amazon">Søg på dit lokale Amazon-websted</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Erweiterungen anpassen</string>
<string name="action_extensions_add">Erweiterung hinzufügen</string>
<string name="action_extensions_search">Mehr Erweiterungen</string>
<string name="action_extensions_develop">Erweiterung entwickeln</string>
<string name="action_extension_remove">Entfernen</string>
<string name="extension_amazon">Amazon-Suche</string>
<string name="description_extension_amazon">Suchen Sie auf Ihrer lokalen Amazon-Seite</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Προσαρμοσμένες επεκτάσεις</string>
<string name="action_extensions_add">Προσθήκη επέκταση</string>
<string name="action_extensions_search">Λήψη περισσότερων επεκτάσεων</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Αφαίρεση</string>
<string name="extension_amazon">Αναζήτηση στο Amazon</string>
<string name="description_extension_amazon">Ψάξτε στον τοπικό σας ιστότοπο Amazon</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-eo/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Adapti aldonaĵoj</string>
<string name="action_extensions_add">Aldoni aldonaĵon</string>
<string name="action_extensions_search">Akiri pli da aldonaĵoj</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Forigi</string>
<string name="extension_amazon">Serĉi je Amazon</string>
<string name="description_extension_amazon">Traserĉi vian lokalan Amazonan retejon.</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ Asegúrate de quitarla también en tus otros dispositivos conectados.</string>
<string name="action_extensions_configure">Personalizar extensiones</string>
<string name="action_extensions_add">Agregar extensión</string>
<string name="action_extensions_search">Obtén más extensiones</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Eliminar</string>
<string name="extension_amazon">Búsqueda en Amazon</string>
<string name="description_extension_amazon">Buscar en la pagina local de Amazon</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-fa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">سفارشی سازی افزونه‌ها</string>
<string name="action_extensions_add">افزودن افزونه‌ها</string>
<string name="action_extensions_search">گرفتن افزونه‌های بیش‌تر</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">حدف</string>
<string name="extension_amazon">جست‌وجوی آمازون</string>
<string name="description_extension_amazon">جست‌وجو در پایگاه آمازون محلّی‌تان</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Muokkaa laajennuksia</string>
<string name="action_extensions_add">Lisää laajennus</string>
<string name="action_extensions_search">Hanki lisää laajennuksia</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Poista</string>
<string name="extension_amazon">Amazon-haku</string>
<string name="description_extension_amazon">Etsi paikalliselta Amazon-sivustoltasi</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Personnaliser les extensions</string>
<string name="action_extensions_add">Ajouter une extension</string>
<string name="action_extensions_search">Obtenir plus d\'extensions</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Supprimer</string>
<string name="extension_amazon">Recherche Amazon</string>
<string name="description_extension_amazon">Rechercher sur votre site Amazon local</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-gl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Personalizar extensións</string>
<string name="action_extensions_add">Engadir extensión</string>
<string name="action_extensions_search">Obter máis extensións</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Eliminar</string>
<string name="extension_amazon">Buscar en Amazon</string>
<string name="description_extension_amazon">Buscar na túa páxina local de Amazon</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-hr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="action_extensions_configure">Prilagodi proširenja</string>
<string name="action_extensions_add">Dodavanje proširenja</string>
<string name="action_extensions_search">Nabavi više proširenja</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Izbriši</string>
<string name="extension_amazon">Amazon pretraživanje</string>
<string name="description_extension_amazon">Pretraži lokalnu Amazon stranicu</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-hu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Kiegészítők testreszabása</string>
<string name="action_extensions_add">Kiegészítő hozzáadása</string>
<string name="action_extensions_search">További bővítmények</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Törlés</string>
<string name="extension_amazon">Keresés az Amazonon</string>
<string name="description_extension_amazon">Keresés az Amazon helyi oldalán</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-in/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@
<string name="action_extensions_configure">Sesuaikan ekstensi</string>
<string name="action_extensions_add">Tambah ekstensi</string>
<string name="action_extensions_search">Dapatkan ekstensi lainnya</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Hapus</string>
<string name="extension_amazon">Pencarian amazon</string>
<string name="description_extension_amazon">Cari di situs Amazon lokal anda</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Personalizza le estensioni</string>
<string name="action_extensions_add">Aggiungi estensione</string>
<string name="action_extensions_search">Ottieni più estensioni</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Rimuovi</string>
<string name="extension_amazon">Ricerca su Amazon</string>
<string name="description_extension_amazon">Cerca sul sito Amazon</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-iw/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
<string name="action_extensions_configure">התאמת תוספים</string>
<string name="action_extensions_add">הוספת תוסף</string>
<string name="action_extensions_search">חפש תוספים נוספים</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">הסר</string>
<string name="extension_amazon">חפש באמזון</string>
<string name="description_extension_amazon">חפש באתר אמזון המקומי שלך</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@
<string name="action_extensions_configure">拡張機能をカスタマイズ</string>
<string name="action_extensions_add">拡張機能を追加</string>
<string name="action_extensions_search">さらに拡張機能を入手</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">削除</string>
<string name="extension_amazon">Amazon 検索</string>
<string name="description_extension_amazon">ローカルの Amazon サイトを検索します</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@
<string name="action_extensions_configure">확장프로그램 커스터마이즈</string>
<string name="action_extensions_add">확장프로그램 추가</string>
<string name="action_extensions_search">더 많은 확장프로그램 획득</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">삭제</string>
<string name="extension_amazon">아마존 검색</string>
<string name="description_extension_amazon">로컬 아마존 사이트 검색</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-mk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Прилагоди екстензија</string>
<string name="action_extensions_add">Додај екстензија</string>
<string name="action_extensions_search">Земи повеќе екстензии</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Избриши</string>
<string name="extension_amazon">Amazon search</string>
<string name="description_extension_amazon">Пребарај локален Amazon сајт</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-nb/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Tilpass utvidelser</string>
<string name="action_extensions_add">Legg til utvidelse</string>
<string name="action_extensions_search">Få flere utvidelser</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Fjern</string>
<string name="extension_amazon">Amazon søk</string>
<string name="description_extension_amazon">Søk på din lokale Amazon nettside</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Extensies aanpassen</string>
<string name="action_extensions_add">Extensie toevoegen</string>
<string name="action_extensions_search">Meer extensies zoeken</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Verwijderen</string>
<string name="extension_amazon">Zoeken op Amazon</string>
<string name="description_extension_amazon">Zoek op uw lokale Amazon-site</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
<string name="action_extensions_configure">Dostosuj rozszerzenia</string>
<string name="action_extensions_add">Dodaj rozszerzenia</string>
<string name="action_extensions_search">Pobierz więcej rozszerzeń</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Usuń</string>
<string name="extension_amazon">Wyszukiwanie na Amazon</string>
<string name="description_extension_amazon">Szukaj na lokalnej witrynie Amazon</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Personalizar extensões</string>
<string name="action_extensions_add">Adicionar extensão</string>
<string name="action_extensions_search">Obtenha mais extensões</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Remover</string>
<string name="extension_amazon">Pesquisar na Amazon</string>
<string name="description_extension_amazon">Pesquisar na Amazon local</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-pt-rPT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Personalizar extensões</string>
<string name="action_extensions_add">Adicionar extensão</string>
<string name="action_extensions_search">Obter mais extensões</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Remover</string>
<string name="extension_amazon">Pesquisa na Amazon</string>
<string name="description_extension_amazon">Pesquisa na Amazon do teu país</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ro/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="action_extensions_configure">Personalizează extensile</string>
<string name="action_extensions_add">Adaugă extensie</string>
<string name="action_extensions_search">Optineți mai multe extensii</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Ștergeți</string>
<string name="extension_amazon">Căutare pe Amazon</string>
<string name="description_extension_amazon">Căutați pe site-ul local Amazon</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
<string name="action_extensions_configure">Настроить расширения</string>
<string name="action_extensions_add">Добавить расширение</string>
<string name="action_extensions_search">Получить больше расширений</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Удалить</string>
<string name="extension_amazon">Поиск Amazon</string>
<string name="description_extension_amazon">Поиск в локальной версии Amazon</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-sk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
<string name="action_extensions_configure">Upraviť rozšírenia</string>
<string name="action_extensions_add">Pridať rozšírenie</string>
<string name="action_extensions_search">Získať viac rozšírení</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Odstrániť</string>
<string name="extension_amazon">Hľadať na Amazon</string>
<string name="description_extension_amazon">Hľadať na Amazone</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-sr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="action_extensions_configure">Подеси додатке</string>
<string name="action_extensions_add">Додај додатак</string>
<string name="action_extensions_search">Набави још додатака</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Уклони</string>
<string name="extension_amazon">Претрага на Amazon-у</string>
<string name="description_extension_amazon">Претражи локални Аmazon сајт</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-sv/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<string name="action_extensions_configure">Anpassa tillägg</string>
<string name="action_extensions_add">Lägg till tillägg</string>
<string name="action_extensions_search">Skaffa fler tillägg</string>
<string name="action_extensions_develop">Develop an extension</string>
<string name="action_extension_remove">Ta bort</string>
<string name="extension_amazon">Amazon sökning</string>
<string name="description_extension_amazon">Sök på din lokala Amazon\'s webbplats</string>
Expand Down
Loading

0 comments on commit 1ef4574

Please sign in to comment.