balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

Raw text translation does not preserve new lines and other charcaters #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Translate this text to Italian. using $.translate(text, 'it')
From:   Ray Arcadu  

Sent:   Tuesday, December 23, 2008 2:12 PM

What is the expected output? What do you see instead?
Actual:
From: Ray Arcadu Sent: Martedì, 23 Dicembre 2008 2:12 

Expected:
From: Ray Arcadu 

 Sent: Martedì, 23 Dicembre 2008 2:12 

What version of the product are you using? On what operating system?
1.3.9

Please provide any additional information below.
I have fixed and one can read more and download the fixed version from here:
http://sjmittal.blogspot.com/2009/08/extending-jquery-translate-plugin-to.html

Original issue reported on code.google.com by sjmit...@gmail.com on 26 Aug 2009 at 2:07

Attachments:

GoogleCodeExporter commented 9 years ago
Hey Sachin! I'm glad you brought this up, I tried to make this possible a long 
ago, and as far as I 
remember there were some issues when I tried to parse the translation in `text` 
mode. Just to note, in 
your version the there's no parsing, so the `this.translation` array has 
different elements than 
`this.source`.

I'm not sure when can I make this work in the plugin, because there are quite a 
lot of (mostly 
internal) changes in the upcoming major version, not to mention an alternative 
way to handle DOM 
manipulation (a proper version of TextnodeTranslatorIntegration ), which, in 
turn would really need a 
download builder too ... anyway, I've put this on my list!

Original comment by balazs.endresz on 26 Aug 2009 at 10:27

GoogleCodeExporter commented 9 years ago
OK. You can fix this in subsequent versions. In my versions there is no 
parsing. I
have tested this against source (raw text) string (not array of strings), and it
works fine. Again why do we need to parse the translation is we are simply 
using raw
text and there would be no html elements in that.
Well you are best judge of this and I hope you would do it in best possible 
way. I
look forward to subsequent releases of this plugin, its helped me a lot.

Thanks 
Sachin

Original comment by sjmit...@gmail.com on 27 Aug 2009 at 5:21

GoogleCodeExporter commented 9 years ago
I didn't have time to do it in 1.4.0, I'll get back to it sometime.

Original comment by balazs.endresz on 3 Oct 2009 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by balazs.endresz on 18 Oct 2009 at 8:09

GoogleCodeExporter commented 9 years ago
Issue 62 has been merged into this issue.

Original comment by balazs.endresz on 11 Mar 2011 at 7:54

GoogleCodeExporter commented 9 years ago
Hello 
i have an issue of query string which i have used in my dynamic website made in 
asp and c# i have got a problem in the image button which i have taken on 
datalist ,when i am clicking on that button google translate does not work at 
all, and the second problem is that when i am using google api, then the button 
and datalist works but it does not recognize the breaks,it shows all the data 
in 1 paragraph only,can you please tell me the solution as soon as possible,its 
urgent.I really dont have any idea about javascript.

Original comment by priyasin...@gmail.com on 17 Sep 2014 at 5:32