Commit 16931cad by Carsten Brandt

Merge pull request #299 from creocoder/yiic-to-yii

yiic => yii additional corrections
parents 612af2ad 8b311ecb
...@@ -93,7 +93,7 @@ class LocaleController extends Controller ...@@ -93,7 +93,7 @@ class LocaleController extends Controller
/** /**
* Plural rules. * Plural rules.
* *
* This file is automatically generated by the "yiic locale/plural" command under the "build" folder. * This file is automatically generated by the "yii locale/plural" command under the "build" folder.
* Do not modify it directly. * Do not modify it directly.
* *
* The original plural rule data used for generating this file has the following copyright terms: * The original plural rule data used for generating this file has the following copyright terms:
......
...@@ -30,7 +30,7 @@ use yii\base\InvalidRouteException; ...@@ -30,7 +30,7 @@ use yii\base\InvalidRouteException;
* To run the console application, enter the following on the command line: * To run the console application, enter the following on the command line:
* *
* ~~~ * ~~~
* yiic <route> [--param1=value1 --param2 ...] * yii <route> [--param1=value1 --param2 ...]
* ~~~ * ~~~
* *
* where `<route>` refers to a controller route in the form of `ModuleID/ControllerID/ActionID` * where `<route>` refers to a controller route in the form of `ModuleID/ControllerID/ActionID`
...@@ -42,7 +42,7 @@ use yii\base\InvalidRouteException; ...@@ -42,7 +42,7 @@ use yii\base\InvalidRouteException;
* To use this command, simply type: * To use this command, simply type:
* *
* ~~~ * ~~~
* yiic help * yii help
* ~~~ * ~~~
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
......
...@@ -18,10 +18,10 @@ use yii\helpers\Console; ...@@ -18,10 +18,10 @@ use yii\helpers\Console;
* *
* A controller consists of one or several actions known as sub-commands. * A controller consists of one or several actions known as sub-commands.
* Users call a console command by specifying the corresponding route which identifies a controller action. * Users call a console command by specifying the corresponding route which identifies a controller action.
* The `yiic` program is used when calling a console command, like the following: * The `yii` program is used when calling a console command, like the following:
* *
* ~~~ * ~~~
* yiic <route> [--param1=value1 --param2 ...] * yii <route> [--param1=value1 --param2 ...]
* ~~~ * ~~~
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
......
...@@ -27,7 +27,7 @@ class Request extends \yii\base\Request ...@@ -27,7 +27,7 @@ class Request extends \yii\base\Request
public function resolve() public function resolve()
{ {
$rawParams = $this->getRawParams(); $rawParams = $this->getRawParams();
array_shift($rawParams); // the 1st argument is the yiic script name array_shift($rawParams); // the 1st argument is the yii script name
if (isset($rawParams[0])) { if (isset($rawParams[0])) {
$route = $rawParams[0]; $route = $rawParams[0];
......
...@@ -261,7 +261,7 @@ class AssetController extends Controller ...@@ -261,7 +261,7 @@ class AssetController extends Controller
file_put_contents($bundleFile, <<<EOD file_put_contents($bundleFile, <<<EOD
<?php <?php
/** /**
* This file is generated by the "yiic script" command. * This file is generated by the "yii script" command.
* DO NOT MODIFY THIS FILE DIRECTLY. * DO NOT MODIFY THIS FILE DIRECTLY.
* @version $version * @version $version
*/ */
......
...@@ -25,7 +25,7 @@ use yii\helpers\StringHelper; ...@@ -25,7 +25,7 @@ use yii\helpers\StringHelper;
* This command can be used as follows on command line: * This command can be used as follows on command line:
* *
* ~~~ * ~~~
* yiic help [command name] * yii help [command name]
* ~~~ * ~~~
* *
* In the above, if the command name is not provided, all * In the above, if the command name is not provided, all
...@@ -41,8 +41,8 @@ class HelpController extends Controller ...@@ -41,8 +41,8 @@ class HelpController extends Controller
* about a particular command. For example, * about a particular command. For example,
* *
* ~~~ * ~~~
* yiic help # list available commands * yii help # list available commands
* yiic help message # display help info about "message" * yii help message # display help info about "message"
* ~~~ * ~~~
* *
* @param string $command The name of the command to show help about. * @param string $command The name of the command to show help about.
...@@ -148,7 +148,7 @@ class HelpController extends Controller ...@@ -148,7 +148,7 @@ class HelpController extends Controller
echo "* $command\n"; echo "* $command\n";
} }
echo "\nTo see the help of each command, enter:\n"; echo "\nTo see the help of each command, enter:\n";
echo "\n yiic help <command-name>\n\n"; echo "\n yii help <command-name>\n\n";
} else { } else {
echo "\nNo commands are found.\n"; echo "\nNo commands are found.\n";
} }
...@@ -188,7 +188,7 @@ class HelpController extends Controller ...@@ -188,7 +188,7 @@ class HelpController extends Controller
echo "\n"; echo "\n";
} }
echo "\n\nTo see the detailed information about individual sub-commands, enter:\n"; echo "\n\nTo see the detailed information about individual sub-commands, enter:\n";
echo "\n yiic help <sub-command>\n\n"; echo "\n yii help <sub-command>\n\n";
} }
} }
...@@ -259,9 +259,9 @@ class HelpController extends Controller ...@@ -259,9 +259,9 @@ class HelpController extends Controller
echo "\nUSAGE\n\n"; echo "\nUSAGE\n\n";
if ($action->id === $controller->defaultAction) { if ($action->id === $controller->defaultAction) {
echo 'yiic ' . $controller->getUniqueId(); echo 'yii ' . $controller->getUniqueId();
} else { } else {
echo "yiic " . $action->getUniqueId(); echo "yii " . $action->getUniqueId();
} }
list ($required, $optional) = $this->getArgHelps($method, isset($tags['param']) ? $tags['param'] : array()); list ($required, $optional) = $this->getArgHelps($method, isset($tags['param']) ? $tags['param'] : array());
if (!empty($required)) { if (!empty($required)) {
......
...@@ -194,7 +194,7 @@ class MessageController extends Controller ...@@ -194,7 +194,7 @@ class MessageController extends Controller
/** /**
* Message translations. * Message translations.
* *
* This file is automatically generated by 'yiic message' command. * This file is automatically generated by 'yii message' command.
* It contains the localizable messages extracted from source code. * It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages. * You may modify this file by translating the extracted messages.
* *
......
...@@ -42,13 +42,13 @@ use yii\helpers\ArrayHelper; ...@@ -42,13 +42,13 @@ use yii\helpers\ArrayHelper;
* *
* ~~~ * ~~~
* # creates a new migration named 'create_user_table' * # creates a new migration named 'create_user_table'
* yiic migrate/create create_user_table * yii migrate/create create_user_table
* *
* # applies ALL new migrations * # applies ALL new migrations
* yiic migrate * yii migrate
* *
* # reverts the last applied migration * # reverts the last applied migration
* yiic migrate/down * yii migrate/down
* ~~~ * ~~~
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
...@@ -135,8 +135,8 @@ class MigrateController extends Controller ...@@ -135,8 +135,8 @@ class MigrateController extends Controller
* For example, * For example,
* *
* ~~~ * ~~~
* yiic migrate # apply all new migrations * yii migrate # apply all new migrations
* yiic migrate 3 # apply the first 3 new migrations * yii migrate 3 # apply the first 3 new migrations
* ~~~ * ~~~
* *
* @param integer $limit the number of new migrations to be applied. If 0, it means * @param integer $limit the number of new migrations to be applied. If 0, it means
...@@ -184,8 +184,8 @@ class MigrateController extends Controller ...@@ -184,8 +184,8 @@ class MigrateController extends Controller
* For example, * For example,
* *
* ~~~ * ~~~
* yiic migrate/down # revert the last migration * yii migrate/down # revert the last migration
* yiic migrate/down 3 # revert the last 3 migrations * yii migrate/down 3 # revert the last 3 migrations
* ~~~ * ~~~
* *
* @param integer $limit the number of migrations to be reverted. Defaults to 1, * @param integer $limit the number of migrations to be reverted. Defaults to 1,
...@@ -231,8 +231,8 @@ class MigrateController extends Controller ...@@ -231,8 +231,8 @@ class MigrateController extends Controller
* them again. For example, * them again. For example,
* *
* ~~~ * ~~~
* yiic migrate/redo # redo the last applied migration * yii migrate/redo # redo the last applied migration
* yiic migrate/redo 3 # redo the last 3 applied migrations * yii migrate/redo 3 # redo the last 3 applied migrations
* ~~~ * ~~~
* *
* @param integer $limit the number of migrations to be redone. Defaults to 1, * @param integer $limit the number of migrations to be redone. Defaults to 1,
...@@ -284,8 +284,8 @@ class MigrateController extends Controller ...@@ -284,8 +284,8 @@ class MigrateController extends Controller
* them again. For example, * them again. For example,
* *
* ~~~ * ~~~
* yiic migrate/to 101129_185401 # using timestamp * yii migrate/to 101129_185401 # using timestamp
* yiic migrate/to m101129_185401_create_user_table # using full name * yii migrate/to m101129_185401_create_user_table # using full name
* ~~~ * ~~~
* *
* @param string $version the version name that the application should be migrated to. * @param string $version the version name that the application should be migrated to.
...@@ -332,8 +332,8 @@ class MigrateController extends Controller ...@@ -332,8 +332,8 @@ class MigrateController extends Controller
* No actual migration will be performed. * No actual migration will be performed.
* *
* ~~~ * ~~~
* yiic migrate/mark 101129_185401 # using timestamp * yii migrate/mark 101129_185401 # using timestamp
* yiic migrate/mark m101129_185401_create_user_table # using full name * yii migrate/mark m101129_185401_create_user_table # using full name
* ~~~ * ~~~
* *
* @param string $version the version at which the migration history should be marked. * @param string $version the version at which the migration history should be marked.
...@@ -398,9 +398,9 @@ class MigrateController extends Controller ...@@ -398,9 +398,9 @@ class MigrateController extends Controller
* so far. For example, * so far. For example,
* *
* ~~~ * ~~~
* yiic migrate/history # showing the last 10 migrations * yii migrate/history # showing the last 10 migrations
* yiic migrate/history 5 # showing the last 5 migrations * yii migrate/history 5 # showing the last 5 migrations
* yiic migrate/history 0 # showing the whole history * yii migrate/history 0 # showing the whole history
* ~~~ * ~~~
* *
* @param integer $limit the maximum number of migrations to be displayed. * @param integer $limit the maximum number of migrations to be displayed.
...@@ -432,9 +432,9 @@ class MigrateController extends Controller ...@@ -432,9 +432,9 @@ class MigrateController extends Controller
* For example, * For example,
* *
* ~~~ * ~~~
* yiic migrate/new # showing the first 10 new migrations * yii migrate/new # showing the first 10 new migrations
* yiic migrate/new 5 # showing the first 5 new migrations * yii migrate/new 5 # showing the first 5 new migrations
* yiic migrate/new 0 # showing all new migrations * yii migrate/new 0 # showing all new migrations
* ~~~ * ~~~
* *
* @param integer $limit the maximum number of new migrations to be displayed. * @param integer $limit the maximum number of new migrations to be displayed.
...@@ -469,7 +469,7 @@ class MigrateController extends Controller ...@@ -469,7 +469,7 @@ class MigrateController extends Controller
* skeleton by filling up the actual migration logic. * skeleton by filling up the actual migration logic.
* *
* ~~~ * ~~~
* yiic migrate/create create_user_table * yii migrate/create create_user_table
* ~~~ * ~~~
* *
* @param string $name the name of the new migration. This should only contain * @param string $name the name of the new migration. This should only contain
......
...@@ -10,14 +10,14 @@ namespace yii\db; ...@@ -10,14 +10,14 @@ namespace yii\db;
/** /**
* Migration is the base class for representing a database migration. * Migration is the base class for representing a database migration.
* *
* Migration is designed to be used together with the "yiic migrate" command. * Migration is designed to be used together with the "yii migrate" command.
* *
* Each child class of Migration represents an individual database migration which * Each child class of Migration represents an individual database migration which
* is identified by the child class name. * is identified by the child class name.
* *
* Within each migration, the [[up()]] method should be overwritten to contain the logic * Within each migration, the [[up()]] method should be overwritten to contain the logic
* for "upgrading" the database; while the [[down()]] method for the "downgrading" * for "upgrading" the database; while the [[down()]] method for the "downgrading"
* logic. The "yiic migrate" command manages all available migrations in an application. * logic. The "yii migrate" command manages all available migrations in an application.
* *
* If the database supports transactions, you may also overwrite [[safeUp()]] and * If the database supports transactions, you may also overwrite [[safeUp()]] and
* [[safeDown()]] so that if anything wrong happens during the upgrading or downgrading, * [[safeDown()]] so that if anything wrong happens during the upgrading or downgrading,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/** /**
* Plural rules. * Plural rules.
* *
* This file is automatically generated by the "yiic locale/plural" command under the "build" folder. * This file is automatically generated by the "yii locale/plural" command under the "build" folder.
* Do not modify it directly. * Do not modify it directly.
* *
* The original plural rule data used for generating this file has the following copyright terms: * The original plural rule data used for generating this file has the following copyright terms:
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
return array ( return array (
'ar' => 'ar' =>
array ( array (
0 => '$n==0', 0 => '$n==0',
1 => '$n==1', 1 => '$n==1',
...@@ -24,569 +24,569 @@ return array ( ...@@ -24,569 +24,569 @@ return array (
3 => 'in_array(fmod($n,100),range(3,10))', 3 => 'in_array(fmod($n,100),range(3,10))',
4 => 'in_array(fmod($n,100),range(11,99))', 4 => 'in_array(fmod($n,100),range(11,99))',
), ),
'asa' => 'asa' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'af' => 'af' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'bem' => 'bem' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'bez' => 'bez' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'bg' => 'bg' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'bn' => 'bn' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'brx' => 'brx' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ca' => 'ca' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'cgg' => 'cgg' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'chr' => 'chr' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'da' => 'da' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'de' => 'de' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'dv' => 'dv' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ee' => 'ee' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'el' => 'el' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'en' => 'en' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'eo' => 'eo' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'es' => 'es' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'et' => 'et' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'eu' => 'eu' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'fi' => 'fi' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'fo' => 'fo' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'fur' => 'fur' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'fy' => 'fy' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'gl' => 'gl' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'gsw' => 'gsw' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'gu' => 'gu' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ha' => 'ha' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'haw' => 'haw' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'he' => 'he' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'is' => 'is' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'it' => 'it' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'jmc' => 'jmc' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'kaj' => 'kaj' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'kcg' => 'kcg' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'kk' => 'kk' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'kl' => 'kl' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ksb' => 'ksb' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ku' => 'ku' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'lb' => 'lb' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'lg' => 'lg' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'mas' => 'mas' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ml' => 'ml' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'mn' => 'mn' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'mr' => 'mr' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'nah' => 'nah' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'nb' => 'nb' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'nd' => 'nd' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ne' => 'ne' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'nl' => 'nl' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'nn' => 'nn' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'no' => 'no' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'nr' => 'nr' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ny' => 'ny' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'nyn' => 'nyn' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'om' => 'om' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'or' => 'or' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'pa' => 'pa' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'pap' => 'pap' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ps' => 'ps' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'pt' => 'pt' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'rof' => 'rof' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'rm' => 'rm' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'rwk' => 'rwk' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'saq' => 'saq' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'seh' => 'seh' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'sn' => 'sn' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'so' => 'so' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'sq' => 'sq' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ss' => 'ss' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ssy' => 'ssy' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'st' => 'st' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'sv' => 'sv' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'sw' => 'sw' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'syr' => 'syr' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ta' => 'ta' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'te' => 'te' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'teo' => 'teo' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'tig' => 'tig' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'tk' => 'tk' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'tn' => 'tn' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ts' => 'ts' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ur' => 'ur' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'wae' => 'wae' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
've' => 've' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'vun' => 'vun' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'xh' => 'xh' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'xog' => 'xog' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'zu' => 'zu' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
), ),
'ak' => 'ak' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'am' => 'am' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'bh' => 'bh' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'fil' => 'fil' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'tl' => 'tl' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'guw' => 'guw' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'hi' => 'hi' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'ln' => 'ln' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'mg' => 'mg' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'nso' => 'nso' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'ti' => 'ti' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'wa' => 'wa' =>
array ( array (
0 => '($n==0||$n==1)', 0 => '($n==0||$n==1)',
), ),
'ff' => 'ff' =>
array ( array (
0 => '($n>=0&&$n<=2)&&$n!=2', 0 => '($n>=0&&$n<=2)&&$n!=2',
), ),
'fr' => 'fr' =>
array ( array (
0 => '($n>=0&&$n<=2)&&$n!=2', 0 => '($n>=0&&$n<=2)&&$n!=2',
), ),
'kab' => 'kab' =>
array ( array (
0 => '($n>=0&&$n<=2)&&$n!=2', 0 => '($n>=0&&$n<=2)&&$n!=2',
), ),
'lv' => 'lv' =>
array ( array (
0 => '$n==0', 0 => '$n==0',
1 => 'fmod($n,10)==1&&fmod($n,100)!=11', 1 => 'fmod($n,10)==1&&fmod($n,100)!=11',
), ),
'iu' => 'iu' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'kw' => 'kw' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'naq' => 'naq' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'se' => 'se' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'sma' => 'sma' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'smi' => 'smi' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'smj' => 'smj' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'smn' => 'smn' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'sms' => 'sms' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
), ),
'ga' => 'ga' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==2', 1 => '$n==2',
2 => 'in_array($n,array(3,4,5,6))', 2 => 'in_array($n,array(3,4,5,6))',
3 => 'in_array($n,array(7,8,9,10))', 3 => 'in_array($n,array(7,8,9,10))',
), ),
'ro' => 'ro' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==0||$n!=1&&in_array(fmod($n,100),range(1,19))', 1 => '$n==0||$n!=1&&in_array(fmod($n,100),range(1,19))',
), ),
'mo' => 'mo' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==0||$n!=1&&in_array(fmod($n,100),range(1,19))', 1 => '$n==0||$n!=1&&in_array(fmod($n,100),range(1,19))',
), ),
'lt' => 'lt' =>
array ( array (
0 => 'fmod($n,10)==1&&!in_array(fmod($n,100),range(11,19))', 0 => 'fmod($n,10)==1&&!in_array(fmod($n,100),range(11,19))',
1 => 'in_array(fmod($n,10),range(2,9))&&!in_array(fmod($n,100),range(11,19))', 1 => 'in_array(fmod($n,10),range(2,9))&&!in_array(fmod($n,100),range(11,19))',
), ),
'be' => 'be' =>
array ( array (
0 => 'fmod($n,10)==1&&fmod($n,100)!=11', 0 => 'fmod($n,10)==1&&fmod($n,100)!=11',
1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))', 1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))',
2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))', 2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))',
), ),
'bs' => 'bs' =>
array ( array (
0 => 'fmod($n,10)==1&&fmod($n,100)!=11', 0 => 'fmod($n,10)==1&&fmod($n,100)!=11',
1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))', 1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))',
2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))', 2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))',
), ),
'hr' => 'hr' =>
array ( array (
0 => 'fmod($n,10)==1&&fmod($n,100)!=11', 0 => 'fmod($n,10)==1&&fmod($n,100)!=11',
1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))', 1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))',
2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))', 2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))',
), ),
'ru' => 'ru' =>
array ( array (
0 => 'fmod($n,10)==1&&fmod($n,100)!=11', 0 => 'fmod($n,10)==1&&fmod($n,100)!=11',
1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))', 1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))',
2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))', 2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))',
), ),
'sh' => 'sh' =>
array ( array (
0 => 'fmod($n,10)==1&&fmod($n,100)!=11', 0 => 'fmod($n,10)==1&&fmod($n,100)!=11',
1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))', 1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))',
2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))', 2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))',
), ),
'sr' => 'sr' =>
array ( array (
0 => 'fmod($n,10)==1&&fmod($n,100)!=11', 0 => 'fmod($n,10)==1&&fmod($n,100)!=11',
1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))', 1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))',
2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))', 2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))',
), ),
'uk' => 'uk' =>
array ( array (
0 => 'fmod($n,10)==1&&fmod($n,100)!=11', 0 => 'fmod($n,10)==1&&fmod($n,100)!=11',
1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))', 1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))',
2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))', 2 => 'fmod($n,10)==0||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(11,12,13,14))',
), ),
'cs' => 'cs' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => 'in_array($n,array(2,3,4))', 1 => 'in_array($n,array(2,3,4))',
), ),
'sk' => 'sk' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => 'in_array($n,array(2,3,4))', 1 => 'in_array($n,array(2,3,4))',
), ),
'pl' => 'pl' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))', 1 => 'in_array(fmod($n,10),array(2,3,4))&&!in_array(fmod($n,100),array(12,13,14))',
2 => '$n!=1&&in_array(fmod($n,10),array(0,1))||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(12,13,14))', 2 => '$n!=1&&in_array(fmod($n,10),array(0,1))||in_array(fmod($n,10),array(5,6,7,8,9))||in_array(fmod($n,100),array(12,13,14))',
), ),
'sl' => 'sl' =>
array ( array (
0 => 'fmod($n,100)==1', 0 => 'fmod($n,100)==1',
1 => 'fmod($n,100)==2', 1 => 'fmod($n,100)==2',
2 => 'in_array(fmod($n,100),array(3,4))', 2 => 'in_array(fmod($n,100),array(3,4))',
), ),
'mt' => 'mt' =>
array ( array (
0 => '$n==1', 0 => '$n==1',
1 => '$n==0||in_array(fmod($n,100),range(2,10))', 1 => '$n==0||in_array(fmod($n,100),range(2,10))',
2 => 'in_array(fmod($n,100),range(11,19))', 2 => 'in_array(fmod($n,100),range(11,19))',
), ),
'mk' => 'mk' =>
array ( array (
0 => 'fmod($n,10)==1&&$n!=11', 0 => 'fmod($n,10)==1&&$n!=11',
), ),
'cy' => 'cy' =>
array ( array (
0 => '$n==0', 0 => '$n==0',
1 => '$n==1', 1 => '$n==1',
...@@ -594,33 +594,33 @@ return array ( ...@@ -594,33 +594,33 @@ return array (
3 => '$n==3', 3 => '$n==3',
4 => '$n==6', 4 => '$n==6',
), ),
'lag' => 'lag' =>
array ( array (
0 => '$n==0', 0 => '$n==0',
1 => '($n>=0&&$n<=2)&&$n!=0&&$n!=2', 1 => '($n>=0&&$n<=2)&&$n!=0&&$n!=2',
), ),
'shi' => 'shi' =>
array ( array (
0 => '($n>=0&&$n<=1)', 0 => '($n>=0&&$n<=1)',
1 => 'in_array($n,range(2,10))', 1 => 'in_array($n,range(2,10))',
), ),
'br' => 'br' =>
array ( array (
0 => 'fmod($n,10)==1&&!in_array(fmod($n,100),array(11,71,91))', 0 => 'fmod($n,10)==1&&!in_array(fmod($n,100),array(11,71,91))',
1 => 'fmod($n,10)==2&&!in_array(fmod($n,100),array(12,72,92))', 1 => 'fmod($n,10)==2&&!in_array(fmod($n,100),array(12,72,92))',
2 => 'in_array(fmod($n,10),array(3,4,9))&&!in_array(fmod($n,100),array_merge(range(10,19),range(70,79),range(90,99)))', 2 => 'in_array(fmod($n,10),array(3,4,9))&&!in_array(fmod($n,100),array_merge(range(10,19),range(70,79),range(90,99)))',
3 => 'fmod($n,1000000)==0&&$n!=0', 3 => 'fmod($n,1000000)==0&&$n!=0',
), ),
'ksh' => 'ksh' =>
array ( array (
0 => '$n==0', 0 => '$n==0',
1 => '$n==1', 1 => '$n==1',
), ),
'tzm' => 'tzm' =>
array ( array (
0 => '($n==0||$n==1)||in_array($n,range(11,99))', 0 => '($n==0||$n==1)||in_array($n,range(11,99))',
), ),
'gv' => 'gv' =>
array ( array (
0 => 'in_array(fmod($n,10),array(1,2))||fmod($n,20)==0', 0 => 'in_array(fmod($n,10),array(1,2))||fmod($n,20)==0',
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment