Skip to content

Commit 7d31345

Browse files
committed
fix gettext compile error
1 parent 6783c29 commit 7d31345

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/ex_admin/paginate.ex

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ defmodule ExAdmin.Paginate do
3535

3636
def pagination_information(name, record_number, record_number, record_count) do
3737
markup do
38-
text (gettext "Displaying") <> Inflex.singularize(" #{name}") <> " "
38+
text gettext("Displaying") <> Inflex.singularize(" #{name}") <> " "
3939
b "#{record_number}"
40-
text " " <> (gettext "of") <> " "
40+
text " " <> gettext("of") <> " "
4141
b "#{record_count}"
42-
text " " <> (gettext "in total")
42+
text " " <> gettext("in total")
4343
end
4444
end
4545

4646
def pagination_information(name, record_number, last, record_count) do
4747
markup do
4848
text (gettext "Displaying %{name}", name: name) <> " "
4949
b "#{record_number}&nbsp;-&nbsp;#{last}"
50-
text " " <> (gettext "of") <> " "
50+
text " " <> gettext("of") <> " "
5151
b "#{record_count}"
52-
text " " <> (gettext "in total")
52+
text " " <> gettext("in total")
5353
end
5454
end
5555

5656
def pagination_information(name, total) do
5757
markup do
58-
text gettext "Displaying" <> " "
58+
text gettext("Displaying") <> " "
5959
b (gettext "all %{total}", total: total)
6060
text " #{name}"
6161
end

0 commit comments

Comments
 (0)