Articles in this section

How to show copyright and disclaimer text in the document language set in the user profile

About this article

This article explains how to show a copyright text like '© 2024' in a presentation or document and a disclaimer text in the document language set in the user profile.

 

Prerequisites

 

 

Configuration options

The are different ways to set up the environment (click the link to go directly to the example):

 

Examples

In all examples the Languages data source is configured with the languages Dutch (Netherlands) (nl-NL) and English (United States) (en-US):

datasourcelanguages.png

 

The user profile is configured with a Document language field (this is required). For the purpose of the examples, the document language is also added to the profile summary (marked green):

userprofiledocumentlanguage.png

 

 

Example 1 - Using the Translations data source and the Translate() function

In this example the copyright and disclaimer text is used in a Word template, using the Translate() function. When a Word document is created it shows the copyright and disclaimer text in the footer, in the document language set in the user profile.

The user can change the language in the document by selecting another user profile (the user has 2 user profiles configured, one with the document language set to English and the other one set to Dutch).

 

Add Copyright and Disclaimer texts to the Translations data source

  1. In the Translations data source click + Create to add a 'Copyright' item. In the En-US column enter an English text like '© 2024 All rights reserved.' and in the Nl-NL column enter a Dutch text like '© 2024 Alle rechten voorbehouden.'.

  2. Click + Create again to add a 'Disclaimer' item and enter an English and Dutch disclaimer text. The result looks like this: 

    translationscopyrightdisclaimer.png

     
    • Because the value '© 2024' is used as plain text this means that every year the value needs to be updated in the data source.
     
  3. Click Create.

 

Create a Word template

A Word template is created that will show the copyright and disclaimer texts in the footer of the document, in the document language set in the user profile.

  1. Open Word and in Template Designer click + Create template.

  2. In the footer of the document type the placeholder text '[Copyright]' and select the text.

  3. In Template Designer on the Template tab click Custom text binding and use these values:
    • Display name: '[Copyright]'.
    • Binding: {{Translate("Copyright")}}.
    • Allow updates: Enabled.

      customtextbinding.png
       
  4. Click Add to template.

  5. In the footer of the document, below the copyright placeholder, type the placeholder text '[Disclaimer]' and select the text.

  6. On the Template tab click + Add smart fieldCustom text binding and use these values:
    • Display name: '[Disclaimer]'.
    • Binding: {{Translate("Disclaimer")}}.
    • Allow updates: Enabled.
  7. Click Add to template. The result looks like this:

    copyrightanddisclaimerfooter.png

  8. Save the template as 'MyLetter' and upload it to the Admin Center.

  9. When a user creates a document the copyright and disclaimer texts are shown in the document language set in the user profile:

    copyrightdisclaimerword.gif

 

Example 2 - Using a data source with language columns and the Switch() function

In this example the copyright and disclaimer text is used in a Word template, using the Switch() function in combination with Datasources[]. When a Word document is created it shows the copyright and disclaimer text in the footer, in the document language set in the user profile.

The user can change the language in the document by selecting another user profile (the user has 2 user profiles configured, one with the document language set to English and the other one set to Dutch).

 

Create a data source with copyright and disclaimer texts

