Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kumir
kumir2
Commits
5740c3ac
Commit
5740c3ac
authored
Sep 30, 2014
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Maybe fixed (requires testing) #kumir2-1756
parent
1d387ebc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
55 deletions
+79
-55
share/kumir2/translations/CoreGUI_ru.ts
share/kumir2/translations/CoreGUI_ru.ts
+59
-54
src/plugins/coregui/mainwindow.cpp
src/plugins/coregui/mainwindow.cpp
+20
-1
No files found.
share/kumir2/translations/CoreGUI_ru.ts
View file @
5740c3ac
...
...
@@ -497,7 +497,7 @@ Right click to navigate target</source>
<
name
>
CoreGUI
::
MainWindow
<
/name
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.ui
"
line
=
"
14
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
9
47
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
9
68
"
/>
<
source
>
Kumir
<
/source
>
<
translation
>
Кумир
<
/translation
>
<
/message
>
...
...
@@ -583,10 +583,10 @@ Right click to navigate target</source>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.ui
"
line
=
"
148
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/guisettingspage.cpp
"
line
=
"
67
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
13
04
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
65
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
886
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
20
75
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
13
25
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
86
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
907
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
20
96
"
/>
<
source
>
Save
<
/source
>
<
translation
>
Сохранить
<
/translation
>
<
/message
>
...
...
@@ -700,7 +700,7 @@ Right click to navigate target</source>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.ui
"
line
=
"
228
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
697
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
718
"
/>
<
source
>
Restore
previous
session
<
/source
>
<
translation
>
Восстановить
предыдущий
сеанс
<
/translation
>
<
/message
>
...
...
@@ -740,95 +740,100 @@ Right click to navigate target</source>
<
translation
type
=
"
obsolete
"
>
Новый
текст
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
15
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
36
"
/>
<
source
>%
1
programs
(
*%
2
)
<
/source
>
<
translation
>
Программы
%
1
(
*%
2
)
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
23
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
18
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
44
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
39
"
/>
<
source
>
Text
files
(
*
.
txt
)
<
/source
>
<
translation
>
Текстовые
файлы
(
*
.
txt
)
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1168
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
323
"
/>
<
source
>
Configure
menu
items
...
<
/source
>
<
translation
>
Настроить
элементы
меню
...
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1189
"
/>
<
source
>
Native
executables
(
*
.
%
1
)
<
/source
>
<
translation
>
Программы
(
*
.
%
1
)
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
11
69
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
11
90
"
/>
<
source
>
Save
native
executable
<
/source
>
<
translation
>
Сохранить
выполняемый
файл
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
20
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
41
"
/>
<
source
>%
1
programs
(
*
.
%
2
)
<
/source
>
<
translation
>
Программы
%
1
(
*
.
%
2
)
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
25
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
20
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
46
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
41
"
/>
<
source
>
All
files
(
*
)
<
/source
>
<
translation
>
Все
файлы
(
*
)
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
26
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
47
"
/>
<
source
>
Save
file
<
/source
>
<
translation
>
Сохранить
файл
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
53
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
12
74
"
/>
<
source
>
Can
&
apos
;
t
save
file
<
/source
>
<
translation
>
Не
могу
сохранить
файл
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
298
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
319
"
/>
<
source
>
Close
editor
<
/source
>
<
translation
>
Закрытие
текста
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
299
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
881
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
20
70
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
320
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
902
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
20
91
"
/>
<
source
>
Save
current
text
?
<
/source
>
<
translation
>
Сохранить
текущий
текст
?
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
13
06
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
67
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
888
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
20
77
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
13
27
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
88
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
909
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
20
98
"
/>
<
source
>
Don
&
apos
;
t
save
<
/source
>
<
translation
>
Не
сохранять
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
13
08
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
69
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
13
29
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
90
"
/>
<
source
>
Cancel
closing
<
/source
>
<
translation
>
Отменить
закрытие
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
13
54
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
13
75
"
/>
<
source
>
Preferences
<
/source
>
<
translation
>
Настройки
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
698
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
719
"
/>
<
source
>
Are
you
sure
to
restore
previous
session
?
All
unsaved
changes
will
be
lost
.
<
/source
>
<
translation
>
Вы
уверены
,
что
хотите
восстановить
предыдущий
сеанс
?
Все
открытые
файлы
будут
закрыты
без
сохранения
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
02
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
23
"
/>
<
source
>
Yes
<
/source
>
<
translation
>
Да
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
03
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
24
"
/>
<
source
>
No
<
/source
>
<
translation
>
Нет
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
56
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
77
"
/>
<
source
>
The
following
files
have
changes
:
%
1
Save
them
?
<
/source
>
...
...
@@ -837,29 +842,29 @@ Save them?</source>
Сохранить
их
?
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
59
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
17
80
"
/>
<
source
>
Close
Kumir
<
/source
>
<
translation
>
Выход
из
Кумир
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
880
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
20
69
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
901
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
20
90
"
/>
<
source
>
Open
another
file
<
/source
>
<
translation
>
Открытие
другого
файла
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
890
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
2
079
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
1
911
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
2
100
"
/>
<
source
>
Cancel
opening
another
file
<
/source
>
<
translation
>
Не
открывать
другой
файл
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
17
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
38
"
/>
<
source
>
Web
pages
(
*
.
html
*
.
htm
)
<
/source
>
<
translation
>
Web
-
страницы
(
*
.
html
*
.
htm
)
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
21
38
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
21
59
"
/>
<
source
>
Can
&
apos
;
t
open
file
<
/source
>
<
translation
>
Не
могу
открыть
файл
<
/translation
>
<
/message
>
...
...
@@ -898,7 +903,7 @@ Using Qt version %2</source>
Использует
Qt
версии
%
2
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
24
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/mainwindow.cpp
"
line
=
"
19
45
"
/>
<
source
>
Load
file
...
<
/source
>
<
translation
>
Загрузить
файл
...
<
/translation
>
<
/message
>
...
...
@@ -925,62 +930,62 @@ Using Qt version %2</source>
<
translation
type
=
"
obsolete
"
>
Область
ввода
/
вывода
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
62
0
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
62
5
"
/>
<
source
>
Variables
<
/source
>
<
translation
>
Значения
величин
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
5
29
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
54
0
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
5
34
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
54
5
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/guisettingspage.cpp
"
line
=
"
220
"
/>
<
source
>
Remote
Control
<
/source
>
<
translation
>
Пульт
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
78
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
83
"
/>
<
source
>
PROGRAM
.
kum
<
/source
>
<
translation
>
ПРОГРАММА
.
kum
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
79
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
84
"
/>
<
source
>
Source
file
name
<
/source
>
<
translation
>
Имя
файла
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
1
86
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
1
91
"
/>
<
source
>
Input
/
Output
<
/source
>
<
translation
>
Ввод
/
вывод
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
23
2
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
23
7
"
/>
<
source
>
Save
console
output
<
/source
>
<
translation
>
Сохранить
вывод
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
25
2
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
25
7
"
/>
<
source
>
Copy
to
clipboard
console
output
<
/source
>
<
translation
>
Скопировать
вывод
в
буфер
обмена
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
3
66
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
3
71
"
/>
<
source
>
Help
<
/source
>
<
translation
>
Справка
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
396
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
4
06
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
401
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
4
11
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/guisettingspage.cpp
"
line
=
"
189
"
/>
<
source
>
Courses
<
/source
>
<
translation
>
Практикум
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
5
56
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
5
61
"
/>
<
source
>
Actor
&
apos
;
s
References
<
/source
>
<
translation
>
Руководства
исполнителей
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
5
79
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
58
1
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
5
84
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
58
6
"
/>
<
source
>
No
actions
for
this
tab
<
/source
>
<
translation
>
Для
этой
вкладки
нет
действий
<
/translation
>
<
/message
>
...
...
@@ -1001,7 +1006,7 @@ Using Qt version %2</source>
<
translation
type
=
"
obsolete
"
>
Пауза
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
5
88
"
/>
<
location
filename
=
"
../../../src/plugins/coregui/plugin.cpp
"
line
=
"
5
93
"
/>
<
source
>
Start
<
/source
>
<
translation
>
Начало
<
/translation
>
<
/message
>
...
...
src/plugins/coregui/mainwindow.cpp
View file @
5740c3ac
...
...
@@ -306,7 +306,26 @@ MainWindow::MainWindow(Plugin * p) :
ui
->
menubar
->
setContextMenuWidget
(
menubarContextMenu_
);
topLevelMenus_
<<
ui
->
menuFile
<<
ui
->
menuEdit
<<
ui
->
menuInsert
<<
ui
->
menuRun
<<
ui
->
menuRun
<<
ui
->
menuHelp
;
ui
->
menubar
->
addAction
(
menubarContextMenu_
->
showAction
());
bool
useGlobalMenu
=
false
;
#ifdef Q_OS_MAC
useGlobalMenu
=
true
;
#endif
#ifdef Q_OS_LINUX
const
char
*
session
=
::
getenv
(
"SESSION"
);
if
(
session
&&
QString
::
fromLatin1
(
session
).
toLower
()
==
"ubuntu"
)
{
useGlobalMenu
=
true
;
}
#endif
if
(
useGlobalMenu
)
{
QMenu
*
fakeMenu
=
ui
->
menubar
->
addMenu
(
menubarContextMenu_
->
showAction
()
->
text
());
menubarContextMenu_
->
showAction
()
->
setText
(
tr
(
"Configure menu items..."
));
fakeMenu
->
addAction
(
menubarContextMenu_
->
showAction
());
}
else
{
ui
->
menubar
->
addAction
(
menubarContextMenu_
->
showAction
());
}
}
void
MainWindow
::
addMenuBeforeHelp
(
QMenu
*
menu
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment