-
Notifications
You must be signed in to change notification settings - Fork 89
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
Documentation question #404
Comments
No, it does not. Gettext is not tied to Phoenix in any way in and of itself, it's Phoenix which depends on Gettext. To avoid confusion, we can rename |
That's what I figured. It makes sense that the documentation can't be tightly coupled with just one framework. Here's what I ran across specifically that I suspect will grow more common with the deprecation warning: If you happen to be using Phoenix, and you change
to
you also have to change Since the deprecation warming says:
I was copying it from the warning code and then just changing the "MyApp" part and leaving the "Web" omitted because I wasn't super confident I knew exactly what the change did so it took me a sec to realize my mistake. Not a big deal I just wanted to mention it because I ran across someone else that might have also been confused. I'm wildly unfamiliar with what is best practices so I don't know if a note in the warning that mentions if you are using the Phoenix framework, you also need to change that other line in core_components.ex ,or it could be that a more helpful compile time error could be implemented in Phoenix since Gettext isn't tied to Phoenix. Either way I found it interesting. |
We can improve the warning (in Gettext) to use the actual module name, which would fix this issue. How does that sound? Want to give it a try? |
If we’re doing that, we should also use the correct otp app instead of my_app. |
Yeah happy to try thatSent from my iPhoneOn Dec 6, 2024, at 1:17 AM, Andrea Leopardi ***@***.***> wrote:
We can improve the warning (in Gettext) to use the actual module name, which would fix this issue. How does that sound? Want to give it a try?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Here's the pull request -> #406 |
Examples use the format: MyApp.Gettext
Since Phoenix generator automatically puts it here: MyAppWeb.Gettext, does it make sense to make that documentation change throughout?
The text was updated successfully, but these errors were encountered: