Comments

sg88 created an issue. See original summary.

sgurlt’s picture

Assigned: sgurlt » Unassigned
Status: Active » Needs review
StatusFileSize
new741 bytes

Please review.

Status: Needs review » Needs work
sgurlt’s picture

Can someone tell me why this fails?

TimRutherford’s picture

I 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.

7thkey’s picture

Do we have any solution for this or is it abandoned?

ashwinsh’s picture

Can you please try this one.

ashwinsh’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: custom-region-title-not-translatable-2643800.patch, failed testing.

ashwinsh’s picture

StatusFileSize
new897 bytes
ashwinsh’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 10: custom-region-title-not-translatable-2643800.patch, failed testing.

7thkey’s picture

@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?

chaitanya17’s picture

StatusFileSize
new930 bytes

Translated text variable.

chaitanya17’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 14: panels_tabs-title-2643800.patch, failed testing.

chaitanya17’s picture

StatusFileSize
new1 KB