- Status Confirmed
- Percent Complete
- Task Type Feature Request
- Category User Interface
- Assigned To No-one
- Operating System All
- Severity Medium
- Priority Very Low
- Reported Version 1.0 devel (github master)
- Due in Version Undecided
-
Due Date
Undecided
-
Votes
1
- yetist (03.03.2016)
- Private
Attached to Project: Flyspray - The bug killer!
Opened by yetist - 03.03.2016
Last edited by peterdd - 15.07.2016
Opened by yetist - 03.03.2016
Last edited by peterdd - 15.07.2016
FS#2108 - Support local language when install Flyspray
Please show install page as local language, Thank you.
This task is a sub task of FS#1849 - Installer Overhaul
1. Web browser will setup "Accept-Language" header when request url. So, install program should parse this variable 'HTTP_ACCEPT_LANGUAGE' in $_SERVER, and load lang/LOCAL.php file first. It must call load_translations() in setup/index.php.
2. Some strings are hard code in setup/templates/*.tpl files, that should replace with " <?php echo Filters::noXSS(L('library'));" or "<?php echo L('library');". For example:
3. Add new $language array item in setup/lang/<LOCAL>.php, for example, "Directive" in setup/templates/pre_install.tpl file.
Install page for Chinese language.
New pull request here: 538.