forked from KolibriOS/kolibrios
ac0309d8c4
TxtRead: autodetect encoding, fix about encoding git-svn-id: svn://kolibrios.org@7872 a494cfbc-eb01-0410-851d-a64ba20cac60
88 lines
2.2 KiB
C
88 lines
2.2 KiB
C
//===================================================//
|
||
// //
|
||
// TRANSLATIONS //
|
||
// //
|
||
//===================================================//
|
||
|
||
#ifdef LANG_RUS
|
||
|
||
#define INTRO_TEXT "<22>â® ¯à®á⮩ ¯à®á¬®âà騪 ⥪áâ .\n<>®¯à®¡ã©â¥ ®âªàëâì ª ª®©-¨¡ã¤ì ⥪áâ®¢ë© ä ©«."
|
||
#define VERSION "Text Reader v1.41"
|
||
#define ABOUT "ˆ¤¥ï: Leency, punk_joker
|
||
Š®¤: Leency, Veliant, KolibriOS Team
|
||
|
||
ƒ®àï稥 ª« ¢¨è¨:
|
||
Ctrl+O - ®âªàëâì ä ©«
|
||
Ctrl+I - ¯®ª § âì ¨ä®à¬ æ¨î ® ä ©«¥
|
||
Ctrl+<EFBFBD>«îá - 㢥«¨ç¨âì èà¨äâ
|
||
Ctrl+Œ¨ãá - 㬥ìè¨âì èà¨äâ
|
||
Ctrl+Tab - ¢ë¡à âì ª®¤¨à®¢ªã ⥪áâ
|
||
Ctrl+E - ®âªàëâì ä ©« ¢ ¤à㣮© ¯à®£à ¬¬¥
|
||
|
||
<EFBFBD>®¨áª:
|
||
Ctrl+F - ®âªàëâì ¯ ¥«ì ¯®¨áª
|
||
F3 - ¨áª âì ¤ «¥¥
|
||
Esc - áªàëâì ¯ ¥«ì ¯®¨áª
|
||
|
||
<EFBFBD> ¦¬¨â¥ «î¡ãî ª« ¢¨èã..."
|
||
|
||
char color_scheme_names[] =
|
||
"—¥àë© ¡¥«®¬
|
||
—¥àë© á¥à®¬ |RtfRead
|
||
—¥àë© «ì¥ |Horst
|
||
—¥àë© å®«á⥠|Pocket
|
||
—¥àë© ¦¥«â®¬ |Fb2Read
|
||
‘¥àë© â¥¬®¬1 |Godot
|
||
‘¥àë© â¥¬®¬2 |Monokai";
|
||
|
||
#else
|
||
|
||
#define INTRO_TEXT "This is a plain Text Reader.\nTry to open some text file."
|
||
#define VERSION "Text Reader v1.41"
|
||
#define ABOUT "Idea: Leency, punk_joker
|
||
Code: Leency, Veliant, KolibriOS Team
|
||
|
||
Hotkeys:
|
||
Ctrl+O - open file
|
||
Ctrl+I - show file properties
|
||
Ctrl+Up - bigger font
|
||
Ctrl+Down - smaller font
|
||
Ctrl+Tab - select charset
|
||
Ctrl+E - reopen current file in another app
|
||
|
||
Search:
|
||
Ctrl+F - open search
|
||
F3 - search next
|
||
Esc - hide search bar
|
||
|
||
Press any key..."
|
||
|
||
char color_scheme_names[] =
|
||
"Black & White
|
||
Black & Grey |RtfRead
|
||
Black & Linen |Horst
|
||
Black & Antique |Pocket
|
||
Black & Lemon |Fb2Read
|
||
Grey & DarkGrey |Godot
|
||
Grey & DarkGrey |Monokai";
|
||
|
||
#endif
|
||
|
||
//===================================================//
|
||
// //
|
||
// DATA //
|
||
// //
|
||
//===================================================//
|
||
|
||
dword color_schemes[] = {
|
||
0xFFFfff, 0,
|
||
0xF0F0F0, 0,
|
||
0xFDF6E3, 0x101A21,
|
||
0xFCF0DA, 0x171501,
|
||
0xF0F0C7, 0,
|
||
0x282C34, 0xABB2BF,
|
||
0x282923, 0xD8D8D2
|
||
};
|
||
|
||
char default_dir[] = "/rd/1";
|
||
od_filter filter2 = { 8, "TXT\0\0" }; |