From 164d94cfb716895c8bab533a972fc67feaaa88c9 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Mon, 10 Feb 2014 18:36:47 +0000 Subject: [PATCH] HTMLv: request pages in native language (only english and russian for now) git-svn-id: svn://kolibrios.org@4571 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/browser/HTMLv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/cmm/browser/HTMLv.c b/programs/cmm/browser/HTMLv.c index f3ba5fdcb3..9455139857 100644 --- a/programs/cmm/browser/HTMLv.c +++ b/programs/cmm/browser/HTMLv.c @@ -35,12 +35,14 @@ ?define T_LAST_SLIDE "Это последний слайд" char loading[] = "Загрузка страницы...
"; unsigned char page_not_found[] = FROM "html\page_not_found_ru.htm"; + char accept_language[]= "Accept-Language: ru\n\0"; #else char version[]=" Text-based Browser 0.99.67"; ?define IMAGES_CACHE_CLEARED "Images cache cleared" ?define T_LAST_SLIDE "This slide is the last" char loading[] = "Loading...
"; unsigned char page_not_found[] = FROM "html\page_not_found_en.htm"; + char accept_language[]= "Accept-Language: en\n\0"; #endif byte native_http=1; @@ -370,7 +372,7 @@ void Scan(int id) return; case HOME: - strcpy(#editURL, "http://kolibrios.org/en/index.htm"); + strcpy(#editURL, "http://kolibrios.org/"); case GOTOURL: case 0x0D: //enter if ((strstr(#editURL,"ttp://")==0) && (editURL[0]!='/')) strcpy(#URL,"http://"); else URL[0] = 0; @@ -492,7 +494,7 @@ void OpenPage() { if (native_http) { - http_get stdcall (#URL, 0); + http_get stdcall (#URL, #accept_language); http_transfer = EAX; IF (http_transfer < 0) notify("Error from HTTP lib"); }