Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7768371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:53:57+00:00 2026-06-01T15:53:57+00:00

I use cakePHP 2.0 and use the console tool to create one …/app/locale/default.pot .

  • 0

I use cakePHP 2.0 and use the console tool to create one …/app/locale/default.pot . Now, I would like to get my site translated into multiple languages. I read the paragraph about internationalization in the cakephp cook book (http://book.cakephp.org/1.2/en/view/162/Internationalizing-Your-Application).

I copy the default.pot files into

  • …/app/locale/eng/LC_MESSAGES/default.pot
  • …/app/locale/fre/LC_MESSAGES/default.pot
  • …/app/locale/pol/LC_MESSAGES/default.pot
  • …

And enter the tranalations string with an utf-8 text editor (as gedit). And … my site do not get translated at all.

I have noticed the AppController may implement some code to change the Configure::write(‘Config.language’, some_three_letters_language), as the configuration changed nothing, I have implemented some very simple code.

// in AppController
public function beforeFilter() {
        Configure::write('Config.language', 'fre');
}

Why does the translation function always return it arguments and not the translated string in .pot files ( in views, __(‘Something’) -answers-> ‘Something’)?

I found nowhere were .pot files are translated into .po. How can I get those .po files, with REHL or CentOS (cannot get any suitable packet with po or poeditor in the name)?

Thanks for your answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:53:58+00:00Added an answer on June 1, 2026 at 3:53 pm

    .pot and .po files are the same file format. .pot stands for “PO template“. The difference being that you’re supposed to use this template file and give it to your translators, who will produce the translated .po files. The .pot file is the template for several localized .po files. See http://www.gnu.org/software/gettext/manual/gettext.html#Files.

    In other words, just renaming .pot to .po will do.
    In the proper gettext workflow, there’s the msginit tool for doing this, which will also set a number of headers to the correct values for the chosen locale.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with cakephp 2.0 and would like to use different css for each
I'm using the new CakePHP 2.1 and would like to use the JsonView to
So, I would like to use this magic find function in my CakePHP 2.0
When I use CakePHP Paging I get an url like this: http://example.com/php/page:2 What do
Can anyone recommend a ruleset.xml file that would be best for use with CakePHP?
I'm redesigning site that use CakePHP, and till now everything goes well because I
I have been able to use CakePHP's saveAll method to simultaneously create 'Members' and
i use cakephp and i am beginner i use $this->requestElement() in default.ctp file but
i use cakephp and i want create login element . this layout work as
I'm currently trying to use cakephp to create my own small CMS in php.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.