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.
Replace theme() with drupal_render() in language module
Comment | File | Size | Author |
---|---|---|---|
#21 | 2009654-21.patch | 3.64 KB | star-szr |
#21 | interdiff.txt | 1.1 KB | star-szr |
#18 | 2009654-18-exceptions.patch | 2.66 KB | star-szr |
#18 | 2009654-18.patch | 3.66 KB | star-szr |
#18 | interdiff.txt | 1.81 KB | star-szr |
Comments
Comment #1
InternetDevels CreditAttribution: InternetDevels commentedWe are working today with this issue during Code Sprint UA.
Comment #2
InternetDevels CreditAttribution: InternetDevels commentedNeeds some additional work because patch failed tests locally.
Will be work with this in few days.
Comment #3
thedavidmeister CreditAttribution: thedavidmeister commentedComment #4
podarokhttps://drupal.org/coding-standards#array
Arrays should be ended with comma
Comment #5
thedavidmeister CreditAttribution: thedavidmeister commentedfeel free to re-assign if you're still working on this.
Comment #6
jesse.d CreditAttribution: jesse.d commentedRe-assigning to myself.
Comment #7
jesse.d CreditAttribution: jesse.d commentedRe-rolling with trailing commas in render arrays.
I've removed the following three hunks, as they appear to have been fixed upstream.
Comment #8
jesse.d CreditAttribution: jesse.d commentedUpdating to needs review.
Comment #10
Carolyn CreditAttribution: Carolyn commentedThis is fixing related bugs, taking out arguments as it does not exist in hook_theme(). Also being explicit with the renderable array (#2006152: [meta] Don't call theme() directly anywhere outside drupal_render()).
Comment #11
star-szrI worked on this with @Carolyn at NYC Camp. Arguably we could move out the bug fixes to another issue as was done in #2009688: Replace theme() with drupal_render() in update system.
This.
And this.
Comment #12
thedavidmeister CreditAttribution: thedavidmeister commentedI'm ok with this.
Comment #13
alexpottLet's not do this change here because we're doing #2030243: Remove theme_file_upload_help() from the theme system
Comment #14
jenlamptonquick update as per #14
Comment #15
pplantinga CreditAttribution: pplantinga commentedThis seems like it might be unrelated?
Comment #16
star-szr@pplantinga, thanks! That change is to fix a PHP notice (undefined variable). It could be moved to another issue but it's a very small change. You can see in the context of the patch that $releases is used in $details['available_updates_list'] but might not be set.
However we could remove these extra blank lines added in the patch :)
Comment #17
star-szr…although looking at the whole function again, we might as well just set $releases = array() along with $details = array() at the very top, and remove both $releases = array() in the conditions below.
Comment #18
star-szrLike this :)
First patch shows the exceptions from not fixing the $releases = array() - so that does actually have to get fixed here.
Second patch + interdiff are the changes described in #16 and #17.
Comment #19
pplantinga CreditAttribution: pplantinga commentedLooks good to me!
Comment #20
alexpottThis change does not seem correct - doesn't this mean the is we pass both the updates and not_found variable that the missing_updates_list item list will contain all the releases?
Comment #21
star-szrYou're absolutely right, thanks @alexpott!
Comment #22
stuajc CreditAttribution: stuajc commentedApplied patch from #21 and manually walked through adding new languages, configuring translatable interfaces, adding strings to translate, and verifying that translated strings show up in admin pages and front end of site. Worked as expected, no errors.
Comment #23
alexpottCommitted 818d962 and pushed to 8.x. Thanks!