Skip to content

Commit

Permalink
Improve message
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Aug 20, 2024
1 parent 539b72c commit bde32c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/gettext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -640,16 +640,15 @@ defmodule Gettext do
"""
defining a Gettext backend by calling
use Gettext, otp_app: ..., ...
use Gettext, otp_app: ...
is deprecated. To define a backend, call:
use Gettext.Backend, otp_app: :my_app
Then, to use the backend, call this in your module:
Then, instead of importing your backend, call this in your module:
use Gettext, backend: MyApp.Gettext
""",
Macro.Env.stacktrace(__CALLER__)
)
Expand Down

0 comments on commit bde32c0

Please sign in to comment.