[TIMOB-8410] MobileWeb: Escape characters showing in i18n strings.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-29T13:51:39.000+0000 |
Affected Version/s | Release 2.0.0, Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-07 |
Components | MobileWeb |
Labels | n/a |
Reporter | Patrick Seda |
Assignee | Chris Barber |
Created | 2012-03-29T07:50:52.000+0000 |
Updated | 2012-08-07T13:50:56.000+0000 |
Description
When using i18n strings, escape characters before quotes are erroneously showing in MobileWeb.
This is the contents of strings.xml:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="test1">\'Single Quotes\'</string>
<string name="test2">\"Double Quotes\"</string>
<string name="test3">No Quotes</string>
</resources>
Attachments
File | Date | Size |
---|---|---|
Archive.zip | 2012-03-29T10:42:32.000+0000 | 3120349 |
i18n_escape Android.png | 2012-03-29T07:50:52.000+0000 | 10786 |
i18n_escape iOS.png | 2012-03-29T07:50:52.000+0000 | 10740 |
i18n_escape MobileWeb.png | 2012-03-29T07:50:52.000+0000 | 10997 |
We can fix this, but I'm not sure why you would need to escape in the first place. If anything, things would use html entities like ".
Won't that break things for iOS and Android though?
Pull request: https://github.com/appcelerator/titanium_mobile/pull/1884
Tested On: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120807070117 Android 4.0.4 - default ,chrome 18.0 Iphone 4.3.5 - safari mobile Mountain lion(10.8) - chrome 21.0,safari 5.1.4,firefox 14.0.1