Subversion Repositories Kolibri OS

Rev

Rev 7945 | Rev 8439 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7945 Rev 7960
1
//===================================================//
1
//===================================================//
2
//                                                   //
2
//                                                   //
3
//                   TRANSLATIONS                    //
3
//                   TRANSLATIONS                    //
4
//                                                   //
4
//                                                   //
5
//===================================================//
5
//===================================================//
6
 
6
 
7
char short_app_name[] = "Quark";
7
char short_app_name[] = "Quark";
8
 
8
 
9
#ifdef LANG_RUS
9
#ifdef LANG_RUS
10
 
10
 
11
char intro[] = "â® ¯à®á⮩ ¯à®á¬®âà騪 ⥪áâ .
11
char intro[] = "â® ¯à®á⮩ ¯à®á¬®âà騪 ⥪áâ .
12
®¯à®¡ã©â¥ ®âªàëâì ⥪áâ®¢ë© ä ©«.";
12
®¯à®¡ã©â¥ ®âªàëâì ⥪áâ®¢ë© ä ©«.";
13
 
13
 
14
char copied_chars[] = "‘ª®¯¨à®¢ ­® ᨢ®«®¢: %i";
14
char copied_chars[] = "‘ª®¯¨à®¢ ­® ᨢ®«®¢: %i";
15
 
15
 
16
char about[] = "Quark Text v0.72
16
char about[] = "Quark Text v0.8
17
€¢â®à: Š¨à¨«« ‹¨¯ â®¢ aka Leency
17
€¢â®à: Š¨à¨«« ‹¨¯ â®¢ aka Leency
18
‘ ©â: http://aspero.pro
18
‘ ©â: http://aspero.pro
19
 
19
 
20
ƒ®àï稥 ª« ¢¨è¨:
20
ƒ®àï稥 ª« ¢¨è¨:
21
Ctrl+O - ®âªàëâì ä ©«
21
Ctrl+O - ®âªàëâì ä ©«
22
Ctrl+I - ¯®ª § âì ¨­ä®à¬ æ¨î ® ä ©«¥
22
Ctrl+I - ¯®ª § âì ¨­ä®à¬ æ¨î ® ä ©«¥
23
Ctrl+«îá - 㢥«¨ç¨âì èà¨äâ
23
Ctrl+«îá - 㢥«¨ç¨âì èà¨äâ
24
Ctrl+Œ¨­ãá - 㬥­ìè¨âì èà¨äâ
24
Ctrl+Œ¨­ãá - 㬥­ìè¨âì èà¨äâ
25
Ctrl+Tab - ¢ë¡à âì ª®¤¨à®¢ªã ⥪áâ 
25
Ctrl+Tab - ¢ë¡à âì ª®¤¨à®¢ªã ⥪áâ 
26
Ctrl+E - ®âªàëâì ä ©« ¢ ¤à㣮© ¯à®£à ¬¬¥
26
Ctrl+E - ®âªàëâì ä ©« ¢ ¤à㣮© ¯à®£à ¬¬¥
27
 
27
 
28
®¨áª:
28
®¨áª:
29
Ctrl+F - ®âªàëâì ¯ ­¥«ì ¯®¨áª 
29
Ctrl+F - ®âªàëâì ¯ ­¥«ì ¯®¨áª 
30
F3 - ¨áª âì ¤ «¥¥
30
F3 - ¨áª âì ¤ «¥¥
31
Esc - áªàëâì ¯ ­¥«ì ¯®¨áª ";
31
Esc - áªàëâì ¯ ­¥«ì ¯®¨áª ";
32
 
32
 
33
char color_scheme_names[] = "’¢®à®¦¥ª\nŠ®á¬®á   ";
33
char color_scheme_names[] = "’¢®à®¦¥ª\nŠ®á¬®á   ";
34
?define FILE_SAVED_WELL "'” ©« ãᯥ譮 á®åà ­¥­'O"
34
?define FILE_SAVED_WELL "'” ©« ãᯥ譮 á®åà ­¥­'O"
35
?define FILE_NOT_SAVED "'Žè¨¡ª  ¯à¨ á®åà ­¥­¨¨ ä ©« !'E"
35
?define FILE_NOT_SAVED "'Žè¨¡ª  ¯à¨ á®åà ­¥­¨¨ ä ©« !'E"
36
 
