mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Fix bugs preventing generation of PDF guide [skip ci] (#19076)
This commit is contained in:
@ -350,7 +350,7 @@ echo Yii::t('app', 'You {likeCount,plural,
|
|||||||
// You and one other person liked this
|
// You and one other person liked this
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Sélection ordinale <span id="ordinal-selection">
|
#### Sélection ordinale <span id="ordinal-selection"></span>
|
||||||
|
|
||||||
L'argument `selectordinal` pour une valeur à remplacer numérique a pour but de choisir une chaîne de caractères basée sur les règles linguistiques de la locale cible pour les ordinaux. Ainsi,
|
L'argument `selectordinal` pour une valeur à remplacer numérique a pour but de choisir une chaîne de caractères basée sur les règles linguistiques de la locale cible pour les ordinaux. Ainsi,
|
||||||
|
|
||||||
|
|||||||
@ -500,7 +500,7 @@ echo Yii::t('app', 'You {likeCount,plural,
|
|||||||
> 横着をして、`{n, plural, ...}` を `{n, number}` に置き換えても、多分、大きな問題は生じないでしょう。
|
> 横着をして、`{n, plural, ...}` を `{n, number}` に置き換えても、多分、大きな問題は生じないでしょう。
|
||||||
|
|
||||||
|
|
||||||
#### 序数選択肢 <span id="ordinal-selection">
|
#### 序数選択肢 <span id="ordinal-selection"></span>
|
||||||
|
|
||||||
パラメータのタイプとして `selectordinal` を使うと、翻訳先ロケールの言語規則に基づいて序数のための文字列を選択することが出来ます。
|
パラメータのタイプとして `selectordinal` を使うと、翻訳先ロケールの言語規則に基づいて序数のための文字列を選択することが出来ます。
|
||||||
|
|
||||||
|
|||||||
@ -363,7 +363,7 @@ $query->filterWhere([
|
|||||||
### [[yii\db\Query::orderBy()|orderBy()]] <span id="order-by"></span>
|
### [[yii\db\Query::orderBy()|orderBy()]] <span id="order-by"></span>
|
||||||
|
|
||||||
Метод [[yii\db\Query::orderBy()|orderBy()]] определяет фрагмент `ORDER BY` SQL выражения. Например,
|
Метод [[yii\db\Query::orderBy()|orderBy()]] определяет фрагмент `ORDER BY` SQL выражения. Например,
|
||||||
|
|
||||||
```php
|
```php
|
||||||
// ... ORDER BY `id` ASC, `name` DESC
|
// ... ORDER BY `id` ASC, `name` DESC
|
||||||
$query->orderBy([
|
$query->orderBy([
|
||||||
@ -460,14 +460,14 @@ $query->limit(10)->offset(20);
|
|||||||
### [[yii\db\Query::join()|join()]] <span id="join"></span>
|
### [[yii\db\Query::join()|join()]] <span id="join"></span>
|
||||||
|
|
||||||
Метод [[yii\db\Query::join()|join()]] определяет фрагмент `JOIN` SQL запроса.
|
Метод [[yii\db\Query::join()|join()]] определяет фрагмент `JOIN` SQL запроса.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
// ... LEFT JOIN `post` ON `post`.`user_id` = `user`.`id`
|
// ... LEFT JOIN `post` ON `post`.`user_id` = `user`.`id`
|
||||||
$query->join('LEFT JOIN', 'post', 'post.user_id = user.id');
|
$query->join('LEFT JOIN', 'post', 'post.user_id = user.id');
|
||||||
```
|
```
|
||||||
|
|
||||||
Метод [[yii\db\Query::join()|join()]] принимает четыре параметра:
|
Метод [[yii\db\Query::join()|join()]] принимает четыре параметра:
|
||||||
|
|
||||||
- `$type`: тип объединения, например, `'INNER JOIN'`, `'LEFT JOIN'`.
|
- `$type`: тип объединения, например, `'INNER JOIN'`, `'LEFT JOIN'`.
|
||||||
- `$table`: имя таблицы, которая должна быть присоединена.
|
- `$table`: имя таблицы, которая должна быть присоединена.
|
||||||
- `$on`: необязательное условие объединения, то есть фрагмент `ON`. Пожалуйста, обратитесь к документации для
|
- `$on`: необязательное условие объединения, то есть фрагмент `ON`. Пожалуйста, обратитесь к документации для
|
||||||
|
|||||||
@ -441,7 +441,7 @@ echo Yii::t('app', 'You {likeCount,plural,
|
|||||||
// You and one other person liked this
|
// You and one other person liked this
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 序数选择(Ordinal selection) <span id="ordinal-selection">
|
#### 序数选择(Ordinal selection) <span id="ordinal-selection"></span>
|
||||||
|
|
||||||
`selectordinal` 的参数类型旨在为您所翻译的语言环境选择一个基于语序规则的字符串:
|
`selectordinal` 的参数类型旨在为您所翻译的语言环境选择一个基于语序规则的字符串:
|
||||||
一个基于语序规则的字符串:
|
一个基于语序规则的字符串:
|
||||||
|
|||||||
@ -42,7 +42,7 @@ Application Structure <span id="application-structure"></span>
|
|||||||
|
|
||||||
The most important directories and files in your application are (assuming the application's root directory is `basic`):
|
The most important directories and files in your application are (assuming the application's root directory is `basic`):
|
||||||
|
|
||||||
```js
|
```
|
||||||
basic/ application base path
|
basic/ application base path
|
||||||
composer.json used by Composer, describes package information
|
composer.json used by Composer, describes package information
|
||||||
config/ contains application and other configurations
|
config/ contains application and other configurations
|
||||||
|
|||||||
@ -14,7 +14,7 @@ A module is organized as a directory which is called the [[yii\base\Module::base
|
|||||||
Within the directory, there are sub-directories, such as `controllers`, `models`, `views`, which hold controllers,
|
Within the directory, there are sub-directories, such as `controllers`, `models`, `views`, which hold controllers,
|
||||||
models, views, and other code, just like in an application. The following example shows the content within a module:
|
models, views, and other code, just like in an application. The following example shows the content within a module:
|
||||||
|
|
||||||
```js
|
```
|
||||||
forum/
|
forum/
|
||||||
Module.php the module class file
|
Module.php the module class file
|
||||||
controllers/ containing controller class files
|
controllers/ containing controller class files
|
||||||
|
|||||||
@ -441,7 +441,7 @@ echo Yii::t('app', 'You {likeCount,plural,
|
|||||||
// You and one other person liked this
|
// You and one other person liked this
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Ordinal selection <span id="ordinal-selection">
|
#### Ordinal selection <span id="ordinal-selection"></span>
|
||||||
|
|
||||||
The parameter type of `selectordinal` is meant to choose a string based on language rules for ordinals for the
|
The parameter type of `selectordinal` is meant to choose a string based on language rules for ordinals for the
|
||||||
locale you are translating to:
|
locale you are translating to:
|
||||||
|
|||||||
Reference in New Issue
Block a user