Cookies on the Xeoncoder.com

We use cookies to ensure that we give you the best experience on our website.
The cookies cannot identify you. If you continue without changing your settings
we'll assume that you are happy to receive all cookies on the Xeoncoder.com website.

How to work with the languages in nTeN script... a few examples.


Language file structure:

This language structure is used since 1.1.9 version.

<?xml version="1.0" encoding="UTF-8"?>
    <!--
    nTeN PTC script 1.x.x

    Author: Mariusz Kisiel, xeoncoder.com (admin@xeoncoder.com)
    Website: http://xeoncoder.com
    Copyright (C) 2009-2014 Mariusz Kisiel, xeoncoder.com

    @author Mariusz Kisiel, xeoncoder.com (admin@xeoncoder.com)
    @copyright 2009-2014 Mariusz Kisiel, xeoncoder.com
    @name nTeN 1.1.9+ language file
    -->
<locale name="en" full_name="English" version="1.1.9">

    <!-- Global entries used in Control Panel and User areas -->
    <global>
        <message key="global.message">This is global message for Control Panel and User areas.</message>
    </global>

    <!-- User area entries -->
    <user>
        <!-- Global entries used in the user area -->
        <global>
            <message key="global.user.message">This is global message for User area.</message>
        </global>

        <!-- section entries -->
        <help>
            <message key="user.help.message">This is help page message for user area.</message>
        </help>
    </user>

    <!-- Control Panel entries -->
    <control>
        <!-- Global entries used in the Control Panel -->
        <global>
            <message key="global.control.message">This is global message for Control Panel.</message>
        </global>

        <!-- section entries -->
        <help>
            <message key="control.help.message">This is help page message for Control Panel.</message>
        </help>
    </control>

</locale>