https://bz.apache.org/bugzilla/show_bug.cgi?id=66616
Bug ID: 66616 Summary: French: Misleading HTTP 401 error description ("La requête nécessite une authentification HTTP.") Product: Tomcat 10 Version: 10.1.9 Hardware: All OS: All Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: chea...@gmail.com Target Milestone: ------ When a resource requires HTTP auth, Tomcat understandably returns an HTTP 401 status code. In French, the result is the following when no credentials are provided: > État HTTP 401 – Non autorisé > Type Rapport d'état > description La requête nécessite une authentification HTTP. > Apache Tomcat/8.5.85 While the sentence may not be valid/clear, one understands that credentials are missing. Unfortunately, the result (including the description) is exactly the same no matter what caused an 401 error. This understandably causes confusion when invalid credentials are provided. This issue does not exist in English, where the description remains constant, but is vague enough to cover both situations: > The request has not been applied because it lacks valid authentication > credentials for the target resource. The French version used to correspond to the English, but did not follow after a 2017 change in r1779641: https://svn.apache.org/viewvc?view=revision&revision=1779641 One challenge is that French does not have an equivalent as clear and canonical as "login credentials" to my knowledge. One possible up-to-date translation would be: > La requête n'a pas été appliquée car elle n'a pas d'informations > d'authentification valides pour la ressource cible. However, "applying a request" does not seem valid to me, and I would rather recommend changing the English version to "has not been treated", "has not been processed" or "has not been granted", and the French translation to: > La requête n'a pas été traitée car elle n'a pas d'informations > d'authentification valides pour la ressource cible. ...or: > La requête a été refusée car elle n'a pas d'informations d'authentification > valides pour la ressource cible. This persists in the most current code: https://github.com/apache/tomcat/blob/main/java/org/apache/catalina/valves/LocalStrings_fr.properties#L53 vs https://github.com/apache/tomcat/blob/main/java/org/apache/catalina/valves/LocalStrings.properties#L55 -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org