java - How to internationalize quotation marks in a JSP -
i have application showing quotes client in jsp. actual text of quotation stored in database , doesn't include quotation marks.
the jsp has "{$bean.quote}" which, pointed out boss, not internationalizable.
i've got approval internationalize this, i'm not sure approach use. first 1 i18n lookup startquote , endquote , store character in table. feels heavy.
ideas?
that 1 way it. you're right; if you're doing in lot of places, it's going awkward read , maintain.
html has special element this: q. can put in page:
<q>${bean.quote}</q> you can perform internationalization in css, described in quotation marks section of css specification:
q:lang(en) { quotes: '\201c' '\201d' "\2018" "\2019" } q:lang(no) { quotes: "\ab" "\bb" '"' '"' } q:before { content: open-quote; } q:after { content: close-quote; }
Comments
Post a Comment