Skip to content

Commit

Permalink
Enable translation for "Select all"
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Sep 21, 2024
1 parent 95d2c34 commit 7bcc259
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion iommi/style_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
Column=dict(
shortcuts=dict(
select=dict(
header__attrs__title='Select all',
header__attrs__title=gettext_lazy('Select all'),
),
),
header__attrs__class__iommi_sort_header=lambda header, **_: header.url is not None,
Expand Down
4 changes: 3 additions & 1 deletion iommi/style_bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from django.utils.translation import gettext_lazy

from iommi.asset import Asset
from iommi.style import (
Style,
Expand Down Expand Up @@ -137,7 +139,7 @@
header__attrs__class={'text-nowrap': True},
shortcuts=dict(
select=dict(
header__attrs__title='Select all',
header__attrs__title=gettext_lazy('Select all'),
header__attrs__class={'text-center': True},
cell__attrs__class={'text-center': True},
extra__icon='fa fa-check-square-o',
Expand Down
4 changes: 3 additions & 1 deletion iommi/style_bootstrap5.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from django.utils.translation import gettext_lazy

from iommi.asset import Asset
from iommi.style import (
Style,
Expand Down Expand Up @@ -122,7 +124,7 @@
header__attrs__class={'text-nowrap': True},
shortcuts=dict(
select=dict(
header__attrs__title='Select all',
header__attrs__title=gettext_lazy('Select all'),
header__attrs__class={'text-center': True},
cell__attrs__class={'text-center': True},
),
Expand Down
3 changes: 2 additions & 1 deletion iommi/style_bulma.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy

from iommi import Fragment
from iommi.asset import Asset
Expand Down Expand Up @@ -122,7 +123,7 @@
Column=dict(
shortcuts=dict(
select=dict(
header__attrs__title='Select all',
header__attrs__title=gettext_lazy('Select all'),
),
number=dict(
cell__attrs__class={
Expand Down
4 changes: 3 additions & 1 deletion iommi/style_semantic_ui.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from django.utils.translation import gettext_lazy

from iommi import html
from iommi.style import (
Style,
Expand Down Expand Up @@ -82,7 +84,7 @@
Column=dict(
shortcuts=dict(
select=dict(
header__attrs__title='Select all',
header__attrs__title=gettext_lazy('Select all'),
),
number=dict(
cell__attrs__class={
Expand Down
4 changes: 3 additions & 1 deletion iommi/style_us_web_design_system.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from django.utils.translation import gettext_lazy

from iommi import html
from iommi.asset import Asset
from iommi.style import (
Expand Down Expand Up @@ -133,7 +135,7 @@
header__attrs__class={'text-nowrap': True},
shortcuts=dict(
select=dict(
header__attrs__title='Select all',
header__attrs__title=gettext_lazy('Select all'),
header__attrs__class={'text-center': True},
cell__attrs__class={'text-center': True},
extra__icon='fa fa-check-square-o',
Expand Down

0 comments on commit 7bcc259

Please sign in to comment.