Skip to content

Commit 991ac15

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Ability to translate the group name into other languages"
2 parents 7b75862 + c54eec7 commit 991ac15

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cloudkittydashboard/enabled/_32010_admin_group.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15+
from django.utils.translation import gettext_lazy as _
16+
1517
PANEL_GROUP = 'rating'
16-
PANEL_GROUP_NAME = 'Rating'
18+
PANEL_GROUP_NAME = _('Rating')
1719
PANEL_GROUP_DASHBOARD = 'admin'

cloudkittydashboard/enabled/_32011_project_group.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15+
from django.utils.translation import gettext_lazy as _
16+
1517
PANEL_GROUP = 'rating'
16-
PANEL_GROUP_NAME = 'Rating'
18+
PANEL_GROUP_NAME = _('Rating')
1719
PANEL_GROUP_DASHBOARD = 'project'

0 commit comments

Comments
 (0)