Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mogita/php-ui-text

Easily localize your web app http://phpuitext.mogita.com/
https://github.com/mogita/php-ui-text

Last synced: about 1 month ago
JSON representation

Easily localize your web app http://phpuitext.mogita.com/

Awesome Lists containing this project

README

        

# PHP UI Text

#### Easily localize your web app

### Requirements

- PHP 5

### Installation

- Put the "uit" folder in your project directory, and done.

#### How to use

- Include `ui_text.php` in any page that needs the ability of localization.
- Make translation files and include them in `ui_text.php`.
- Call `uit()` function in your php pages to get translation results.
- Make POST request with parameter `lang` to current page, then the new language will take into effect within the same domain. For example, `$_POST['lang']="zh_cn"` will change whole site language into Simplified Chinese.

##### The `demo` directory contains a functional site using PHP UI Text. You can see it live at

### Author

mogita ()