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.
You have a typo in the first form element on the admin page:
$form['htmlpurifier_introduction'] = array(
'#markup' => t('<p>This page contains global settings for all HTML Purifier enabled filters. If you are looking for specific filter configuration options, check <a href="@format">the format configurations page</a> and select the specific format you would like to configure.</p>', array('@filter' => url('admin/config/content/formats'))),
);
You use the @format replacement variable in your translatable string, but you use @filter in the array of replacements, hence the replacement is not executed...
Comment | File | Size | Author |
---|---|---|---|
#2 | htmlpurifier-fixed-typo-admin-page-2015913-2.patch | 1.02 KB | Konstantin Komelin |
Comments
Comment #1
heddnCan you write the solution up in a patch? https://drupal.org/node/707484
Comment #2
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedHey there,
Patch attached. Please review.
Thanks,
Konstantin
Comment #3
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedPlease use the same patch to fix the issue for 7.x-2.x branch.
Comment #4
heddnCommit 7f97586 on 7.x-1.x
Comment #5
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedThanks @heddn for review!
Also, please consider possibility to apply this patch to 7.x-2.x because the same issue is occurring there.
Comment #6
heddnI also applied it there, I just didn't supply the commit link.
Comment #7
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedThanks a lot!