files
KOS_qrcodes/programs/cmm/downloader/const.h
Kiril Lipatov bf9f7d2a19 Apps/downloader: Improved UI
Fixed an issue in the UI: The user does not realize that the file
has already been downloaded and may want to click "Download" again.
2025-02-27 02:22:53 +03:00

70 lines
2.5 KiB
C
Raw 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.

//Copyright 2021 by Leency
#ifdef LANG_RUS
#define DL_WINDOW_HEADER "Œ¥­¥¤¦¥à § £àã§®ª"
#define T_DOWNLOAD "‘ª ç âì"
#define T_CANCEL "Žâ¬¥­ "
#define T_OPEN_DIR "<22>®ª § âì ¢ ¯ ¯ª¥"
#define T_RUN "Žâªàëâì ä ©«"
#define T_NEW "<22>®¢ ï § £à㧪 "
#define T_SAVE_TO "‘®åà ­¨âì ¢:"
#define T_AUTOCLOSE "‡ ªàëâì ®ª­® ¯® § ¢¥à襭¨¨ § £à㧪¨"
#define T_STATUS_READY "ƒ®â®¢ ª § £à㧪¥ ^_^ "
#define T_STATUS_DOWNLOADING "ˆ¤¥â § £à㧪  ä ©« ... %i.%i M<> ¯®«ã祭® (%i K<>/á) "
#define T_STATUS_COMPLETE "‡ £à㧪  ãᯥ譮 § ¢¥à襭 . "
#define T_STATUS_DL_P1 "ˆ¤¥â § £à㧪  ä ©« ... "
#define T_STATUS_DL_P2 " M<> ¯®«ã祭® ("
#define T_STATUS_DL_P3 " K<>/á) "
#define FILE_SAVED_AS "'Œ¥­¥¤¦¥à § £àã§®ª\n” ©« á®åà ­¥­ ª ª %s' -Dt"
#define FILE_NOT_SAVED "'Œ¥­¥¤¦¥à § £àã§®ª\nŽè¨¡ª ! ” ©« ­¥ ¬®¦¥â ¡ëâì á®åà ­¥­ ª ª\n%s' -Et"
#define T_ERROR_STARTING_DOWNLOAD "'<27>¥¢®§¬®¦­® ­ ç âì ᪠稢 ­¨¥.\n<>஢¥àì⥠¢¢¥¤¥­­ë© ¯ãâì ¨ ᮥ¤¨­¥­¨¥ á ˆ­â¥à­¥â®¬.' -E"
char accept_language[]= "Accept-Language: ru\n";
#else
#define DL_WINDOW_HEADER "Download Manager"
#define T_DOWNLOAD "Download"
#define T_CANCEL "Cancel"
#define T_OPEN_DIR " Show in folder "
#define T_RUN "Open file"
#define T_NEW "New download"
#define T_SAVE_TO "Download to:"
#define T_AUTOCLOSE "Close this window when download completes"
#define T_STATUS_READY "Ready to download ^_^ "
#define T_STATUS_DOWNLOADING "Downloading... %i.%i MB received (%i KB/s) "
#define T_STATUS_COMPLETE "Download completed succesfully. "
#define T_STATUS_DL_P1 "Downloading... "
#define T_STATUS_DL_P2 " MB received ("
#define T_STATUS_DL_P3 " KB/s) "
#define FILE_SAVED_AS "'Download manager\nFile saved as %s' -Dt"
#define FILE_NOT_SAVED "'Download manager\nError! Can\96t save file as %s' -Et"
#define T_ERROR_STARTING_DOWNLOAD "'Error while starting download process.\nCheck entered path and Internet connection.' -E"
char accept_language[]= "Accept-Language: en\n";
#endif
#define WIN_W 526
#define WIN_H 195
#define GAPX 15
#define BUT_W 148
#define DEFAULT_SAVE_DIR "/tmp0/1/Downloads"
char dl_shared[] = "DL";
#define URL_SPEED_TEST "http://speedtest.tele2.net/100MB.zip"
enum {
BTN_EXIT=1,
BTN_START,
BTN_STOP,
BTN_DIR,
BTN_RUN,
BTN_NEW
};
#define PB_COL_ERROR 0xF55353
#define PB_COL_PROGRESS 0x297FFD
#define PB_COL_COMPLETE 0x74DA00