API language settings

Hello everyone! I have come across a weird issue. In short our API json
response looks to be in German. I've tried setting the Language in my user
preferences but it doesn't look to have any effect Is there a way to change
that? Example output below:

"discovered_hosts":{"Alle entdeckten Hosts
auflisten":"/api/v2/discovered_hosts","Einen entdeckten Host
anzeigen":"/api/v2/discovered_hosts/:id","Create a discovered host for
testing (use /facts to create new hosts)":"/api/v2/discovered_hosts","Einen
entdeckten Host bereitstellen":"/api/v2/discovered_hosts/:id","Einen
entdeckten Host löschen":"/api/v2/discovered_hosts/:id","Fakten für einen
Host hochladen mit Erstellung des Hosts, wenn
erforderlich":"/api/v2/discovered_hosts/facts","Anwenden der Regeln auf
alle entdeckten
Hosts":"/api/v2/discovered_hosts/:id/auto_provision","Anwenden der Regeln
auf alle gegenwärtig entdeckten
Hosts":"/api/v2/discovered_hosts/auto_provision_all"

IIRC the user language setting doesn't affect the API, only the UI. It
should default to English though - failing that, set the
"Accept-Language: en" header and it should obey.

··· On 11/11/15 19:53, justin parker wrote: > Hello everyone! I have come across a weird issue. In short our API > json response looks to be in German. I've tried setting the Language in > my user preferences but it doesn't look to have any effect Is there a > way to change that? Example output below:


Dominic Cleal
dominic@cleal.org

> "discovered_hosts":{"Alle entdeckten Hosts
> auflisten":"/api/v2/discovered_hosts","Einen entdeckten Host
> anzeigen":"/api/v2/discovered_hosts/:id","Create a discovered host for
> testing (use /facts to create new hosts)":"/api/v2/discovered_hosts","Einen
> entdeckten Host bereitstellen":"/api/v2/discovered_hosts/:id","Einen
> entdeckten Host löschen":"/api/v2/discovered_hosts/:id","Fakten für einen
> Host hochladen mit Erstellung des Hosts, wenn
> erforderlich":"/api/v2/discovered_hosts/facts","Anwenden der Regeln auf
> alle entdeckten
> Hosts":"/api/v2/discovered_hosts/:id/auto_provision","Anwenden der Regeln
> auf alle gegenwärtig entdeckten
> Hosts":"/api/v2/discovered_hosts/auto_provision_all"

What kind of response is this one? That does look like our API metadata
(the initial hammer handshake) rather than an API call.

··· -- Later, Lukas #lzap Zapletal