Fix minor typo

This commit is contained in:
Frank Steinborn 2021-10-18 00:25:04 +02:00 committed by fguillot
parent 87d58987a6
commit 2dcabc840c
4 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ func (r *Response) String() string {
) )
} }
// IsNotFound returns true if the resource doesn't exists anymore. // IsNotFound returns true if the resource doesn't exist anymore.
func (r *Response) IsNotFound() bool { func (r *Response) IsNotFound() bool {
return r.StatusCode == 404 || r.StatusCode == 410 return r.StatusCode == 404 || r.StatusCode == 410
} }

View File

@ -380,5 +380,5 @@
"Website unreachable, the request timed out after %d seconds": "Webseite nicht erreichbar, die Anfrage endete nach %d Sekunden", "Website unreachable, the request timed out after %d seconds": "Webseite nicht erreichbar, die Anfrage endete nach %d Sekunden",
"You are not authorized to access this resource (invalid username/password)": "Sie sind nicht berechtigt, auf diese Ressource zuzugreifen (Benutzername/Passwort ungültig)", "You are not authorized to access this resource (invalid username/password)": "Sie sind nicht berechtigt, auf diese Ressource zuzugreifen (Benutzername/Passwort ungültig)",
"Unable to fetch this resource (Status Code = %d)": "Ressource konnte nicht abgerufen werden (code=%d)", "Unable to fetch this resource (Status Code = %d)": "Ressource konnte nicht abgerufen werden (code=%d)",
"Resource not found (404), this feed doesn't exists anymore, check the feed URL": "Ressource nicht gefunden (404), dieses Abonnement existiert nicht mehr, überprüfen Sie die Abonnement-URL" "Resource not found (404), this feed doesn't exist anymore, check the feed URL": "Ressource nicht gefunden (404), dieses Abonnement existiert nicht mehr, überprüfen Sie die Abonnement-URL"
} }

View File

@ -380,5 +380,5 @@
"Website unreachable, the request timed out after %d seconds": "Site web injoignable, la requête à échouée après %d secondes", "Website unreachable, the request timed out after %d seconds": "Site web injoignable, la requête à échouée après %d secondes",
"You are not authorized to access this resource (invalid username/password)": "Vous n'êtes pas autorisé à accéder à cette ressource (nom d'utilisateur / mot de passe incorrect)", "You are not authorized to access this resource (invalid username/password)": "Vous n'êtes pas autorisé à accéder à cette ressource (nom d'utilisateur / mot de passe incorrect)",
"Unable to fetch this resource (Status Code = %d)": "Impossible de récupérer cette ressource (code=%d)", "Unable to fetch this resource (Status Code = %d)": "Impossible de récupérer cette ressource (code=%d)",
"Resource not found (404), this feed doesn't exists anymore, check the feed URL": "Page introuvable (404), cet abonnement n'existe plus, vérifiez l'adresse du flux" "Resource not found (404), this feed doesn't exist anymore, check the feed URL": "Page introuvable (404), cet abonnement n'existe plus, vérifiez l'adresse du flux"
} }

View File

@ -14,7 +14,7 @@ var (
errServerFailure = "Unable to fetch this resource (Status Code = %d)" errServerFailure = "Unable to fetch this resource (Status Code = %d)"
errEncoding = "Unable to normalize encoding: %q" errEncoding = "Unable to normalize encoding: %q"
errEmptyFeed = "This feed is empty" errEmptyFeed = "This feed is empty"
errResourceNotFound = "Resource not found (404), this feed doesn't exists anymore, check the feed URL" errResourceNotFound = "Resource not found (404), this feed doesn't exist anymore, check the feed URL"
errNotAuthorized = "You are not authorized to access this resource (invalid username/password)" errNotAuthorized = "You are not authorized to access this resource (invalid username/password)"
) )