Re: Barracuda: Localize problem with long text
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Organization | Springfield Nuclear Plant |
| Message-ID | <[email protected]> |
Hello Andras, One way might be to normalize the DOM before comparing the strings. This should get rid of any unnecessary white space. However, I don't know if this is appropriate with an HTML DOM. It is usually just fine with an XML DOM. This is just conjecture, though. I'd have to look at the exact issues involved. Anyone else have ideas? BTW, check out the info on this Java preprocessor: http://virtualschool.edu/java+/ It does automatic localization and keys everything on hashes. Well, that among a number of other things. I wonder if we could use something like this along with the Barracuda framework or in XMLC? Jake Monday, January 13, 2003, 10:25:12 AM, you wrote: AB> Hi, AB> I am trying to localize in my html template a text like "Product quantity AB> available". AB> Because the line is too long my HTML Editor (DW) breaks this text in 2 AB> lines: AB> " <td>Product quantity AB> available." AB> Since in my properties file i have "Product quantity available" the localize AB> taskdef doesn't recognize AB> this string as to be localized. AB> I have taken a look at Localize.java and i think that changes should be AB> made somewhere after line AB> 597: String txt = txtNode.getData(); AB> Can somebody suggest a good method to get rid on unneccesary indentation and AB> newline? AB> The brut force approach would be to make some character replacements. AB> My opinion is that the extra spaces(and newline) should be removed when AB> localizing because in html AB> in most of the cases more than one space(and newline) is usually ignored AB> when rendering. AB> Any comment is apreciated. AB> Let's catch some Barracuda in this new year! AB> Andras. AB> _______________________________________________ AB> Barracuda mailing list AB> [email protected] AB> http://www.enhydra.org/mailman/listinfo.cgi/barracuda AB> FAQ - http://www.jguru.com/faq/Barracuda -- Best regards, Jacob mailto:[email protected] _______________________________________________ Barracuda mailing list [email protected] http://www.enhydra.org/mailman/listinfo.cgi/barracuda FAQ - http://www.jguru.com/faq/Barracuda