|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
php and gettext
i want to build a website in different languages like english,russian,germany using php . is it possible. please replay me
|
|
#2
|
|||
|
|||
|
its definitely possible but it's all about how you want to do it. there's the old fashion way by making the content all of the languages static so.. you could have index_en.htm, index_fr, index_gr, depending on the language. This method however would be very inconvenient if you have a site that is updated frequently.
I'm sure there is a way to make it much easier, but in the end you'll need to update them seperately because they are all in different languages.
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#3
|
|||
|
|||
|
the easiest way that comes to my mind is having a database for each language, each with the same structure. then have something like this
index.php?l=en <?php switch($_GET['l']) { case "en"; $dbname = english; break; ..... if you get my idea |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > php and gettext |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|