mirror of
https://github.com/brmlab/brmbiolab_sklad.git
synced 2025-06-09 13:44:00 +02:00
Initial commit
This commit is contained in:
commit
3b93da31de
1004 changed files with 265840 additions and 0 deletions
57
lib/Cake/Test/test_app/Config/acl.ini
Normal file
57
lib/Cake/Test/test_app/Config/acl.ini
Normal file
|
@ -0,0 +1,57 @@
|
|||
;<?php exit() ?>
|
||||
; SVN FILE: $Id$
|
||||
;/**
|
||||
; * Test App Ini Based Acl Config File
|
||||
; *
|
||||
; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
; * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
; *
|
||||
; * Licensed under The MIT License
|
||||
; * Redistributions of files must retain the above copyright notice.
|
||||
; *
|
||||
; * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
; * @link http://cakephp.org CakePHP(tm) Project
|
||||
; * @package Cake.Test.TestApp.Config
|
||||
; * @since CakePHP(tm) v 0.10.0.1076
|
||||
; * @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
; */
|
||||
|
||||
;-------------------------------------
|
||||
;Users
|
||||
;-------------------------------------
|
||||
|
||||
[admin]
|
||||
groups = administrators
|
||||
allow =
|
||||
deny = ads
|
||||
|
||||
[paul]
|
||||
groups = users
|
||||
allow =
|
||||
deny =
|
||||
|
||||
[jenny]
|
||||
groups = users
|
||||
allow = ads
|
||||
deny = images, files
|
||||
|
||||
[nobody]
|
||||
groups = anonymous
|
||||
allow =
|
||||
deny =
|
||||
|
||||
;-------------------------------------
|
||||
;Groups
|
||||
;-------------------------------------
|
||||
|
||||
[administrators]
|
||||
deny =
|
||||
allow = posts, comments, images, files, stats, ads
|
||||
|
||||
[users]
|
||||
allow = posts, comments, images, files
|
||||
deny = stats, ads
|
||||
|
||||
[anonymous]
|
||||
allow =
|
||||
deny = posts, comments, images, files, stats, ads
|
57
lib/Cake/Test/test_app/Config/acl.ini.php
Normal file
57
lib/Cake/Test/test_app/Config/acl.ini.php
Normal file
|
@ -0,0 +1,57 @@
|
|||
;<?php exit() ?>
|
||||
; SVN FILE: $Id$
|
||||
;/**
|
||||
; * Test App Ini Based Acl Config File
|
||||
; *
|
||||
; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
; * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
; *
|
||||
; * Licensed under The MIT License
|
||||
; * Redistributions of files must retain the above copyright notice.
|
||||
; *
|
||||
; * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
; * @link http://cakephp.org CakePHP(tm) Project
|
||||
; * @package Cake.Test.TestApp.Config
|
||||
; * @since CakePHP(tm) v 0.10.0.1076
|
||||
; * @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
; */
|
||||
|
||||
;-------------------------------------
|
||||
;Users
|
||||
;-------------------------------------
|
||||
|
||||
[admin]
|
||||
groups = administrators
|
||||
allow =
|
||||
deny = ads
|
||||
|
||||
[paul]
|
||||
groups = users
|
||||
allow =
|
||||
deny =
|
||||
|
||||
[jenny]
|
||||
groups = users
|
||||
allow = ads
|
||||
deny = images, files
|
||||
|
||||
[nobody]
|
||||
groups = anonymous
|
||||
allow =
|
||||
deny =
|
||||
|
||||
;-------------------------------------
|
||||
;Groups
|
||||
;-------------------------------------
|
||||
|
||||
[administrators]
|
||||
deny =
|
||||
allow = posts, comments, images, files, stats, ads
|
||||
|
||||
[users]
|
||||
allow = posts, comments, images, files
|
||||
deny = stats, ads
|
||||
|
||||
[anonymous]
|
||||
allow =
|
||||
deny = posts, comments, images, files, stats, ads
|
70
lib/Cake/Test/test_app/Config/acl.php
Normal file
70
lib/Cake/Test/test_app/Config/acl.php
Normal file
|
@ -0,0 +1,70 @@
|
|||
<?php
|
||||
/*
|
||||
* Test App PHP Based Acl Config File
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @package Cake.Test.TestApp.Config
|
||||
* @since CakePHP(tm) v 0.10.0.1076
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
// -------------------------------------
|
||||
// Roles
|
||||
// -------------------------------------
|
||||
$config['roles'] = array(
|
||||
'Role/admin' => null,
|
||||
'Role/data_acquirer' => null,
|
||||
'Role/accounting' => null,
|
||||
'Role/database_manager' => null,
|
||||
'Role/sales' => null,
|
||||
'Role/data_analyst' => 'Role/data_acquirer, Role/database_manager',
|
||||
'Role/reports' => 'Role/data_analyst',
|
||||
// allow inherited roles to be defined as an array or comma separated list
|
||||
'Role/manager' => array(
|
||||
'Role/accounting',
|
||||
'Role/sales',
|
||||
),
|
||||
'Role/accounting_manager' => 'Role/accounting',
|
||||
// managers
|
||||
'User/hardy' => 'Role/accounting_manager, Role/reports',
|
||||
'User/stan' => 'Role/manager',
|
||||
// accountants
|
||||
'User/peter' => 'Role/accounting',
|
||||
'User/jeff' => 'Role/accounting',
|
||||
// admins
|
||||
'User/jan' => 'Role/admin',
|
||||
// database
|
||||
'User/db_manager_1' => 'Role/database_manager',
|
||||
'User/db_manager_2' => 'Role/database_manager',
|
||||
);
|
||||
|
||||
//-------------------------------------
|
||||
// Rules
|
||||
//-------------------------------------
|
||||
$config['rules']['allow'] = array(
|
||||
'/*' => 'Role/admin',
|
||||
'/controllers/*/manager_*' => 'Role/manager',
|
||||
'/controllers/reports/*' => 'Role/sales',
|
||||
'/controllers/invoices/*' => 'Role/accounting',
|
||||
'/controllers/invoices/edit' => 'User/db_manager_2',
|
||||
'/controllers/db/*' => 'Role/database_manager',
|
||||
'/controllers/*/(add|edit|publish)' => 'User/stan',
|
||||
'/controllers/users/dashboard' => 'Role/default',
|
||||
// test for case insensitivity
|
||||
'controllers/Forms/NEW' => 'Role/data_acquirer',
|
||||
);
|
||||
$config['rules']['deny'] = array(
|
||||
// accountants and sales should not delete anything
|
||||
'/controllers/*/delete' => array(
|
||||
'Role/sales',
|
||||
'Role/accounting'
|
||||
),
|
||||
'/controllers/db/drop' => 'User/db_manager_2',
|
||||
);
|
1
lib/Cake/Test/test_app/Config/empty.ini
Normal file
1
lib/Cake/Test/test_app/Config/empty.ini
Normal file
|
@ -0,0 +1 @@
|
|||
; do nothing this is an empty file.
|
2
lib/Cake/Test/test_app/Config/empty.php
Normal file
2
lib/Cake/Test/test_app/Config/empty.php
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
//do nothing this is an empty file.
|
2
lib/Cake/Test/test_app/Config/htmlhelper_minimized.ini
Normal file
2
lib/Cake/Test/test_app/Config/htmlhelper_minimized.ini
Normal file
|
@ -0,0 +1,2 @@
|
|||
minimizedAttributeFormat = "format"
|
||||
|
9
lib/Cake/Test/test_app/Config/htmlhelper_tags.php
Normal file
9
lib/Cake/Test/test_app/Config/htmlhelper_tags.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
$config = array(
|
||||
'tags' => array(
|
||||
'form' => 'start form',
|
||||
'formend' => 'finish form',
|
||||
'hiddenblock' => '<div class="hidden">%s</div>'
|
||||
)
|
||||
);
|
17
lib/Cake/Test/test_app/Config/nested.ini
Normal file
17
lib/Cake/Test/test_app/Config/nested.ini
Normal file
|
@ -0,0 +1,17 @@
|
|||
; Test file for testing ini files with . syntax
|
||||
[database]
|
||||
db.username = mark
|
||||
db.password = secret
|
||||
|
||||
[nesting]
|
||||
one.two.three = 3
|
||||
a.b.c.d = On
|
||||
|
||||
[bools]
|
||||
test_on = on
|
||||
test_off = off
|
||||
test_yes = yes
|
||||
test_no = no
|
||||
test_true = true
|
||||
test_false = false
|
||||
test_null = null
|
3
lib/Cake/Test/test_app/Config/no_ini_extension
Normal file
3
lib/Cake/Test/test_app/Config/no_ini_extension
Normal file
|
@ -0,0 +1,3 @@
|
|||
; Test file for testing config file without .ini extension.
|
||||
some_key = some_value
|
||||
bool_key = 1
|
9
lib/Cake/Test/test_app/Config/no_php_extension
Normal file
9
lib/Cake/Test/test_app/Config/no_php_extension
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
// Test file for testing config file without .php extension.
|
||||
$config = array(
|
||||
'Deep' => array(
|
||||
'Third' => array(
|
||||
'ThirdDeepest' => 'buried3'
|
||||
)
|
||||
)
|
||||
);
|
2
lib/Cake/Test/test_app/Config/no_section.ini
Normal file
2
lib/Cake/Test/test_app/Config/no_section.ini
Normal file
|
@ -0,0 +1,2 @@
|
|||
some_key = some_value
|
||||
bool_key = 1
|
22
lib/Cake/Test/test_app/Config/routes.php
Normal file
22
lib/Cake/Test/test_app/Config/routes.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
/**
|
||||
* Routes file
|
||||
*
|
||||
* Routes for test app
|
||||
*
|
||||
* CakePHP : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP Project
|
||||
* @package Cake.Test.TestApp.Config
|
||||
* @since CakePHP v 2.0
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
Router::parseExtensions('json');
|
||||
Router::connect('/some_alias', array('controller' => 'tests_apps', 'action' => 'some_method'));
|
12
lib/Cake/Test/test_app/Config/var_test.php
Normal file
12
lib/Cake/Test/test_app/Config/var_test.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
$config = array(
|
||||
'Read' => 'value',
|
||||
'Deep' => array(
|
||||
'Deeper' => array(
|
||||
'Deepest' => 'buried'
|
||||
)
|
||||
),
|
||||
'TestAcl' => array(
|
||||
'classname' => 'Original'
|
||||
)
|
||||
);
|
13
lib/Cake/Test/test_app/Config/var_test2.php
Normal file
13
lib/Cake/Test/test_app/Config/var_test2.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
$config = array(
|
||||
'Read' => 'value2',
|
||||
'Deep' => array(
|
||||
'Second' => array(
|
||||
'SecondDeepest' => 'buried2'
|
||||
)
|
||||
),
|
||||
'TestAcl' => array(
|
||||
'classname' => 'Overwrite',
|
||||
'custom' => 'one'
|
||||
)
|
||||
);
|
34
lib/Cake/Test/test_app/Console/Command/SampleShell.php
Normal file
34
lib/Cake/Test/test_app/Console/Command/SampleShell.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* SampleShell file
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Console.Command
|
||||
* @since CakePHP(tm) v 1.2.0.7871
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class SampleShell
|
||||
*
|
||||
* @package Cake.Test.TestApp.Console.Command
|
||||
*/
|
||||
class SampleShell extends Shell {
|
||||
|
||||
/**
|
||||
* main method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function main() {
|
||||
$this->out('This is the main method called from SampleShell');
|
||||
}
|
||||
}
|
0
lib/Cake/Test/test_app/Console/Command/Task/empty
Normal file
0
lib/Cake/Test/test_app/Console/Command/Task/empty
Normal file
|
@ -0,0 +1,2 @@
|
|||
I got rendered
|
||||
<?php echo $test; ?>
|
|
@ -0,0 +1 @@
|
|||
admin_edit template
|
35
lib/Cake/Test/test_app/Controller/AppController.php
Normal file
35
lib/Cake/Test/test_app/Controller/AppController.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* Application level Controller
|
||||
*
|
||||
* This file is application-wide controller file. You can put all
|
||||
* application-wide controller-related methods here.
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @package Cake.Controller
|
||||
* @since CakePHP(tm) v 0.2.9
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
App::uses('Controller', 'Controller');
|
||||
|
||||
/**
|
||||
* This is a placeholder class.
|
||||
* Create the same file in app/Controller/AppController.php
|
||||
*
|
||||
* Add your application-wide methods in the class below, your controllers
|
||||
* will inherit them.
|
||||
*
|
||||
* @package Cake.Controller
|
||||
* @link http://book.cakephp.org/2.0/en/controllers.html#the-app-controller
|
||||
*/
|
||||
class AppController extends Controller {
|
||||
}
|
0
lib/Cake/Test/test_app/Controller/Component/empty
Normal file
0
lib/Cake/Test/test_app/Controller/Component/empty
Normal file
89
lib/Cake/Test/test_app/Controller/PagesController.php
Normal file
89
lib/Cake/Test/test_app/Controller/PagesController.php
Normal file
|
@ -0,0 +1,89 @@
|
|||
<?php
|
||||
/**
|
||||
* Static content controller.
|
||||
*
|
||||
* This file will render views from views/pages/
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @package Cake.Controller
|
||||
* @since CakePHP(tm) v 0.2.9
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
App::uses('AppController', 'Controller');
|
||||
|
||||
/**
|
||||
* Static content controller
|
||||
*
|
||||
* Override this controller by placing a copy in controllers directory of an application
|
||||
*
|
||||
* @package Cake.Controller
|
||||
* @link http://book.cakephp.org/2.0/en/controllers/pages-controller.html
|
||||
*/
|
||||
class PagesController extends AppController {
|
||||
|
||||
/**
|
||||
* Default helper
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $helpers = array('Html', 'Session');
|
||||
|
||||
/**
|
||||
* This controller does not use a model
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $uses = array();
|
||||
|
||||
/**
|
||||
* Displays a view
|
||||
*
|
||||
* @param mixed What page to display
|
||||
* @return void
|
||||
* @throws NotFoundException When the view file could not be found
|
||||
* or MissingViewException in debug mode.
|
||||
*/
|
||||
public function display() {
|
||||
$path = func_get_args();
|
||||
|
||||
$count = count($path);
|
||||
if (!$count) {
|
||||
return $this->redirect('/');
|
||||
}
|
||||
$page = $subpage = $titleForLayout = null;
|
||||
|
||||
if (!empty($path[0])) {
|
||||
$page = $path[0];
|
||||
}
|
||||
if (!empty($path[1])) {
|
||||
$subpage = $path[1];
|
||||
}
|
||||
if (!empty($path[$count - 1])) {
|
||||
$titleForLayout = Inflector::humanize($path[$count - 1]);
|
||||
}
|
||||
$this->set(array(
|
||||
'page' => $page,
|
||||
'subpage' => $subpage,
|
||||
'title_for_layout' => $titleForLayout
|
||||
));
|
||||
|
||||
try {
|
||||
$this->render(implode('/', $path));
|
||||
} catch (MissingViewException $e) {
|
||||
if (Configure::read('debug')) {
|
||||
throw $e;
|
||||
}
|
||||
throw new NotFoundException();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
App::uses('CakeErrorController', 'Controller');
|
||||
|
||||
class TestAppsErrorController extends CakeErrorController {
|
||||
|
||||
public $helpers = array(
|
||||
'Html',
|
||||
'Session',
|
||||
'Form',
|
||||
'Banana',
|
||||
);
|
||||
|
||||
}
|
13
lib/Cake/Test/test_app/Controller/TestConfigsController.php
Normal file
13
lib/Cake/Test/test_app/Controller/TestConfigsController.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
App::uses('CakeErrorController', 'Controller');
|
||||
|
||||
class TestConfigsController extends CakeErrorController {
|
||||
|
||||
public $components = array(
|
||||
'RequestHandler' => array(
|
||||
'some' => 'config'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
51
lib/Cake/Test/test_app/Controller/TestsAppsController.php
Normal file
51
lib/Cake/Test/test_app/Controller/TestsAppsController.php
Normal file
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
/**
|
||||
* TestsAppsController file
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Controller
|
||||
* @since CakePHP(tm) v 1.2.0.4206
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestsAppsController
|
||||
*
|
||||
* @package Cake.Test.TestApp.Controller
|
||||
*/
|
||||
class TestsAppsController extends AppController {
|
||||
|
||||
public $uses = array();
|
||||
|
||||
public $components = array('RequestHandler');
|
||||
|
||||
public function index() {
|
||||
$var = '';
|
||||
if (isset($this->request->query['var'])) {
|
||||
$var = $this->request->query['var'];
|
||||
}
|
||||
$this->set('var', $var);
|
||||
}
|
||||
|
||||
public function some_method() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
public function set_action() {
|
||||
$this->set('var', 'string');
|
||||
$this->render('index');
|
||||
}
|
||||
|
||||
public function redirect_to() {
|
||||
return $this->redirect('http://cakephp.org');
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
<?php
|
||||
/**
|
||||
* TestsAppsPostsController file
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Controller
|
||||
* @since CakePHP(tm) v 1.2.0.4206
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestsAppsPostsController
|
||||
*
|
||||
* @package Cake.Test.TestApp.Controller
|
||||
*/
|
||||
class TestsAppsPostsController extends AppController {
|
||||
|
||||
public $uses = array('Post');
|
||||
|
||||
public $viewPath = 'TestsApps';
|
||||
|
||||
/**
|
||||
* add method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function add() {
|
||||
$data = array(
|
||||
'Post' => array(
|
||||
'title' => 'Test article',
|
||||
'body' => 'Body of article.',
|
||||
'author_id' => 1
|
||||
)
|
||||
);
|
||||
$this->Post->save($data);
|
||||
|
||||
$this->set('posts', $this->Post->find('all'));
|
||||
$this->render('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* check URL params
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function url_var() {
|
||||
$this->set('params', $this->request->params);
|
||||
$this->render('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* post var testing
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function post_var() {
|
||||
$this->set('data', $this->request->data);
|
||||
$this->render('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* input_data()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function input_data() {
|
||||
$this->set('data', $this->request->input('json_decode', true));
|
||||
$this->render('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Fixturized action for testAction()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function fixtured() {
|
||||
$this->set('posts', $this->Post->find('all'));
|
||||
$this->render('index');
|
||||
}
|
||||
|
||||
}
|
21
lib/Cake/Test/test_app/Error/TestAppsExceptionRenderer.php
Normal file
21
lib/Cake/Test/test_app/Error/TestAppsExceptionRenderer.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
class TestAppsExceptionRenderer extends ExceptionRenderer {
|
||||
|
||||
protected function _getController($exception) {
|
||||
App::uses('TestAppsErrorController', 'Controller');
|
||||
if (!$request = Router::getRequest(true)) {
|
||||
$request = new CakeRequest();
|
||||
}
|
||||
$response = new CakeResponse();
|
||||
try {
|
||||
$controller = new TestAppsErrorController($request, $response);
|
||||
$controller->layout = 'banana';
|
||||
} catch (Exception $e) {
|
||||
$controller = new Controller($request, $response);
|
||||
$controller->viewPath = 'Errors';
|
||||
}
|
||||
return $controller;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
/**
|
||||
* Test Suite Test App Cache Engine class.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Lib.Cache.Engine
|
||||
* @since CakePHP(tm) v 1.3
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestAppCacheEngine
|
||||
*
|
||||
* @package Cake.Test.TestApp.Lib.Cache.Engine
|
||||
*/
|
||||
class TestAppCacheEngine extends CacheEngine {
|
||||
|
||||
public function write($key, $value, $duration) {
|
||||
if ($key === 'fail') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function read($key) {
|
||||
}
|
||||
|
||||
public function increment($key, $offset = 1) {
|
||||
}
|
||||
|
||||
public function decrement($key, $offset = 1) {
|
||||
}
|
||||
|
||||
public function delete($key) {
|
||||
}
|
||||
|
||||
public function clear($check) {
|
||||
}
|
||||
|
||||
public function clearGroup($group) {
|
||||
}
|
||||
}
|
25
lib/Cake/Test/test_app/Lib/Library.php
Normal file
25
lib/Cake/Test/test_app/Lib/Library.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/**
|
||||
* Test Suite Library
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Lib
|
||||
* @since CakePHP(tm) v 1.3
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class Library
|
||||
*
|
||||
* @package Cake.Test.TestApp.Lib
|
||||
*/
|
||||
class Library {
|
||||
}
|
31
lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php
Normal file
31
lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
/**
|
||||
* Test Suite Test App Logging stream class.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Lib.Log.Engine
|
||||
* @since CakePHP(tm) v 1.3
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
App::uses('BaseLog', 'Log/Engine');
|
||||
|
||||
/**
|
||||
* Class TestAppLog
|
||||
*
|
||||
* @package Cake.Test.TestApp.Lib.Log.Engine
|
||||
*/
|
||||
class TestAppLog extends BaseLog {
|
||||
|
||||
public function write($type, $message) {
|
||||
}
|
||||
|
||||
}
|
25
lib/Cake/Test/test_app/Lib/Utility/TestUtilityClass.php
Normal file
25
lib/Cake/Test/test_app/Lib/Utility/TestUtilityClass.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/**
|
||||
* Test Suite TestUtilityClass Library
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Lib.Utility
|
||||
* @since CakePHP(tm) v 1.3
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestUtilityClass
|
||||
*
|
||||
* @package Cake.Test.TestApp.Lib.Utility
|
||||
*/
|
||||
class TestUtilityClass {
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
msgid "default.foo"
|
||||
msgstr "Default Foo"
|
||||
|
||||
msgid "default.bar"
|
||||
msgstr "Default Bar"
|
|
@ -0,0 +1,8 @@
|
|||
msgid ""
|
||||
msgstr "Test Domain 1"
|
||||
|
||||
msgid "dom1.foo"
|
||||
msgstr "Dom 1 Foo"
|
||||
|
||||
msgid "dom1.bar"
|
||||
msgstr "Dom 1 Bar"
|
|
@ -0,0 +1,8 @@
|
|||
msgid ""
|
||||
msgstr "Test Domain"
|
||||
|
||||
msgid "dom2.foo"
|
||||
msgstr "Dom 2 Foo"
|
||||
|
||||
msgid "dom2.bar"
|
||||
msgstr "Dom 2 Bar"
|
|
@ -0,0 +1,5 @@
|
|||
msgid "Validation failed: %s"
|
||||
msgstr "Translated validation failed: %s"
|
||||
|
||||
msgid "arg1"
|
||||
msgstr "Translated arg1"
|
48
lib/Cake/Test/test_app/Locale/ja_jp/LC_TIME
Normal file
48
lib/Cake/Test/test_app/Locale/ja_jp/LC_TIME
Normal file
|
@ -0,0 +1,48 @@
|
|||
escape_char /
|
||||
comment_char %
|
||||
abday "<U65E5>";"<U6708>";"<U706B>";"<U6C34>";"<U6728>";"<U91D1>";"<U571F>"
|
||||
|
||||
day "<U65E5><U66DC><U65E5>";"<U6708><U66DC><U65E5>";/
|
||||
"<U706B><U66DC><U65E5>";"<U6C34><U66DC><U65E5>";/
|
||||
"<U6728><U66DC><U65E5>";"<U91D1><U66DC><U65E5>";/
|
||||
"<U571F><U66DC><U65E5>"
|
||||
|
||||
week 7;19971130;7
|
||||
first_weekday 1
|
||||
first_workday 2
|
||||
abmon "<U0020><U0031><U6708>";"<U0020><U0032><U6708>";/
|
||||
"<U0020><U0033><U6708>";"<U0020><U0034><U6708>";/
|
||||
"<U0020><U0035><U6708>";"<U0020><U0036><U6708>";/
|
||||
"<U0020><U0037><U6708>";"<U0020><U0038><U6708>";/
|
||||
"<U0020><U0039><U6708>";"<U0031><U0030><U6708>";/
|
||||
"<U0031><U0031><U6708>";"<U0031><U0032><U6708>"
|
||||
mon "<U0031><U6708>";"<U0032><U6708>";/
|
||||
"<U0033><U6708>";"<U0034><U6708>";/
|
||||
"<U0035><U6708>";"<U0036><U6708>";/
|
||||
"<U0037><U6708>";"<U0038><U6708>";/
|
||||
"<U0039><U6708>";"<U0031><U0030><U6708>";/
|
||||
"<U0031><U0031><U6708>";"<U0031><U0032><U6708>"
|
||||
% Appropriate date and time representation (%c)
|
||||
%
|
||||
d_t_fmt "<U0025><U0059><U5E74><U0025><U006D><U6708><U0025><U0064><U65E5><U0020><U0025><U0048><U6642><U0025><U004D><U5206><U0025><U0053><U79D2>"
|
||||
%
|
||||
% Appropriate date representation (%x)
|
||||
% "%Y年%m月%d日"
|
||||
d_fmt "<U0025><U0059><U5E74><U0025><U006D><U6708><U0025><U0064><U65E5>"
|
||||
%
|
||||
% Appropriate time representation (%X)
|
||||
%
|
||||
t_fmt "<U0025><U0048><U6642><U0025><U004D><U5206><U0025><U0053><U79D2>"
|
||||
%
|
||||
% Appropriate AM/PM time representation (%r)
|
||||
%
|
||||
t_fmt_ampm "<U0025><U0070><U0025><U0049><U6642><U0025><U004D><U5206><U0025><U0053><U79D2>"
|
||||
%
|
||||
% Strings for AM/PM
|
||||
%
|
||||
am_pm "<U5348><U524D>";"<U5348><U5F8C>"
|
||||
%
|
||||
% Appropriate date representation (date(1))
|
||||
date_fmt "<U0025><U0059><U5E74><U0020><U0025><U0062><U0020><U0025>/
|
||||
<U0065><U65E5><U0020><U0025><U0041><U0020><U0025><U0048><U003A><U0025>/
|
||||
<U004D><U003A><U0025><U0053><U0020><U0025><U005A>"
|
169
lib/Cake/Test/test_app/Locale/nld/LC_TIME
Normal file
169
lib/Cake/Test/test_app/Locale/nld/LC_TIME
Normal file
|
@ -0,0 +1,169 @@
|
|||
comment_char %
|
||||
escape_char /
|
||||
%
|
||||
% Dutch Language Locale for the Netherlands
|
||||
% Source: RAP
|
||||
% Address: Sankt Jo//rgens Alle 8
|
||||
% DK-1615 Ko//benhavn V, Danmark
|
||||
% Contact: Keld Simonsen
|
||||
% Email: Keld.Simonsen@dkuug.dk
|
||||
% Tel: +45 - 31226543
|
||||
% Fax: +45 - 31205521
|
||||
% Language: nl
|
||||
% Territory: NL
|
||||
% Revision: 4.3
|
||||
% Date: 1996-10-15
|
||||
% Users: general
|
||||
% Charset: ISO-8859-1
|
||||
% Distribution and use is free, also
|
||||
% for commercial purposes.
|
||||
|
||||
LC_IDENTIFICATION
|
||||
title "Dutch locale for the Netherlands"
|
||||
source "RAP"
|
||||
address "Sankt J<U00F8>rgens Alle 8, DK-1615 K<U00F8>benhavn V, Danmark"
|
||||
contact ""
|
||||
email "bug-glibc-locales@gnu.org"
|
||||
tel ""
|
||||
fax ""
|
||||
language "Dutch"
|
||||
territory "Netherlands"
|
||||
revision "1.0"
|
||||
date "2000-06-29"
|
||||
%
|
||||
category "nl_NL:2000";LC_IDENTIFICATION
|
||||
category "nl_NL:2000";LC_CTYPE
|
||||
category "nl_NL:2000";LC_COLLATE
|
||||
category "nl_NL:2000";LC_TIME
|
||||
category "nl_NL:2000";LC_NUMERIC
|
||||
category "nl_NL:2000";LC_MONETARY
|
||||
category "nl_NL:2000";LC_MESSAGES
|
||||
category "nl_NL:2000";LC_PAPER
|
||||
category "nl_NL:2000";LC_NAME
|
||||
category "nl_NL:2000";LC_ADDRESS
|
||||
category "nl_NL:2000";LC_TELEPHONE
|
||||
|
||||
END LC_IDENTIFICATION
|
||||
|
||||
LC_CTYPE
|
||||
copy "i18n"
|
||||
|
||||
translit_start
|
||||
include "translit_combining";""
|
||||
translit_end
|
||||
END LC_CTYPE
|
||||
|
||||
LC_COLLATE
|
||||
copy "iso14651_t1"
|
||||
END LC_COLLATE
|
||||
|
||||
LC_MESSAGES
|
||||
yesexpr "<U005E><U005B><U006A><U004A><U0079><U0059><U005D><U002E><U002A>"
|
||||
noexpr "<U005E><U005B><U006E><U004E><U005D><U002E><U002A>"
|
||||
END LC_MESSAGES
|
||||
|
||||
LC_MONETARY
|
||||
int_curr_symbol "<U0045><U0055><U0052><U0020>"
|
||||
currency_symbol "<U20AC>"
|
||||
mon_decimal_point "<U002C>"
|
||||
mon_thousands_sep "<U0020>"
|
||||
mon_grouping 3;3
|
||||
positive_sign ""
|
||||
negative_sign "<U002D>"
|
||||
int_frac_digits 2
|
||||
frac_digits 2
|
||||
p_cs_precedes 1
|
||||
p_sep_by_space 1
|
||||
n_cs_precedes 1
|
||||
n_sep_by_space 1
|
||||
p_sign_posn 1
|
||||
n_sign_posn 2
|
||||
END LC_MONETARY
|
||||
|
||||
LC_NUMERIC
|
||||
decimal_point "<U002C>"
|
||||
thousands_sep ""
|
||||
grouping 0;0
|
||||
END LC_NUMERIC
|
||||
|
||||
LC_TIME
|
||||
abday "<U007A><U006F>";"<U006D><U0061>";"<U0064><U0069>";/
|
||||
"<U0077><U006F>";"<U0064><U006F>";"<U0076><U0072>";/
|
||||
"<U007A><U0061>"
|
||||
day "<U007A><U006F><U006E><U0064><U0061><U0067>";/
|
||||
"<U006D><U0061><U0061><U006E><U0064><U0061><U0067>";/
|
||||
"<U0064><U0069><U006E><U0073><U0064><U0061><U0067>";/
|
||||
"<U0077><U006F><U0065><U006E><U0073><U0064><U0061><U0067>";/
|
||||
"<U0064><U006F><U006E><U0064><U0065><U0072><U0064><U0061><U0067>";/
|
||||
"<U0076><U0072><U0069><U006A><U0064><U0061><U0067>";/
|
||||
"<U007A><U0061><U0074><U0065><U0072><U0064><U0061><U0067>"
|
||||
abmon "<U006A><U0061><U006E>";"<U0066><U0065><U0062>";/
|
||||
"<U006D><U0072><U0074>";"<U0061><U0070><U0072>";/
|
||||
"<U006D><U0065><U0069>";"<U006A><U0075><U006E>";/
|
||||
"<U006A><U0075><U006C>";"<U0061><U0075><U0067>";/
|
||||
"<U0073><U0065><U0070>";"<U006F><U006B><U0074>";/
|
||||
"<U006E><U006F><U0076>";"<U0064><U0065><U0063>"
|
||||
mon "<U006A><U0061><U006E><U0075><U0061><U0072><U0069>";/
|
||||
"<U0066><U0065><U0062><U0072><U0075><U0061><U0072><U0069>";/
|
||||
"<U006D><U0061><U0061><U0072><U0074>";/
|
||||
"<U0061><U0070><U0072><U0069><U006C>";/
|
||||
"<U006D><U0065><U0069>";/
|
||||
"<U006A><U0075><U006E><U0069>";/
|
||||
"<U006A><U0075><U006C><U0069>";/
|
||||
"<U0061><U0075><U0067><U0075><U0073><U0074><U0075><U0073>";/
|
||||
"<U0073><U0065><U0070><U0074><U0065><U006D><U0062><U0065><U0072>";/
|
||||
"<U006F><U006B><U0074><U006F><U0062><U0065><U0072>";/
|
||||
"<U006E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
|
||||
"<U0064><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
|
||||
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
|
||||
d_fmt "<U0025><U0064><U002D><U0025><U006D><U002D><U0025><U0079>"
|
||||
t_fmt "<U0025><U0054>"
|
||||
am_pm "";""
|
||||
t_fmt_ampm ""
|
||||
date_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
|
||||
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
|
||||
<U0025><U005A><U0020><U0025><U0059>"
|
||||
|
||||
week 7;19971130;4
|
||||
first_weekday 2
|
||||
first_workday 2
|
||||
END LC_TIME
|
||||
|
||||
LC_PAPER
|
||||
% FIXME
|
||||
height 297
|
||||
% FIXME
|
||||
width 210
|
||||
END LC_PAPER
|
||||
|
||||
LC_TELEPHONE
|
||||
tel_int_fmt "<U002B><U0025><U0063><U0020><U0025><U0061><U0020><U0025>/
|
||||
<U006C>"
|
||||
int_prefix "<U0033><U0031>"
|
||||
END LC_TELEPHONE
|
||||
|
||||
LC_MEASUREMENT
|
||||
% FIXME
|
||||
measurement 1
|
||||
END LC_MEASUREMENT
|
||||
|
||||
LC_NAME
|
||||
name_fmt "<U0025><U0064><U0025><U0074><U0025><U0067><U0025><U0074>/
|
||||
<U0025><U006D><U0025><U0074><U0025><U0066>"
|
||||
END LC_NAME
|
||||
|
||||
LC_ADDRESS
|
||||
postal_fmt "<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
|
||||
<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
|
||||
<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
|
||||
<U004E><U0025><U007A><U0020><U0025><U0054><U0025>/
|
||||
<U004E><U0025><U0063><U0025><U004E>"
|
||||
country_ab2 "<U004E><U004C>"
|
||||
country_ab3 "<U004E><U004C><U0044>"
|
||||
country_num 528
|
||||
country_car "<U004E><U004C>"
|
||||
lang_name "<U0064><U0075><U0074><U0063><U0068>"
|
||||
lang_ab "<U006E><U006C>"
|
||||
lang_term "<U006E><U006C><U0064>"
|
||||
lang_lib "<U0064><U0075><U0074>"
|
||||
END LC_ADDRESS
|
76
lib/Cake/Test/test_app/Locale/po/LC_MESSAGES/default.po
Normal file
76
lib/Cake/Test/test_app/Locale/po/LC_MESSAGES/default.po
Normal file
|
@ -0,0 +1,76 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
msgid ""
|
||||
msgstr "header"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Po (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d is 1 (po translated)"
|
||||
msgstr[1] "%d is 2-4 (po translated)"
|
||||
msgstr[2] "%d everything else (po translated)"
|
||||
|
||||
msgid "This is a multiline translation\n"
|
||||
"broken up over multiple lines.\n"
|
||||
"This is the third line.\n"
|
||||
"This is the forth line."
|
||||
msgstr "This is a multiline translation\n"
|
||||
"broken up over multiple lines.\n"
|
||||
"This is the third line.\n"
|
||||
"This is the forth line. (translated)"
|
||||
|
||||
msgid "No Translation needed"
|
||||
msgstr ""
|
||||
|
||||
msgid "test"
|
||||
msgid_plural "tests"
|
||||
msgstr[0] "test translated"
|
||||
msgstr[1] "test translated"
|
||||
msgstr[2] ""
|
||||
msgstr[3] ""
|
||||
|
||||
msgid "valid\n"
|
||||
"second line"
|
||||
msgid_plural "valids\n"
|
||||
"second line"
|
||||
msgstr[0] "v\n"
|
||||
"second line"
|
||||
msgstr[1] "vs\n"
|
||||
"second line"
|
||||
|
||||
msgid "%d = 1\n"
|
||||
"This is a multiline translation\n"
|
||||
"broken up over multiple lines.\n"
|
||||
"This is the third line.\n"
|
||||
"This is the forth line."
|
||||
msgid_plural "%d = 0 or > 1\n"
|
||||
"This is a multiline translation\n"
|
||||
"broken up over multiple lines.\n"
|
||||
"This is the third line.\n"
|
||||
"This is the forth line."
|
||||
msgstr[0] "%d is 1\n"
|
||||
"This is a multiline translation\n"
|
||||
"broken up over multiple lines.\n"
|
||||
"This is the third line.\n"
|
||||
"This is the forth line."
|
||||
msgstr[1] "%d is 2-4\n"
|
||||
"This is a multiline translation\n"
|
||||
"broken up over multiple lines.\n"
|
||||
"This is the third line.\n"
|
||||
"This is the forth line."
|
||||
|
||||
msgid "this is a \"quoted string\""
|
||||
msgstr "this is a \"quoted string\" (translated)"
|
18
lib/Cake/Test/test_app/Locale/po/LC_MONETARY/default.po
Normal file
18
lib/Cake/Test/test_app/Locale/po/LC_MONETARY/default.po
Normal file
|
@ -0,0 +1,18 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
msgid ""
|
||||
msgstr "header"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Monetary Po (translated)"
|
60
lib/Cake/Test/test_app/Locale/po/LC_TIME
Normal file
60
lib/Cake/Test/test_app/Locale/po/LC_TIME
Normal file
|
@ -0,0 +1,60 @@
|
|||
escape_char /
|
||||
comment_char %
|
||||
abday "<U0053><U0075><U006E>";"<U004D><U006F><U006E>";/
|
||||
"<U0054><U0075><U0065>";"<U0057><U0065><U0064>";/
|
||||
"<U0054><U0068><U0075>";"<U0046><U0072><U0069>";/
|
||||
"<U0053><U0061><U0074>"
|
||||
day "<U0053><U0075><U006E><U0064><U0061><U0079>";/
|
||||
"<U004D><U006F><U006E><U0064><U0061><U0079>";/
|
||||
"<U0054><U0075><U0065><U0073><U0064><U0061><U0079>";/
|
||||
"<U0057><U0065><U0064><U006E><U0065><U0073><U0064><U0061><U0079>";/
|
||||
"<U0054><U0068><U0075><U0072><U0073><U0064><U0061><U0079>";/
|
||||
"<U0046><U0072><U0069><U0064><U0061><U0079>";/
|
||||
"<U0053><U0061><U0074><U0075><U0072><U0064><U0061><U0079>"
|
||||
|
||||
week 7;19971130;7
|
||||
first_weekday 1
|
||||
first_workday 2
|
||||
abmon "<U004A><U0061><U006E>";"<U0046><U0065><U0062>";/
|
||||
"<U004D><U0061><U0072>";"<U0041><U0070><U0072>";/
|
||||
"<U004D><U0061><U0079>";"<U004A><U0075><U006E>";/
|
||||
"<U004A><U0075><U006C>";"<U0041><U0075><U0067>";/
|
||||
"<U0053><U0065><U0070>";"<U004F><U0063><U0074>";/
|
||||
"<U004E><U006F><U0076>";"<U0044><U0065><U0063>"
|
||||
mon "<U004A><U0061><U006E><U0075><U0061><U0072><U0079>";/
|
||||
"<U0046><U0065><U0062><U0072><U0075><U0061><U0072><U0079>";/
|
||||
"<U004D><U0061><U0072><U0063><U0068>";/
|
||||
"<U0041><U0070><U0072><U0069><U006C>";/
|
||||
"<U004D><U0061><U0079>";/
|
||||
"<U004A><U0075><U006E><U0065>";/
|
||||
"<U004A><U0075><U006C><U0079>";/
|
||||
"<U0041><U0075><U0067><U0075><U0073><U0074>";/
|
||||
"<U0053><U0065><U0070><U0074><U0065><U006D><U0062><U0065><U0072>";/
|
||||
"<U004F><U0063><U0074><U006F><U0062><U0065><U0072>";/
|
||||
"<U004E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
|
||||
"<U0044><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
|
||||
% Appropriate date and time representation (%c)
|
||||
% "%a %d %b %Y %r %Z"
|
||||
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0072><U0020><U0025><U005A>"
|
||||
%
|
||||
% Appropriate date representation (%x)
|
||||
% "%m/%d/%Y"
|
||||
d_fmt "<U0025><U006D><U002F><U0025><U0064><U002F><U0025><U0059>"
|
||||
%
|
||||
% Appropriate time representation (%X)
|
||||
% "%r"
|
||||
t_fmt "<U0025><U0072>"
|
||||
%
|
||||
% Appropriate AM/PM time representation (%r)
|
||||
% "%I:%M:%S %p"
|
||||
t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
|
||||
<U0025><U0070>"
|
||||
%
|
||||
% Strings for AM/PM
|
||||
%
|
||||
am_pm "<U0041><U004D>";"<U0050><U004D>"
|
||||
%
|
||||
% Appropriate date representation (date(1)) "%a %b %e %H:%M:%S %Z %Y"
|
||||
date_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
|
||||
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
|
||||
<U0025><U005A><U0020><U0025><U0059>"
|
21
lib/Cake/Test/test_app/Locale/rule_0_po/LC_MESSAGES/core.po
Normal file
21
lib/Cake/Test/test_app/Locale/rule_0_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,21 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Poedit-Language: Single Form Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 0 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d ends with any # (from core translated)"
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Poedit-Language: Single Form Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 0 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d ends with any # (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 0"
|
||||
|
24
lib/Cake/Test/test_app/Locale/rule_10_po/LC_MESSAGES/core.po
Normal file
24
lib/Cake/Test/test_app/Locale/rule_10_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,24 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;\n"
|
||||
"X-Poedit-Language: Four Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 10 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d ends in 1 (from core translated)"
|
||||
msgstr[1] "%d ends in 2 (from core translated)"
|
||||
msgstr[2] "%d ends in 03-04 (from core translated)"
|
||||
msgstr[3] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;\n"
|
||||
"X-Poedit-Language: Four Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 10 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d ends in 1 (translated)"
|
||||
msgstr[1] "%d ends in 2 (translated)"
|
||||
msgstr[2] "%d ends in 03-04 (translated)"
|
||||
msgstr[3] "%d everything else (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
25
lib/Cake/Test/test_app/Locale/rule_11_po/LC_MESSAGES/core.po
Normal file
25
lib/Cake/Test/test_app/Locale/rule_11_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,25 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-10-09 19:20-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Renan Gonçalves <renan.saddam@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=5; plural=n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 : n>=7 && n<=10 ? 3 : 4;\n"
|
||||
"X-Poedit-Language: Five Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 11 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d is 1 (from core translated)"
|
||||
msgstr[1] "%d is 2 (from core translated)"
|
||||
msgstr[2] "%d is 3-6 (from core translated)"
|
||||
msgstr[3] "%d is 7-10 (from core translated)"
|
||||
msgstr[4] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-10-09 19:20-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Renan Gonçalves <renan.saddam@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=5; plural=n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 : n>=7 && n<=10 ? 3 : 4;\n"
|
||||
"X-Poedit-Language: Five Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 11 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d is 1 (translated)"
|
||||
msgstr[1] "%d is 2 (translated)"
|
||||
msgstr[2] "%d is 3-6 (translated)"
|
||||
msgstr[3] "%d is 7-10 (translated)"
|
||||
msgstr[4] "%d everything else (translated)"
|
||||
|
24
lib/Cake/Test/test_app/Locale/rule_12_po/LC_MESSAGES/core.po
Normal file
24
lib/Cake/Test/test_app/Locale/rule_12_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,24 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-10-09 19:20-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Renan Gonçalves <renan.saddam@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n==0 || (n>=3 && n<=10) ? 2 : 3;\n"
|
||||
"X-Poedit-Language: Four Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 12 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d is 1 (from core translated)"
|
||||
msgstr[1] "%d is 2 (from core translated)"
|
||||
msgstr[2] "%d is 0 or 3-10 (from core translated)"
|
||||
msgstr[3] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-10-09 19:20-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Renan Gonçalves <renan.saddam@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n==0 || (n>=3 && n<=10) ? 2 : 3;\n"
|
||||
"X-Poedit-Language: Four Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 12 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d is 1 (translated)"
|
||||
msgstr[1] "%d is 2 (translated)"
|
||||
msgstr[2] "%d is 0 or 3-10 (translated)"
|
||||
msgstr[3] "%d everything else (translated)"
|
||||
|
26
lib/Cake/Test/test_app/Locale/rule_13_po/LC_MESSAGES/core.po
Normal file
26
lib/Cake/Test/test_app/Locale/rule_13_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,26 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-10-09 19:20-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Renan Gonçalves <renan.saddam@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==0 || (n%100>=1 && n%100<=10) ? 1 : n%100>=11 && n%100<=20 ? 2 : 3;\n"
|
||||
"X-Poedit-Language: Four Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 13 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d is 1 (from core translated)"
|
||||
msgstr[1] "%d is 0 or ends in 01-10 (from core translated)"
|
||||
msgstr[2] "%d ends in 11-20 (from core translated)"
|
||||
msgstr[3] "%d everything else (from core translated)"
|
||||
|
||||
msgid "%+5d = 1 (from core)"
|
||||
msgid_plural "%+5d = 0 or > 1 (from core)"
|
|
@ -0,0 +1,24 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-10-09 19:20-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Renan Gonçalves <renan.saddam@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==0 || (n%100>=1 && n%100<=10) ? 1 : n%100>=11 && n%100<=20 ? 2 : 3;\n"
|
||||
"X-Poedit-Language: Four Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 13 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d is 1 (translated)"
|
||||
msgstr[1] "%d is 0 or ends in 01-10 (translated)"
|
||||
msgstr[2] "%d ends in 11-20 (translated)"
|
||||
msgstr[3] "%d everything else (translated)"
|
||||
|
23
lib/Cake/Test/test_app/Locale/rule_14_po/LC_MESSAGES/core.po
Normal file
23
lib/Cake/Test/test_app/Locale/rule_14_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-10-09 19:20-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Renan Gonçalves <renan.saddam@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 ? 0 : n%10==2 ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 14 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d ends in 1 (from core translated)"
|
||||
msgstr[1] "%d ends in 2 (from core translated)"
|
||||
msgstr[2] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-10-09 19:20-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Renan Gonçalves <renan.saddam@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 ? 0 : n%10==2 ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 14 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d ends in 1 (translated)"
|
||||
msgstr[1] "%d ends in 2 (translated)"
|
||||
msgstr[2] "%d everything else (translated)"
|
||||
|
22
lib/Cake/Test/test_app/Locale/rule_1_po/LC_MESSAGES/core.po
Normal file
22
lib/Cake/Test/test_app/Locale/rule_1_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,22 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Poedit-Language: Two Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 1 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d = 1 (from core translated)"
|
||||
msgstr[1] "%d = 0 or > 1 (from core translated)"
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Poedit-Language: Two Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 1 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d = 1 (translated)"
|
||||
msgstr[1] "%d = 0 or > 1 (translated)"
|
||||
|
||||
msgid "%-5d = 1"
|
||||
msgid_plural "%-5d = 0 or > 1"
|
||||
msgstr[0] "%-5d = 1 (translated)"
|
||||
msgstr[1] "%-5d = 0 or > 1 (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
22
lib/Cake/Test/test_app/Locale/rule_2_po/LC_MESSAGES/core.po
Normal file
22
lib/Cake/Test/test_app/Locale/rule_2_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,22 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n>1;\n"
|
||||
"X-Poedit-Language: Two Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 2 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d = 0 or 1 (from core translated)"
|
||||
msgstr[1] "%d > 1 (from core translated)"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n>1;\n"
|
||||
"X-Poedit-Language: Two Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 2 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d = 0 or 1 (translated)"
|
||||
msgstr[1] "%d > 1 (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
23
lib/Cake/Test/test_app/Locale/rule_3_po/LC_MESSAGES/core.po
Normal file
23
lib/Cake/Test/test_app/Locale/rule_3_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 3 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d ends 1 but not 11 (from core translated)"
|
||||
msgstr[1] "%d everything else (from core translated)"
|
||||
msgstr[2] "%d = 0 (from core translated)"
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 3 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d ends 1 but not 11 (translated)"
|
||||
msgstr[1] "%d everything else (translated)"
|
||||
msgstr[2] "%d = 0 (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
23
lib/Cake/Test/test_app/Locale/rule_4_po/LC_MESSAGES/core.po
Normal file
23
lib/Cake/Test/test_app/Locale/rule_4_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 4 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d = 1 (from core translated)"
|
||||
msgstr[1] "%d = 2 (from core translated)"
|
||||
msgstr[2] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 4 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d = 1 (translated)"
|
||||
msgstr[1] "%d = 2 (translated)"
|
||||
msgstr[2] "%d everything else (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
23
lib/Cake/Test/test_app/Locale/rule_5_po/LC_MESSAGES/core.po
Normal file
23
lib/Cake/Test/test_app/Locale/rule_5_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 5 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d = 1 (from core translated)"
|
||||
msgstr[1] "%d = 0 or ends in 01-19 (from core translated)"
|
||||
msgstr[2] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 5 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d = 1 (translated)"
|
||||
msgstr[1] "%d = 0 or ends in 01-19 (translated)"
|
||||
msgstr[2] "%d everything else (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
23
lib/Cake/Test/test_app/Locale/rule_6_po/LC_MESSAGES/core.po
Normal file
23
lib/Cake/Test/test_app/Locale/rule_6_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 6 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d ends in 1, not 11 (from core translated)"
|
||||
msgstr[1] "%d everything else (from core translated)"
|
||||
msgstr[2] "%d ends in 0 or ends in 10-20 (from core translated)"
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 6 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d ends in 1, not 11 (translated)"
|
||||
msgstr[1] "%d everything else (translated)"
|
||||
msgstr[2] "%d ends in 0 or ends in 10-20 (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
23
lib/Cake/Test/test_app/Locale/rule_7_po/LC_MESSAGES/core.po
Normal file
23
lib/Cake/Test/test_app/Locale/rule_7_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 7 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d ends in 1, not 11 (from core translated)"
|
||||
msgstr[1] "%d ends in 2-4, not 12-14 (from core translated)"
|
||||
msgstr[2] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 7 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d ends in 1, not 11 (translated)"
|
||||
msgstr[1] "%d ends in 2-4, not 12-14 (translated)"
|
||||
msgstr[2] "%d everything else (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
23
lib/Cake/Test/test_app/Locale/rule_8_po/LC_MESSAGES/core.po
Normal file
23
lib/Cake/Test/test_app/Locale/rule_8_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 8 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d is 1 (from core translated)"
|
||||
msgstr[1] "%d is 2-4 (from core translated)"
|
||||
msgstr[2] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 8 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d is 1 (translated)"
|
||||
msgstr[1] "%d is 2-4 (translated)"
|
||||
msgstr[2] "%d everything else (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
23
lib/Cake/Test/test_app/Locale/rule_9_po/LC_MESSAGES/core.po
Normal file
23
lib/Cake/Test/test_app/Locale/rule_9_po/LC_MESSAGES/core.po
Normal file
|
@ -0,0 +1,23 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1 (from core)"
|
||||
msgstr "Plural Rule 9 (from core translated)"
|
||||
|
||||
msgid "%d = 1 (from core)"
|
||||
msgid_plural "%d = 0 or > 1 (from core)"
|
||||
msgstr[0] "%d is 1 (from core translated)"
|
||||
msgstr[1] "%d ends in 2-4, not 12-14 (from core translated)"
|
||||
msgstr[2] "%d everything else (from core translated)"
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: CakePHP Testsuite\n"
|
||||
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
"X-Poedit-Language: Three Forms of Plurals\n"
|
||||
"X-Poedit-SourceCharset: utf-8\n"
|
||||
|
||||
msgid "Plural Rule 1"
|
||||
msgstr "Plural Rule 9 (translated)"
|
||||
|
||||
msgid "%d = 1"
|
||||
msgid_plural "%d = 0 or > 1"
|
||||
msgstr[0] "%d is 1 (translated)"
|
||||
msgstr[1] "%d ends in 2-4, not 12-14 (translated)"
|
||||
msgstr[2] "%d everything else (translated)"
|
||||
|
||||
#~ msgid "Plural-Forms 1"
|
||||
#~ msgstr "Plural-Forms 1 (translated)"
|
||||
|
42
lib/Cake/Test/test_app/Locale/time_test/LC_TIME
Normal file
42
lib/Cake/Test/test_app/Locale/time_test/LC_TIME
Normal file
|
@ -0,0 +1,42 @@
|
|||
escape_char /
|
||||
comment_char %
|
||||
abday "<U0064><U006F><U006D>";"<U006C><U0075><U006E>";/
|
||||
"<U006D><U0061><U0072>";"<U006D><U0069><U00E9>";/
|
||||
"<U006A><U0075><U0065>";"<U0076><U0069><U0065>";/
|
||||
"<U0073><U00E1><U0062>"
|
||||
day "<U0064><U006F><U006D><U0069><U006E><U0067><U006F>";/
|
||||
"<U006C><U0075><U006E><U0065><U0073>";/
|
||||
"<U006D><U0061><U0072><U0074><U0065><U0073>";/
|
||||
"<U006D><U0069><U00E9><U0072><U0063><U006F><U006C><U0065><U0073>";/
|
||||
"<U006A><U0075><U0065><U0076><U0065><U0073>";/
|
||||
"<U0076><U0069><U0065><U0072><U006E><U0065><U0073>";/
|
||||
"<U0073><U00E1><U0062><U0061><U0064><U006F>"
|
||||
abmon "<U0065><U006E><U0065>";"<U0066><U0065><U0062>";/
|
||||
"<U006D><U0061><U0072>";"<U0061><U0062><U0072>";/
|
||||
"<U006D><U0061><U0079>";"<U006A><U0075><U006E>";/
|
||||
"<U006A><U0075><U006C>";"<U0061><U0067><U006F>";/
|
||||
"<U0073><U0065><U0070>";"<U006F><U0063><U0074>";/
|
||||
"<U006E><U006F><U0076>";"<U0064><U0069><U0063>"
|
||||
mon "<U0065><U006E><U0065><U0072><U006F>";/
|
||||
"<U0066><U0065><U0062><U0072><U0065><U0072><U006F>";/
|
||||
"<U006D><U0061><U0072><U007A><U006F>";/
|
||||
"<U0061><U0062><U0072><U0069><U006C>";/
|
||||
"<U006D><U0061><U0079><U006F>";/
|
||||
"<U006A><U0075><U006E><U0069><U006F>";/
|
||||
"<U006A><U0075><U006C><U0069><U006F>";/
|
||||
"<U0061><U0067><U006F><U0073><U0074><U006F>";/
|
||||
"<U0073><U0065><U0070><U0074><U0069><U0065><U006D><U0062><U0072><U0065>";/
|
||||
"<U006F><U0063><U0074><U0075><U0062><U0072><U0065>";/
|
||||
"<U006E><U006F><U0076><U0069><U0065><U006D><U0062><U0072><U0065>";/
|
||||
"<U0064><U0069><U0063><U0069><U0065><U006D><U0062><U0072><U0065>"
|
||||
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
|
||||
d_fmt "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"
|
||||
t_fmt "<U0025><U0054>"
|
||||
am_pm "<U0061><U006D>";"<U0070><U006D>"
|
||||
t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
|
||||
<U0025><U0070>"
|
||||
date_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
|
||||
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
|
||||
<U0025><U005A><U0020><U0025><U0059>"
|
||||
% FIXME: found in CLDR
|
||||
first_weekday 2
|
34
lib/Cake/Test/test_app/Model/AppModel.php
Normal file
34
lib/Cake/Test/test_app/Model/AppModel.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* Application model for Cake.
|
||||
*
|
||||
* This file is application-wide model file. You can put all
|
||||
* application-wide model-related methods here.
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @package Cake.Model
|
||||
* @since CakePHP(tm) v 0.2.9
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
App::uses('Model', 'Model');
|
||||
|
||||
/**
|
||||
* Application model for Cake.
|
||||
*
|
||||
* This is a placeholder class.
|
||||
* Create the same file in app/Model/AppModel.php
|
||||
* Add your application-wide methods to the class, your models will inherit them.
|
||||
*
|
||||
* @package Cake.Model
|
||||
*/
|
||||
class AppModel extends Model {
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Behavior for binding management.
|
||||
*
|
||||
* Behavior to simplify manipulating a model's bindings when doing a find operation
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @package Cake.Test.TestApp.Model.Behavior
|
||||
* @since CakePHP(tm) v 1.2.0.5669
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting
|
||||
* the amount of associations and data returned.
|
||||
*
|
||||
* @package Cake.Test.TestApp.Model.Behavior
|
||||
*/
|
||||
class PersisterOneBehaviorBehavior extends ModelBehavior {
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Behavior for binding management.
|
||||
*
|
||||
* Behavior to simplify manipulating a model's bindings when doing a find operation
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @package Cake.Test.TestApp.Model.Behavior
|
||||
* @since CakePHP(tm) v 1.2.0.5669
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting
|
||||
* the amount of associations and data returned.
|
||||
*
|
||||
* @package Cake.Test.TestApp.Model.Behavior
|
||||
*/
|
||||
class PersisterTwoBehaviorBehavior extends ModelBehavior {
|
||||
}
|
33
lib/Cake/Test/test_app/Model/Comment.php
Normal file
33
lib/Cake/Test/test_app/Model/Comment.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* Test App Comment Model
|
||||
*
|
||||
* CakePHP : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP Project
|
||||
* @package Cake.Test.TestApp.Model
|
||||
* @since CakePHP v 1.2.0.7726
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Comment Model
|
||||
*
|
||||
* @package Cake.Test.TestApp.Model
|
||||
*/
|
||||
class Comment extends AppModel {
|
||||
|
||||
/**
|
||||
* Table name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $useTable = 'comments';
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
App::uses('TestSource', 'TestPlugin.Model/Datasource');
|
||||
|
||||
class TestLocalDriver extends TestSource {
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* Test suite app/Model/Datasource/Session session handler
|
||||
*
|
||||
*/
|
||||
|
||||
App::uses('CakeSessionHandlerInterface', 'Model/Datasource/Session');
|
||||
|
||||
class TestAppLibSession implements CakeSessionHandlerInterface {
|
||||
|
||||
public function open() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function close() {
|
||||
}
|
||||
|
||||
public function read($id) {
|
||||
}
|
||||
|
||||
public function write($id, $data) {
|
||||
}
|
||||
|
||||
public function destroy($id) {
|
||||
}
|
||||
|
||||
public function gc($expires = null) {
|
||||
}
|
||||
|
||||
}
|
27
lib/Cake/Test/test_app/Model/Datasource/Test2OtherSource.php
Normal file
27
lib/Cake/Test/test_app/Model/Datasource/Test2OtherSource.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
class Test2OtherSource extends DataSource {
|
||||
|
||||
public function describe($model) {
|
||||
return compact('model');
|
||||
}
|
||||
|
||||
public function listSources($data = null) {
|
||||
return array('test_source');
|
||||
}
|
||||
|
||||
public function create(Model $model, $fields = null, $values = null) {
|
||||
return compact('model', 'fields', 'values');
|
||||
}
|
||||
|
||||
public function read(Model $model, $queryData = array(), $recursive = null) {
|
||||
return compact('model', 'queryData');
|
||||
}
|
||||
|
||||
public function update(Model $model, $fields = array(), $values = array(), $conditions = null) {
|
||||
return compact('model', 'fields', 'values');
|
||||
}
|
||||
|
||||
public function delete(Model $model, $id = null) {
|
||||
return compact('model', 'id');
|
||||
}
|
||||
}
|
27
lib/Cake/Test/test_app/Model/Datasource/Test2Source.php
Normal file
27
lib/Cake/Test/test_app/Model/Datasource/Test2Source.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
class Test2Source extends DataSource {
|
||||
|
||||
public function describe($model) {
|
||||
return compact('model');
|
||||
}
|
||||
|
||||
public function listSources($data = null) {
|
||||
return array('test_source');
|
||||
}
|
||||
|
||||
public function create(Model $model, $fields = null, $values = null) {
|
||||
return compact('model', 'fields', 'values');
|
||||
}
|
||||
|
||||
public function read(Model $model, $queryData = array(), $recursive = null) {
|
||||
return compact('model', 'queryData');
|
||||
}
|
||||
|
||||
public function update(Model $model, $fields = array(), $values = array(), $conditions = null) {
|
||||
return compact('model', 'fields', 'values');
|
||||
}
|
||||
|
||||
public function delete(Model $model, $id = null) {
|
||||
return compact('model', 'id');
|
||||
}
|
||||
}
|
45
lib/Cake/Test/test_app/Model/Extract.php
Normal file
45
lib/Cake/Test/test_app/Model/Extract.php
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
/**
|
||||
* Test App Extract Model
|
||||
*
|
||||
* CakePHP : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP Project
|
||||
* @package Cake.Test.TestApp.Model
|
||||
* @since CakePHP v 2.4
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class Extract
|
||||
*
|
||||
* For testing Console i18n validation message extraction with quotes
|
||||
*
|
||||
* @package Cake.Test.TestApp.Model
|
||||
*/
|
||||
class Extract extends AppModel {
|
||||
|
||||
public $useTable = false;
|
||||
|
||||
public $validate = array(
|
||||
'title' => array(
|
||||
'custom' => array(
|
||||
'rule' => array('custom', '.*'),
|
||||
'allowEmpty' => true,
|
||||
'required' => false,
|
||||
'message' => 'double "quoted" validation'
|
||||
),
|
||||
'between' => array(
|
||||
'rule' => array('between', 5, 15),
|
||||
'message' => "single 'quoted' validation"
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
}
|
61
lib/Cake/Test/test_app/Model/PersisterOne.php
Normal file
61
lib/Cake/Test/test_app/Model/PersisterOne.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
/**
|
||||
* Test App Comment Model
|
||||
*
|
||||
* CakePHP : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP Project
|
||||
* @package Cake.Test.TestApp.Model
|
||||
* @since CakePHP v 1.2.0.7726
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class PersisterOne
|
||||
*
|
||||
* @package Cake.Test.TestApp.Model
|
||||
*/
|
||||
class PersisterOne extends AppModel {
|
||||
|
||||
public $useTable = 'posts';
|
||||
|
||||
public $actsAs = array('PersisterOneBehavior', 'TestPlugin.TestPluginPersisterOne');
|
||||
|
||||
public $hasMany = array('Comment', 'TestPlugin.TestPluginComment');
|
||||
|
||||
public $validate = array(
|
||||
'title' => array(
|
||||
'custom' => array(
|
||||
'rule' => array('custom', '.*'),
|
||||
'allowEmpty' => true,
|
||||
'required' => false,
|
||||
'message' => 'Post title is required'
|
||||
),
|
||||
'between' => array(
|
||||
'rule' => array('between', 5, 15),
|
||||
'message' => array('You may enter up to %s chars (minimum is %s chars)', 14, 6)
|
||||
)
|
||||
),
|
||||
'body' => array(
|
||||
'first_rule' => array(
|
||||
'rule' => array('custom', '.*'),
|
||||
'allowEmpty' => true,
|
||||
'required' => false,
|
||||
'message' => 'Post body is required'
|
||||
),
|
||||
'second_rule' => array(
|
||||
'rule' => array('custom', '.*'),
|
||||
'allowEmpty' => true,
|
||||
'required' => false,
|
||||
'message' => 'Post body is super required'
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
}
|
32
lib/Cake/Test/test_app/Model/PersisterTwo.php
Normal file
32
lib/Cake/Test/test_app/Model/PersisterTwo.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
/**
|
||||
* Test App Comment Model
|
||||
*
|
||||
* CakePHP : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP Project
|
||||
* @package Cake.Test.TestApp.Model
|
||||
* @since CakePHP v 1.2.0.7726
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class PersisterTwo
|
||||
*
|
||||
* @package Cake.Test.TestApp.Model
|
||||
*/
|
||||
class PersisterTwo extends AppModel {
|
||||
|
||||
public $useTable = 'posts';
|
||||
|
||||
public $actsAs = array('PersisterOneBehavior', 'TestPlugin.TestPluginPersisterOne');
|
||||
|
||||
public $hasMany = array('Comment', 'TestPlugin.TestPluginComment');
|
||||
|
||||
}
|
28
lib/Cake/Test/test_app/Model/Post.php
Normal file
28
lib/Cake/Test/test_app/Model/Post.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Test App Comment Model
|
||||
*
|
||||
* CakePHP : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP Project
|
||||
* @package Cake.Test.TestApp.Model
|
||||
* @since CakePHP v 1.2.0.7726
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class Post
|
||||
*
|
||||
* @package Cake.Test.TestApp.Model
|
||||
*/
|
||||
class Post extends AppModel {
|
||||
|
||||
public $useTable = 'posts';
|
||||
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
Configure::write('CakePluginTest.js_plugin.bootstrap', 'loaded js plugin bootstrap');
|
|
@ -0,0 +1 @@
|
|||
alert('plugin one nested js file');
|
|
@ -0,0 +1 @@
|
|||
alert('win sauce');
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
/**
|
||||
* TestAppSchema file
|
||||
*
|
||||
* Use for testing the loading of schema files from plugins.
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config.Schema
|
||||
* @since CakePHP(tm) v 1.3
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestPluginAppSchema
|
||||
*
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config.Schema
|
||||
*/
|
||||
class TestPluginAppSchema extends CakeSchema {
|
||||
|
||||
public $name = 'TestPluginApp';
|
||||
|
||||
public $test_plugin_acos = array(
|
||||
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
|
||||
'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
|
||||
'model' => array('type' => 'string', 'null' => true),
|
||||
'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
|
||||
'alias' => array('type' => 'string', 'null' => true),
|
||||
'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
|
||||
'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
|
||||
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
|
||||
);
|
||||
}
|
57
lib/Cake/Test/test_app/Plugin/TestPlugin/Config/acl.ini.php
Normal file
57
lib/Cake/Test/test_app/Plugin/TestPlugin/Config/acl.ini.php
Normal file
|
@ -0,0 +1,57 @@
|
|||
;<?php exit() ?>
|
||||
; SVN FILE: $Id$
|
||||
;/**
|
||||
; * Test App Ini Based Acl Config File
|
||||
; *
|
||||
; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
; * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
; *
|
||||
; * Licensed under The MIT License
|
||||
; * Redistributions of files must retain the above copyright notice.
|
||||
; *
|
||||
; * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
; * @link http://cakephp.org CakePHP(tm) Project
|
||||
; * @package Cake.Test.TestApp.Config
|
||||
; * @since CakePHP(tm) v 0.10.0.1076
|
||||
; * @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
; */
|
||||
|
||||
;-------------------------------------
|
||||
;Users
|
||||
;-------------------------------------
|
||||
|
||||
[admin]
|
||||
groups = administrators
|
||||
allow =
|
||||
deny = ads
|
||||
|
||||
[paul]
|
||||
groups = users
|
||||
allow =
|
||||
deny =
|
||||
|
||||
[jenny]
|
||||
groups = users
|
||||
allow = ads
|
||||
deny = images, files
|
||||
|
||||
[nobody]
|
||||
groups = anonymous
|
||||
allow =
|
||||
deny =
|
||||
|
||||
;-------------------------------------
|
||||
;Groups
|
||||
;-------------------------------------
|
||||
|
||||
[administrators]
|
||||
deny =
|
||||
allow = posts, comments, images, files, stats, ads
|
||||
|
||||
[users]
|
||||
allow = posts, comments, images, files
|
||||
deny = stats, ads
|
||||
|
||||
[anonymous]
|
||||
allow =
|
||||
deny = posts, comments, images, files, stats, ads
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
Configure::write('CakePluginTest.test_plugin.bootstrap', 'loaded plugin bootstrap');
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
Configure::write('CakePluginTest.test_plugin.custom', 'loaded plugin custom config');
|
19
lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php
Normal file
19
lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Test Suite TestPlugin config file.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config
|
||||
* @since CakePHP(tm) v 1.3
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
$config['plugin_load'] = '/test_app/plugins/test_plugin/config/load.php';
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Test Suite TestPlugin config file.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config
|
||||
* @since CakePHP(tm) v 1.3
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
$config['plugin_more_load'] = '/test_app/plugins/test_plugin/config/more.load.php';
|
|
@ -0,0 +1,4 @@
|
|||
; Test file for testing ini files with . syntax
|
||||
[database]
|
||||
db.username = bar
|
||||
db.password = foo
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
Configure::write('CakePluginTest.test_plugin.routes', 'loaded plugin routes');
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Console.Command
|
||||
* @since CakePHP(tm) v 1.2.0.7871
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class ExampleShell
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Console.Command
|
||||
*/
|
||||
class ExampleShell extends Shell {
|
||||
|
||||
/**
|
||||
* main method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function main() {
|
||||
$this->out('This is the main method called from TestPlugin.ExampleShell');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
/**
|
||||
* Testing task in a plugin
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Console.Command.Task
|
||||
* @since CakePHP(tm) v 2.0
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class OtherTaskTask
|
||||
*
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Console.Command.Task
|
||||
*/
|
||||
class OtherTaskTask extends Shell {
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
|
||||
* @since CakePHP(tm) v 1.2.0.4206
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class OtherComponent
|
||||
*
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
|
||||
*/
|
||||
class OtherComponent extends Component {
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
|
||||
* @since CakePHP(tm) v 1.2.0.4206
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class PluginsComponent
|
||||
*
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
|
||||
*/
|
||||
class PluginsComponent extends Component {
|
||||
|
||||
public $components = array('TestPlugin.Other');
|
||||
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
|
||||
* @since CakePHP(tm) v 1.2.0.4206
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestPluginComponent
|
||||
*
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
|
||||
*/
|
||||
class TestPluginComponent extends Component {
|
||||
|
||||
public $components = array('TestPlugin.TestPluginOther');
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
|
||||
* @since CakePHP(tm) v 1.2.0.4206
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestPluginOtherComponent
|
||||
*
|
||||
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
|
||||
*/
|
||||
class TestPluginOtherComponent extends Component {
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue