|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Localisation Issues
I have questions regarding localisation for a website running on PHP.
1. Should I use Unicode, or a different charset fitted for the language? 2. Doesn't font (i.e. Verdana, Arial, etc.) matter? Will it break anything if I try to use a font that does not support the characters needed? 3. PHP Question: When I try to do preg_replace on a page with some Chinese characters in UTF-8, the returned text becomes these nice hollow boxes. Any idea why? Thanks. Your help is greatly appreciated! ![]() |
|
#2
|
|||
|
|||
|
you should first make a tree of languages folder like the follow ..
Languages -- | |---- Arabic | |----Chinese | |----English | |----...... etc Then you have in config file add these lines PHP Code:
and in the file you want to translate do the next PHP Code:
this will make you choose the file for each translated language also you could use css file for the fonts and do the charsets as strings in each files ...etc .. for the best translate language use PHP Code:
i hope it solve the proplem .. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Localisation Issues |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|