36
 
37
char rmb_menu[] = 
37
char rmb_menu[] = 
38
"‚ë१ âì|Ctrl+X
38
"‚ë१ âì|Ctrl+X
39
Š®¯¨à®¢ âì|Ctrl+C
39
Š®¯¨à®¢ âì|Ctrl+C
40
‚áâ ¢¨âì|Ctrl+V
40
‚áâ ¢¨âì|Ctrl+V
41
-
41
-
42
Žâªàëâì ¢ ¯ ¯ª¥
42
Žâªàëâì ¢ ¯ ¯ª¥
43
Š®¯¨à®¢ âì ¯ãâì ä ©« ";
43
Š®¯¨à®¢ âì ¯ãâì ä ©« ";
44
 
44
 
45
?define T_MATCHES " ©¤¥­®: %i   "
45
?define T_MATCHES " ©¤¥­®: %i   "
46
?define T_FIND_NEXT " ©â¨ ¤ «¥¥"
46
?define T_FIND_NEXT " ©â¨ ¤ «¥¥"
47
 
47
 
48
#else
48
#else
49
 
49
 
50
char intro[] = "Quark is a simple text viewer.
50
char intro[] = "Quark is a simple text viewer.
51
Try to open some text file.";
51
Try to open some text file.";
52
 
52
 
53
char copied_chars[] = "Copied %i chars";
53
char copied_chars[] = "Copied %i chars";
54
 
54
 
55
char about[] = "Quark Text v0.72
55
char about[] = "Quark Text v0.8
56
Author: Kiril Lipatov aka Leency 
56
Author: Kiril Lipatov aka Leency 
57
Website: http://aspero.pro
57
Website: http://aspero.pro
58
 
58
 
59
Hotkeys:
59
Hotkeys:
60
Ctrl+O - open file
60
Ctrl+O - open file
61
Ctrl+I - show file properties
61
Ctrl+I - show file properties
62
Ctrl+Plus - bigger font
62
Ctrl+Plus - bigger font
63
Ctrl+Down - smaller font
63
Ctrl+Down - smaller font
64
Ctrl+Tab - select charset
64
Ctrl+Tab - select charset
65
Ctrl+E - reopen current file in another app
65
Ctrl+E - reopen current file in another app
66
 
66
 
67
Search:
67
Search:
68
Ctrl+F - open search
68
Ctrl+F - open search
69
F3 - search next
69
F3 - search next
70
Esc - hide search bar";
70
Esc - hide search bar";
71
 
71
 
72
char color_scheme_names[] = "Dairy\nCosmos   ";
72
char color_scheme_names[] = "Dairy\nCosmos   ";
73
?define FILE_SAVED_WELL "'File saved'O"
73
?define FILE_SAVED_WELL "'File saved'O"
74
?define FILE_NOT_SAVED "'Error saving file!'E"
74
?define FILE_NOT_SAVED "'Error saving file!'E"
75
 
75
 
76
char rmb_menu[] = 
76
char rmb_menu[] = 
77
"Cut|Ctrl+X
77
"Cut|Ctrl+X
78
Copy|Ctrl+C
78
Copy|Ctrl+C
79
Paste|Ctrl+V
79
Paste|Ctrl+V
80
-
80
-
81
Reveal in folder
81
Reveal in folder
82
Copy file path";
82
Copy file path";
83
 
83
 
84
?define T_MATCHES "Matches: %i   "
84
?define T_MATCHES "Matches: %i   "
85
?define T_FIND_NEXT " Find next "
85
?define T_FIND_NEXT " Find next "
86
 
86
 
87
#endif
87
#endif
88
 
88
 
89
//===================================================//
89
//===================================================//
90
//                                                   //
90
//                                                   //
91
//                       DATA                        //
91
//                       DATA                        //
92
//                                                   //
92
//                                                   //
93
//===================================================//
93
//===================================================//
94
 
