Login   Register  
PHP Classes
elePHPant
Icontem

File: precompile.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 9 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";
  
?>