A data source is created that contains the copyright and disclaimer text in both English and Dutch.

  1. Create a data source named 'TextRepository'.

  2. On the Schema tab click + Add field and use these values:
    • Name: 'En-US'.
    • Type: 'Text'.
    • Multiple lines: Enabled.
  3. Click Add.

  4. Click + Add field again and use these values:
    • Name: 'Nl-NL'.
    • Type: 'Text'.
    • Multiple lines: Enabled.
  5. Click Add.

  6. Click Open data source, then click + Create and use these values:
    • Name: 'Copyright'.
    • En-US: '© 2024 All rights reserved. This material may not be reproduced, changed, or shared without permission of the copyright owner.'.
    • Nl-NL: '© 2024 Alle rechten voorbehouden. Dit materiaal mag niet worden gereproduceerd, gewijzigd of gedeeld zonder toestemming van de auteursrechteigenaar.'.

      For both En-US and Nl-NL type the first sentence on line 1, press Enter, then type the second sentence on line 2. The result looks like this:

      createdatasourceitem.png
       
       
      • Because the value '© 2024' is used as plain text this means that every year the value needs to be updated in the data source.
      • When text is placed on a new line in the data source it will also appear that way in the document.
       
  7. Click Create.

  8. Click + Create again and use these values:
    • Name: 'Disclaimer'.
    • En-US: 'The information provided is for general informational purposes only. We do not guarantee the accuracy or completeness of this information.'.
    • Nl-NL: 'De verstrekte informatie is uitsluitend bedoeld voor algemene informatieve doeleinden. Wij garanderen niet de nauwkeurigheid of volledigheid van deze informatie.'.

      For both En-US and Nl-NL type the first sentence on line 1, press Enter, then type the second sentence on line 2.

  9. Click Create. The result looks like this:

    datasourcetextrepository.png


Create a Word template

A Word template is created that will show the copyright and disclaimer texts in the footer of the document, in the document language set in the user profile.

  1. Open Word and in Template Designer click + Create template.

  2. In the footer of the document type the placeholder text '[Copyright]' and select the text.

  3. In Template Designer on the Template tab click Custom text binding and use these values:
    • Display name: '[Copyright]'.
    • Binding: {{Switch(DocumentLanguage,"en-US", DataSources.TextRepository["Copyright"].En-US, DataSources.TextRepository["Copyright"].Nl-NL)}}.
    • Allow updates: Enabled.

      customtextbindingswitch.png
       
  4. Click Add to template.

  5. In the footer of the document, below the copyright placeholder, type the placeholder text '[Disclaimer]' and select the text.

  6. On the Template tab click + Add smart field ➜ Custom text binding and use these values:
    • Display name: '[Disclaimer]'.
    • Binding: {{Switch(DocumentLanguage,"en-US", DataSources.TextRepository["Disclaimer"].En-US, DataSources.TextRepository["Disclaimer"].Nl-NL)}}.
    • Allow updates: Enabled.
  7. Click Add to template. The result looks like this (with Design Mode enabled in the Word ribbon):

    copyrightanddisclaimerfooterswitch.png

  8. Save the template as 'MyMemo' and upload it to the Admin Center.

  9. When a user creates a document the copyright and disclaimer texts are shown in the document language set in the user profile:

    copyrightdisclaimerwordmultiplelines.gif


     
    • Because in the data source sentences 1 and 2 (for both the copyright and disclaimer text) have been typed on a different line, the document also shows each sentence on its own line.
     

 

Example 3 - Using a data source with a reference language column

In this example a PowerPoint presentation is created that shows a copyright and disclaimer text on every slide, in the document language set in the user profile.

The user can change the language in the presentation by selecting another user profile (the user has 2 user profiles configured, one with the document language set to English and the other one set to Dutch).

For the copyright the year is not added to the data source (unlike examples 1 and 2), but the Now() function is used to automatically display the current year.

 

Create a data source with copyright and disclaimer texts

