Attribute Name |
Mandatory |
Default |
Description |
default |
Yes |
n/a |
Default language |
<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>
<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>
<url><![CDATA[/]]></url>
<mnu><![CDATA[/cms/data/eng.xml]]></mnu>
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 |
<public start="2013-01-01 00:00:00">1</public>
Attribute Name |
Mandatory |
Default |
Description |
inherit |
No |
1 |
1 - access control inheritance from higher level ACL list, 0 - stop inheritance |
<acl inherit="0">
<entry type="role">demo</entry>
<entry type="user">admin</entry>
</acl>
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 |
<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>
<timestamp><![CDATA[2014-09-19 21:22:19]]></timestamp>