Naviga Writer
8.1.7
8.1.7
  • Naviga Writer
  • Release notes
    • 8.1.7
    • 8.1.6
    • 8.1.5
    • 8.1.4
    • 8.1.3
    • 8.1.2
    • 8.1.1
    • 8.1
    • 8.0
    • 7.2
    • 7.1.0
    • 7.0.0
    • 6.5.x
    • 6.5.0
    • 6.4.1
    • 6.4.0
    • 6.3.5
    • 6.3.4
    • 6.3.3
    • 6.3.2
    • 6.3.1
    • 6.2.2
    • 6.2.1
    • 6.2.0
    • 6.1.2
    • 6.1.1
    • 6.1.0
    • 6.0.0
    • 5.3.0
  • Introduction
    • Authoring
    • Developing
    • Publishing
    • History
  • User Guide
    • Writer User Guide
      • Create a new article
      • Top bar
        • Setting menu
        • Article name
        • Search and replace words
        • Version history of an article
          • List of versions
          • Changes in each version
          • Restore to an older version
        • Locked article
        • Active Users
        • Copy article url
        • Save and publish flow
        • History Button
      • Content area
        • Image gallery
        • Embed map
        • Table
        • Teaser
        • Content part
        • HTML embed
        • Upload image
        • Upload PDF
        • Textstyles
        • Lists
        • Special character
        • Marker tool
      • Right Sidebar
        • Meta
          • Author
          • Channels
        • Integrations
        • Image and Article search
      • Bottom bar
        • Article information
        • Edit metadata on linked images
        • Article size
        • Text information
        • Language menu
      • Images User Guide
        • Upload images
        • Metadata of the image
        • Cropping images
        • Download
      • Personal Writer Template
      • Writer Keyboard Shortcuts
      • Text Management
      • Common questions when starting using Writer
  • Admin Guide
    • Configuration Files
    • Configurations Guide
      • Right Sidebar
      • Text Information
      • Content menu
    • Article Templates Configuration
    • Byline configuration
    • Language Configuration
    • Publish Flow
      • Default configuration definitions
      • Publish flow config details
      • Preconditions for roles in the publish flow
    • Generic Properties
      • Configuration
    • Image Services
      • ImEngine
      • Imgix
    • Plugins
      • Naviga developed plugins
        • Plugins in earlier versions of Writer
      • Deprecated Plugins
      • Third-party plugins
  • Developer guide
    • Upgrade Guides
      • 8.0 - Image/PDF upload changes
      • 8.0 - Opening an Article
    • Writer Plugin Development
      • Quickstart
      • Type Definitions (beta)
      • Plugin overview
      • Creating a content object plugin
      • Validation and hooks
      • Interacting with external resources
    • Writer Plugin Building Blocks
      • Package
      • Component
      • Node
      • Converter
      • Events
    • Writer Plugin Style Guide
      • CSS Guidelines
      • CSS variables, colors and fonts
      • UI Components
    • Tutorials
      • Popover & text analysis
      • Search & replace
      • Concept interaction
      • Integrating External Spell Checking
    • Infomaker NewsML
      • Overview
      • Important: About inline notes
      • Document relations and types
      • Extensions XSD
      • NewsItem
      • ConceptItem
      • PlanningItem
      • Examples
        • NewsItem - Text
        • NewsItem - Picture
        • NewsItem - PDF
        • ConceptItem - Author
        • ConceptItem - Category
        • ConceptItem - Channel
        • ConceptItem - Content Profile
        • ConceptItem - Event
        • ConceptItem - Organisation
        • ConceptItem - Person
        • ConceptItem - Place (point)
        • ConceptItem - Place (polygon)
        • ConceptItem - Section
        • ConceptItem - Story
        • ConceptItem - Topic
        • PlanningItem
    • Media Enrichment
      • Images
  • API Reference
    • Writer Api
      • Api
      • Article
      • Browser
      • Concept
      • ConceptService
      • Document
      • Events
      • NewsItem
      • Router
      • Ui
      • Upload
      • User
      • settings
      • History
      • Settings
    • UI Components
      • UIAvatar
      • UIButton
      • UIByline
      • UICheckbox
      • UIChip
      • UIDatePicker
      • UIDatetimeFieldEditor
      • UIDropdown
      • UIFieldEditor
      • UIIconButton
      • UIInlineImage
      • UIPagination
      • UISelect
      • UITimePicker
      • UIToggle
      • UITooltip
      • UIInputText
      • UITextarea
      • UIButtonGroup
      • UIConceptSearch
      • UIDateTimePicker
      • UIInputSearch
      • UIIcon
      • UIPill
      • UISpinner
      • UIButtonList
      • UIIconBadge
      • UIIconButtonMenu
      • UIInputPassword
Powered by GitBook
On this page
  • Article Language vs UI Language
  • User Interface Language
  • Article Language
  • Client Configuration
  • Setting UI Language
  • Setting Default Article Language
  • Setting Calendar Locale (optional)
  • Setting Available Languages (optional)
  • Article Template Configuration
  • User Interface Translation
  • Individual plugins
  • Branding plugin
  • Currently Supported Languages

Was this helpful?

  1. Admin Guide

Language Configuration

This page provides information about language configuration, support, spellcheck and how language codes are stored in the NewsML article.

Article Language vs UI Language

There is a difference between Article Language and Client Language which is important to understand when configuring the writer client.

User Interface Language

User Interface Language refers to the language used for the Writer itself, i.e. buttons, labels, notification messages, and so on. Basically anything part of the User Interface is the User Interface (UI) Language.

It's possible to set the UI Language in the writer-client config file, see below for examples and formatting.

It's not possible for normal users to change this setting.

Calendar Locale

