Skip to content

Chinese is missing from the language selector despite existing translation files #14589

Description

@TheStarsBlink

Current behavior

In my GeoNode deployment (current checkout reports 5.1.0 dev), the language selector does not offer Chinese, so I cannot switch the interface to Chinese through the menu.

However, my checkout includes Chinese translation files:

geonode/locale/zh/LC_MESSAGES/django.po
geonode/locale/zh/LC_MESSAGES/django.mo
geonode/locale/zh/LC_MESSAGES/djangojs.po
geonode/locale/zh/LC_MESSAGES/djangojs.mo

I also noticed that the default language definitions in geonode/settings.py include zh-cn, while the translation directory is named zh. I do not know whether this difference is related to the missing menu option.

Steps to reproduce in my deployment

  1. Open the GeoNode catalogue interface.
  2. Open the language selector.
  3. Look for Chinese / 中文: the option is not available.

Expected behavior

Chinese should be selectable when it is enabled and the required translations are available, or the documentation should explain any additional configuration needed to expose it in the language selector.

Questions

  • Is Chinese intentionally unavailable in the language selector by default, despite the existing translation files?
  • Which configuration controls the languages shown in the catalogue language selector? Are separate GeoNode/Django and MapStore frontend settings or translation bundles required?
  • What is the recommended way to enable Chinese consistently, and which language code should be used (zh, zh-cn, or another code)?

I would appreciate guidance on whether this is a deployment configuration issue, a frontend translation limitation, or a bug.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions