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 7588981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:03:42+00:00 2026-05-30T20:03:42+00:00

How I change language of input datetime in Cakephp 2.0.5? In CakePHP 1.3, I

  • 0

How I change language of input datetime in Cakephp 2.0.5?

In CakePHP 1.3, I use default.po, and works great.

 // app/Config/core.php
 Configure::write('Config.language', 'pt-br');

 // app/Locale/pt_br/LC_MESSAGES/default.po    
 msgid "January"
 msgstr "Janeiro"
 ....

In Cakephp 2.0.5, default.po doesn’t work.

My input is that:

 <?php echo $this->Form->input('melhor_horario', array('dateFormat' => 'DMYHS',
 'separator' => ' de ', 'minYear' => date('Y'), 'maxYear' => date('Y') + 1, 
 'timeFormat' => 24, 'interval' => 15, 'class' => 'span2', 
 'default' => date('Y-m-d 15:00', strtotime('sunday')))) ?>
  • 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-05-30T20:03:42+00:00Added an answer on May 30, 2026 at 8:03 pm

    You need to put the translations in a correct domain. Cake 2 uses “cake” domain internally, so the correct path is Locale/[lang]/LC_MESSAGES/cake.po

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

Sidebar

Related Questions

Documentation says: a configuration change (such as a change in screen orientation, language, input
I want to make an app that allows the user to quickly change input
I have a textfiled (input type) which works with English lang. If I change
How i change audio input and output language in my android code? Should i
How can I change the language of RpDesignerVCL to spanish, i have a delphi
is it possible to change the language from english to deustch for title send
Is there a way to change the application language during runtime? So, after the
C#3 (Visual Studio 2008) introduced a breaking change to the language ( http://msdn.microsoft.com/en-us/library/cc713578.aspx ,
I want to change my user interface language at run time. what is the
change() function works and detects changes on form elements, but is there a way

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.