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

On this page:

Following the content of the Language app in German and English. Switch the language in Confluence to see the different texts:

This is in englisch


Overview

With the Language app you can have the same content in different languages on the same Confluence page. The user sees content only in the language which is 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.

Language Macros

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

  • {english}
  • {german}
  • {french}


The following macros can be used as well if the corresponding language packs are installed in Confluence:

  • {belarusian}
  • {bulgarian}
  • {catalan}
  • {chinese}
  • {czech}
  • {danish}
  • {dutch}
  • {estonian}
  • {finnish}
  • {greek}
  • {hindi}
  • {hungarian}
  • {icelandic}
  • {indonesian}
  • {irish}
  • {italian}
  • {japanese}
  • {korean}
  • {latvian}
  • {lithuanian}
  • {maltese}

  • {norwegian}
  • {polish}
  • {portuguese}
  • {romanian}
  • {russian}
  • {serbian}
  • {slovak}
  • {slovenian}
  • {spanish}
  • {swedish}
  • {thai}
  • {turkish}
  • {ukrainian}
  • {vietnamese}

Parameters

ParameterRequired

Description

showLanguage(error)

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

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


Examples

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

{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}

Screenshots

Pagetitle Macro

Pagetitle{pagetitle}
confluence-content

Parameter

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

Examples

Include the {pagetitle} macro inside the language macros to set the title of the page:

{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}

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.

FAQ

Support