It is also possible to change the locale used for date formatting, mainly used in date and time input fields. This could be useful if, for example, the UI language is set to Swedish but the calendar locale should use Finnish locale.

Calendar locale will use the default Article Language if not specified.

Article Language

Article Language refers to the actual language of the article content. This value is used for spellchecking and is stored in the article's NewsML.

The user can select article language using the language selector in the bottom bar.

Changing the article language also changes which language is used for spellchecking.

It's possible to configure which languages are available in the language selector using the writer-client config file. See below for examples.

Client Configuration

This section assumes the reader is familiar with the Writer's client configuration file and general structure.

Example client configuration:

{
    "labelLanguage": "en",
    "language": "en_US",
    "calendarLocale": "en",
    "languageFallbacks": {
        "sv": "sv_SE"
    },
    "plugins": ...
}

Setting UI Language

Use the property labelLanguage to set UI Language.

Setting Default Article Language

The article will first try to find its language value in its XML using the value of the contentSet > inlineXML > idf[xml:lang] -attribute.

If the XML value does not follow the format xx-YY (note the dash separator which is standard for XML-tags), then the languageFallbacks-property will be used to attempt to find the language. For instance, if language found in the xml:lang-attribute has the value "sv", then the languageFallbacks will be used and discover that it should use sv_SE.

If the language can not be found in languageFallbacks, then the value configured in the language-property will be used for spellchecking. The language-property can be seen as the default article language.

The language-property should be set to a pair of two-character codes separated by an underscore xx_YY (note the underscore, which is different from the xml:lang-value), e.g. "sv_SE", "en_GB", "en_US".

Technically this format can be described as [language-identifier]_[region_identifier],

To summarize: Article Language will first look at its xml:lang-property, then at configured languageFallbacks, then finally use the value from the language-property in the configuration file.

Setting Calendar Locale (optional)

Setting the calendar locale is optional, and if not set will use the value of the language-property as a fallback.

This value is flexible and will accept either xx or xx_YY formats.

Setting Available Languages (optional)

In cases where only a subset of the supported languages should be available to the users, use the languageOptions-object and add languages-property to it.

The languages-property is a list of objects with label, code, and direction-properties. The direction-property has a default value of "rtl" (right to left), the other possible value is "ltr" (left to right).

Example of configuration where only Swedish and English languages are available.

{
    "language": "en_US",
    "languageOptions": {
        "languages": [
            {
                "label": "Svenska",
                "code": "sv_SE"
            },
            {
                "label": "English",
                "code": "en_US"
            }
        ]
    },
    "plugins": ...
}

When adding a language which is not part of the list of supported languages, the internal spellchecking might stop working, or revert to english.

Article Template Configuration

First of all the template should be configured correctly. The <idf>-element should have correct values for dir, which can be either ltr (left to right) or rtl (right to left). The attribute xml:lang should be set to the correct locale used by the customer. It should have the same value as the language-property in the client configuration, except replaces the underscore with a dash.

Note that locales in xml use a dash - to separate language and country (en-GB, en-US) whereas elsewhere in the Writer configuration an underscore is used (en_GB, en_US). This is according to standards.

<contentSet>
    <inlineXML>
        <idf xmlns="http://www.infomaker.se/idf/1.0" dir="ltr" xml:lang="en-US">
            <group type="body">
                <element id="headline-d1f5ac9f52fc17b4da89004c9c7493da" type="headline">Headline here</element>
            </group>
        </idf>
    </inlineXML>
</contentSet>

User Interface Translation

By default English and Swedish, are supported by the Writer. This can be extended by adding translations using the branding plugin (see below).

This is controlled by the Writer client configuration setting labelLanguage. Set this to either sv or en as in the example below.

If this setting is incorrect the user interface will fall back to English.

As there are many instances where installations might want to use one language for the user interface, but still display date and time using a format from another language the date and time format can be controlled using the configuration setting calendarLocale.

See below for an example where the user interface uses Swedish but the date and time format will be displayed using the Finnish format.

{
    ...
    "labelLanguage": "sv",
    "calendarLocale": "fi"
    ...
}

Individual plugins

Many plugins can be configured to display different fields, labels and descriptions. These plugins must be configured independently. Examples include, but are not limited to, publish flow, generic text field, option and the content part plugins.

Branding plugin

The branding plugin can be used in two ways. Either as a way of overriding specific "labels", text, used in the user interface to allow organizations to use their own vocabulary if different from what is used in the Writer.

It can also be used to add labels for a completely new language, or in short, translate the Writer user interface.

Currently Supported Languages

The internal spellcheck and suggestion feature currently supports the following languages:

  • en_GB - English (Great Britain)

  • en_US - English (American)

  • en_CA - English (Canadian)

  • en_AU - English (Australian)

  • en_NZ - English (New Zealand)

  • it_IT - Italian

  • nb_NO - Norsk Bokmål

  • nn_NO - Nynorsk

  • nl_NL - Nederlands

  • sv_SE - Svenska

  • sv_FI - Svenska (Finland)

  • pl_PL - Polskie

  • de_DE - Deutsch

  • de_AT - Deutsch (Österreich)

  • de_CH - Deutsch (Schweiz)

  • fr_FR - Français

  • is_IS - Íslensku

  • pt_PT - Português

  • es_ES - Spanish (Traditional)

  • es_MX - Spanish (Mexican)

PreviousByline configurationNextPublish Flow

Was this helpful?

The format for this value should be two characters, following the standard, e.g. "sv", "en", "no".

[language-identifier] follows the standard, which is two letters, lowercased.

[region-identifier] follows the standard, which is two letters, uppercased.

See documentation for each plugin at .

For more information see the documentation for the Branding plugin at .

ISO 639-1
ISO 639-1
ISO 3166-2
https://plugins.writer.infomaker.io/
https://plugins.writer.infomaker.io