Translation Macros

Searching Help

The Translation Macros Plugin adds the following new macros that are useful for the i18n team:

  • nt - The "no translate" macro is used to specify that a certain portion of a paragraph should not be translated.
  • nt-section - The "no translate section" macro is used to specify that one or more paragraphs (or tables, lists, etc.) should not be translated.
  • term - The "term" macro is used to specify that certain words in a paragraph represent a term, and should be carefully translated.
Macro name Example markup Resulting html Live example
nt {nt}foo{nt} <span class="sunwikis-no-translate">foo</span> foo
nt-section {nt-section}multi-paragraph text or text with tables{nt-section} <div class="sunwikis-no-translate">multi-paragraph text or text with tables</div>
multi-paragraph text or text with tables
term {term}foo{term} <span class="sunwikis-term">foo</span> foo

As you can see, visually the rendered output is unmodified. These macros just add markup code that is usually hidden, but that can be exposed when using translation tools.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact