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.
In hook_requirements(), for localization $t = get_t() should be used to retrieve the appropriate localization function name (t() or st()).
Comment | File | Size | Author |
---|---|---|---|
#2 | use_get_t-2872900-2.patch | 1.26 KB | nileshlohar |
Comments
Comment #2
nileshlohar CreditAttribution: nileshlohar commentedHere is the patch.
Comment #3
nileshlohar CreditAttribution: nileshlohar commentedComment #4
rivimeyLooks sensible to me.
Comment #5
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #6
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #8
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commented