Project

General

Profile

Actions

Bug #3828

closed

API messages and error responses not in English

Added by Dominic Cleal about 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The error responses from the API are often shown in languages other than English, seemingly random. For example:

Started POST "/api/smart_proxies" for 10.35.160.133 at 2013-12-05
17:01:27 +0200
Processing by Api::V1::SmartProxiesController#create as JSON
   Parameters:
{"smart_proxy"=>{"url"=>"https://example.redhat.com:9090",
"name"=>"example.redhat.com"}}
Authorized user admin(Admin User)
Unprocessable entity SmartProxy (id: new):
   No ha sido posible establecer una comunicación con el proxy:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
certificate verify failed
   Por favor, comprueba que el proxy está configurado y ejecutándose en
el equipo

I suspect we're not initialising the current locale correctly in the API controllers, while we do in the UI controllers based on the user.

(https://bugzilla.redhat.com/show_bug.cgi?id=1039011)


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #6824: Internationalization does not work when setting the preferences to use the Browser localeRejectedChristine Fouant07/29/2014Actions
Actions #1

Updated by Dominic Cleal almost 11 years ago

  • Target version set to 1.9.2
Actions #2

Updated by Joseph Magen almost 11 years ago

  • Status changed from New to Assigned
  • Assignee set to Joseph Magen
Actions #3

Updated by Joseph Magen almost 11 years ago

  • Status changed from Assigned to Ready For Testing
Actions #4

Updated by Dominic Cleal almost 11 years ago

  • Translation missing: en.field_release set to 2
Actions #5

Updated by Anonymous almost 11 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Lukas Zapletal over 10 years ago

  • Related to Bug #6824: Internationalization does not work when setting the preferences to use the Browser locale added
Actions

Also available in: Atom PDF