forked from KolibriOS/kolibrios
browser: replace ':' and '?' in saving filename, fix broken Cyrillic labels
git-svn-id: svn://kolibrios.org@6674 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
22c6f65977
commit
695e658b9d
@ -1,10 +1,10 @@
|
||||
#ifdef LANG_RUS
|
||||
#define DL_WINDOW_HEADER "Œ¥¥¤¦¥à § £à㧮ª"
|
||||
#define START_DOWNLOADING "<22> ç âì § ª çªã"
|
||||
#define STOP_DOWNLOADING "Žáâ ®¢¨âì"
|
||||
#define SHOW_IN_FOLDER "<22>®ª § âì ¢ ¯ ¯ª¥"
|
||||
#define OPEN_FILE_TEXT "Žâªàëâì ä ©«"
|
||||
#define FILE_SAVED_AS "'Œ¥¥¤¦¥à § £à㧮ª\n” ©« á®åà ¥ ª ª "
|
||||
#define DL_WINDOW_HEADER "Œ¥¥¤¦¥à § £à㧮ª"
|
||||
#define START_DOWNLOADING "<22> ç âì § ª çªã"
|
||||
#define STOP_DOWNLOADING "Žáâ ®¢¨âì"
|
||||
#define SHOW_IN_FOLDER "<22>®ª § âì ¢ ¯ ¯ª¥"
|
||||
#define OPEN_FILE_TEXT "Žâªàëâì ä ©«"
|
||||
#define FILE_SAVED_AS "'Œ¥¥¤¦¥à § £à㧮ª\n” ©« á®åà ¥ ª ª "
|
||||
#define KB_RECEIVED " ¯®«ã祮"
|
||||
#else
|
||||
#define DL_WINDOW_HEADER "Download Manager"
|
||||
@ -33,7 +33,7 @@ char aux[2048];
|
||||
|
||||
void Downloader()
|
||||
{
|
||||
int key;
|
||||
int key, i;
|
||||
char notify_message[4296];
|
||||
downloader_opened = 1;
|
||||
SetEventMask(0x27);
|
||||
@ -93,6 +93,8 @@ void Downloader()
|
||||
aux[strlen(#aux)-1] = 0;
|
||||
}
|
||||
strcat(#filepath, #aux+strrchr(#aux, '/'));
|
||||
|
||||
for (i=0; i<strlen(#filepath); i++) if(filepath[i]==':')||(filepath[i]=='?')filepath[i]='-';
|
||||
|
||||
if (WriteFile(downloader.data_downloaded_size, downloader.bufpointer, #filepath)==0)
|
||||
sprintf(#notify_message, "%s%s%s",FILE_SAVED_AS,#filepath,"' -Dt");
|
||||
|
Loading…
Reference in New Issue
Block a user