Quantcast
Viewing latest article 11
Browse Latest Browse All 16

Create to the own language file

You can easily create your own language file. How to create them, I declare to you the following:

1. Create a new file:
For example: lang.newlanguage.php
This "lang." must be written, otherwise it does not work.

2. Insert into file (lang.newlanguage.php):

<?php

$LANG['newlanguage'] = array (

"test" =>
"Test is successfully.",

);

?>

3. Add this line in /index.php:
More or less in 201. line; paste to below this line of:
...
define ('SYS_LANG', $SESSION->conf['language']);
include_once SYS_PATH . 'includes/languages/' . SYS_LANG . '/lang.core.php';
...

include_once SYS_PATH . 'includes/languages/' . SYS_LANG . '/lang.newlanguage.php';

4. It's done, but a short explanation:
Somewhere only in *.tpl files, you can use this word:

{lang:"newlanguage","test"}

Viewing latest article 11
Browse Latest Browse All 16

Trending Articles