A data source is created that contains the copyright and disclaimer text in both English and Dutch.

  1. Create a data source named 'CopyrightAndDisclaimer'.

  2. On the Schema tab click + Add field and use these values:
    • Name: 'Copyright'.
    • Type: 'Text'.
    • Multiple lines: Enabled.
  3. Click Add.

  4. Click + Add field again and use these values:
    • Name: 'Disclaimer'.
    • Type: 'Text'.
    • Multiple lines: Enabled.
  5. Click Add.

  6. Click + Add field again and use these values:
    • Name: 'Language'.
    • Type: 'Reference'.
    • Data Source: 'Languages'.
  7. Click Add. The result looks like this:

    copyrightanddisclaimerschema.png

  8. Click Open data source, then click + Create and use these values:
    • Name: 'Text_English'.
    • Copyright: 'All rights reserved. This material may not be reproduced, changed, or shared without permission of the copyright owner.'.
    • Disclaimer: 'The information provided is for general informational purposes only. We do not guarantee the accuracy or completeness of this information.'.
    • Language: 'English (United States) (en-US)'.
  9. Click Create.

  10. Click + Create again and use these values:
    • Name: 'Text_Dutch'.
    • Copyright: 'Alle rechten voorbehouden. Dit materiaal mag niet worden gereproduceerd, gewijzigd of gedeeld zonder toestemming van de auteursrechteigenaar.'.
    • Disclaimer: 'De verstrekte informatie is uitsluitend bedoeld voor algemene informatieve doeleinden. Wij garanderen niet de nauwkeurigheid of volledigheid van deze informatie.'.
    • Language: 'Dutch (Netherlands) (nl-NL)'.
  11. Click Create. The result looks like this:

    copyrightanddisclaimercolumns.png


Create a PowerPoint template

A PowerPoint presentation is created that will show the copyright and disclaimer texts in the document language set in the user profile. The texts will be shown on all slides, because the shapes (bindings) are created on the Slide Master.

  1. Open PowerPoint and in Template Designer click + Create template.

  2. On the Form tab click + Add question and use these values:
    • Type: 'Dropdown'
    • Name: 'SelectText'.

       
      • The name can be anything because the question will not be visible to the user.
       
    • Data source: 'CopyrightAndDisclaimer'.
    • Label column: 'Name'.
    • Filter by: 'DocumentLanguage'.

       
      • To display the Filter by field, click + Add filter in the Filter options section.
      • The option DocumentLanguage will only be available if a Document language dropdown is configured in the user profile. This is required.
       
    • Hide if no interaction: Enabled.
    • Auto select first option: Enabled.
  3. Click Add to form. The result looks like this:

    dropdownwithfilter.png

  4. In the Office ribbon, on the View tab, select Slide Master. Then on the Insert tab select a (rectangle) shape and insert it at the bottom of the Slide Master.
    Optional: Make the shape color blue. This shape will be used to display the disclaimer text.

  5. Make sure the shape is selected, then in Template Designer, on the Template tab, click Form responses, expand SelectText and select Disclaimer.

     
    • This will create the binding {{Form.SelectText.Disclaimer}}.
     
  6. Click Add to template. Optional: Align the text to the left.

  7. Insert another (rectangle) shape and insert it to the Slide Master above the shape from step 4.
    Change the color to green (optional). This shape will be used to display the copyright text.

  8. Make sure the shape is selected, then in Template Designer, on the Template tab, click + Add smart field. Then click Form responses, expand SelectText and select Copyright.

  9. Click Edit binding. The binding {{Form.SelectText.Copyright}} is shown.
    Add © {{FormatDateTime(Now(),"yyyy")}} before the binding. The result looks like this:

    formatdatetimenowbinding.png

     

     
    • The FormatDateTime() and Now() functions in combination with the formatting yyyy are used to automatically display the current year.

     

  10. Click Add to template. Optional: Align the text to the left. The result looks like this:

    copyrightanddisclaimerslidemaster.png

  11. Click Close Master View.

  12. Optional: in the normal view remove the placeholders 'Click to add title' and 'Click to add subtitle':

    clicktoaddtitle.png

  13. Save the template as 'MyPresentation' and upload it to the Admin Center.

  14. When a user creates a presentation the copyright and disclaimer texts are shown in the document language set in the user profile. As shown, when changing the user profile to 'John Johnson - nl-NL' to 'John Johnson - en-US', the text in the slide changes from Dutch to English:

    changecopyrightdisclaimerlanguage.gif

    Also note that the copyright text shows '© 2024' (because it is 2024 when the presentation is created).

 

 

Related articles

 

 

language switch datasources documentlanguage document language language dependent translate custom text binding translation disclaimer copyright reference
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.