When a user adds a custom region title, the title currently could not be created.
I will create a patch for this.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | panels_tabs-title-2643800.patch | 1 KB | chaitanya17 |
| #14 | panels_tabs-title-2643800.patch | 930 bytes | chaitanya17 |
| #10 | custom-region-title-not-translatable-2643800.patch | 897 bytes | ashwinsh |
| #2 | panel_tabs-custom-region-title-not-translatable-2643800-1.patch | 741 bytes | sgurlt |
Comments
Comment #2
sgurlt commentedPlease review.
Comment #4
sgurlt commentedCan someone tell me why this fails?
Comment #5
TimRutherford commentedI haven't checked out the full modules code but you can't/shouldn't use t() to translate just a variable. You can read about it more at https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/t/7
I'm assuming that is why its failing.
Comment #6
7thkey commentedDo we have any solution for this or is it abandoned?
Comment #7
ashwinshCan you please try this one.
Comment #8
ashwinshComment #10
ashwinshComment #11
ashwinshComment #13
7thkey commented@ashwin.shaharkar I tried and it works but the patch doesn't pass the test because like @TimRutherford said, you cannot use t() function to an input variable where user can enter whatever text with the risk of cross-site scripting...
There must be another way.
Any ideas?
Comment #14
chaitanya17 commentedTranslated text variable.
Comment #15
chaitanya17 commentedComment #17
chaitanya17 commented