Recommend this page to a friend! |
Classes of Melih Berat SANLI | PHP Multilanguage Support | README.md | Download |
|
DownloadmultilangPHPImport the library
Using> How to starting
> Set Languages Directory
before > GET function
| $return | what is does | |--|--| | 1 | return | | 0 | echo | | $request | what is does | output example | |--|--|--| | lang | Gives you the language selected by the user | en | | dir | Gives you the directory | ../demo/langs/ | | log | Gives the log of the library | array() | | log_last | Gives the last log the library | The current language is set tr | | dir&lang | Gives the language file directory selected by the user | ../demo/langs/tr.php | > List the language in the defined direcory
| $returnType | what is does | output | |-------------|--------------|--------| | html | Gives languages in html format | div.multilang > [a href="?lang=tr" title="language tr"]tr[/a] | | array | Gives languages in array | array('tr' => 'tr.php') | > How to create the language fileFor example, the folder with the language files:
> How to get the text
$type is a CALLED NAME
Example Using
|