Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – installing a translation file


Carry out the following steps:

  1. Open your browser and navigate to http://mygengo.com/string/p/concrete5-1.

  2. Look for the language you want to download and get the file and extract it into a local directory.

  3. Rename the file matching your concrete5 version to messages.po.

  4. Go to http://www.poedit.net/, download Poedit, and install it.

  5. Open the messages.po file you've downloaded using Poedit.

  6. Save the file in Poedit; this will generate a file named messages.mo in the same directory as messages.po. You should have a messages.mo file now. If you've downloaded de_DE you have to put messages.po in the directory languages\de_DE\LC_MESSAGES. You have to create the subdirectories manually.

  7. Once the files are where they belong, open config/site.php in the text editor of your choice.

  8. Insert the line define('LOCALE', 'de_DE');. It should look like the following:

    <?php 
    define('DB_SERVER', 'localhost');
    define('DB_USERNAME', 'concrete5');
    define('DB_PASSWORD', ...