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

Razor view msgctxt incorrect #59

Closed
jooni91 opened this issue Oct 10, 2022 · 3 comments
Closed

Razor view msgctxt incorrect #59

jooni91 opened this issue Oct 10, 2022 · 3 comments

Comments

@jooni91
Copy link

jooni91 commented Oct 10, 2022

The context for strings on Razor views is in an incorrect format.

Currently:
msgctxt "Module\\Views\\MyPart.Edit"

Expected:
msgctxt "Module.Views.MyPart.Edit"

Am I doing something wrong?

@hishamco
Copy link
Member

Please steps to reproduce

@jooni91
Copy link
Author

jooni91 commented Oct 31, 2022

Using the PoExtractor tool:

  1. Add a localizable string to a Razor view, e.g. @T["My string"].
  2. Run extractpo inputpath outputpath against the solution/project that the Razor view is in.
  3. See the results in the output file.

Not sure, but #54 might have fixed this problem. But it seems that this fix was not yet published on NuGet. The fix was merged into master on 9/29/2021 while the latest version on NuGet was published on 5/20/2021.

@hishamco
Copy link
Member

I will publish a new package in the upcoming days, so I will close this issue for now. Feel free to reopen if the issue still exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants