mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
123 stars 53 forks source link

In specific locales, search doesn't find add-ons translated in those locales #1820

Open WaldiPL opened 4 years ago

WaldiPL commented 4 years ago

Searching for extensions does not work properly if the name is translated. The problem only occurs in some languages. I tested two extensions. Pinterest Save Button iCloud Bookmarks Search did not work in the following languages: vi, uk, sk, pl, tr, th, nb-NO, ms, he The extension can be searched using the English name. Polish website, English name Polish website, Polish name

Ukrainian website, English name Ukrainian website, Ukrainian name

The script below searches in all available languages.

var names={
    "cs":"Tlačítko Uložit na Pinterestu",
    "da":"Pinterest-knappen Gem",
    "de":"„Merken“-Button von Pinterest",
    "el":"Κουμπί «Αποθήκευση» του Pinterest",
    "en-US":"Pinterest Save Button",
    "es":"Botón Guardar de Pinterest",
    "fi":"Pinterestin tallennuspainike",
    "fr":"Bouton Enregistrer Pinterest",
    "hu":"Pinterest Mentés gomb",
    "id":"Tombol Simpan Pinterest",
    "it":"Pulsante Salva di Pinterest",
    "ja":"Pinterest 保存ボタン",
    "ko":"Pinterest 저장 버튼",
    "ms":"Butang Simpan Pinterest",
    "nb-NO":"Pinterest-lagringsknappen",
    "nl":"Pinterest-bewaarknop",
    "pa-IN":"Pinterest सेव बटन",
    "pl":"Pinterestowy przycisk Zapisz",
    "pt-BR":"Botão Salvar do Pinterest",
    "pt-PT":"Botão Guardar do Pinterest",
    "ro":"Butonul Pinterest „Salvează”",
    "ru":"Кнопка Pinterest «Сохранить»",
    "sk":"Tlačidlo Uložiť na Pintereste",
    "sv-SE":"Pinterests Spara-knapp",
    "th":"ปุ่ม บันทึก ของ Pinterest",
    "tr":"Pinterest Kaydet düğmesi",
    "uk":"Кнопка Pinterest «Зберегти»",
    "vi":"Nút Lưu của Pinterest",
    "zh-CN":"Pinterest 儲存按鈕"
};
Object.entries(names).forEach(e=>{
    window.open(`https://addons.mozilla.org/${e[0]}/firefox/search/?q=${e[1]}`); 
});    var names={
    "ar":"إشارات iCloud المرجعية",
    "ca":"Favorits de l’iCloud",
    "cs":"Záložky na iCloudu",
    "da":"iCloud-bogmærker",
    "de":"iCloud-Lesezeichen",
    "el":"Σελιδοδείκτες iCloud Bookmarks",
    "en-US":"iCloud Bookmarks",
    "es":"Favoritos de iCloud",
    "fi":"iCloud-kirjanmerkit",
    "fr":"Signets iCloud",
    "he":"סימניות iCloud",
    "hu":"iCloud-könyvjelzők",
    "id":"Penanda iCloud",
    "it":"Preferiti iCloud",
    "ja":"iCloud ブックマーク",
    "ko":"iCloud 책갈피",
    "nl":"iCloud-bladwijzers",
    "pl":"Zakładki iCloud",
    "pt-BR":"Marcadores do iCloud",
    "pt-PT":"Marcadores de iCloud",
    "ro":"Favorite iCloud",
    "ru":"Закладки iCloud",
    "sk":"iCloud Záložky",
    "sv-SE":"iCloud-bokmärken",
    "uk":"Закладки iCloud",
    "vi":"Dấu trang iCloud",
    "zh-CN":"iCloud 书签",
    "zh-TW":"iCloud 書籤"
};
Object.entries(names).forEach(e=>{
    window.open(`https://addons.mozilla.org/${e[0]}/firefox/search/?q=${e[1]}`,"_blank"); 
});

┆Issue is synchronized with this Jira Task

diox commented 4 years ago

Thanks for the report and sorry for the delay in answering this.

I think this is an issue for every locale not present in our SEARCH_ANALYZER_MAP - we don't even store the translations for which we don't have a language-specific analyzer. We should fix this by storing the translation w/ a generic analyzer instead...

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.

KevinMind commented 2 months ago

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDSRV-38