← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1778189] Re: Certain panels showing incorrect page heading for non-en-US languages

 

Fixed by https://review.opendev.org/c/openstack/horizon/+/696321

** Changed in: horizon
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1778189

Title:
  Certain panels showing incorrect page heading for non-en-US languages

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Version: 13.0.1 Queens

  When accessing one of the "Images", "Roles", or "Key Pairs" panels,
  the page heading is displayed as "m", "o", or "e" respectively when
  the Accept-Language header is "en-GB" rather than "en" or "en-US". I'm
  not familiar with the Horizon codebase, but it appears that this is
  due to the following code execution path being taken for these panels
  but not others:

  ctrl.pageName = ctrl.resourceType.getName();

  Source: horizon/static/framework/widgets/panel/hz-resource-
  panel.controller.js

  This results in a call (for the Images panel for example) to
  django.ngettext("Image", "Images"), which returns the second letter
  "m". This doesn't happen for the "en" or "en-US" languages because no
  translation dictionary is used. I believe this will occur for any
  language which has a translation mapping for these panel titles.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1778189/+subscriptions


References