Skip to content

Commit 7d98205

Browse files
alks801rigor789
authored andcommitted
[WIP] Ru. action-bar, components (#139)
* ru. elements. action-bar, navigation - list-view * ru. components. list-view - search-bar * text-view - web-view * segment-text-field * fixes lex111 * merge2 * merge3 * fix * fix2 * fix rebasae * fixes * placeholder-> подсказка текстового поля * title only eng * type -> тип * fix * Update time-picker.md
1 parent 0c39e12 commit 7d98205

24 files changed

+306
-308
lines changed
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
title: ActionBar
33
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.actionbar
4-
contributors: [rigor789, eddyverbruggen]
4+
contributors: [sn0wil]
55
---
66

7-
The ActionBar component is a NativeScript abstraction for the Android ActionBar and iOS NavigationBar.
7+
Компонент ActionBar - это абстракция NativeScript для Android ActionBar и iOS NavigationBar.
88

99
---
1010

11-
#### Using a title
11+
#### Использование заголовка
1212

1313
```html
1414
<ActionBar title="MyApp" />
1515
```
1616

17-
#### Using a custom title view
17+
#### Использование пользовательского представления для заголовка
1818

1919
```html
2020
<ActionBar>
@@ -25,26 +25,25 @@ The ActionBar component is a NativeScript abstraction for the Android ActionBar
2525
</ActionBar>
2626
```
2727

28-
#### Setting an App Icon for Android
28+
#### Настройка иконки приложения для Android
2929

3030
```html
3131
<ActionBar title="My App" android.icon="res://icon" android.iconVisibility="always" />
3232
```
3333

34-
#### Removing the border
35-
On iOS and Android a little border is drawn at the bottom of the ActionBar.
36-
Furthermore, the background color of the ActionBar on iOS is slightly different to what you specify
37-
because iOS applies a filter. To remove this filter and the border, set `flat` to `true`.
38-
34+
#### Удаление рамок
35+
На iOS и Android внизу ActionBar рисуется маленькая рамка.
36+
Кроме того, цвет фона ActionBar на iOS немного отличается от того, что вы указываете,
37+
потому что iOS применяет фильтр. Чтобы удалить этот фильтр и рамку, установите свойство `flat` в значение `true`.
3938
```html
4039
<ActionBar title="My App" flat="true" />
4140
```
4241

43-
## Props
42+
## Свойства
4443

45-
| name | type | description |
44+
| Название | Тип | Описание |
4645
|------|------|-------------|
47-
| `title` | `String` | The title to be shown in the ActionBar.
48-
| `android.icon` | `String` | The icon to be shown on Android.
49-
| `android.iconVisibility` | `String` | Sets when the icon is visible.
50-
| `flat` | `boolean` | Removes the border and iOS color filter. Default `false`.
46+
| `title` | `String` | Заголовок, отображаемый в ActionBar.
47+
| `android.icon` | `String` | Иконка, отображаемая на Android.
48+
| `android.iconVisibility` | `String` | Устанавливается, когда иконка видима.
49+
| `flat` | `boolean` | Удаляет рамку и цвет фильтра на iOS. Значение по умолчанию - `false`.

content/docs/ru/elements/action-bar/action-item.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: ActionItem
33
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.actionitem
4-
contributors: [rigor789]
4+
contributors: [sn0wil]
55
---
66

7-
The ActionItem component is used to add additional action buttons to the ActionBar.
7+
ActionItem - компонент, используемый для добавления дополнительных кнопок действия на ActionBar.
88

99
---
1010

@@ -19,9 +19,9 @@ The ActionItem component is used to add additional action buttons to the ActionB
1919
</ActionBar>
2020
```
2121

22-
#### Conditionally showing action items
22+
#### Условное отображение элементов действий
2323

24-
ActionItems can be displayed based on a condition using the `v-show` directive.
24+
Элементы действий могут быть отображены на основе условия с использованием директивы `v-show`.
2525

2626
```html
2727
<ActionBar title="My App">
@@ -40,17 +40,17 @@ ActionItems can be displayed based on a condition using the `v-show` directive.
4040
</ActionBar>
4141
```
4242

43-
## Props
43+
## Свойства
4444

45-
| name | type | description |
45+
| Имя | Тип | Описание |
4646
|------|------|-------------|
47-
| `ios.systemIcon` | `String` | Sets the icon for iOS.
48-
| `android.systemIcon` | `String` | Sets the icon for Android.
49-
| `ios.position` | `String` | Sets the position for iOS.<br>Possible values:<br>- `left` (default): Puts the item on the left side of the ActionBar.<br>- `right`: Puts the item on the right side of the ActionBar.
50-
| `android.position` | `String` | Sets the position for Android.<br>Possible values:<br>- `actionBar` (default): Puts the item in the ActionBar.<br>- `popup`: Puts the item in the options menu. Items will be rendered as text.<br>- `actionBarIfRoom`: Puts the item in the ActionBar if there is room for it. Otherwise, puts it in the options menu.
47+
| `ios.systemIcon` | `String` | Устанавливет иконку для iOS.
48+
| `android.systemIcon` | `String` | Устанавливает иконку для Android.
49+
| `ios.position` | `String` | Устанавливает расположение для iOS.<br>Допустимые значения:<br>- `left` (по-уолчанию): Устанавливает элемент с левого края в ActionBar.<br>- `right`: Устанавливает элемент с правого края в ActionBar.
50+
| `android.position` | `String` | Устанавливает расположение Android.<br>Допустимые значения:<br>- `actionBar` (по-уолчанию): Устанавливает элемент внутри ActionBar.<br>- `popup`: Устанавливает элемент в меню опций. Элемент будет отрисован как текст.<br>- `actionBarIfRoom`: Устанавливает элемент в ActionBar, если для него есть достаточно места. Иначе располагает элемент в меню опций..
5151

52-
## Events
52+
## События
5353

54-
| name | description |
54+
| Имя | Описание |
5555
|------|-------------|
56-
| `tap`| Emitted when the ActionItem has been tapped.
56+
| `tap`| Вызывается при нажатии на ActionItem.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: NavigationButton
33
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_action_bar_.navigationbutton
4-
contributors: [rigor789]
4+
contributors: [sn0wil]
55
---
66

7-
The NavigationButton component is a NativeScript abstraction for the Android navigation button, and the iOS back button.
7+
Компонент NavigationButton - абстракция NativeScript для кнопки навигации Android и кнопки назад для iOS.
88

99
---
1010

@@ -16,15 +16,15 @@ The NavigationButton component is a NativeScript abstraction for the Android nav
1616

1717
## Props
1818

19-
| name | type | description |
19+
| Имя | Тип | Описание |
2020
|------|------|-------------|
21-
| `text` | `String` | Sets the text to be shown on iOS.
22-
| `android.systemIcon` | `String` | The icon to be shown on Android.
21+
| `text` | `String` | Задает текст, который будет отображен в iOS.
22+
| `android.systemIcon` | `String` | Иконка, которая будет отображена в Android.
2323

24-
*The icon list for Android can be found at <https://developer.android.com/reference/android/R.drawable.html>, and the icons are the ones that start with `ic_` prefix.*
24+
*Список иконок для Android можно найти по ссылке: <https://developer.android.com/reference/android/R.drawable.html>, где иконки - это те, которые начинаются с префикса `ic_`.*
2525

26-
## Events
26+
## События
2727

28-
| name | description |
28+
| Имя | Описание |
2929
|------|-------------|
30-
| `tap`| Emitted when the NavigationButton has been tapped.
30+
| `tap`| Вызывается при нажатии на NavigationButton.

content/docs/ru/elements/components/activity-indicator.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiRef: https://docs.nativescript.org/api-reference/classes/_ui_activity_indicat
44
contributors: [MisterBrownRSA, rigor789, ikoevska]
55
---
66

7-
`<ActivityIndicator>` is a UI component that shows a progress indicator signaling to the user of an operation running in the background.
7+
`<ActivityIndicator>` - визуальный компонент, отображающий прогресс, сигнализирующий пользователя о том, что операция выполняется в фоновом режиме.
88

99
---
1010

@@ -14,19 +14,19 @@ contributors: [MisterBrownRSA, rigor789, ikoevska]
1414

1515
[> screenshots for=ActivityIndicator <]
1616

17-
## Props
17+
## Свойства
1818

19-
| Name | Type | Description |
19+
| Имя | Тип | Описание |
2020
|------|------|-------------|
21-
| `busy` | `Boolean` | Gets or sets whether the indicator is active. When `true`, the indicator is active.
21+
| `busy` | `Boolean` | Получает или устанавливает состояние активности индикатора. `true` означает, что индикатор активен.
2222

23-
## Events
23+
## События
2424

25-
| Name | Description |
25+
| Имя | Описание |
2626
|------|-------------|
27-
| `busyChange`| Emitted when the `busy` property is changed.
27+
| `busyChange`| Срабатывает при изменении свойства `busy`.
2828

29-
## Native component
29+
## Нативный компонент
3030

3131
| Android | iOS |
3232
|---------|-----|

content/docs/ru/elements/components/button.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: Button
33
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_button_.button
4-
contributors: [MisterBrownRSA, rigor789, eddyverbruggen, ikoevska]
4+
contributors: [sn0wil]
55
---
66

7-
`<Button>` is a UI component that displays a button which reacts to a user gesture.
7+
`<Button>` - визуальный компонент, отображающий кнопку, реагирующую на жесты пользователя.
88

9-
For more information about the available gestures, see [Gestures in the official NativeScript documentation](https://docs.nativescript.org/ui/gestures).
9+
Для более детальной информации о доступных действиях, ознакомьтесь с [Жестами в официальной документации NativeScript](https://docs.nativescript.org/ui/gestures).
1010

1111
---
1212

@@ -16,20 +16,20 @@ For more information about the available gestures, see [Gestures in the official
1616

1717
[> screenshots for=Button <]
1818

19-
## Props
19+
## Свойства
2020

21-
| Name | Type | Description |
21+
| Имя | тип | Описание |
2222
|------|------|-------------|
23-
| `text` | `String` | Sets the label of the button.
24-
| `textWrap` | `Boolean` | Gets or sets whether the widget wraps the text of the label. Useful for longer labels. Default value is `false`.
23+
| `text` | `String` | Задает текст кнопки.
24+
| `textWrap` | `Boolean` | Получает или устанавливает влезает ли текст в кнопку. Применительно для длинных заголовков. Значение по умолчанию - `false`.
2525

26-
## Events
26+
## События
2727

28-
| Name | Description |
28+
| Имя | Описание |
2929
|------|-------------|
30-
| `tap` | Emitted when the button is tapped.
30+
| `tap` | Срабатывает при нажатии на кнопку.
3131

32-
## Native component
32+
## Нативный компонент
3333

3434
| Android | iOS |
3535
|---------|-----|

content/docs/ru/elements/components/date-picker.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
---
22
title: DatePicker
33
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_date_picker_.datepicker
4-
contributors: [MisterBrownRSA, rigor789, ikoevska]
4+
contributors: [sn0wil]
55
---
66

7-
`<DatePicker>` is a UI component that lets users select a date from a pre-configured range.
7+
`<DatePicker>` - визуальный компонент, позволяющий пользователю выбрать дату из заранее заданного диапазона.
88

9-
See also: [TimePicker](/en/docs/elements/components/time-picker).
9+
Также смотрите: [TimePicker](/ru/docs/elements/components/time-picker).
1010

1111
---
1212

1313
```html
1414
<DatePicker @loaded="onDatePickerLoaded" @dateChange="onDateChanged" />
1515
```
1616

17-
`<DatePicker>` provides two-way data binding using `v-model`.
17+
`<DatePicker>` обеспечивает двустороннюю привязку данных, используя `v-model`.
1818

1919
```html
2020
<DatePicker v-model="selectedDate" />
2121
```
2222

2323
[> screenshots for=DatePicker <]
2424

25-
## Props
25+
## Свойства
2626

27-
| Name | Type | Description |
27+
| Имя | Тип | Описание |
2828
|------|------|-------------|
29-
| `date` | `Date` | Gets or sets the complete date.
30-
| `minDate` | `Date` | Gets or sets the earliest possible date to select.
31-
| `maxDate` | `Date` | Gets or sets the latest possible date to select.
32-
| `day` | `Number` | Gets or sets the day.
33-
| `month` | `Number` | Gets or sets the month.
34-
| `year` | `Number` | Gets or sets the year.
29+
| `date` | `Date` | Получает или задает дату завершения.
30+
| `minDate` | `Date` | Получает или задает самую раннюю возможную дату, доступную для выбора.
31+
| `maxDate` | `Date` | Получает или задает самую позднюю дату, доступную для выбора.
32+
| `day` | `Number` | Получает или задает день.
33+
| `month` | `Number` | Получает или задает месяц.
34+
| `year` | `Number` | Получает или задает год.
3535

36-
## Events
36+
## События
3737

38-
| Name | Description |
38+
| Имя | Описание |
3939
|------|-------------|
40-
| `dateChange` | Emitted when the selected date changes.
40+
| `dateChange` | Срабатывает при измененнии выбранной даты.
4141

42-
## Native component
42+
## Нативный компонент
4343

4444
| Android | iOS |
4545
|---------|-----|

content/docs/ru/elements/components/html-view.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: HtmlView
33
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_html_view_.htmlview
4-
contributors: [MisterBrownRSA, rigor789, ikoevska]
4+
contributors: [sn0wil]
55
---
66

7-
`<HtmlView>` is a UI component that lets you show static HTML content.
7+
`<HtmlView>` -визуальный компонент, позволяющий отобразить статический HTML контент.
88

9-
See also: [WebView](/en/docs/elements/components/web-view).
9+
Также смотрите: [WebView](/ru/docs/elements/components/web-view).
1010

1111
---
1212

@@ -16,13 +16,13 @@ See also: [WebView](/en/docs/elements/components/web-view).
1616

1717
[> screenshots for=HtmlView <]
1818

19-
## Props
19+
## Свойства
2020

21-
| Name | Type | Description |
21+
| Имя | Тип | Описание |
2222
|------|------|-------------|
23-
| `html` | `String` | The HTML content to be shown.
23+
| `html` | `String` | HTML контент, который будет отображен.
2424

25-
## Native component
25+
## Нативный компонент
2626

2727
| Android | iOS |
2828
|---------|-----|

content/docs/ru/elements/components/image.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
---
22
title: Image
33
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_image_.image
4-
contributors: [MisterBrownRSA, rigor789, ikoevska]
4+
contributors: [sn0wil]
55
---
66

7-
`<Image>` is a UI component that shows an image from an [ImageSource](https://docs.nativescript.org/api-reference/modules/_image_source_) or from a URL.
7+
`<Image>` - визуальный компонент, отображающий изображение из [ImageSource](https://docs.nativescript.org/api-reference/modules/_image_source_) или из URL.
88

99
---
1010

11-
#### Displaying an image relative to the `app` directory
11+
#### Показ изображения из папки `app`
1212

1313
```html
1414
<Image src="~/logo.png" stretch="none" />
1515
```
1616

17-
#### Displaying an image from a URL
17+
#### Показ изображения из URL
1818

1919
```html
2020
<Image src="https://art.nativescript-vue.org/NativeScript-Vue-White-Green.png" stretch="none" />
2121
```
2222

23-
#### Displaying an image from `App_Resources`
23+
#### Показ изображения из `App_Resources`
2424

2525
```html
2626
<Image src="res://icon" stretch="none" />
2727
```
2828

29-
#### Displaying a `base64`-encoded image
29+
#### Показ `base64`-кодированного изображения
3030

3131
```html
3232
<Image src="data:Image/png;base64,iVBORw..." stretch="none" />
3333
```
3434

3535
[> screenshots for=Image <]
3636

37-
## Props
37+
## Свойства
3838

39-
| Name | Type | Description |
39+
| Имя | Тип | Описание |
4040
|------|------|-------------|
41-
| `src` | `String` or [`ImageSource`](https://docs.nativescript.org/api-reference/modules/_image_source_) | Gets or sets the source of the image as a URL or an image source.
42-
|`imageSource` | [`ImageSource`](https://docs.nativescript.org/api-reference/modules/_image_source_) | Gets or sets the image source of the image.
43-
| `tintColor` | `Color` | (Style property) Sets a color to tint template images.
44-
| `stretch` | `Stretch` | (Style property) Gets or sets the way the image is resized to fill its allocated space.<br/>Valid values: `none`, `aspectFill`, `aspectFit`, or `fill`.<br/>For more information, see [Stretch](https://docs.nativescript.org/api-reference/modules/_ui_enums_.stretch).
45-
| `loadMode` | | Gets or sets the loading strategy for the images on the local file system.<br/>Valid values: `sync` or `async`.<br/>Default value: `async`.<br/>For more information, see [loadMode](https://docs.nativescript.org/api-reference/classes/_ui_image_.image#loadmode).
41+
| `src` | `String` или [`ImageSource`](https://docs.nativescript.org/api-reference/modules/_image_source_) | Получает или задает источник для изображения как URL или путь (ор. image source).
42+
|`imageSource` | [`ImageSource`](https://docs.nativescript.org/api-reference/modules/_image_source_) | Получает или задает источник для изображения.
43+
| `tintColor` | `Color` | (свойство стиля (Style property)) Устанавливает цвет для оттенка изображения.
44+
| `stretch` | `Stretch` | (свойство стиля (Style property)) Получает или задает способ изменения размера изображения для заполнения доступного пространства.<br/>Возможные значения: `none`, `aspectFill`, `aspectFit` или `fill`.<br/>Для более подробной информации ознакомьтесь с [Stretch](https://docs.nativescript.org/api-reference/modules/_ui_enums_.stretch).
45+
| `loadMode` | | Получает или задает стратегию загрузки изображений из локальной файловой системы.<br/>Возможные значения: `sync` или `async`.<br/>Значение по умолчанию: `async`.<br/>Для более детальной информации смотрите [loadMode](https://docs.nativescript.org/api-reference/classes/_ui_image_.image#loadmode).
4646

47-
## Native component
47+
## Нативный компонент
4848

4949
| Android | iOS |
5050
|---------|-----|

0 commit comments

Comments
 (0)