1
panigrc
Wordbook 1.16 multi language
  • 2006/12/22 12:25

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


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 wordbook

Download here the differences generated by csdiff

To 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('Α', 'Β', 'Γ', 'Δ', 'Ε', 'Ζ', 'Η', 'Θ', 'Ι', 'Κ', 'Λ', 'Μ', 'Ν', 'Ξ', 'Ο', 'Π', 'Ρ', 'Σ', 'Τ', 'Υ', 'Φ', 'Χ', 'Ψ', 'Ω');
[size=xx-small]X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr[/size]

Login

Who's Online

209 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits