Karma/i18n: Difference between revisions

BryanWB (talk | contribs)
No edit summary
BryanWB (talk | contribs)
No edit summary
Line 5: Line 5:
* Handle strings inside code and html markup
* Handle strings inside code and html markup
   Examples  
   Examples  
   $("#someDiv").text(gettext("Hello World"));
   $("#someDiv").text(gettext("Hello World"));
 
   <div>Hello <strong>W</strong>orld</div>
   <div>Hello <strong>W</strong>orld</div>