Tuesday, September 14, 2010

How To Enable Arabic Support in Mantis

This document assumes the following software components are used:
  • Mantis 1.1.8
  • Mantis database is named bugtracker
  • WAMP Server 2.0 which contains
    • MySQL 5.1.33
    • Apache 2.2.11
    • PHP 5.2.9-2
To let Mantis accept Arabic input, Please follow the following steps:
Find the file named my.ini in \wamp\bin\mysql\mysql5.1.33 and add the following (under mysqld section)

Export the current database using mysqldumb command, which can be found on \wamp\bin\mysql\mysql5.1.33\bin

Convert the schema to UTF-8, open the dump file with notepad (or any other word editor) and replace any latin1 with utf8. Now you have a UTF-8 enabled dump file.
Drop the old data base


Create new database

Restore the database dumb back to the newly created database:

Now Modify Mantis. Edit mantis/lang/strings_english.txt and modify:

to be


Now is a good time to test your stuff, have fun