-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
New datepicker (channel stable): Language always English + manually entering date doesn't work in other languages/ regions #55535
Comments
Code sample to reproduce
|
Yes, that's what I meant by "In addition to the above problem with texts in english"... The "enter date" text input is in english too, just like yours... The only difference is that I can click "Ok" successfully but it is because we use the same date separator as english (just with day and month inverted)... The biggest problem is that now 1.17 is in Stable branch and still have this localization bug... |
Okay. So the same localization problem for all in stable channel. Plus portuguese Ok button changed. I remember that the Ok button has been like yours for me, too (but don‘t remember when and if it was in English or German - just checked: (at least) in September + October 2019, stable channel, timepicker, German, the button was also 'Ok'). Now it‘s all capital letters again. |
We experience this too. It occurs even when explicitly settings the locale through As another side effect of this, the form validation is not using our set locale and always fails (as it expects |
@TahaTesser Could you please mark priority on this issue somehow? It is quite simple to fix, but has huge impact on standard date picker usage. This functionality is needed almost everywhere, and should work flawlessly out of the box. |
It's already fixed in beta 7706a97 |
It is fixed. But problem with visibility when on screen keyboard opened reported above - is not fixed. |
I think it will be the best if you create an issue for each of the problems you described here. |
@Albert221 do you know the correct policy - should this be closed, since it is fixed in dev and beta channel, but not stable channel yet? |
Yesterday I checked with this code sample with Russian locale, it wasn't working correctly when issue was filed, but it's working correctly now. flutter doctor -v
|
@darrenaustin - can you take a look at the issue that @VladyslavBondarenko reported in #55535 (comment) |
Thanks for the report. There are a couple of problems causing this. The first is that the translations for German haven't made it to stable yet, so that is the bulk of the problem. However, even on master we still have the issue that the date picker thinks the date separator is '/' instead of '.'. This appears to be a problem with the German translation, as it is reporting '/'. @shihaohong can you sort this out with the translators so we can get this fixed? It is the German value for
Thx. |
I just submitted a request to make the change on the internal translation console. I'll assign this bug to myself to track the progress since there's no way to get a notification internally (so this Github issue will remind me to check in periodically) |
The request has gone through and #62896 should pull in the latest translations, which fixes the date separator issue on top of the issues of English messages seen in date picker instead of the local language's. |
@shihaohong any chance this could be hotfixed into stable (once users confirm that it's working)? |
I don't think it can be hotfixed. See https://github.com/flutter/flutter/wiki/Hotfixes-to-the-Stable-Channel on the hotfix policy |
Today's morning, I upgrade my flutter sdk, but date separator issue is not fixed. |
The separator and translations issues should now be fixed in master |
Thank you for your work on this issue. Many other languages have the same problem with manual date entering . Switching to 'de' (German) solves the issue.
Sorry, I made a mistake, dateSeparator is there in the material_cs.arb but its incorrectly "/". Edit: As you can see, as soon I started to edit date textfield, dots would double "." => ".." and no date format would be accepted. master, 1.21.0-6.0.pre.245 |
Since the original issues has been fixed for the most part (missing translations and the incorrect German date separator), I filed two separate issues to track the new issues that were mentioned even after the original fix:
Please comment on these issues instead with any information that would be helpful in generating a fix. Thank you for all the detailed reports so far! :) |
As of today, this is fixed in stable channel (at least for German - but I hope, for everyone). Thanks Googlers, and everyone who commented |
May I know how to set date format as "dd/mm/yyyy" in Input mode with a snippet without changing the locale ? |
@ajayvenkat10, unfortunately the date format is tied to the locale the date picker was brought up in. If you need this functionality, please open an issue requesting this feature: https://github.com/flutter/flutter/issues/new?template=3_feature_request.md |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
Expected results:
-> Locale is in my language + I can edit and save a date
Actual results:
-> I can't save any date
If I choose English in phone settings, all works - because having '/' in a date is expected.
This happens in Xcode simulator as well as in the builds made by Codemagic.
Logs
The text was updated successfully, but these errors were encountered: