Project

General

Profile

Actions

Feature #43252

open

mgr/dashboard: Add I18N/L10N support to the backend to return localized error messages

Added by Lenz Grimmer over 4 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
i18n
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

This came up during the review of PR32032 - by moving the validation of the password complexity to the dashboard backend / REST API, the frontend would need to translate the messages returned in order to provide a consistent user experience. In order to avoid the duplication of strings and to also support localized error messages for users talking to the REST API directly, we concluded to make the REST API return localized strings, based on the HTTP header submitted by the API client (e.g. the dashboard). The translations could then be managed via gettext and the Transifex translation platform.

Note that this will only apply to messages generated by the Ceph dashboard backend directly; the REST API will still return a lot of other information in English only (e.g. the Ceph health state), as these messages originate from other parts of the Ceph codebase.

Actions #1

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 147 to i18n
Actions

Also available in: Atom PDF