PHP Classes

File: precompile.php

Recommend this page to a friend!
  Classes of MC Breit   LanguageSys   precompile.php   Download  
File: precompile.php
Role: Auxiliary script
Content type: text/plain
Description: A simple script to precompile your language files
Class: LanguageSys
Use multi-idiom texts with pre-compilation support
Author: By
Last change: Changed the codes are used for example files
Date: 19 years ago
Size: 292 bytes
 

Contents

Class file image Download
<?php

 
include('LanguageSys.class.php');

 
$srcfile = './de-DE.ini';
 
$destfile = './de-DE.lng';
 
 
$compiler = new LanguageSys();
  if( !
$compiler->compile($srcfile, $destfile) )
  {
    die(
$compiler->last_error());
  }
 
  print
"File compiled successfully.\n";
 
?>