Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can I make a script that can be bilanguage (supports
English, German)?

Answers were Sorted based on User's Feedback



How can I make a script that can be bilanguage (supports English, German)?..

Answer / koushikgraj

1. create different files to store different languages
eg: languages/eng.php
languages/ger.php

2. add constant variables in both the files
eg: languages/eng.php :: define('QUES','How are you');
eg: languages/ger.php :: contains define('QUES','Wie geht
es Ihnen');

3. in template page need to use the constant variable to
load the different language
eg: <div><?php echo QUES;?></div>

4. load different files according to language request

5. ofcourse we need to use characters encoding UTF-8 in HTMl
or PHP pages.

Is This Answer Correct ?    4 Yes 0 No

How can I make a script that can be bilanguage (supports English, German)?..

Answer / hitesh patil

See PHP Scripts can be written only in english. If you want
support, i mean you want to see pages in Other languages
then use characters encoding UTF-8 in HTMl or PHP pages.
It will work.

Is This Answer Correct ?    5 Yes 6 No

How can I make a script that can be bilanguage (supports English, German)?..

Answer / rakesh kumar nautiyal

open the Language option

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More PHP Interview Questions

Explain the types of functions for Splitting String?

0 Answers  


Is php strongly typed?

0 Answers  


Differentiate echo vs. Print statement.

0 Answers  


What is the difference between array_pop() and array_push()?

0 Answers  


I have two radio button, i click one radio button display one dropdown box, one text field. and then click another radio button display one text field.so any one give me good idea plz.....i used <div id="" style=display:none> but not work..

4 Answers  


What is default session time and path in php?

0 Answers  


Why do we show php code in browser?

0 Answers  


Tell me is it possible to remove the html tags from data?

0 Answers  


Is array function in php?

0 Answers  


What is member variable?

0 Answers  


How do you connet mysql database with php?

0 Answers  


How do you check if a variable has not been set in php?

0 Answers  


Categories