Book Image

Mastering Yii

By : Charles R. Portwood ll
Book Image

Mastering Yii

By: Charles R. Portwood ll

Overview of this book

The successor of Yii Framework 1.1, Yii 2 is a complete rewrite of Yii Framework, one of the most popular PHP 5 frameworks around for making modern web applications. The update embraces the best practices and protocols established with newer versions of PHP, while still maintaining the simple, fast, and extendable behavior found in its predecessor. This book has been written to enhance your skills and knowledge with Yii Framework 2. Starting with configuration and how to initialize new projects, you’ll learn how to configure, manage, and use every aspect of Yii2 from Gii, DAO, Query Builder, Active Record, and migrations, to asset manager. You'll also discover how to automatically test your code using codeception. With this book by your side, you’ll have all the skills you need to quickly create rich modern web and console applications with Yii 2.
Table of Contents (20 chapters)
Mastering Yii
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
5
Modules, Widgets, and Helpers
13
Debugging and Deploying
Index

Chapter 11. Internationalization and Localization

When developing modern web applications, we often find the need to ensure that our language is readable to users who speak and read languages different from our own. To help facilitate this, Yii2 provides built-in support for both internationalization (i18n) and localization (l10n). Internationalization is the process of planning and implementing messages and views such that they can be easily adapted into other languages. On the other hand, localization is the process of adapting our applications to a particular language or culture, and including things such as the look and feel of our application to match the accepted presentation of information to speakers of a given language or users in a given region or market. In this chapter, we'll discover how we can use Yii2's built-in features to translate and localize our applications into multiple languages.

Tip

i18n and l10n are numeronyms, not acronyms. Internationalization is abbreviated to i18n...