Multi-language PHP: internationalisation for PHP developers
Multi-language PHP: internationalisation for PHP developers, available at $64.99, has an average rating of 4.95, with 58 lectures, 3 quizzes, based on 66 reviews, and has 590 subscribers.
You will learn about Display your site's content in more than one language Use gettext with PHP Translate simple strings Translate plurals, numbers and dates Detect the visitor's preferred language Translate content in databases Use industry standards and best practices for localised content Get support directly from the instructor This course is ideal for individuals who are PHP developers that want to make their site's content available in more than one language It is particularly useful for PHP developers that want to make their site's content available in more than one language.
Enroll now: Multi-language PHP: internationalisation for PHP developers
Summary
Title: Multi-language PHP: internationalisation for PHP developers
Price: $64.99
Average Rating: 4.95
Number of Lectures: 58
Number of Quizzes: 3
Number of Published Lectures: 58
Number of Published Quizzes: 1
Number of Curriculum Items: 61
Number of Published Curriculum Objects: 59
Original Price: $59.99
Quality Status: approved
Status: Live
What You Will Learn
- Display your site's content in more than one language
- Use gettext with PHP
- Translate simple strings
- Translate plurals, numbers and dates
- Detect the visitor's preferred language
- Translate content in databases
- Use industry standards and best practices for localised content
- Get support directly from the instructor
Who Should Attend
- PHP developers that want to make their site's content available in more than one language
Target Audiences
- PHP developers that want to make their site's content available in more than one language
If you are a PHP developer and you want to display your sitein more than one language, then you need to learn how to internationalise your code. Offering your content in several languages will enable you to reach a larger audience.
*** TOTALLY REWRITTEN IN 2020 ***
Learn how to Internationalise your PHP code in this Comprehensive Course.
-
Learn how to get the language from the URL
-
Use international standards for identifying languages
-
Build reusable code for handling multi-language sites
-
Learn how to use the industry standard gettext
-
Translate dynamic content including plurals and dates
-
Translate content in databases
-
Create a user-friendly interface for visitors
The essential skills required if you want to develop a multi-language website or web application in PHP.
Not everyone understands the same language. To reach a larger audience with your content, you need to display your content in more than one language. gettext has been the industry standard for translating content for many years. In addition to learning how to use gettext with PHP, we’ll learn how to offer the best experience for the international visitor.
Content and Overview
This course is designed for the PHP developer who currently has some content developed in one language. Learning the techniques on this course will enable you to internationalise your site, so you can display its content in multiple languages.
-
Suitable for all PHP developers, you’ll start by learning the basics of internationalization (i18n) in PHP.
-
You’ll learn best practices for getting the language code from the URL, and how to use it in your code.
-
Throughout the course, we’ll build code that you can reuse in all your projects.
-
You’ll learn how to use gettext, and also an alternative that overcomes its limitations.
-
In addition to simple strings, you’ll learn how to translate plurals, numbers, dates and long strings of text.
-
You’ll learn how to handle content in a database, along with how to handle images that contain text.
-
All the time we’ll adhere to industry standards and best practices.
When you complete the course you’ll be able to internationalise your PHP code, allowing you to display your content in more than one language.
Complete with all the code shown in the lectures, you’ll be able to work alongside the instructor and will receive a verifiable certificate of completion upon finishing the course.
Also, at all times throughout the course you have access to the instructor in the Q&A section to ask for help with any topic related to the course.
Enrol now and add internationalization to your PHP skillset!
Course Curriculum
Chapter 1: Introduction: software installation, configuration and setup
Lecture 1: Introduction and welcome
Lecture 2: Install a web server with PHP, a database server and phpMyAdmin
Lecture 3: Optional: configure a virtual host with its own root folder and hostname
Lecture 4: Install the Composer dependency manager
Lecture 5: Enable the PHP internationalization extension
Chapter 2: An introduction to translating content using PHP
Lecture 1: Translate a page by copying the entire page and translating all the text in it
Lecture 2: Translate a page by using conditional statements for every string
Lecture 3: Store translated strings in an array with one array for each language
Lecture 4: Display any character by encoding files using UTF-8
Chapter 3: Getting the language from the URL
Lecture 1: Language code standards and passing the language code in the URL
Lecture 2: Get the language code from the query string
Lecture 3: Get the language code from a subfolder or URL segment
Lecture 4: Get the language code from a subdomain
Lecture 5: Get the language code from the top-level domain
Chapter 4: Locale identifiers and validating the language from the URL
Lecture 1: Add an I18n class with a list of supported languages
Lecture 2: Combine language codes and region codes to create locale identifiers
Lecture 3: Canonicalise the locale code from the URL
Lecture 4: Get the best match from the list of supported locales
Lecture 5: Redirect to the default locale if the value in the URL is invalid
Lecture 6: Declare the language of the HTML document with the lang attribute
Chapter 5: Detecting the visitor's preferred language
Lecture 1: Get language preferences from the browser: the HTTP Accept-Language header
Lecture 2: Parse the Accept-Language header to get a list of locales in order of preference
Lecture 3: Compare supported locales to the browser preferences and choose the best match
Lecture 4: Get the best match to the browser preferences using just the language codes
Lecture 5: Refactor the code to make it clearer
Lecture 6: Geolocation: matching the user's IP address to their location
Lecture 7: Use a geolocation API to get the country code from the IP address
Chapter 6: Using gettext with PHP
Lecture 1: The options for storing translations in separate files
Lecture 2: The PHP gettext extension and gettext function for marking translatable strings
Lecture 3: Create the folders to store the gettext translation files
Lecture 4: Install the Poedit editor and create a .po translation file
Lecture 5: Configure gettext to use the translation file and show the translations
Chapter 7: Using MoTranslator as a gettext-compatible alternative
Lecture 1: MoTranslator: a .mo-file-compatible alternative to gettext
Lecture 2: Using MoTranslator with its gettext compatibility functions
Lecture 3: Configure Poedit to extract MoTranslator translations
Lecture 4: Use the simpler MoTranslator object API
Lecture 5: Using real or keyword messages: the advantages and disadvantages
Chapter 8: Translating dynamic content: variable substitution, plurals, decimals and dates
Lecture 1: Including variables in translated strings: use sprintf with gettext
Lecture 2: Display plural forms of messages using ngettext
Lecture 3: Decimal separators: format decimal numbers based on the locale
Lecture 4: Translate day and month names in dates based on the locale
Chapter 9: Translating content unsuited to gettext: long text, databases and images
Lecture 1: Handle long strings of text in separate files
Lecture 2: Display a message if the file containing the translation is unavailable
Lecture 3: Use a plain-text formatting language to help translators
Lecture 4: Convert translations in separate files to Markdown
Lecture 5: Translate data from a database: multiple columns in one table
Lecture 6: Translate data from a database: separate table for the translations
Lecture 7: Display localised versions of images that contain text
Chapter 10: Selecting and remembering the language
Lecture 1: Add navigation links for switching between languages
Lecture 2: Language switching links: what they should say and where to put them
Lecture 3: Remove code duplication: extract common i18n code out to separate files
Lecture 4: Add a second page and include the common i18n code
Lecture 5: Calculate the full current URL from the $_SERVER data
Lecture 6: Generate the data for the language navigation links
Lecture 7: Add the language navigation links to the HTML
Lecture 8: Remember the selected locale in a cookie
Lecture 9: Redirect to the locale remembered in the cookie
Chapter 11: Conclusion
Lecture 1: Conclusion
Instructors
-
Dave Hollingworth
IT Trainer
Rating Distribution
- 1 stars: 0 votes
- 2 stars: 0 votes
- 3 stars: 3 votes
- 4 stars: 11 votes
- 5 stars: 52 votes
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!
You may also like
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024
- Top 10 Gardening Courses to Learn in November 2024