Subversion Repositories Kolibri OS

Rev

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