<lang>

    Site language entry tag

    |

    mandatory, repeatable

    Attribute Name Mandatory Default Description
    default Yes n/a Default language

    Sample for using:

    <lang default="1"> <url><![CDATA[/]]></url> <url_alt><![CDATA[#lang-eng]]></url_alt> <name><![CDATA[English]]></name> <short><![CDATA[EN]]></short> <code><![CDATA[eng]]></code> <id><![CDATA[en]]></id> <mnu><![CDATA[/cms/data/eng.xml]]></mnu> </lang>


    <lang><url>

    Language URL

    |

    mandatory, non repeatable

    Sample for using:

    <url><![CDATA[/]]></url>


    <lang><url_alt>

    Language alternative URL. May be used for language switching using jquery events (ex. onlick).

    |

    optional, non repeatable

    Sample for using:

    <url_alt><![CDATA[#lang-eng]]></url_alt>


    <lang><name>

    Language name text. Usualy may be used as language <li> tag title attribute

    |

    mandatory, non repeatable

    Sample for using:

    <name><![CDATA[English]]></name>


    <lang><short>

    Language short name to be used as a text in language anchor (<a>) tag

    |

    mandatory, non repeatable

    Sample for using:

    <short><![CDATA[EN]]></short>


    <lang><code>

    Language unique free text code to be used as language menu tree file name

    |

    mandatory, non repeatable

    Sample for using:

    <code><![CDATA[eng]]></code>


    <lang><code_id>

    Language unique 2-letter code from classificator

    |

    mandatory, non repeatable

    Sample for using:

    <id><![CDATA[en]]></id>


    <lang><url>

    Language URL

    |

    mandatory, non repeatable

    Sample for using:

    <url><![CDATA[/]]></url>


    <lang><mnu>

    Language menu tree xml file path

    |

    mandatory, non repeatable

    Sample for using:

    <mnu><![CDATA[/cms/data/eng.xml]]></mnu>


    <lang><public>

    Language public availability: 1 - available, 0 - not available

    |

    optional, non repeatable

    Attribute Name Mandatory Default Description
    start No 0000-00-00 00:00:00 Date and time when public availability starts
    stop No 9999-00-00 00:00:00 Date and time when public availability stops

    Sample for using:

    <public start="2013-01-01 00:00:00">1</public>


    <lang><acl>

    Language access control list

    |

    optional, non repeatable

    Attribute Name Mandatory Default Description
    inherit No 1 1 - access control inheritance from higher level ACL list, 0 - stop inheritance

    Sample for using:

    <acl inherit="0"> <entry type="role">demo</entry> <entry type="user">admin</entry> </acl>


    <lang><acl><entry>

    Language access control list entry, contains user/group ID

    |

    mandatory, repeatable

    Attribute Name Mandatory Default Description
    type Yes n/a "user" - user ID, "role" - group id
    r No 1 1 - allow read language data using "Menu" tool, 0 - not allow read
    w No 1 1 - allow write language data using "Menu" tool, 0 - not allow write
    e No 1 1 - allow execute language (include it in languages list), 0 - not allow execute
    m No 1 1 - allow manage language access control list using "Menu" tool, 0 - not allow manage

    Sample for using:

    <entry type="admin" e="1" w="1"></entry>


    Sample CMS lang XML file:

    <?php echo '<?xml ';?>version="1.0" encoding="utf-8" <?php echo '?>';?> <data> <lang default="1"> <url><![CDATA[/]]></url> <url_alt><![CDATA[#lang-eng]]></url_alt> <name><![CDATA[English]]></name> <short><![CDATA[EN]]></short> <code><![CDATA[eng]]></code> <id><![CDATA[en]]></id> <mnu><![CDATA[/cms/data/eng.xml]]></mnu> </lang> </data>


    <lang><timestamp>

    Language menu item last update timestamp

    |

    optional, non repeatable

    Sample for using:

    <timestamp><![CDATA[2014-09-19 21:22:19]]></timestamp>

    Vulnerability Scanner