-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Date Picker] ContentDescription for "DayName" is not properly getting read by talkback for the German language #3051
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Hi @pekingme, |
Thanks for the PR. Looking at the changes, I am wondering if this PR will affect the talkback for other languages such as English. Can you provide a before and after video recording for English? |
Hi @raajkumars, For example: But specifically for the German language, As ABBR_MONTH_WEEKDAY_DAY returns Mi instead of Mittwoch, it's not getting pronounced as Mittwoch(Please refer to the screen recordings) talkback just says Mi. But using the MONTH_WEEKDAY_DAY date format solves the issue for the German language and does not affect the English/other talkbacks as well. Here's the recording for English language: Before(Master-Branch): Master-English-Talkback.mp4With new changes: MyBranch_English-Talkback.mp4Thanks! |
…nthWeekdayDayFormat` `getYearAbbrMonthWeekdayDayFormat` to `getYearMonthWeekdayDayFormat` As I'm not using Abbreviations
Paul, can you take a look at the PR? |
Hi @drchen @raajkumars |
@@ -56,13 +56,13 @@ public void frYearMonthDayString() { | |||
startDate = setupLocalizedCalendar(locale, CURRENT_YEAR, 10, 30); | |||
assertThat( | |||
DateStrings.getYearMonthDay(startDate.getTimeInMillis(), locale), | |||
is("30 nov. " + CURRENT_YEAR)); | |||
is("29 nov. " + CURRENT_YEAR)); |
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.
Not sure I understand the reason for changing these dates, is it a timezone issue?
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.
Yeah, it looks like a timezone issue. These test cases were failing, so I have fixed them
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.
Hi, @paulfthomas do you have any feedback/suggestions regarding this change?
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.
Hi @kavitamp, we are looking into some other i18n issues that may be related. Thanks again for your contribution!
closes #3050
Description: The content description(Talkback) for the "day-name" is not properly getting read in the German language for the date picker dialog, for English, it is working fine but not for the German language.
For example: Sometimes dates are getting read as:
Bug screen recording:
DatePicker.mp4
Expected behavior:
Dates should be getting read as:
Expected behavior after fixing the issue:
DatePickerFix.mp4
I have fixed the test cases of class
DateStringsTest
in the same MR as they were relevant to my changes and were failing.Please let me know if you have any feedback.
Thank you!