94
 
95
dword color_schemes[] = {
95
dword color_schemes[] = {
96
//bg,     text,     scroll,   selected, cursor
96
//bg,     text,     scroll,   selected, cursor
97
0xFCF0DA, 0x171501, 0xB2ACA0, 0xD8CAA7, 0xFF0000, //Dairy
97
0xFCF0DA, 0x171501, 0xB2ACA0, 0xD8CAA7, 0xFF0000, 0xFEC53A, //Dairy
98
0x282923, 0xD8D8D2, 0x555551, 0x5A574A, 0xFFFfff  //Cosmos
98
0x282923, 0xD8D8D2, 0x555551, 0x5A574A, 0xFFFfff, 0x9D7E00 //Cosmos
99
};
99
};
100
 
100
 
101
struct THEME
101
struct THEME
102
{
102
{
103
	dword bg, text, cursor;
103
	dword bg, text, cursor, found;
104
} theme;
104
} theme;
105
 
105
 
106
char default_dir[] = "/rd/1";
106
char default_dir[] = "/rd/1";
107
od_filter filter2 = { 33, "TXT\0ASM\0HTM\0HTML\0C\0H\0C--\0H--\0CPP\0\0" };
107
od_filter filter2 = { 33, "TXT\0ASM\0HTM\0HTML\0C\0H\0C--\0H--\0CPP\0\0" };
108
 
108
 
109
DrawBufer DrawBuf;
109
DrawBufer DrawBuf;
110
 
110
 
111
dword cursor_pos=0;
111
dword cursor_pos=0;
112
 
112
 
113
collection_int lines = {0};
113
collection_int lines = {0};
114
 
114
 
115
//===================================================//
115
//===================================================//
116
//                                                   //
116
//                                                   //
117
//                     SETTINGS                      //
117
//                     SETTINGS                      //
118
//                                                   //
118
//                                                   //
119
//===================================================//
119
//===================================================//
120
 
120
 
121
 
121
 
122
_ini ini = { "/sys/settings/app.ini", "Quark" };
122
_ini ini = { "/sys/settings/app.ini", "Quark" };
123
 
123
 
124
void LoadIniSettings()
124
void LoadIniSettings()
125
{
125
{
126
	font_size     = ini.GetInt("FontSize", 'M');
126
	font_size     = ini.GetInt("FontSize", 'M');
127
	user_encoding = ini.GetInt("Encoding", CH_AUTO);
127
	user_encoding = ini.GetInt("Encoding", CH_AUTO);
128
	curcol_scheme = ini.GetInt("ColorScheme", 0);
128
	curcol_scheme = ini.GetInt("ColorScheme", 0);
129
	Form.left     = ini.GetInt("WinX", 150); 
129
	Form.left     = ini.GetInt("WinX", 150); 
130
	Form.top      = ini.GetInt("WinY", 50); 
130
	Form.top      = ini.GetInt("WinY", 50); 
131
	Form.width    = ini.GetInt("WinW", 640); 
131
	Form.width    = ini.GetInt("WinW", 640); 
132
	Form.height   = ini.GetInt("WinH", 563);
132
	Form.height   = ini.GetInt("WinH", 563);
133
}
133
}
134
 
134
 
135
void SaveIniSettings()
135
void SaveIniSettings()
136
{
136
{
137
	ini.SetInt("FontSize", font_size);
137
	ini.SetInt("FontSize", font_size);
138
	ini.SetInt("Encoding", user_encoding);
138
	ini.SetInt("Encoding", user_encoding);
139
	ini.SetInt("ColorScheme", curcol_scheme);
139
	ini.SetInt("ColorScheme", curcol_scheme);
140
	ini.SetInt("WinX", Form.left);
140
	ini.SetInt("WinX", Form.left);
141
	ini.SetInt("WinY", Form.top);
141
	ini.SetInt("WinY", Form.top);
142
	ini.SetInt("WinW", Form.width);
142
	ini.SetInt("WinW", Form.width);
143
	ini.SetInt("WinH", Form.height);
143
	ini.SetInt("WinH", Form.height);
144
}
144
}