#4886: [RFC] TranslateBehavior fallback locale
    Reporter:  biesbjerg  |         Owner:         
        Type:  RFC        |        Status:  new    
    Priority:  Medium     |     Milestone:  1.3.x.x
   Component:  Behaviors  |       Version:         
    Severity:  Normal     |    Resolution:         
    Keywords:  translate  |   Php_version:  n/a    
Cake_version:             |  
Comment (by robwilkerson):

 I've been running into the same thing and I'm working on a patch, but what
 I'd like the behavior to do ideally is:

  1. Return the matched locale value (of course), if a record exists
  1. If a matching locale value doesn't exist, return the record for the
 locale's fallback locale, if a record exists.
  1. If no "related" locale records are found, return the value as it
 exists in the primary table.

 At least this way ''something'' would be returned, even if it's just the
 results of the non-i18n query or a partially i18ned query. As it now
 stands, if a field has no matching locale records for the precise locale
 that is set, that entire record is removed from the query.

Ticket URL: <https://trac.cakephp.org/ticket/4886#comment:2>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

  • Re: [CakePHP : The Rapid... CakePHP : The Rapid Development Framework for PHP

Reply via email to