1
Hi everybody, here I give you your christmas gift. Its the wordbook 1.16 modified to support multiple languages.
Notice that it supports utf-8 and it has been tested only with MySQL 5 (cause older versions have problems in sorting the alphabet properly).
Here is the version with greek only, but you can easily modify it to support every language, again only utf-8 or else you have to convert the hacked files to your encoding.
Download here the hacked wordbookDownload here the differences generated by csdiffTo add more languages or to modify greek just edit line 115 in file functions.php.
For example the existing line is:
Quote:
$alpha = array('Α', 'Β', 'Γ', 'Δ', 'Ε', 'Ζ', 'Η', 'Θ', 'Ι', 'Κ', 'Λ', 'Μ', 'Ν', 'Ξ', 'Ο', 'Π', 'Ρ', 'Σ', 'Τ', 'Υ', 'Φ', 'Χ', 'Ψ', 'Ω');
You can modify it to support two languages:
Quote:
$alpha = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
$alpha = $alpha + array('Α', 'Β', 'Γ', 'Δ', 'Ε', 'Ζ', 'Η', 'Θ', 'Ι', 'Κ', 'Λ', 'Μ', 'Ν', 'Ξ', 'Ο', 'Π', 'Ρ', 'Σ', 'Τ', 'Υ', 'Φ', 'Χ', 'Ψ', 'Ω');