Commit graph

9 commits

Author SHA1 Message Date
phpnut
bd3e702d77 changed i18n schema to use only one db table for translations
changed fieldname 'row_id' to 'foreign_key'
now allows fallbacks for not-existing translations by setting model's locale to array of locales
model used for hasMany associations and for saving/deleting of translation records is configurable by Model::$translateModel property, db field 'i18n.field' is  configurable by property $displayField of this custom model, instance of this model is obtainable by $this->ModelName->translateModel()
Added tests for translate behavior.
Added i18n shell script
Correcting translation function calls in various files

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5669 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-18 04:16:04 +00:00
phpnut
549d86ac23 Refactoring dispatcher.
Added test for changes to Dispatcher.
Updating Model::_ _saveMulti(), moved the insert statement to DboSource::insertMulti() this will allow database that do not support multiple inserts in one statement to save data.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5460 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 04:38:28 +00:00
phpnut
23dfd90b29 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
phpnut
3ea80f7618 Adding patch from Ticket #2642, fixes TranslateBehavior doesn't work with Model::saveField()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5307 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 03:14:54 +00:00
phpnut
4353341e2c Adding fix for #2538, fixes findAll doesn't work with TranslateBehavior when specifying which fields to fetch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5045 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 08:30:55 +00:00
phpnut
3687a0a5d0 Adding fix for #2512, fixes translation behavior count queries
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4991 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 18:50:16 +00:00
phpnut
0d69e3a085 Adding initial implementation of I18n database translation support
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4880 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-25 00:24:19 +00:00
phpnut
a324348be2 Adding fix for #2068.
Renaming Translate to TranslateBehavior.
Added empty class methods to TranslateBehavior.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4533 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-18 13:10:11 +00:00
phpnut
46c5c36fcb Moving Translate class to the behaviors directory.
Moving i18n sql to app/config/sql

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4525 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 07:07:57 +00:00
Renamed from cake/libs/model/i18n/translate.php (Browse further)