Skip to content

Commit

Permalink
Only import a subset of Gettext.Macros macros
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Aug 19, 2024
1 parent df20514 commit 1ec048c
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion lib/gettext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,34 @@ defmodule Gettext do
quote do
Module.register_attribute(__MODULE__, :__gettext_backend__, persist: true)
@__gettext_backend__ unquote(backend)
import Gettext.Macros
import Gettext.Macros,
only: [
dpgettext_noop: 3,
dgettext_noop: 2,
pgettext_noop: 2,
gettext_noop: 1,
dpngettext_noop: 4,
dngettext_noop: 3,
pngettext_noop: 3,
ngettext_noop: 2,
dpgettext: 3,
dpgettext: 4,
dgettext: 2,
dgettext: 3,
pgettext: 2,
pgettext: 3,
gettext: 1,
gettext: 2,
dpngettext: 5,
dpngettext: 6,
dngettext: 4,
dngettext: 5,
pngettext: 4,
pngettext: 5,
ngettext: 3,
ngettext: 4,
gettext_comment: 1
]
end

_other ->
Expand Down

0 comments on commit 1ec048c

Please sign in to comment.