mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-29 02:07:55 -04:00
#258 add a no search results handler for importing addons
This commit is contained in:
@@ -9,6 +9,7 @@ import { AlertDialogComponent } from "../alert-dialog/alert-dialog.component";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { roundDownloadCount, shortenDownloadCount } from "../../utils/number.utils";
|
||||
import { DownloadCountPipe } from "../../pipes/download-count.pipe";
|
||||
import { NO_SEARCH_RESULTS_ERROR } from "common/constants";
|
||||
|
||||
@Component({
|
||||
selector: "app-install-from-url-dialog",
|
||||
@@ -119,6 +120,8 @@ export class InstallFromUrlDialogComponent implements OnInit, OnDestroy {
|
||||
} else if (err.code && err.code === "EOPENBREAKER") {
|
||||
// Provider circuit breaker is open
|
||||
message = this._translateService.instant("DIALOGS.INSTALL_FROM_URL.ERROR.FAILED_TO_CONNECT");
|
||||
} else if(message === NO_SEARCH_RESULTS_ERROR){
|
||||
message = this._translateService.instant("DIALOGS.INSTALL_FROM_URL.ERROR.NO_SEARCH_RESULTS");
|
||||
}
|
||||
|
||||
this.showErrorMessage(message);
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "Beim Versuch das Addon zu installieren ist etwas schief gelaufen, bitte versuche es erneut.\n\nWenn diese Nachricht weiterhin erscheint, kannst Du auf unserem Discord im Kanal #wowup-support nach Hilfe fragen.",
|
||||
"INVALID_URL": "Die eingetragene URL ist ungültig. Beispiele für gültige URLs sind:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "Es wurde kein Addon gefunden. Stelle sicher, dass die URL zur richtigen Website führt.\n\nSolltest Du versuchen ein Addon von GitHub zu installieren, stelle sicher, dass das Repository Release-Tags mit einem ZIP-Archiv, welches das Addon enthält, besitzt.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "Installation fehlgeschlagen"
|
||||
},
|
||||
"IMPORT_BUTTON": "Importieren",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "Something went wrong when trying to install the addon, please try again.\n\nIf this message keeps showing up, you can get help on Discord in the #wowup-support channel.",
|
||||
"INVALID_URL": "The given value is not a valid URL. Examples of valid addon URLs are:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "No addon was found, make sure your URL is pointing to the correct page.\n\nWhen installing from github, please make sure the repository has a release tag with a zip archive containing the addon.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "Addon Installation Failed"
|
||||
},
|
||||
"IMPORT_BUTTON": "Import",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "Ocurrió un error al intentar instalar el addon. Por favor, inténtelo de nuevo.\n\nSi se sigue mostrando este mensaje, puede obtener ayuda en Discord en el canal #wowup-support.",
|
||||
"INVALID_URL": "El valor introducido no es una URL válida. Ejemplos de URLs válidas:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "No se encontró el addon, asegúrese de que la URL apunta a la página correcta.\n\nSi está instalando desde GitHub, asegúrese de que el repositorio tiene una release tag con un archivo zip conteniendo el addon.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "Falló la Instalación del Addon"
|
||||
},
|
||||
"IMPORT_BUTTON": "Importar",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "Une erreur s'est produite lors de la tentative d'installation de l'addon, veuillez réessayer.\n\nSi ce message persiste, vous pouvez obtenir de l'aide sur Discord dans le canal #wowup-support.",
|
||||
"INVALID_URL": "La valeure rentrée n'est pas une URL valide. Exemples d'URL valides:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "Aucun addon n'a été trouvé, assurez-vous que votre URL pointe vers la bonne page.\n\nLors de l'installation à partir de github, veuillez vous assurer que le référentiel a une balise de version avec une archive zip contenant l'addon.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "Echec de l'installation de l'addon"
|
||||
},
|
||||
"IMPORT_BUTTON": "Importer",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "Qualcosa è andato storto nell'installazione dell'addon, per favore riprovare.\n\nSe questo messaggio continua ad apparire puoi chiederci aiuto su Discord, nel canale #wowup-support.",
|
||||
"INVALID_URL": "Il valore fornito non è un URL valido. Esempi di URLs di addon validi:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "Non è stato trovato nessun addon, assicurarsi che l'URL sia corretto.\n\nSe si sta installando da GitHub, assicurarsi che la repository abbia una release tag con un file zip contenente l'addon.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "Installazione dell'Addon Fallita"
|
||||
},
|
||||
"IMPORT_BUTTON": "Importa",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "설치 실패! 뭔가 잘못됐습니다.다시 시도해주세요.\n\n이 메세지가 반복된다면, 디스코드의 #wowup-support 채널에서 도움을 요청해보세요.",
|
||||
"INVALID_URL": "URL 주소 형식이 잘못되었습니다. 올바른 애드온 주소 예제: \n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "애드온을 찾을 수 없습니다. 입력하신 주소가 올바른 애드온 페이지를 가리키고 있는지 확인해주세요.\n\nGithub에서 설치할 때는, 애드온을 zip 파일로 묶은 릴리즈 태그가 존재하는 저장소인지 확인하세요.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "애드온 설치 실패"
|
||||
},
|
||||
"IMPORT_BUTTON": "가져오기",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "Something went wrong when trying to install the addon, please try again.\n\nIf this message keeps showing up, you can get help on Discord in the #wowup-support channel.",
|
||||
"INVALID_URL": "The given value is not a valid URL. Examples of valid addon URLs are:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "No addon was found, make sure your URL is pointing to the correct page.\n\nWhen installing from github, please make sure the repository has a release tag with a zip archive containing the addon.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "Addon Installation Failed"
|
||||
},
|
||||
"IMPORT_BUTTON": "Importer",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "Algo deu errado ao tentar instalar o Addon, por favor tente novamente.\n\nSe esta mensagem continuar aparecendo, você pode conseguir ajuda no Discord no canal #wowup-support.",
|
||||
"INVALID_URL": "O valor fornecido não é uma URL válida. Exemplos de URLs de Addon válidos são:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "O Addon não foi encontrado, tenha certeza de que a URL está apontando para a página correta.\n\nQuanto estiver instalando do github, certifique-se de que o repositório possui uma tag release com um arquivo zip contendo o Addon.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "Instalação do Addon Falhou"
|
||||
},
|
||||
"IMPORT_BUTTON": "Importar",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "Что-то пошло не так при попытке установить модификацию, попытайтесь снова.\n\nЕсли это сообщение продолжает появляться, вы можете получить помощь в канале #wowup-support нашего Discord сообщества.",
|
||||
"INVALID_URL": "Введенное значение не является правильной ссылкой. Примеры правильных ссылок для модификаций:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "Модификация не была найдена, убедитесь что ваша ссылка указывает на правильную страницу.\n\nПри установке с GitHub, убедитесь, что в репозитории есть тег выпуска с zip-архивом, содержащим модификацию.",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "Установка модификации не удалась"
|
||||
},
|
||||
"IMPORT_BUTTON": "Импорт",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "安裝插件時出現了一些錯誤,請重試。\n\n如果一直出現此訊息,可以加入 Discord #wowup-support 頻道尋求幫助(英語)。",
|
||||
"INVALID_URL": "輸入的 URL 無效。有效 URL 示例:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "未找到插件,請檢查 URL 是否指向正確的頁面。\n\n從 GitHub 安裝時,請檢查是否存在帶有 zip 包的 release tag。",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "插件安裝失敗"
|
||||
},
|
||||
"IMPORT_BUTTON": "匯入",
|
||||
|
||||
@@ -126,6 +126,7 @@
|
||||
"INSTALL_FAILED": "安装插件时出现了一些错误,请重试。\n\n如果一直出现此消息,可以加入 Discord #wowup-support 频道寻求帮助(英语)。",
|
||||
"INVALID_URL": "输入的 URL 无效。有效 URL 示例:\n\t- https://github.com/teelolws/Altoholic-Retail\n\t- https://www.wowinterface.com/downloads/info25610-8.3-014.html\n\t- https://www.curseforge.com/wow/addons/altoholic",
|
||||
"NO_ADDON_FOUND": "未找到插件,请检查 URL 是否指向正确的页面。\n\n从 GitHub 安装时,请检查是否存在带有 zip 包的 release tag。",
|
||||
"NO_SEARCH_RESULTS": "No search results were found.",
|
||||
"TITLE": "插件安装失败"
|
||||
},
|
||||
"IMPORT_BUTTON": "导入",
|
||||
|
||||
Reference in New Issue
Block a user