duanjingyu007 / jquery-i18n-properties

Automatically exported from code.google.com/p/jquery-i18n-properties
0 stars 0 forks source link

Contractions aren't supported #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a message like my_err = {0} task can't be completed.
2. The ' is removed
3.

What is the expected output? What do you see instead?
I expect to see MYTASK task can't be completed.  Instead I see MYTASK task cant 
be completed

What version of the product are you using? On what operating system?
The version of the file says 1.0.x
I'm using Windows 7 and Chrome.  I'm using apache as a webserver

Please provide any additional information below.
The problem is in this line:
if( j == -1 ){
  // There is no end quote. Drop the start quote
  value = value.substring( 0, i ) + value.substring( i + 1 );
}

We need to be able to support contractions in English

Original issue reported on code.google.com by dtwa...@gmail.com on 17 Jan 2014 at 4:09