-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Show description for cron expressions #839
Conversation
src/dev/impl/DevToys/Views/Tools/Converters/CronParser/CronParserToolPage.xaml
Show resolved
Hide resolved
Hello, Thank you very much for your PR :)
That's quite interesting and I admit I'm puzzled by the fact that without the culture folder, the app still localize correctly the text. Is it possible that your post build event clears the folders from I will double check that, if you don't mind. |
UWP is very new to me so I am by no means an expert here. However, even the existing application (before the new package) does not have resource folders or DLLs, yet it is able to localize correctly. I believe it must load resources from
Yes please verify that since I do not know how to generate the |
Alright, I gave it a try by creating an MSIX package in Release mode. With the current PR, the text in the field you added stays in English even if DevToys is in French. By NOT removing the language folders, the text follows the right language. Therefore, please remove these |
Gladly! My only concern was cluttering the output, but if these folders/dlls are necessary for localization, of course we will keep them. Thank you for testing this! Reverted in 302c1af. |
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.
PR approved! Thank you so much again for this contribution! Keep the good work. We love all your recent contributions.
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: #829
What is the new behavior?
This PR introduces a human-readable description of cron expressions to help users understand what they mean (in addition to seeing the evaluated times).
DevToys-Cron-Demo.mp4
Other information
New PostBuildEvents
The CronExpressionDescriptor package comes with
.resource.dll
files for multiple cultures. By default, a folder containing each culture's resource will be copied to the outputHowever, UWP recompiles these into its own
resources.pri
file (source). I didn't want to clutter the output with the unnecessary DLLs, so I added post-build events to the project files to clean these up. I tested multiple cultures, and it is able to correctly generate cron expressions for the current culture. If this is overkill and we don't care about these folders, I can revert the project file changes.Limitations
Cron Expression Descriptor doesn't support non-standard expressions like
@daily
or@weekly
.Quality check
Before creating this PR: