Learn How to Code a Multilingual Website using PHP

Learn how to easily adapt your PHP website or web application to offer multiple languages to its visitors.
4.8 (6 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
98 students enrolled
$20
Take This Course
  • Lectures 10
  • Contents Video: 1 hour
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 1/2013 English

Course Description

In this course you will learn how to use PHP and the gettext program to adapt your website so it works in more than one language.

We will look at how to internationalise your code, how to configure gettext, and how to create the files a translator uses to translate your website.

If you need your website or web application to be available in more than one language, then this course will take you through the steps you need to take to achieve that, both on the server (PHP) and in the client (Javascript).

We start the code from scratch and build on it in each lecture. Complete annotated source code for all the examples is downloadable for each lecture.

What are the requirements?

  • Basic knowledge of PHP and Javascript with jQuery is recommended.

What am I going to get from this course?

  • Learn how to configure gettext
  • Learn how to internationalise your website
  • Learn how to translate simple and complex text
  • Learn how to provide translations in PHP and Javascript

What is the target audience?

  • Anyone developing a website in PHP that needs to make it available in more than one language.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: PHP and gettext
Introduction
Preview
04:29
03:53
In this lecture we will take our first steps with PHP and gettext, internationalising our code to translate it into another language.

Full, annotated source code for the examples covered is available as supplementary material for this lecture.
05:26
In this lecture we will learn how to select the desired language, and investigage different methods, including the querystring, subdomains and subdirectories.

We will also create a reusable library that we will build on in subsequent lectures.

Full, annotated source code for the examples covered is available as supplementary material for this lecture.
07:51
In this lecture we will learn about the HTTP Accept-language header, and how to use that to detect the user's preferred language.

Full, annotated source code for the examples covered is available as supplementary material for this lecture.
07:24
In this lecture we will learn how to remember the user's language preference in a cookie, including validating the chosen language.

Full, annotated source code for the examples covered is available as supplementary material for this lecture.
Section 2: Translations
08:26
In this lecture we turn our attention to the localisation process, and we will learn how to create the files that contain the translations themselves.

Full, annotated source code for the examples covered is available as supplementary material for this lecture.
09:35
In this lecture we will look at the different types of translations that might be necessary, from simple text to plurals, currencies, dates and images.

Full, annotated source code for the examples covered is available as supplementary material for this lecture.
Section 3: Javascript
07:29
In this lecture we will learn how to provide translations in the client, so they can be used in Javascript, whilst maintaining all our translations in one place, on the server.

A basic knowledge of jQuery is recommended.

Full, annotated source code for the examples covered is available as supplementary material for this lecture.
07:18
In this lecture we will look at some popular jQuery plugins that already provide translations for us.

Included are jQuery validate, jQuery UI and jQuery Globalize.

Full, annotated source code for the examples covered is available as supplementary material for this lecture.
01:44

A review of what we have learnt.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Hi, I'm Dave Hollingworth. I'm an IT trainer and web application developer. I've been programming for over twenty-five years, and teaching IT since 1999.

I've developed enterprise-level applications on platforms ranging from mainframes to mobiles: from my first web application, a quotes system created for a major insurance company back in 1999 - the first of its type in the sector - to interactive learning management systems for online language learning.

I've taught courses ranging from basic use of email to advanced web application development, both online and in-person. I've been teaching on Udemy since 2012.

I'm passionate about technology, and love teaching it! I believe it's possible to explain even the most complex subjects in a simple, straightforward way that doesn't confuse the student.

I look forward to welcoming you onto one of my courses!

Ready to start learning?
Take This Course