kolibrios/programs/cmm/eolite/include/const.h
Serhii Sakhno 975284f5f3 Eolite: provide label for NVMe disks on left panel
Signed-off-by: Serhii Sakhno <serhii.sakhno.jr@gmail.com>
2024-08-01 22:29:57 +03:00

277 lines
7.9 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//===================================================//
// //
// CYRILLIC //
// //
//===================================================//
#ifdef LANG_RUS
#define T_FILE "ˆ¬ï"
#define T_TYPE "’¨¯"
#define T_SIZE "<22> §¬¥à"
#define T_NEW_FOLDER "<22>®¢ ï ¯ ¯ª "
#define T_NEW_FILE "<22>®¢ë© ä ©«"
#define T_DELETE_FILE "‚ë ¤¥©á⢨⥫쭮 å®â¨â¥ 㤠«¨âì"
#define T_YES "„ "
#define T_NO "<22>¥â"
#define T_CANCEL "Žâ¬¥­ "
#define T_CREATE "‘®§¤ âì"
#define T_RENAME "<22>¥à¥­ §¢ âì"
#define T_GOPATH "<22>¥à¥©â¨"
#define FS_ITEM_ALREADY_EXISTS "'<27>«¥¬¥­â á â ª¨¬ ¨¬¥­¥¬ 㦥 áãé¥áâ¢ã¥â' -E"
#define T_NOTIFY_APP_PARAM_WRONG "'<27> à ¬¥âà ¤«ï § ¯ã᪠ Eolite ­¥¢¥à¥­: ¯ ¯ª  ­¥ áãé¥áâ¢ã¥â!' -E"
#define T_COPY_WINDOW_TITLE "Š®¯¨àãî..."
#define T_MOVE_WINDOW_TITLE "<22>¥à¥¬¥é î..."
#define T_DELETE_WINDOW_TITLE "“¤ «ïî..."
#define T_COPY_ABORT "<22>à¥à¢ âì"
#define T_COPY_REPLACE "‡ ¬¥­¨âì"
#define T_COPY_SKIP "<22>யãáâ¨âì"
#define T_COPY_REMEMBER_CHOICE "„«ï ¢á¥å"
#define T_OVERWRITE_ALERT "’ ª®© ä ©« 㦥 áãé¥áâ¢ã¥â!"
#define T_SELECT_APP_TO_OPEN_WITH "‚ë¡¥à¨â¥ ¯à®£à ¬¬ã ¤«ï ®âªàëâ¨ï ä ©« "
#define DEL_MORE_FILES_1 "¢ë¡à ­­ë¥ í«¥¬¥­âë ("
#define DEL_MORE_FILES_2 " èâ.)?"
#define T_STATUS_EVEMENTS "<22> ¯®ª: %d ” ©«®¢: %d"
#define T_STATUS_SELECTED "‚뤥«¥­®: %d"
#define COPY_PATH_STR "'<27>ãâì ¯ ¯ª¨ ᪮¯¨à®¢ ­ ¢ ¡ãä¥à ®¡¬¥­ ' -I"
#define T_ABOUT "Ž ¯à®£à ¬¬¥"
#define T_USE_SHIFT_ENTER "'ˆá¯®«ì§ã©â¥ Shift+Enter çâ®¡ë ®âªàëâì ¢á¥ ¢ë¤¥«¥­­ë¥ ä ©«ë.' -I"
char *kfm_func = {
"ˆ­ä®",
"<EFBFBD>¥à¥¨¬¥­.",
"<EFBFBD>à®á¬®âà",
"<EFBFBD>¥¤ ªâ.",
"Š®¯¨à®¢ âì",
"<EFBFBD>¥à¥¬¥áâ¨âì",
"<EFBFBD> ¯ª ",
"“¤ «¨âì",
"” ©«",
" <20> áâனª¨"
};
#define T_DEVICES "“áâனá⢠"
#define T_ACTIONS "„¥©á⢨ï"
char *actions[] = {
59, "<EFBFBD>®¢ë© ä ©«", "F9",
57, "<EFBFBD>®¢ ï ¯ ¯ª ", "F7",
60, "<EFBFBD> áâனª¨", "F10",
0,0,0
};
#define T_PROG "<22>ணࠬ¬ë "
#define T_SYS "‘¨á⥬  "
#define T_CD "CD-Rom "
#define T_FD "„¨áª¥â  "
#define T_HD "†¥á⪨© ¤¨áª "
#define T_SATA "SATA ¤¨áª "
#define T_NVME "NVMe disk "
#define T_USB "USB ¤¨áª "
#define T_RAM "RAM ¤¨áª "
#define T_UNC "<22>¥¨§¢¥áâ­® "
#define WINDOW_TITLE_PROPERTIES "‘¢®©á⢠"
#define T_CLOSE "‡ ªàëâì"
#define T_APPLY "<22>ਬ¥­¨âì"
#define QUEST_1 "<22>ਬ¥­¨âì ª® ¢á¥¬ ¢«®¦¥­­ë¬"
#define QUEST_2 "ä ©« ¬ ¨ ¯ ¯ª ¬?"
#define T_NAME "ˆ¬ï:"
#define T_DATA "„ ­­ë¥"
#define T_BULK_SELECTION "‚뤥«¥­® ­¥áª®«ìª® í«¥¬¥­â®¢"
#define T_PATH_SIZE "<22>ãâì:\n<> §¬¥à:\n ¡ ©â å:\n®¤¥à¦¨â:"
#define T_FILES_FOLDERS "” ©«®¢ %i, <20> ¯®ª %i"
#define CREATED_OPENED_MODIFIED "‘®§¤ ­:\nŽâªàëâ:\nˆ§¬¥­¥­:"
#define FLAGS " €âਡãâë "
#define PR_T_ONLY_READ "’®«ìª® ç⥭¨¥"
#define PR_T_HIDDEN "‘ªàëâë©"
#define PR_T_SYSTEM "‘¨á⥬­ë©"
#define TITLE_SETT "<22> áâனª¨"
#define SHOW_DEVICE_CLASS "‚뢮¤¨âì ­ §¢ ­¨ï ª« áá  ãáâனáâ¢"
#define SHOW_STATUS_BAR "<22>®ª §ë¢ âì áâ âãá ¡ à"
#define BIG_ICONS "ˆá¯®«ì§®¢ âì ¡®«ì訥 ¨ª®­ª¨"
#define COLORED_LINES "<22>®¤á¢¥ç¨¢ âì ç¥â­ë¥ «¨­¨¨ ¢ ᯨ᪥"
#define FONT_SIZE_LABEL "<22> §¬¥à èà¨äâ "
#define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
#define SAVE_PATH_AS_DEFAULT "’¥ªã騩 ¯ãâì"
#define SAVE_START_PATH_AS_DEFAULT "‚¢¥¤¥­­ë© ¯ãâì"
#define EDIT_FILE_ASSOCIATIONS "<22>¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
#define START_PATH " ‘â àâ®¢ë© ¯ãâì: "
//===================================================//
// //
// ENGLISH //
// //
//===================================================//
#else
#define T_FILE "Name"
#define T_TYPE "Type"
#define T_SIZE "Size"
#define T_NEW_FOLDER "New folder"
#define T_NEW_FILE "New file"
#define T_DELETE_FILE "Do you really want to delete"
#define T_YES "Yes"
#define T_NO "No"
#define T_CANCEL "Cancel"
#define T_CREATE "Create"
#define T_RENAME "Rename"
#define T_GOPATH "Go to"
#define FS_ITEM_ALREADY_EXISTS "'An item with that name already exists' -E"
#define WAIT_DELETING_FOLDER "Deleting folder. Please, wait..."
#define T_NOTIFY_APP_PARAM_WRONG "'Eolite param is wrong: directory does not exist!' -E"
#define T_COPY_WINDOW_TITLE "Copying..."
#define T_MOVE_WINDOW_TITLE "Moving..."
#define T_DELETE_WINDOW_TITLE "Deleting..."
#define T_COPY_ABORT "Abort"
#define T_COPY_REPLACE "Replace"
#define T_COPY_SKIP "Skip"
#define T_COPY_REMEMBER_CHOICE "Apply for all"
#define T_OVERWRITE_ALERT "There is already a file with such name!"
#define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
#define DEL_MORE_FILES_1 "selected items("
#define DEL_MORE_FILES_2 " pcs.)?"
#define T_STATUS_EVEMENTS "Dirs: %d Files: %d"
#define T_STATUS_SELECTED "Selected: %d"
#define COPY_PATH_STR "'Directory path copied to clipboard' -I"
#define T_ABOUT "About"
#define T_USE_SHIFT_ENTER "'Use Shift+Enter to open all selected files.' -I"
char *kfm_func = {
"Info",
"Rename",
"View",
"Edit",
"Copy",
"Move",
"Folder",
"Delete",
"File",
" Settings"
};
#define T_DEVICES "Devices"
#define T_ACTIONS "Actions"
char *actions[] = {
59, "New file", "F9",
57, "New folder", "F7",
60, "Settings", "F10",
0,0,0
};
#define T_PROG "Programs "
#define T_SYS "System "
#define T_CD "CD-Rom "
#define T_FD "Floppy disk "
#define T_HD "Hard disk "
#define T_SATA "SATA disk "
#define T_NVME "NVMe disk "
#define T_USB "USB disk "
#define T_RAM "RAM disk "
#define T_UNC "Unknown "
#define WINDOW_TITLE_PROPERTIES "Properties"
#define T_CLOSE "Close"
#define T_APPLY "Apply"
#define QUEST_1 "Apply to all subfolders"
#define QUEST_2 "files and Folders?"
#define T_NAME "Name:"
#define T_DATA "Data"
#define T_BULK_SELECTION "A bunch of items is selected"
#define T_PATH_SIZE "Location:\nSize:\nBytes:\nContains:"
#define T_FILES_FOLDERS "Files %i, Folders %i"
#define CREATED_OPENED_MODIFIED "Created:\nOpened:\nModified:"
#define FLAGS " Attributes "
#define PR_T_HIDDEN "Hidden"
#define PR_T_SYSTEM "System"
#define PR_T_ONLY_READ "Read-only"
#define TITLE_SETT "Settings"
#define SHOW_DEVICE_CLASS "Show device class name"
#define SHOW_STATUS_BAR "Show status bar"
#define BIG_ICONS "Big icons in list"
#define COLORED_LINES "Highlight even lines in list"
#define FONT_SIZE_LABEL "Font size"
#define LIST_LINE_HEIGHT "List line height"
#define SAVE_PATH_AS_DEFAULT "Current path"
#define SAVE_START_PATH_AS_DEFAULT "Typed path"
#define EDIT_FILE_ASSOCIATIONS "Edit file associations"
#define START_PATH " Start path: "
#endif
//===================================================//
// //
// GLOBAL //
// //
//===================================================//
//Button IDs
enum {
POPUP_BTN1 = 201,
POPUP_BTN2 = 202,
KFM_DEV_DROPDOWN_1 = 205,
KFM_DEV_DROPDOWN_2 = 207,
BTN_PATH = 210,
BTN_BREADCRUMB = 214,
BREADCRUMB_ID = 300,
BACK_BTN = 400,
FWRD_BTN,
GOUP_BTN,
COPY_BTN,
CUT_BTN,
PASTE_BTN,
KFM_FUNC_ID = 450
};
#define B_SETINGS_APPLY_SUBFOLDER 301
#define B_SETINGS_APPLY_NO_SUBFOLDER 302
#define B_APPLY 11
#define B_CLOSE 12
//OpenDir options
enum {
WITH_REDRAW,
ONLY_OPEN
};
//OpenDir options
enum {
POPIN_PATH=1,
POPIN_NEW_FILE,
POPIN_NEW_FOLDER,
POPIN_RENAME,
POPIN_DELETE,
POPIN_DISK,
POPIN_BREADCR
};
char *devinfo = {
"sy", 0, T_SYS,
"rd", 0, T_SYS,
"ko", 1, T_PROG,
"fd", 2, T_FD,
"cd", 3, T_CD,
"hd", 4, T_HD,
"bd", 4, T_HD,
"sd", 4, T_SATA,
"nv", 4, T_NVME,
"tm", 5, T_RAM,
"us", 6, T_USB,
0
};
#define DEV_H 17
#define DDW 110
#define KFM2_DEVH 20
#define SELECTY 10
#define POPIN_W 260
//Sidebar width
#define SIDEBAR_W 192
//Sidebar padding
#define SBPAD 15
//Block width inside Sidebar
#define SB_BLOCKX SBPAD+2
#define SB_BLOCKW SIDEBAR_W-SBPAD-SB_BLOCKX
int toolbar_buttons_x[7]={9,46,85,134,167,203};