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

Error when translations work when setting the default language #23710

Closed
2 tasks done
AndVK opened this issue Apr 17, 2023 · 2 comments
Closed
2 tasks done

Error when translations work when setting the default language #23710

AndVK opened this issue Apr 17, 2023 · 2 comments
Labels
#bug Bug report

Comments

@AndVK
Copy link
Contributor

AndVK commented Apr 17, 2023

Hi,

If you set another default language (for example, Russian), then when you switch to English, some menu items are not translated.

How to reproduce the bug

  1. Set the following options in config.py
BABEL_DEFAULT_LOCALE = "ru"
# Your application default translation path
BABEL_DEFAULT_FOLDER = "superset/translations"
# Turning off i18n by default as translation in most languages are
# incomplete and not well maintained.
LANGUAGES = {
    "ru": {"flag": "ru", "name": "Russian"},
    "en": {"flag": "us", "name": "English"},
}
  1. Login to the app
    Make sure the default language is applied
    image

  2. Switch language to English
    image

Expected results

The entire interface is translated into English

Actual results

Some of the menu items were not translated into English.
message files contain all relevant translations.
If you return the default English language, then all pages are translated correctly!
image

Environment

  • browser type and version: Google Chrome 110.0.5481.177
  • superset version: superset version 2.0.1
  • python version: python --version 3.10.0
  • node.js version: node -v v14.19.3
  • any feature flags active:
FEATURE_FLAGS = {
    "TAGGING_SYSTEM": True,
    "LISTVIEWS_DEFAULT_CARD_VIEW": True,
    "DASHBOARD_NATIVE_FILTERS_SET": True,
    "DASHBOARD_CROSS_FILTERS": True,
    "ENABLE_EXPLORE_DRAG_AND_DROP": True,
    "OMNIBAR": True,
    "ENABLE_TEMPLATE_PROCESSING": True,
    "ENABLE_TEMPLATE_REMOVE_FILTERS": True,
    "GENERIC_CHART_AXES": True,
    "DASHBOARD_RBAC": True,
}

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

The same problem was described in the issue #19431. But I didn't find a solution for it.
All compilations are done according to the documentation

Thanks in advance,
Andrew

@AndVK AndVK added the #bug Bug report label Apr 17, 2023
@rusackas
Copy link
Member

I'm not sure if this is still an issue in current versions of Superset (3.x). If it is, we can re-open this, or feel free to open a new issue with updated context and a reproducible case using example data. We're no longer supporting Superset 2.x or prior, and it's been a while since this thread saw any activity, so I'm closing this as stale.

@AndVK
Copy link
Contributor Author

AndVK commented Feb 28, 2024

@rusackas, the problem was resolved by updating the Superset to version (3.x)

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

No branches or pull requests

2 participants