11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

www.it-ebooks.infoCHAPTER 23 • BUILDING WEB SITES FOR THE WORLD"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME \n""Language-Team: LANGUAGE \n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=CHARSET\n""Content-Transfer-Encoding: 8bit\n"#: homepage.php:12msgid "Subscribe to the newsletter:"msgstr ""#: homepage.php:15msgid "Enter your e-mail address:"msgstr ""#: contact.php:12msgid "Contact us at info@example.com!"msgstr ""Copy this file to the appropriate localization directory and proceed to the next step.Step 4: Translate the TextOpen the messages.po file residing in the language directory you’d like to translate, and translate thestrings by completing the empty msgstr entries that correspond to an extracted string. Then replace theplaceholders represented in all capital letters with information pertinent to your application. Payparticular attention to the CHARSET placeholder because the value you use has a direct effect on gettext’sability to translate the application. You need to replace CHARSET with the name of the appropriatecharacter set used to represent the translated strings. For example, character set ISO-8859-1 is used torepresent languages using the Latin alphabet, including English, German, Italian, and Spanish.Windows-1251 is used to represent languages using the Cyrillic alphabet, including Russian. Rather thanexhaustively introduce the countless character sets here, I suggest you check out the great Wikipediasummary at http://en.wikipedia.org/wiki/Character_encoding.■ Tip Writing quality text in one’s own native tongue is difficult enough, so if you’d like to translate your web siteinto another language, seek out the services of a skilled speaker. Professional translation services can be quiteexpensive, so consider contacting your local university—there’s typically an abundance of foreign-languagestudents who would welcome the opportunity to gain some experience in exchange for an attractive rate.453

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!