Cannot translate messages in network_qos edit-rule form
Bug #2037278 reported by
Akihiro Motoki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
In Progress
|
Low
|
Akihiro Motoki |
Bug Description
There are strings which cannot be translated in network_qos edit-rule form.
It is because strings passed to gettext() contains variables. Such variables are evaluated as empty when generating the POT file. For example, a string in [1] will be "Bandwidth Limit - , , , " in the djangojs POT file.
On the other hand, when displaying the form these variables are evaluated and the corresponding string in PO file cannot be found.
edit-rule.
When we need to pass variables to a translatable string, we should use interpolate() as we do in many files.
Changed in horizon: | |
assignee: | nobody → Akihiro Motoki (amotoki) |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: i18n |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/c/openstack /horizon/ +/896978
Review: https:/