"Copy Source" make html tags uppercase in some browsers

neochief - May 29, 2008 - 16:34
Project:Localization client
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

Hello

I've just discovered that the "Copy Source" makes html tags uppercase in the Opera browser (and meybe ). If you save the translation in that way, it's not showing on page later.
This bug ocurring because JQuery's .html function gets tags uppercase, so if you go without this function, all be fine.

UPD. This patch is not suitable for next version, because there is another way of storing translations in i10_client 5.x-1.x-dev - it's all about .html() there.

Anyway, I'm looking help in making this work in 5.x-1.x-dev

AttachmentSize
sourse_index_in_title.patch1.1 KB

#1

neochief - May 29, 2008 - 16:40

Little easier patch:

AttachmentSize
sourse_index_in_title2.patch 599 bytes

#2

neochief - June 6, 2008 - 22:06

Final version.

AttachmentSize
l10n_client.js.patch 1.03 KB
l10n_client_.module.patch 946 bytes

#3

alex.v.moore - July 28, 2008 - 12:27

Hi!
This is patch fixed bug:
special symbols are processed incorrectly (\r\n).

Example:

t("Line1\r\n
Line2\r\n
Line3
")

 
 

Drupal is a registered trademark of Dries Buytaert.