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.