![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum (3) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2019-10-29 (5 hours ago) ![]() | ![]() ![]() ![]() ![]() | 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']);
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
Aux. | Auxiliary script | ||
![]() |
Example | Example script | ||
![]() |
Class | Class source | ||
![]() |
Data | Auxiliary data |
![]() |
/ | translations |
File | Role | Description |
---|---|---|
![]() |
Data | Auxiliary data |
![]() |
Data | Auxiliary data |
![]() |
Data | Auxiliary data |
![]() |
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.