Subversion Repositories Kolibri OS

Rev

Rev 8584 | 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[] = " Quark - íâ® ¯à®á⮩ ¯à®á¬®âà騪 ⥪áâ .
  12. ®¯à®¡ã©â¥ ®âªàëâì ⥪áâ®¢ë© ä ©«.
  13.  
  14.  
  15. ƒ®àï稥 ª« ¢¨è¨:
  16. Ctrl+O - ®âªàëâì ä ©«
  17. Ctrl+I - ¯®ª § âì ¨­ä®à¬ æ¨î ® ä ©«¥
  18. Ctrl+«îá - 㢥«¨ç¨âì èà¨äâ
  19. Ctrl+Œ¨­ãá - 㬥­ìè¨âì èà¨äâ
  20. Ctrl+Tab - ¢ë¡à âì ª®¤¨à®¢ªã ⥪áâ 
  21. Ctrl+E - ®âªàëâì ä ©« ¢ ¤à㣮© ¯à®£à ¬¬¥
  22. Ctrl+F - ®âªàëâì ¯ ­¥«ì ¯®¨áª 
  23. F3 - ¨áª âì ¤ «¥¥";
  24.  
  25. char copied_chars[] = "%i ᨬ¢®«®¢ ᪮¯¨à®¢ ­®";
  26. char chars_selected[] = "%i ᨬ¢®«®¢ ¢ë¤¥«¥­®";
  27.  
  28. char color_scheme_names[] = "’¢®à®¦¥ª\nŠ®á¬®á   ";
  29.  
  30. char rmb_menu[] =
  31. "Š®¯¨à®¢ âì|Ctrl+C
  32. -
  33. Žâªàëâì ¢ ¯ ¯ª¥
  34. Š®¯¨à®¢ âì ¯ãâì ä ©« ";
  35.  
  36. ?define T_MATCHES " ©¤¥­®: %i   "
  37. ?define T_FIND_NEXT " ©â¨ ¤ «¥¥"
  38.  
  39. #else
  40.  
  41. char intro[] = " Quark is a simple text viewer.
  42. Try to open some text file.
  43.  
  44. Hotkeys:
  45. Ctrl+O - open file
  46. Ctrl+I - show file properties
  47. Ctrl+Plus - bigger font
  48. Ctrl+Down - smaller font
  49. Ctrl+Tab - select charset
  50. Ctrl+E - reopen current file in another app
  51. Ctrl+F - open search
  52. F3 - search next";
  53.  
  54. char copied_chars[] = "%i characters copied";
  55. char chars_selected[] = "%i characters selected";
  56.  
  57. char color_scheme_names[] = "Dairy\nCosmos   ";
  58.  
  59. char rmb_menu[] =
  60. "Copy|Ctrl+C
  61. -
  62. Reveal in folder
  63. Copy file path";
  64.  
  65. ?define T_MATCHES "Matches: %i   "
  66. ?define T_FIND_NEXT " Find next "
  67.  
  68. #endif
  69.  
  70. //===================================================//
  71. //                                                   //
  72. //                       DATA                        //
  73. //                                                   //
  74. //===================================================//
  75.  
  76. dword color_schemes[] = {
  77. //bg,     text,     scroll,   selected, cursor
  78. 0xFCF0DA, 0x171501, 0xB2ACA0, 0xD8CAA7, 0xFF0000, 0xFEC53A, //Dairy
  79. 0x282923, 0xD8D8D2, 0x555551, 0x5A574A, 0xFFFfff, 0x9D7E00 //Cosmos
  80. };
  81.  
  82. struct THEME
  83. {
  84.         dword bg, text, cursor, found;
  85. } theme;
  86.  
  87. char default_dir[] = "/rd/1";
  88. od_filter filter2 = { 0, "" };
  89.  
  90. CANVAS canvas;
  91.  
  92. dword cursor_pos=0;
  93.  
  94. collection_int lines = {0};
  95.  
  96. #define file_path param
  97.  
  98. //===================================================//
  99. //                                                   //
  100. //                     SETTINGS                      //
  101. //                                                   //
  102. //===================================================//
  103.  
  104.  
  105. _ini ini = { "/sys/settings/app.ini", "Quark" };
  106.  
  107. void LoadIniSettings()
  108. {
  109.         font_size     = ini.GetInt("FontSize", 1);
  110.         user_encoding = ini.GetInt("Encoding", CH_AUTO);
  111.         curcol_scheme = ini.GetInt("ColorScheme", 0);
  112.         Form.left     = ini.GetInt("WinX", 150);
  113.         Form.top      = ini.GetInt("WinY", 50);
  114.         Form.width    = ini.GetInt("WinW", 640);
  115.         Form.height   = ini.GetInt("WinH", 563);
  116. }
  117.  
  118. void SaveIniSettings()
  119. {
  120.         ini.SetInt("FontSize", font_size);
  121.         ini.SetInt("Encoding", user_encoding);
  122.         ini.SetInt("ColorScheme", curcol_scheme);
  123.         ini.SetInt("WinX", Form.left);
  124.         ini.SetInt("WinY", Form.top);
  125.         ini.SetInt("WinW", Form.width);
  126.         ini.SetInt("WinH", Form.height);
  127. }
  128.  
  129.  
  130.