Skip to content

Commit c54eec7

Browse files
committed
Ability to translate the group name into other languages
Change-Id: Ie126ecae16f9944096b3359195c873c0ddfcef28 Signed-off-by: Ivan Anfimov <[email protected]>
1 parent d1e5c76 commit c54eec7

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)