Translation Group Module

Overview

This module is used for registering new group of translations. It is useful if You want to get all translations matching some prefix in batch. Please see API for more information.

Module's schema is defined in localization.xsd.

Attributes

name

type

required

description

name

string

yes

Name of the group. It is used to retrieve group of translations.

prefix

string

yes

Prefix used to match translations.
Only translations starting with prefix will be included in group.

Example

Please find below an example of plugin defining one group of translations module. Lines 8 contains a module which register group dashboard with contains all translations starting with core.dashboard.

<?xml version="1.0" encoding="UTF-8"?>
<plugin plugin="samplePlugin" version="1.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="http://schema.qcadoo.org/plugin" 
    xmlns:localization="http://schema.qcadoo.org/modules/localization" 
    xsi:schemaLocation="http://schema.qcadoo.org/plugin http://schema.qcadoo.org/plugin.xsd http://schema.qcadoo.org/modules/localization http://schema.qcadoo.org/modules/localization.xsd">

    <localization:translation-group path="dashboard" basename="core.dashboard" />

</plugin>