balazs-endresz / jquery-translate

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

bad translation subtitle srt file #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
jquery-translate version: jquery.translate-1.4.7-debug-all.js
jQuery version: jquery.min.js v1.5
browser: ff 3.6.13
OS: win vista

Errors:
Removing some characters (line break).

Url: http://www.volny.cz/peter.mlich/x/g-trans2-jquery.htm

Languages: el | cs (greek to czech)

Input (Davy Crockett):

829
01:20:09,371 --> 01:20:13,398
Ωραια, εδω χωριζουμε
παλι δασοβιοι.

830
01:20:13,475 --> 01:20:18,139
Και αν συναντηθουμε ξανα να θυμαστε:
Ακομα ειμαι ο Βασιλιας του ποταμου!

831
01:20:18,213 --> 01:20:21,148
Εισαι καλυτερος απο Βασιλιας!
Εισαι πρωτης ταξης φιλος!

Output:
829 01:20:09,371 -> 01:20:13,398 Fajn, tady les rozdělit znovu. 830 
01:20:13,475 -> 01:20:18,139 A když se znovu setkáme zapamatování: Já 
jsem ještě krále řeky! 831 01:20:18,213 -> 01:20:21,148 vy jste lepší 
než král! Jsi první třídy přítel!

Original issue reported on code.google.com by peter.ml...@gmail.com on 19 Feb 2011 at 10:02

GoogleCodeExporter commented 9 years ago
The plugin doesn't support plain text translation, just only html. This means 
that newlines aren't preserved and the translation might contain html special 
characters, which aren't displayed properly in a textarea. Unfortunately it's 
not trivial how to solve this because the plugin uses html elements to handle 
translate long text. So I'd suggest inserting <br/> tags in place of newlines 
and display the translation in a div instead.

related issues:
http://code.google.com/p/jquery-translate/issues/detail?id=48
http://code.google.com/p/jquery-translate/issues/detail?id=15

Original comment by balazs.endresz on 19 Feb 2011 at 12:37

GoogleCodeExporter commented 9 years ago

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