Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump scrivener_ecto #483

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix compilation error caused by use Gettext deprecation
dgigafox committed Oct 24, 2024
commit 5fa426a248143509d84462ffdcd43b2a484ddf83
2 changes: 1 addition & 1 deletion lib/gettext.ex
Original file line number Diff line number Diff line change
@@ -14,5 +14,5 @@ defmodule Torch.Gettext do
dgettext("errors", "Here is the error message to translate")
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
"""
use Gettext, otp_app: :torch
use Gettext.Backend, otp_app: :torch
end
2 changes: 1 addition & 1 deletion lib/torch/i18n/backend.ex
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ defmodule Torch.I18n.Backend do
also be overridden to include custom translations.
"""

import Torch.Gettext, only: [dgettext: 2]
use Gettext, backend: Torch.Gettext

def message("Contains"), do: dgettext("default", "Contains")
def message("Equals"), do: dgettext("default", "Equals")