Skip to content

Commit

Permalink
Fix Gettext warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Sep 10, 2024
1 parent ed5ee6b commit 66e94b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/lib/meadow_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule MeadowWeb do
use Phoenix.Controller, namespace: MeadowWeb

import Plug.Conn
import MeadowWeb.Gettext
use Gettext, backend: MeadowWeb.GetText
alias MeadowWeb.Router.Helpers, as: Routes
end
end
Expand All @@ -40,7 +40,7 @@ defmodule MeadowWeb do
use Phoenix.HTML

import MeadowWeb.ErrorHelpers
import MeadowWeb.Gettext
use Gettext, backend: MeadowWeb.GetText
alias MeadowWeb.Router.Helpers, as: Routes
end
end
Expand All @@ -56,7 +56,7 @@ defmodule MeadowWeb do
def channel do
quote do
use Phoenix.Channel
import MeadowWeb.Gettext
use Gettext, backend: MeadowWeb.GetText
end
end

Expand Down
4 changes: 2 additions & 2 deletions app/lib/meadow_web/gettext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule MeadowWeb.Gettext do
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import MeadowWeb.Gettext
use Gettext, backend: MeadowWeb.GetText
# Simple translation
gettext("Here is the string to translate")
Expand All @@ -20,5 +20,5 @@ defmodule MeadowWeb.Gettext do
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
"""
use Gettext, otp_app: :meadow
use Gettext.Backend, otp_app: :meadow
end

0 comments on commit 66e94b9

Please sign in to comment.