Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi language on your site
09-21-2014, 04:16 PM
Post: #1
Multi language on your site
<?php
// Specify the target language $language = 'it_IT';
// Assign the appropriate locale setlocale(LC_ALL, $language);
// Identify the location of the translation files bindtextdomain('messages', '/usr/local/apache/htdocs/locale');
// Tell the script which domain to search within when translating text ?> textdomain('messages');
<form action="subscribe.php" method="post">
<?php echo gettext("Enter your e-mail address:"); ?><br />
<input type="text" id="email" name="email" size="20" maxlength="40" value="" /> <input type="submit" id="submit" value="Submit" /> </form>
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
09-04-2015, 06:07 PM
Post: #2
RE: Multi language on your site
where do I add this code? means in index.php or making a new file of php in root
Find all posts by this user
Like Post Quote this message in a reply
12-18-2015, 06:56 PM
Post: #3
RE: Multi language on your site
Make a new file
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)