Translation file

The translation XML file concerning the developed plugin must be named strings.xml and placed under the root of the plugin (/custom/plugins/project/plugin).

This file must contain every useful string for the plugin smooth functioning and the configuration of its elements.

Example of translation XML file

In this example, the system name used for the “value” attribute is important. It is composed of the following elements separated by dots :

  • the compulsory system prefix « ezs.plugin »;
  • the project’s name;
  • the plugin’s name.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<res>
    <id value="ezs.plugin.<project><plugin>.label">
        <lang value="fr">Système de fichiers</lang>
        <lang value="en">File system</lang>
    </id>
    <id value="ezs.plugin.<project><plugin>.description">
        <lang value="fr">Permet de naviguer dans le système de fichiers</lang>
        <lang value="en">Allows browsing the file system</lang>
    </id>
    <id value="ezs.plugin.<project><plugin>.navigation.scope.label">
        <lang value="fr">Répertoire de navigation</lang>
        <lang value="en">Navigation directory</lang>
    </id>
    <id value="ezs.plugin.<project><plugin>.column.name">
        <lang value="fr">Nom</lang>
        <lang value="en">Name</lang>
    </id>
    <id value="ezs.plugin.<project><plugin>.column.createddate">
        <lang value="fr">Date de création</lang>
        <lang value="en">Creation date</lang>
    </id>
    <id value="ezs.plugin.<project><plugin>.column.size">
        <lang value="fr">Taille</lang>
        <lang value="en">Size</lang>
    </id>
</res>