Project

General

Profile

Actions

Bug #10662

closed

Foreman apidoc index shows mixed language translations

Added by Xavier Naveira almost 9 years ago. Updated over 5 years ago.

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

Description

Tested on Foreman 1.8.0 api v2 with firefox and chrome.

The api shows asian characters when using JSONView plugin.

Example: http://imgur.com/LkPjNXs

Actions #1

Updated by Xavier Naveira almost 9 years ago

This issue presents itself when querying the api root page: https://foreman.domain.ext/api/v2/

Actions #2

Updated by Dominic Cleal almost 9 years ago

  • Subject changed from Foreman api output shows asian characters when using JSONView plugin to Foreman apidoc index shows mixed language translations

I suspect the locale isn't initialised properly from within the apipie-rails controller, as we normally do it in a before_filter on our own controllers.

Also I see this on http://foreman.example.com/apidoc/v2.html which I suppose ought to be English (there are also per-language pages).

Actions #3

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal
Actions #4

Updated by The Foreman Bot about 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3212 added
Actions #5

Updated by Dominic Cleal about 8 years ago

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

Updated by Dominic Cleal about 8 years ago

  • translation missing: en.field_release set to 71
Actions

Also available in: Atom PDF