Download .zip |
Info | Example | View files (8) | Download .zip | Reputation | Support forum (3) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2019-10-29 (5 hours ago) | 65% | Total: 244 | All time: 7,795 This week: 374 |
Version | License | PHP version | Categories | |||
localization 1.0.11 | BSD License | 5.4 | Localization, PHP 5 |
Description | Author | |
This package can translate application texts using INI files. Recommendations What is the best PHP multilanguage without database class? |
|
return [
'path' => 'translations', // translation files directory path | translations is default
'input' => 'language', // url parameter | language is default
'languages' => [ // languages, first language is default
'en' => 'English',
'de' => 'Deutsch',
'it' => 'Italiano'
]
];
echo __('Site title');
echo __('Site %s', ['title']);
echo Localization::instance()->translate('Site %s', ['title']);
Files |
File | Role | Description | ||
---|---|---|---|---|
translations (4 files) | ||||
config.php | Aux. | Auxiliary script | ||
index.php | Example | Example script | ||
localization.php | Class | Class source | ||
README.md | Data | Auxiliary data |
Files | / | translations |
File | Role | Description |
---|---|---|
de.ini | Data | Auxiliary data |
en.ini | Data | Auxiliary data |
index.html | Data | Auxiliary data |
it.ini | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.