Closed (fixed)
Project:
Translation Management
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2010 at 10:56 UTC
Updated:
31 Dec 2010 at 04:10 UTC
"Translation for [title] is complete. You can review the [title] and make sure it is correct."
comes from:
165: drupal_set_message($message = t('Translation for !title is complete. You can review the !link and make sure it is correct.', array('!title' => strip_tags($txt), '!link' => $txt)));
Several things wrong with this:
- 'the title' is wrong. Do you mean something like 'the [content type]'?
- the link is wrong. In my case it was given as "/?q=node/2" which is not only wrong because I have clean URLs enabled, but also wrong because my Drupal is in a subfolder. Use url() to form correct paths.
- strip_tags() is probably the wrong function to use here.
Comments
Comment #1
brucepearson commentedThanks for the report.
I've changed it so that it uses url() to get the correct link and also removed the strip_tags() as it's not really needed.
Comment #2
joachim commentedThanks!
Though what I meant about strip_tags is that it's probably check_plain() you need on node titles -- you still need some sort of cleaning up ;)
Comment #4
joachim commentedReopen -- AFAIK some sort of sanitizing is still needed here.
Comment #5
icanlocalize commentedWant to propose a patch?
Comment #6
brucepearson commentedcheck_plain now used for processing the title text.