Main

 

Prepare

To use our translation service, the first thing you'll need to do is prepare your language files. Separate the strings and bits of text you'd like to translate from the bulk of your programming logic and create files like the example below.

Example Language File: example.php

&lt?php
 
$langArray [ 'disable' ] = 'Disable' ;


$langArray [ 'search_options' ] = 'Search Options' ;


$langArray [ 'confirm_password' ] = 'Confirm Password.' ;


...

At any point during the translation, you'll be able to download the translated versions of your language files. The results are files identical in format with the translated texts.

Original File: example.php

&lt?php
 
$langArray [ 'disable' ] = 'Disable' ;


$langArray [ 'search_options' ] = 'Search Options' ;


$langArray [ 'confirm_password' ] = 'Confirm Password.' ;


...

Translated File: example.php

&lt?php
 
$langArray [ 'disable' ] = 'Désactiver' ;


$langArray [ 'search_options' ] = 'Options de recherche' ;


$langArray [ 'confirm_password' ] = 'Confirmez le mot de passe.' ;


...

As a general rule, our parser will extract each string of text surrounded with single quotes (') or double quotes (") with the exception of array indices.

Back - Continue

Last modified 16:16 Mon, 1 Nov 2010 by Main. Accessed 1,801 times Children What Links Here share Share