-
Notifications
You must be signed in to change notification settings - Fork 8
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
Due dates not handled correctly in Russian locale #140
Comments
It looks like you will need to use Russian language dates since the parsedatetime date processing library that the workflow uses provides a Russian locale. In this example, "due сегодня" See the locale file for more examples. In general since Alfred is English only workflow developers focus on English, which has always made it a bit difficult to find ways for the Wunderlist workflow to support other languages. When this issue comes up I always ask whether you would prefer a preference in the workflow to just use English for everything. Let me know if it is very confusing or inconvenient to use English for the workflow keywords like due and reminder but Russian for all the dates. On a related note, I am working on a contribution to parsedatetime to add a much more comprehensive testing framework so that locales can be better supported. That won't be done for quite awhile still but it paves the way to being able to document this workflow's behavior for various locales and better support all dates formats. |
I forgot to add that the due keyword can often be omitted since a date within the task is implicitly taken as the due date. Similarly, a time within the task is implicitly taken as a reminder date. When a task specifies only a time there due date is set to today. That is why your reminder example worked – the time was treated as a reminder and since no date was found the due date was set to today. When adding a task "test сегодня 9:45pm" your final task in Wunderlist should include only the word "test" since the date and time after removed. |
Thanks for your response.
Is it any way to make parsing date/time library use english localization only? |
Since the localization is not working as expected I'll gladly add a preference for that and push out a release. I'll post a download here first for you to evaluate. In these situations it is helpful for me to see a screenshot of your locale settings. Would you please send a screenshot of the Language & Region preferences screen, as well as the General tab when you click Advanced on the bottom of that preferences screen? They will help me to figure out what's wrong with the Russian locale. Thanks! |
I added a setting at I would still like to figure out what is wrong with the Russian locale if you can send that locale settings screenshot. |
Trying your beta release now |
Are you sure that you've pushed your changes? Because I installed workflow from link that you've posted above and haven't seen any new items at wl-pref. Then I've checked link https://github.com/idpaterson/alfred-wunderlist-workflow/blob/27cadfebcff0ff338824c927ba575fc8f6dd1031/Wunderlist.alfredworkflow and it says that commit is from 26 sep (https://dl.dropboxusercontent.com/s/lv8bat58einzhor/2016-11-19%20at%2020.49.png).
Am I missing something? |
Sorry about the wrong commit, that was supposed to be this build on develop |
Very interesting, there are a few things going on with parsedatetime and your locale. I'll keep an eye on this while working on the new test framework for v3.0. The current Russian locale tests do not include any keywords and it doesn't appear that they work. I get unicode warnings when testing the locale directly in parsedatetime. Would you be interested in being contacted within the next few months to help write or double-check Russian language tests for parsedatetime v3.0? |
Build works fine, thanks a lot. For sure I'm interested in to help you with moving forward with Russian language, just ping me via this issue and we'll check. Thanks for your help! Really appreciate it. |
That's great to hear, sorry for the mixup earlier. Again, this will automatically update to the next version when it is released so you shouldn't need to come back to GitHub to download future versions. If you have any feedback on a better solution to the locale setting please respond to this issue when you get a chance. |
HI @idpaterson,
if I change it manually to If there anything how I can make it working. I thought it worked fine before? (not sure) MacOS on german local |
@HolgerT you can try installing the workflow that I linked to a few comments above which adds a preference to force English dates. I have not had time to get a fully capable preference released yet. |
that works perfect. Many thanks :-) |
Example "wl new due today"
Adding task with reminder "wl task remind me today at 6:00pm" work as expected:
https://dl.dropboxusercontent.com/s/at6yb4n426ghyyj/2016-11-17%20at%2011.09.png
Using
What should I check/change to make it work as expected with adding task with due date?
The text was updated successfully, but these errors were encountered: