Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312971 - Localization Editor does not accept < and > characters
Summary: Localization Editor does not accept < and > characters
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sequoyah (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 15:27 EDT by Daniel Barboza Franco CLA
Modified: 2016-11-08 14:45 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Barboza Franco CLA 2010-05-14 15:27:33 EDT
The parser that we use converts &lt; and &gt; to < and >. The side effect of this is that it is not possible typing something like 4 < 5 in our editor. When someone is typing < or > our editor expects a tag, and this will generate an error, on the other hand if someone types &lt; it will be converted to < leading to the same problem.

Possible solution:
We could add an option that changes the way our editor behaves so that we can accept both scenarios (tags and mathematical inequalities).
Comment 1 Daniel Drigo Pastore CLA 2010-08-05 13:05:39 EDT
The behavior of the parser was changed to correctly support the symbols '<' and '>'. 

a) When the sequences '&lt;' and '&gt;' are rendered in the graphical editor, they are unescaped to the symbols '<' and '>'. Those symbols are used only to represent HTML tags that can be inserted in texts to be translated.

b) When '&amp;lt;' and '&amp;gt;' are rendered in the graphical editor, they are unescaped to the sequences '&lt;' and '&gt;'. Those sequences must be used if the user wants to show '<' or '>' in texts to be translated.

Conclusion: if anyone needs to use the mathematical symbols '<' or '>' in a text, they should use the escaped sequences '&lt;' and '&gt;'.
Comment 2 Eric Cloninger CLA 2010-08-11 12:05:58 EDT
+1 for Helios SR1