Skip to content

Commit 1bad599

Browse files
lex111rigor789
authored andcommitted
[WIP] Russian translation of dialogs (#140)
* ActionDialog: translation * AlertDialog: translation * ConfirmDialog: translation * LoginDialog: translation * PromptDialog: translation * changes after review of sn0wil
1 parent 616903c commit 1bad599

File tree

5 files changed

+65
-65
lines changed

5 files changed

+65
-65
lines changed

content/docs/ru/elements/dialogs/action.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
title: ActionDialog
33
apiRef: https://docs.nativescript.org/api-reference/modules/_ui_dialogs_#action
4-
contributors: [MisterBrownRSA, rigor789, ikoevska]
4+
contributors: [lex111]
55
---
66

7-
The `action()` method shows a list of selectable options and a cancellation button. Use it to let the user choose between options or dismiss the selection.
7+
Метод `action()` показывает список доступных для выбора опций и кнопку отмены. Используйте его, чтобы дать возможность пользователю выбрать один из вариантов или отклонить выбор.
88

9-
The method is part of the [`dialogs` module](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
9+
Этот метод является частью [модуля `dialogs`](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
1010

1111
---
1212

13-
## Basic use
13+
## Основное использование
1414

15-
The `action()` method is available globally. You can call it anywhere in your app.
15+
Метод `action()` доступен глобально. Вы можете вызывать его в любом месте вашего приложения.
1616

1717
```JavaScript
18-
action("Your message", "Cancel button text", ["Option1", "Option2"])
18+
action("Ваше сообщение", "Текст для кнопки отмены", ["Опция 1", "Опция 2"])
1919
.then(result => {
2020
console.log(result);
2121
});

content/docs/ru/elements/dialogs/alert.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
22
title: AlertDialog
33
apiRef: https://docs.nativescript.org/api-reference/modules/_ui_dialogs_#alert
4-
contributors: [MisterBrownRSA, rigor789, ikoevska]
4+
contributors: [lex111]
55
---
66

7-
The `alert()` method shows a message and an OK button. Use it to show information and notifications that do not require an action from the user.
7+
Метод `alert()` показывает сообщение и кнопку OK. Используйте его для отображения информации и уведомлений, не требующих действий пользователя.
88

9-
The method is part of the [`dialogs` module](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
9+
Этот метод является частью [модуля `dialogs`](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
1010

1111
---
1212

13-
## Basic use
13+
## Основное использование
1414

15-
The `alert()` method is available globally. You can call it anywhere in your app.
15+
Метод `alert()` доступен глобально. Вы можете вызывать его в любом месте вашего приложения.
1616

1717
```javascript
18-
alert('Your message')
18+
alert('Ваше сообщение')
1919
.then(() => {
20-
console.log("Alert dialog closed.");
20+
console.log("Диалоговое окно закрыто.");
2121
});
2222
```
2323

24-
## Configure dialog options
24+
## Настройка параметров диалога
2525

2626
```JavaScript
2727
alert({
28-
title: "Your title",
29-
message: "Your message",
30-
okButtonText: "Your OK button text"
28+
title: "Ваш заголовок",
29+
message: "Ваше сообщение",
30+
okButtonText: "Ваш текст кнопки OK"
3131
}).then(() => {
32-
console.log("Alert dialog closed");
32+
console.log("Диалоговое окно закрыто");
3333
});
3434
```
3535

content/docs/ru/elements/dialogs/confirm.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
---
22
title: ConfirmDialog
33
apiRef: https://docs.nativescript.org/api-reference/modules/_ui_dialogs_#confirm
4-
contributors: [MisterBrownRSA, rigor789, ikoevska]
4+
contributors: [lex111]
55
---
66

7-
The `confirm()` method shows a confirmation message and Cancel and OK buttons.
7+
Метод `confirm()` показывает сообщение подтверждения с кнопками Cancel и OK.
88

9-
The method is part of the [`dialogs` module](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
9+
Этот метод является частью [модуля `dialogs`](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
1010

1111
---
1212

13-
## Basic use
13+
## Основное использование
1414

15-
The `confirm()` method is available globally. You can call it anywhere in your app.
15+
Метод `confirm()` доступен глобально. Вы можете вызывать его в любом месте вашего приложения.
1616

1717
```javascript
18-
confirm('Your message')
18+
confirm('Ваше сообщение')
1919
.then(result => {
2020
console.log(result);
2121
});
2222
```
2323

24-
## Configure dialog options
24+
## Настройка параметров диалога
2525

2626
```javascript
2727
confirm({
28-
title: "Your title",
29-
message: "Your message",
30-
okButtonText: "Your OK button text",
31-
cancelButtonText: "Your Cancel text"
28+
title: "Ваш заголовок",
29+
message: "Ваше сообщение",
30+
okButtonText: "Ваш текст для кнопки OK",
31+
cancelButtonText: "Ваш текст для кнопки Cancel"
3232
}).then(result => {
3333
console.log(result);
3434
});

content/docs/ru/elements/dialogs/login.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
---
22
title: LoginDialog
33
apiRef: https://docs.nativescript.org/api-reference/modules/_ui_dialogs_#login
4-
contributors: [MisterBrownRSA, rigor789, ikoevska]
4+
contributors: [lex111]
55
---
66

7-
The `login()` method shows a dialog where the user can provide login credentials.
7+
Метод `login()` показывает диалоговое окно, в котором пользователь может ввести учетные данные для входа.
88

9-
The method is part of the [`dialogs` module](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
9+
Этот метод является частью [модуля `dialogs`](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
1010

1111
---
1212

13-
## Basic use
13+
## Основное использование
1414

15-
The `login()` method is available globally. You can call it anywhere in your app.
15+
Метод `login()` доступен глобально. Вы можете вызывать его в любом месте вашего приложения.
1616

1717
```javascript
18-
login("Your message", "Username field value", "Password field value").then(result => {
19-
console.log(`Dialog result: ${result.result}, user: ${result.userName}, pwd: ${result.password}`);
18+
login("Ваше сообщение", "Значение поля пользователя", "Значение поля пароля").then(result => {
19+
console.log(`Результат диалога: ${result.result}, пользователь: ${result.userName}, пароль: ${result.password}`);
2020
});
2121
```
2222

23-
## Configure dialog options
23+
## Настройка параметров диалога
2424

2525
```JavaScript
2626
login({
27-
title: "Your login title",
28-
message: "Your login message",
29-
okButtonText: "Your OK button text",
30-
cancelButtonText: "Your Cancel button text",
31-
userName: "Username field value",
32-
password: "Password field value"
27+
title: "Ваш заголовок для входа",
28+
message: "Ваше сообщение для входа",
29+
okButtonText: "Ваш текст для кнопки OK",
30+
cancelButtonText: "Ваш текст для кнопки Cancel",
31+
userName: "Значение поля пользователя",
32+
password: "Значение поля пароля"
3333
}).then(result => {
34-
console.log(`Dialog result: ${result.result}, user: ${result.userName}, pwd: ${result.password}`);
34+
console.log(`Результат диалога: ${result.result}, пользователь: ${result.userName}, пароль: ${result.password}`);
3535
});
3636
```
3737

content/docs/ru/elements/dialogs/prompt.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
11
---
22
title: PromptDialog
33
apiRef: https://docs.nativescript.org/api-reference/modules/_ui_dialogs_#prompt
4-
contributors: [MisterBrownRSA, rigor789, ikoevska]
4+
contributors: [lex111]
55
---
66

7-
The `prompt()` method shows a dialog with a single-line field for user input.
7+
Метод `prompt()` показывает диалоговое окно с однострочным полем для ввода.
88

9-
The method is part of the [`dialogs` module](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
9+
Этот метод является частью [модуля `dialogs`](https://docs.nativescript.org/api-reference/modules/_ui_dialogs_).
1010

1111
---
1212

13-
## Basic use
13+
## Основное использование
1414

15-
The `prompt()` method is available globally. You can call it anywhere in your app.
15+
Метод `prompt()` доступен глобально. Вы можете вызывать его в любом месте вашего приложения.
1616

1717
```JavaScript
18-
prompt('Your message to the user', 'Suggested user input')
18+
prompt('Ваше сообщение для пользователя', 'Предложенный пользователем ввод')
1919
.then(result => {
20-
console.log(`Dialog result: ${result.result}, text: ${result.text}`)
20+
console.log(`Результат диалога: ${result.result}, текст: ${result.text}`)
2121
})
2222
```
2323

24-
## Configure dialog options
24+
## Настройка параметров диалога
2525

2626
```JavaScript
2727
prompt({
28-
title: "Your dialog title",
29-
message: "Your message",
30-
okButtonText: "Your OK button text",
31-
cancelButtonText: "Your Cancel button text",
32-
defaultText: "Suggested user input",
28+
title: "Ваш заголовок диалога",
29+
message: "Ваше сообщение",
30+
okButtonText: "Ваш текст для кнопки OK",
31+
cancelButtonText: "Ваш текст для кнопки Cancel",
32+
defaultText: "Предложенный пользователем ввод",
3333
}).then(result => {
34-
console.log(`Dialog result: ${result.result}, text: ${result.text}`)
34+
console.log(`Результат диалога: ${result.result}, текст: ${result.text}`)
3535
});
3636
```
3737

38-
## Configure input type
38+
## Настройка типа ввода
3939

40-
You can also configure the input type using `inputType`. You can choose between plain text (`text`), email-enabled input (`email`), and password-like hidden input (`password`).
40+
Вы можете настроить тип ввода, используя `inputType`. Вы можете выбрать между простым текстом (`text`), вводом электронной почты (`email`) и скрытым вводом пароля (`password`).
4141

4242
```JavaScript
4343
inputType: dialogs.inputType.text
4444
inputType: dialogs.inputType.email
4545
inputType: dialogs.inputType.password
4646
```
4747

48-
**NOTE:** This option is not globally available and you need to require the `dialogs` module in your app before using `inputType`.
48+
**Примечание:** Эта опция недоступна глобально, и перед использованием `inputType` вам требуется подключить модуль `dialogs` в вашем приложении.
4949

5050
```JavaScript
5151
const dialogs = require('tns-core-modules/ui/dialogs')
5252
```
5353

54-
### Example
54+
### Пример
5555

5656
```JavaScript
5757
const dialogs = require('tns-core-modules/ui/dialogs')
5858

5959
prompt({
60-
title: "Email Prompt",
61-
message: "Provide your email address:",
60+
title: "Ввод электронной почты",
61+
message: "Укажите свой адрес электронной почты:",
6262
okButtonText: "OK",
6363
cancelButtonText: "Cancel",
6464
defaultText: "[email protected]",
6565
inputType: dialogs.inputType.email
6666
}).then(result => {
67-
console.log(`Dialog result: ${result.result}, text: ${result.text}`)
67+
console.log(`Результат диалога: ${result.result}, текст: ${result.text}`)
6868
});
6969
```
7070

0 commit comments

Comments
 (0)