• Join Now
  • Sign In
  • Cart
  • Instant Setup
  • Download
Logo
  • About
    • For Developers
    • For Agencies
    • For Designers
    • For Anyone
    • Testimonials
    • Showcase
    • Our Philosophy
    • Blog
    • Instant Setup
  • Community
    • Members
    • Forums
    • Chat
    • Karma
    • International
    • Jobs
    • eNewsletters
  • Developers
    • Download concrete5
    • Join Beta Team
    • Translate concrete5
    • Bug Tracker
    • Submit to Marketplace
    • Code Submissions
    • News
    • Community Leaders
    • Related Projects
  • Marketplace
    • Add-Ons
    • Themes
    • Hosting
    • Training
    • Add-on Installation
    • Deal Of The Day
    • Swag
  • Enterprise
  • Documentation
    • Getting Started
    • Editor's Guide
    • Learn concrete5
    • Developers Index
    • How-Tos
  • How-Tos

Generate a .mo file with .po file from mygengo with poEdit

Posted byprogrammieraffe in Developers on Jan 31, 2012.
1 person likes this.

PoEdit let you easily generate a ".mo" file from a ".po" file which you can get from the official concrete5 mygengo language file archive. The ".mo" file is needed so that you can use the language with concrete5 if there is no special customized version of concrete5 in your desired language or if it is outdated.

Download Poedit here for Windows, OSX and Linux: http://www.poedit.net/download.php

  1. Download the desired language zip file from http://mygengo.com/string/p/concrete5-1/
  2. Extract the files
  3. Rename the desired version file (e.g. "51.po") to "messages.po"
  4. Launch PoEdit
  5. Open the "messages.po" file with PoEdit
  6. Save the file in PoEdit (PoEdit now compiles the .mo file)

There will be a new file called "messages.mo" in the same directory where your "messages.po" is located.

You have to create two directories now in your concrete5 installation:

PATH_TO_YOUR_C5/languages/LANGUAGE_CODE/

e.g. german: PATH_TO_YOUR_C5/languages/de_DE/

In this new folder you create a folder called "LC_MESSAGES":

PATH_TO_YOUR_C5/languages/LANGUAGE_CODE/LC_MESSAGES/

e.g. german: PATH_TO_YOUR_C5/LANGUAGE_CODE/de_DE/LC_MESSAGES/

Now copy the generated .mo file in the new directory:

PATH_TO_YOUR_C5/languages/LANGUAGE_CODE/LC_MESSAGES/messages.mo

If your website is running a version of concrete5 prior to 5.4.2, you'll need to add a reference to this language within your config/site.php file. Add this PHP within the file:

define('LOCALE', 'de_DE');

If you're running concrete5 5.4.2 or greater, you can make this change through the dashboard. Login to your concrete5 installation as an administrator.

Visit http://yoursite.com/index.php/dashboard/system/basics/multilingual/ The language you downloaded should appear as available in the default language dropdown. Select it and save your selection.

Some Contents copied from official download page: http://www.concrete5.org/developers/translate/

How-To Tags

language, localization, translation, mygengo

Related How-Tos

None.

  • Documentation
  • How-Tos
  • Developers
  • Generate a .mo file with .po file from mygengo with poEdit

Do you have questions

  • What are users saying?
  • Who is using concrete5?
  • What makes concrete5 easy?
  • Why develop on concrete5?
 

We’re on “The Twitter”

I've now built over 30 sites in #Concrete5 over the last 2 years - and I've had almost no client issues with upgrades or functionality!

Follow concrete5

About

  • For Developers
  • For Agencies
  • For Designers
  • For Anyone
  • Testimonials
  • Showcase
  • Our Philosophy
  • Blog
  • Instant Setup

Community

  • Members
  • Forums
  • Chat
  • International
  • Jobs
  • eNewsletters

Developers

  • Download concrete5
  • Join Beta Team
  • Translate concrete5
  • Bug Tracker
  • Beta
  • Submit to Marketplace
  • Code Submissions
  • News
  • Community Leaders
  • User Doc Group
  • Related Projects

Marketplace

  • Add-Ons
  • Themes
  • Hosting
  • Training
  • Add-on Installation
  • Deal Of The Day
  • Swag

Documentation

  • Getting Started
  • Editor's Guide
  • Learn concrete5
  • Developers Index
  • How-Tos

Legal

  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Contact Us
© 2008 to 2013 Concrete CMS Inc. All Rights Reserved.

Sign In?

You must have a user account and be signed to perform this action.

  • Sign In
  • Register