Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some strings in the Management web UI are shown as placeholders #1510

Closed
tobiasvl opened this issue Sep 21, 2018 · 11 comments
Closed

Some strings in the Management web UI are shown as placeholders #1510

tobiasvl opened this issue Sep 21, 2018 · 11 comments

Comments

@tobiasvl
Copy link

tobiasvl commented Sep 21, 2018

Expected Behavior

All strings in the Management web UI should be translated and not be displayed as placeholder strings.

Current Behavior

Some strings are displayed erroneously as placeholders. An example is the "Subscribe" page:

image

The HTML element for the H1 title looks like this in the source:

<h1 translate="api.subscription.step1.title" class="ng-scope">api.subscription.step1.title</h1>

This occurs in our setup of both Gravitee 1.13.3 (pictured above) and 1.18.3 (which we just tested to see if it was fixed).

Possible Solution

Steps to Reproduce (for bugs)

  1. Go to API Gallery
  2. Select an API
  3. Click "Subscribe"
  4. Select a plan

Context

Looks like some localization gone awry?

I have no idea if this is a Gravitee bug or an error in our configuration.

Your Environment

  • Version used: 1.13.3 / 1.18.3
  • Browser Name and version: Chrome 68.0.3440.106
  • Operating System and version: Windows 10 / Fedora 28
@NicolasGeraud
Copy link
Member

hi @tobiasvl ,
what are the languages configured in your browser ?

@tobiasvl
Copy link
Author

@NicolasGeraud Good question. My main browser language was Norwegian. I just changed it to English, though, and experience the same issues. (Other people on my team, with different browsers and probably different languages configured in them, are also experiencing the same issues.)

@NicolasGeraud
Copy link
Member

same behavior on https://demo.gravitee.io ?

@NicolasGeraud
Copy link
Member

because I've just tried on the demo with chrome and only one language configured (norvégien bokmål) and the fallback to English works well

@tobiasvl
Copy link
Author

The demo works fine for me. I assume there's something in our setup then... But I have no idea what could cause the fallback to not work (or fall back to the placeholder strings). Are there any configuration options here I'm not aware of?

@brasseld
Copy link
Member

Perhaps your installation is overriding default translation files ?
An other option would be a cache problem ?

@NicolasGeraud
Copy link
Member

can you reload your gravitee homepage ? you should see something like this :
capture d ecran 2018-09-21 14 20 54

@tobiasvl
Copy link
Author

I'm not seeing any request for nb.json, so maybe it's not using my browser language after all.

en.json is successful though.

image

@NicolasGeraud
Copy link
Member

i just try to connect to https://api.uio.no/ with a chrome with only norvegian language and my devtools show this :

capture d ecran 2018-09-21 14 48 30

can you share your browser languages ?

@NicolasGeraud
Copy link
Member

ok, as @brasseld told you, you have probably overriden the translations.
Compare your en.json (https://api.uio.no/portal/i18n/en.json) and the official one in release 1.13.3 (https://raw.githubusercontent.com/gravitee-io/gravitee-management-webui/1.13.3/src/portal/i18n/en.json)

@tobiasvl
Copy link
Author

All right, perfect! Thanks a lot, I'll look into what has happened here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants