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.
Attached is an unsophisticated, but working patch (against 6.14) that adds an "Automatic" option to the "Language" select at /admin/settings/tweetbutton.
If the contents of the tweetbutton_language variable is found to be 'auto', the module runs global $language
and provides the contents of $language->language to tweetbutton_get_attributes()
.
If you think you'd like to include it but that it needs modification, please let me know and I'll make whatever changes you think necessary.
Comment | File | Size | Author |
---|---|---|---|
tweetbutton-auto-lang-detect-20101208.patch | 2.22 KB | bedlam | |
Comments
Comment #1
bedlamComment #2
chia CreditAttribution: chia commentedpatch commited and updated in dev.
Thanks