Rev 9246 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9287 | leency | 1 | //Copyright 2021 by Leency |
8278 | leency | 2 | |
3 | #ifdef LANG_RUS |
||
4 | #define DL_WINDOW_HEADER "Менеджер загрузок" |
||
8305 | leency | 5 | #define T_DOWNLOAD "Скачать" |
6 | #define T_CANCEL "Отмена" |
||
7 | #define T_OPEN_DIR "Показать в папке" |
||
8 | #define T_RUN "Открыть файл" |
||
9246 | leency | 9 | #define T_SPEED_TEST "Тест скорости" |
8281 | leency | 10 | #define FILE_SAVED_AS "'Менеджер загрузок\nФайл сохранен как %s' -Dt" |
11 | #define FILE_NOT_SAVED "'Менеджер загрузок\nОшибка! Файл не может быть сохранен как\n%s' -Et" |
||
9287 | leency | 12 | #define KB_RECEIVED "Идет скачивание: %i.%i Mb получено (%i Kb/s) " |
8926 | leency | 13 | #define T_ERROR_STARTING_DOWNLOAD "'Невозможно начать скачивание.\nПроверьте введенный путь и соединение с Интернетом.' -E" |
8281 | leency | 14 | #define T_AUTOCLOSE "Автозакрытие" |
8278 | leency | 15 | char accept_language[]= "Accept-Language: ru\n"; |
16 | #else |
||
17 | #define DL_WINDOW_HEADER "Download Manager" |
||
8305 | leency | 18 | #define T_DOWNLOAD "Download" |
19 | #define T_CANCEL "Cancel" |
||
20 | #define T_OPEN_DIR " Show in folder " |
||
21 | #define T_RUN "Open file" |
||
9246 | leency | 22 | #define T_SPEED_TEST "Speed test" |
8278 | leency | 23 | #define FILE_SAVED_AS "'Download manager\nFile saved as %s' -Dt" |
24 | #define FILE_NOT_SAVED "'Download manager\nError! Can\96t save file as %s' -Et" |
||
9287 | leency | 25 | #define KB_RECEIVED "Downloading: %i.%i Mb received (%i Kb/s) " |
8926 | leency | 26 | #define T_ERROR_STARTING_DOWNLOAD "'Error while starting download process.\nCheck entered path and Internet connection.' -E" |
8281 | leency | 27 | #define T_AUTOCLOSE "Autoclose" |
8278 | leency | 28 | char accept_language[]= "Accept-Language: en\n"; |
29 | #endif |
||
30 | |||
31 | #define GAPX 15 |
||
9287 | leency | 32 | #define WIN_W 540 |
8278 | leency | 33 | #define WIN_H 100 |
34 | |||
8319 | leency | 35 | char save_dir[] = "/tmp0/1/Downloads"; |
8278 | leency | 36 | char dl_shared[] = "DL"; |
8305 | leency | 37 | |
9246 | leency | 38 | #define URL_SPEED_TEST "http://speedtest.tele2.net/100MB.zip" |
39 | |||
8305 | leency | 40 | enum { |
41 | BTN_EXIT=1, |
||
42 | BTN_START, |
||
43 | BTN_STOP, |
||
44 | BTN_DIR, |
||
45 | BTN_RUN, |
||
46 | }; |