• 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
  • Private
Attached to Project: Flyspray
Opened by yeti - 03.03.2016
Last edited by peterdd - 17.04.2021

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
yeti commented on 04.03.2016 01:40

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:

-                                       <td class="heading">Database</td>
+                                       <td class="heading"><?php echo Filters::noXSS(L('database')); ?></td>

3. Add new $language array item in setup/lang/<LOCAL>.php, for example, "Directive" in setup/templates/pre_install.tpl file.

yeti commented on 04.03.2016 01:45

Install page for Chinese language.

yeti commented on 04.03.2016 11:05

New pull request here: 538.


Available keyboard shortcuts


Task Details

Task Editing