-
Notifications
You must be signed in to change notification settings - Fork 87
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
Deprecate "use Gettext" for backends and improve docs #392
Conversation
Pull Request Test Coverage Report for Build fdfdf385cf0d6725a34780329e1a04d426f55c27-PR-392Details
💛 - Coveralls |
@josevalim done with the |
@@ -99,12 +97,12 @@ defmodule Gettext.Compiler do | |||
end) | |||
end | |||
|
|||
defp macros() do | |||
def generate_macros(_env) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say you can move this to a private function in Gettext. But it can also be done later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah anyway it's going away so wherever it lives it won't live there for long hihi
Same as `pngettext_noop/3`, but takes an explicit backend. | ||
""" | ||
defmacro pngettext_noop_with_backend(backend, msgctxt, msgid, msgid_plural) do | ||
backend = Gettext.Compiler.expand_backend(backend, __CALLER__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, I would not try to share this code, and instead have two implementations of expand_backend
, one for macros and another for the compiler. Especially because we want to remove the one in compiler anyway.
No description provided.