Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My patch adds some accessibility titles to date navigation output:
- provided prev/next link-title in day/week/year/month granularity
- provided (for mini-calendar) month link-title
Comment | File | Size | Author |
---|---|---|---|
more_accessibile_date_navigation.patch | 2.23 KB | thePanz | |
Comments
Comment #1
mgiffordI couldn't find any sub-directories within contributions/modules/date/theme/
So had trouble tracking down Attic/theme.inc
I did think that the main diff block could be shortened though:
Wouldn't that do the trick?
Mike
Comment #2
thePanz CreditAttribution: thePanz commentedI created a patch using TortoiseCVS, I don't know what is that "Attic" inside the module direcotry.. I hope that KarenS could help us!
The need for a more detailed t() without the %granularity placeholder is for non-English languages where (maybe) the sentence construction isn't so easy and linear..
What do you think?
Comment #3
mgiffordYes, I was thinking about that a bit. Tomorrow, next week, next year all could be done quite differently in different languages (unfortunately).
So this would accommodate that:
Not 100% certain that's the best way to do it for i18n, but...
Mike
Comment #4
thePanz CreditAttribution: thePanz commentedString concats in t() is a wrong way to go: auto POT extraction can't guess the right string to provide as a translation template!
Are you using latest -dev release?
Comment #5
KarenS CreditAttribution: KarenS commentedI agree with thePanz that the original patch will work best for translations. I also fixed a spelling error 'navigate' and added the full text for previous instead of prev. Since these are titles they don't take up any room on the page so there is plenty of space to spell things out.
So, committed. Thanks!
Comment #6
thePanz CreditAttribution: thePanz commentedThank you KarenS! :)