Language Macros for Confluence
Space shortcuts
Skip to end of metadata
Go to start of metadata

Overview

With the Language Macros for Confluence you can have the same content in different languages on the same Confluence page. The user sees content only in the language set in the user settings. If no macro exists for the preferred language of the user, the app checks if there is a macro for the confluence default language to display. Additionally, the page title can be set according to the users language settings using the Pagetitle macro.

Screenshots







Documentation

Macros

Language Macros

Use the language macros to write content in the languages supported by Confluence.


Parameter

Name

Description

This is a required field

DefaultValues

showLanguage

Add this parameter to the page URL in order to show the content in the chosen language.

  • For example: If you want to see the page content in French, add this to your page URL: ?showLanguage=fr_FR

Please notice that this would work only if you have already added the content in the selected language on the page.

(error)




Example

Show content according to the language a user has set in the user settings.

Confluence wiki markup
{english} This text is only displayed if the user has set english in the user settings. {english} 
{german} Dieser Text erscheint nur, wenn der User Deutsch gewählt hat. {german} 
{french} Ce text est seulement montré si français etait choisi comme langue. {french}



Editor:

Saved page, the viewing users language is set to english:


Pagetitle Macro

Pagetitle{pagetitle}
confluence-content

Parameter

NameDescriptionTypeThis is a required fieldDefaultValues
New Pagetitle
The new pagetitle you want to displaystring

Example

Include the Pagetitle macro inside the language macros to set the title of the page:

Confluence wiki markup
{english} {pagetitle:My english title} This text is only displayed if the user has set english in the user settings. {english} 
{german} {pagetitle:Mein deutscher Titel} Dieser Text erscheint nur, wenn der User Deutsch gewählt hat. {german} 
{french} {pagetitle:Mon titre français} Ce text est seulement montré si français etait choisi comme langue. {french}
Editor:

Saved page, the viewing users language is set to english:


Registration

To be able to use this app you have to register it by using one-click registration. As soon as you use a macro of this app a message will be displayed accordingly. For more information please refer to Registration app Documentation.