module documentation

_multilangmanager.py - ZMS Multi-Language Manager

This module implements the MultiLanguageManager class, which provides methods for managing content languages and custom language-dictionary entries in a ZMS instance. It includes functionality for retrieving available languages, resolving request languages, and handling ZMI language management actions such as saving, deleting, importing, and exporting language-dictionary entries. The MultiLanguageManager class interacts with the ZMS configuration and content objects to provide a unified interface for multi-language support.

License: GNU General Public License v2 or later, Organization: ZMS Publishing

Class langdict Load and provide access to the built-in ZMI language dictionary.
Class MultiLanguageManager Manage content languages and custom language-dictionary entries.
Class MultiLanguageObject Language selection helpers for content objects.
Function exportXml Export selected language-dictionary rows as XML payload.
Function getDescLangs Return (label, id) tuples for one language and all descendants.
Function importXml Import one or many language-dictionary rows from XML or worksheet XML.
Function normalize_yaml_values Normalize import/_language.yaml to strict YAML by quoting all values.
Function _importXml Import one language-dictionary row into custom language configuration.
def exportXml(self, ids, REQUEST=None, RESPONSE=None): (source)

Export selected language-dictionary rows as XML payload.

def getDescLangs(self, id, langs): (source)

Return (label, id) tuples for one language and all descendants.

def importXml(self, xml): (source)

Import one or many language-dictionary rows from XML or worksheet XML.

def normalize_yaml_values(data): (source)

Normalize import/_language.yaml to strict YAML by quoting all values.

def _importXml(self, item): (source)

Import one language-dictionary row into custom language configuration.