Subversion Repositories Kolibri OS

Rev

Rev 7941 | Rev 7960 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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