PHP code example of wlib / i18n

1. Go to this page and download the library: Download wlib/i18n library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wlib / i18n example snippets


__();	// traduction simple
_n();	// traduction singulier/pluriel
_x();	// traduction simple avec contexte
_nx();	// traduction singulier/pluriel avec contexte
_s();	// traduction simple + sprintf
_ns()	// traduction singulier/pluriel + sprintf