-
Notifications
You must be signed in to change notification settings - Fork 4
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
POTools localizable string extractor #1
Comments
Hi there! I'm glad that my localization solution has caught your attention (even despite the lack of docs). The implementation in this repo is like the third iteration of the concept, so I might say it's pretty polished. My answers:
I hope this will help you. Just let me know if you have further questions. |
Thank you for your prompt answers, they're very helpful! Re 1) and 2): I'll think about this some more and try to come up with a proof of concept when I have some free time. Maybe we can go from there. Re 3): I'll look into why this is, but it's probably something trivial. |
Ok, the idea may be worth some exploration. However, I'm still not convinced that even an extensible tool published on NuGet would be a significant improvement over the solution we currently have. The possibility of quick and easy modification for tailoring the tool to the particular project's needs is a nice feature. By enabling extensions we'd achieve something similar but in that case the process of the customization seems to me somewhat more rigid and awkward. Anyway, feel free to play with this but please be aware that I can't really afford to maintain another project anytime soon.
I'm on Windows and have never encountered such an issue there, so I suspect it has something to do with macOS. The tool uses Buildalyzer to analyze MSBuild project files. Unfortunately, I don't have a Mac, so I can't do tests but first I'd try to upgrade Buildalyzer to the latest version and, if that doesn't solve it, would do some debugging around here. |
Hello,
I'm opening this issue simply because I have no other way of contacting you - you may delete this in the future, if it becomes obsolete.
I've been looking at different solutions for using GetText
.po
files within .NET projects and your solutions seem to be the most solid. A combination of yourKarambolo.PO
library, the text extraction tool and custom string localizers contained in this repository allow for a full-circle implementation of i18n through.po
files -- extract texts, generate.po
files, read localized strings from.po
files through .NET Core built-in facilities.While testing your approach, I've stumbled on a few questions and I was wondering if you'd be interested in addressing them:
POTools
project (now contained in this repo) as a separate repository, which could be publicly published on NuGet and thus easily available to be included in different kinds of projects as a .NET CLI Tool?.cs
and.cshtml
, is there a good reason why you're matching the strings based on the member name (T["Some string"]
) instead of matching them based on the type of the member (IStringLocalizer
)? Would that impact performance, or was that simply an arbitrary decision to do it that way?scan | grep | extract
),/bin/
files are taken into account, which is usually not desirable. Would it make sense to have an option to exclude certain directories within the specified path, or maybe even ignore the obvious directories likebin
andobj
?I am posing these questions because I'm interested in building a solution that I can use throughout my different projects. I'm willing to contribute and invest some time into this, in order to find a universal solution that I can use long-term.
The text was updated successfully, but these errors were encountered: