CN101957846A - Method and system for automatically setting page language by mobile terminal browser - Google Patents
Method and system for automatically setting page language by mobile terminal browser Download PDFInfo
- Publication number
- CN101957846A CN101957846A CN201010286451.8A CN201010286451A CN101957846A CN 101957846 A CN101957846 A CN 101957846A CN 201010286451 A CN201010286451 A CN 201010286451A CN 101957846 A CN101957846 A CN 101957846A
- Authority
- CN
- China
- Prior art keywords
- language
- browser
- value
- page
- precedence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention provides a method for automatically setting a page language by a mobile terminal browser. The method comprises the following steps of: acquiring relevant information of a user by using the browser and neglecting the default language value of a mobile terminal; determining a precedence language value according to the relevant information of the user and a preset weight of the default language value of a browser edition and writing the precedence language value into a language request header so as to generate language request header data; and transmitting the language request header data to a webpage server and receiving page contents of a corresponding language edition. The invention also provides a system for automatically setting the page language by the mobile terminal browser. The system comprises an information acquisition unit, an information analysis unit, a request header reset unit and a data interaction unit. Through the implementation of the technical scheme of the invention, a mobile phone browser determines the precedence language value by acquiring the relevant information of the user so as to provide the webpage contents of a corresponding language edition for the user and meet the requirement of the user on the page language edition when a webpage is browsed.
Description
Technical field:
The present invention relates to the method and system that a kind of browser is provided with page language automatically, particularly a kind of browser of serving portable terminal is provided with the method and system of page language automatically.
Background technology:
Along with the fast development of Internet technology, many large-scale websites have been realized the internationalization technology of website one after another, promptly return the web site contents of corresponding language version according to the language message of client.Client browser is when server sends request of access, the language message that is provided with in the browser is added in the request as request header (accept-language), send to server in the lump, the language message of server identification request header is returned the web site contents of corresponding language version according to language message.
Above-mentioned technology is suitable equally in mobile phone browser.Yet the default language value of mobile phone browser is set by the developer often, can not be set by user oneself as the PC browser.Thereby cell phone system also only can be judged the default language value of mobile phone browser and generate the accept-language value, popular in the market mobile phone has part to have smuggled goods, the situation of correcting machine, this class mobile phone much all cracks Chinesizing (great majority were English edition originally) by the businessman to cell phone software, yet but there is not Chinese information in the default language value of mobile phone browser, the accept-language that causes sending in the request still is English, can't return the Chinese page.In addition, what domestic most mobile phone manufacturer adopted all is the Mtk platform, there is not the uniform communication standard between each manufacturer, after particularly using the java virtual machine (part carries browser and need use the java function), can't judge correct accept-language information fully, cause the page to return mistake.
At present, can carry out the judgement of cell-phone language according to certain logic in the part mobile phone, but its Rule of judgment is single, can't meet consumers' demand: its cell phone system only can carry out the accept-language value to the mobile phone default language and judge, can't user's details be judged as region, web page browsing custom, speech habits etc.
Summary of the invention:
The objective of the invention is especially to serving the method and system that page language is set automatically of portable terminal, provides a kind of more perfect technical solution in order to overcome the shortcoming that existing browser is provided with the method and system of page language automatically.
The invention provides the method that a kind of browser of mobile terminal is provided with page language automatically, comprising:
Browser obtains user related information, ignores the default language value of portable terminal;
The weight that presets according to the default language value of described user related information and browser version is determined the precedence language value, described precedence language value is write in the language request head production language request header data;
A described language request data are sent to web page server, and receive the content of pages of corresponding language version.
Wherein, described user related information comprises: the GPS information data of the network operator information of portable terminal, portable terminal, IP database.
Wherein, the default language value of described browser version presets the weight maximum.
Wherein, described basis presets weight and determines that the precedence language value further comprises: the pairing weight of each languages is calculated and compared, the languages of weight proportion maximum are defined as the precedence language value.
Wherein, after described browser sent to web page server with a described language request data, described server was discerned the language value in the described language request head, return with described language request head in the content of pages of identical language version.
The present invention also provides a kind of browser of mobile terminal that the system of page language is set automatically, comprising:
Information acquisition unit: be used for when the browser initialization, obtaining user related information;
Information analysis unit: ignore the default language value of portable terminal, and determine the precedence language value according to the weight that presets of the default language value of described user related information and browser version;
Request header reset cell: described precedence language value is write in the language request head production language request header data;
Data interaction unit: be used for a described language request data are sent to web page server, and receive the content of pages of corresponding language version.
Wherein, described user related information comprises: the GPS information data of the network operator information of portable terminal, portable terminal, IP database.
Wherein, the default language value of described browser version presets the weight maximum.
Wherein, described basis presets weight and determines that the precedence language value further comprises: the pairing weight of each languages is calculated and compared, the languages of weight proportion maximum are defined as the precedence language value.
Wherein, in described data interaction unit, after described browser sent to web page server with a language request data, described server was discerned the language value in the described language request head, return with described language request head in the content of pages of identical language version.
By implementing technical scheme of the present invention, mobile phone browser is by obtaining cellphone subscriber's relevant information, and and the default language value of browser version carry out weight relatively, determine a kind of precedence language value, the web page contents of corresponding language version is provided for the user.The present invention rationally judges URP information by rationally and use unified standard to carry out specification request, return the correct page language, has satisfied user's demand to the page language version when browsing page.
Description of drawings:
Fig. 1 is provided with the synoptic diagram of the method for page language automatically for browser of mobile terminal;
Fig. 2 is provided with the process flow diagram of the system of page language automatically for browser of mobile terminal.
Embodiment:
Describe the specific embodiment of the present invention in detail below in conjunction with accompanying drawing.
Fig. 1 shows the process flow diagram that browser of mobile terminal is provided with the method for page language automatically.Employed language request head is accept-language in the present embodiment.Accept-language is one of request header data that meet the W3C standard, has comprised the language message that the user uses, and web page server can judge this information, return with the accept-language request in identical language, make things convenient for the user to read.
As shown in Figure 1, in step S1, the user logins browser of mobile terminal, and browser of mobile terminal is carried out initialization.In step S2, described browser obtains user related information and accept-language data.Wherein, the SIM card of described browser identification mobile phone is obtained the user related informations such as GPS information data, IP database of network operator information, the portable terminal of portable terminal.
In step S3, described browser is ignored the default language value of portable terminal, and determine the precedence language value: when the user imports the target network address according to the weight that presets of the default language value of described user related information and browser version, when sending request of access, browser can append in the request by automatic production language request header (accept-language), original language value in the described language request head is the default language value of portable terminal, and this default language value has the highest priority.Described browser is ignored this default language value.
The default language value of browser version is the language version of user's selected browser software when browser software is installed, as Chinese edition, English edition, the Russian edition, Vietnam's version or the like.Described browser has preestablished the default language value of described browser version and the weight of each relevant information of user, the default language value of wherein said browser version preset the weight maximum.After described browser calculates the pairing weight of each languages and compares, the languages of weight proportion maximum are defined as the precedence language value.
For example, weight can be set at respectively: the network operator information 35% of browser version default language value 40%, portable terminal, the GPS information data 15% of portable terminal and IP database 10%.The default language value of supposing this mobile phone is for English, and the language version of browser software is Vietnam's version, and the user uses this mobile phone within Chinese territory, and the Virtual network operator of mobile phone is Chinese company.Then browser is at first ignored the default language value English of mobile phone, again other parameter weights are calculated comparison: at this moment, because the GPS information data of network operator information, portable terminal and IP database are Chinese, the weight proportion of Chinese is 60%, and the weight of Vietnam's literary composition, only be the weight 40% of browser version default language value, then Chinese can be defined as the precedence language value.When weight was set, the weight of each parameter is provided with all can realize purpose of the present invention less than 50%, is not limited to the parameter setting in the above-mentioned example.
In step S4, described browser writes described precedence language value among the accept-language, finally obtains the accept-language that the user needs, production language request header data.
In step S5, described browser carries out data interaction by the server of special channel and system of basic unit and the page of being browsed, described accept-language data are sent to the server of the page of being browsed, described server is by the language value in the identifiable language request header, return with described language request head in the content of pages of identical language version give described browser.(step S6).
Fig. 2 shows the synoptic diagram that browser of mobile terminal is provided with the system of page language automatically.As shown in Figure 2, the system that browser of mobile terminal is provided with page language automatically comprises: information acquisition unit 1, information analysis unit 2, request header reset cell 3 and data interaction unit 4.Information acquisition unit 1, information analysis unit 2, request header reset cell 3, data interaction unit 4 and CPU5 are connected by data bus 6.CPU5 is by data bus 6 control information collecting units 1, the operation of information analysis unit 2, request header reset cell 3 and data interaction unit 4.
The default language value of portable terminal is ignored in information analysis unit 2, and according to the precedence language value that weight is determined the user that presets of the default language value of described user related information and browser version.Wherein, the default language value of described browser version presets the weight maximum.When weight was set, the weight of each parameter is provided with all can realize purpose of the present invention less than 50%.
Request header reset cell 3 writes determined precedence language value in the above-mentioned information analysis unit 2 among the accept-language, finally obtains the accept-language that the user needs, production language request header data.
By implementing technical scheme of the present invention, mobile phone browser is by obtaining cellphone subscriber's relevant information, and and the default language value of browser version carry out weight relatively, determine a kind of precedence language value, the web page contents of corresponding language version is provided for the user.The present invention carries out specification request by rationally also using unified standard, rationally judge URP information, reduce the user because of other extraneous factors such as resource or network cause returning the situation of linguistic errors, satisfied user's demand to the page language version when browsing page.
Aforesaid detailed description and accompanying drawing are undertaken by literal interpretation and diagram, and its purpose does not lie in the protection domain that limits claim.Each mutation of embodiment in this instructions is apparent for those of ordinary skill, and is in the protection domain of claim and equivalent technologies thereof.
Claims (10)
1. a browser of mobile terminal is provided with the method for page language automatically, comprising:
Browser obtains user related information, ignores the default language value of portable terminal;
The weight that presets according to the default language value of described user related information and browser version is determined the precedence language value, described precedence language value is write in the language request head production language request header data;
A described language request data are sent to web page server, and receive the content of pages of corresponding language version.
2. the method that page language is set automatically according to claim 1 is characterized in that, described user related information comprises: the GPS information data of the network operator information of portable terminal, portable terminal, IP database.
3. the method that page language is set automatically according to claim 1 is characterized in that, the default language value of described browser version preset the weight maximum.
4. the method that page language is set automatically according to claim 1, it is characterized in that, described basis presets weight and determines that the precedence language value further comprises: the pairing weight of each languages is calculated and compared, the languages of weight proportion maximum are defined as the precedence language value.
5. the method that page language is set automatically according to claim 1, it is characterized in that, after described browser sends to web page server with a described language request data, described server is discerned the language value in the described language request head, return with described language request head in the content of pages of identical language version.
6. a browser of mobile terminal is provided with the system of page language automatically, comprising:
Information acquisition unit: be used for when the browser initialization, obtaining user related information;
Information analysis unit: ignore the default language value of portable terminal, and determine the precedence language value according to the weight that presets of the default language value of described user related information and browser version;
Request header reset cell: described precedence language value is write in the language request head production language request header data;
Data interaction unit: be used for a described language request data are sent to web page server, and receive the content of pages of corresponding language version.
7. the system that page language is set automatically according to claim 6 is characterized in that, described user related information comprises: the GPS information data of the network operator information of portable terminal, portable terminal, IP database.
8. the system that page language is set automatically according to claim 6 is characterized in that, the default language value of described browser version preset the weight maximum.
9. the system that page language is set automatically according to claim 6, it is characterized in that, described basis presets weight and determines that the precedence language value further comprises: the pairing weight of each languages is calculated and compared, the languages of weight proportion maximum are defined as the precedence language value.
10. the system that page language is set automatically according to claim 6, it is characterized in that, in described data interaction unit, after described browser sends to web page server with a language request data, described server is discerned the language value in the described language request head, return with described language request head in the content of pages of identical language version.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102864518A CN101957846B (en) | 2010-09-19 | 2010-09-19 | Method and system for automatically setting page language by mobile terminal browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102864518A CN101957846B (en) | 2010-09-19 | 2010-09-19 | Method and system for automatically setting page language by mobile terminal browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101957846A true CN101957846A (en) | 2011-01-26 |
CN101957846B CN101957846B (en) | 2012-07-04 |
Family
ID=43485176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102864518A Active CN101957846B (en) | 2010-09-19 | 2010-09-19 | Method and system for automatically setting page language by mobile terminal browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101957846B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102323937A (en) * | 2011-08-31 | 2012-01-18 | 百度在线网络技术(北京)有限公司 | Method and equipment for providing search result |
CN103377206A (en) * | 2012-04-18 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Page content displaying method and browser |
CN104503987A (en) * | 2014-12-02 | 2015-04-08 | 深圳市金立通信设备有限公司 | Terminal |
WO2015078005A1 (en) * | 2013-11-29 | 2015-06-04 | 华为终端有限公司 | Method and apparatus for obtaining network resources |
CN104750262A (en) * | 2013-12-27 | 2015-07-01 | 纬创资通股份有限公司 | method for providing input method and electronic device thereof |
CN105488041A (en) * | 2014-09-15 | 2016-04-13 | 北京畅游天下网络技术有限公司 | Browser interface multi-language display method |
CN106569822A (en) * | 2016-11-03 | 2017-04-19 | 深圳市证通电子股份有限公司 | Language matching method and device of WEB system |
CN109669552A (en) * | 2018-12-28 | 2019-04-23 | 北京小米移动软件有限公司 | Conversation processing method, device and storage medium |
CN110413932A (en) * | 2019-07-31 | 2019-11-05 | 北京金山云网络技术有限公司 | Page display method, device, terminal, server, system and storage medium |
CN113515710A (en) * | 2021-04-23 | 2021-10-19 | 北京金山云网络技术有限公司 | Page information display method and device, electronic equipment and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034720B (en) * | 2012-12-13 | 2017-02-08 | 珠海赛纳打印科技股份有限公司 | Method, peripheral device and system for forming webpage |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1448866A (en) * | 2002-03-29 | 2003-10-15 | 富士施乐株式会社 | Web page providing method and apparatus and program |
CN1965310A (en) * | 2004-06-04 | 2007-05-16 | 拿丕.Com有限公司 | Native language internet address system |
CN1997992A (en) * | 2003-03-26 | 2007-07-11 | 维克托·西 | Online intelligent multilingual comparison-shop agents for wireless networks |
CN101567906A (en) * | 2009-05-25 | 2009-10-28 | 阿里巴巴集团控股有限公司 | Method and server for confirming the webpage content language |
-
2010
- 2010-09-19 CN CN2010102864518A patent/CN101957846B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1448866A (en) * | 2002-03-29 | 2003-10-15 | 富士施乐株式会社 | Web page providing method and apparatus and program |
CN1284102C (en) * | 2002-03-29 | 2006-11-08 | 富士施乐株式会社 | Web page providing method and apparatus and program |
CN1997992A (en) * | 2003-03-26 | 2007-07-11 | 维克托·西 | Online intelligent multilingual comparison-shop agents for wireless networks |
CN1965310A (en) * | 2004-06-04 | 2007-05-16 | 拿丕.Com有限公司 | Native language internet address system |
CN101567906A (en) * | 2009-05-25 | 2009-10-28 | 阿里巴巴集团控股有限公司 | Method and server for confirming the webpage content language |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102323937A (en) * | 2011-08-31 | 2012-01-18 | 百度在线网络技术(北京)有限公司 | Method and equipment for providing search result |
CN103377206A (en) * | 2012-04-18 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Page content displaying method and browser |
US9965468B2 (en) | 2013-11-29 | 2018-05-08 | Huawei Device Co., Ltd. | Method and apparatus for acquiring network resource |
CN105009115B (en) * | 2013-11-29 | 2019-06-11 | 华为终端有限公司 | The method and apparatus for obtaining Internet resources |
WO2015078005A1 (en) * | 2013-11-29 | 2015-06-04 | 华为终端有限公司 | Method and apparatus for obtaining network resources |
CN105009115A (en) * | 2013-11-29 | 2015-10-28 | 华为终端有限公司 | Method and apparatus for obtaining network resources |
CN104750262A (en) * | 2013-12-27 | 2015-07-01 | 纬创资通股份有限公司 | method for providing input method and electronic device thereof |
CN104750262B (en) * | 2013-12-27 | 2018-04-13 | 纬创资通股份有限公司 | Method for providing input method and electronic device thereof |
CN105488041A (en) * | 2014-09-15 | 2016-04-13 | 北京畅游天下网络技术有限公司 | Browser interface multi-language display method |
CN105488041B (en) * | 2014-09-15 | 2018-08-24 | 北京畅游天下网络技术有限公司 | The method for realizing the multilingual display of browser interface |
CN104503987A (en) * | 2014-12-02 | 2015-04-08 | 深圳市金立通信设备有限公司 | Terminal |
CN106569822A (en) * | 2016-11-03 | 2017-04-19 | 深圳市证通电子股份有限公司 | Language matching method and device of WEB system |
CN109669552A (en) * | 2018-12-28 | 2019-04-23 | 北京小米移动软件有限公司 | Conversation processing method, device and storage medium |
CN110413932A (en) * | 2019-07-31 | 2019-11-05 | 北京金山云网络技术有限公司 | Page display method, device, terminal, server, system and storage medium |
CN113515710A (en) * | 2021-04-23 | 2021-10-19 | 北京金山云网络技术有限公司 | Page information display method and device, electronic equipment and storage medium |
CN113515710B (en) * | 2021-04-23 | 2024-03-01 | 北京金山云网络技术有限公司 | Page information display method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101957846B (en) | 2012-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101957846B (en) | Method and system for automatically setting page language by mobile terminal browser | |
US8725849B1 (en) | Browser cache pre-population | |
KR101922037B1 (en) | Page operation processing method and apparatus, and terminal | |
CN103246657A (en) | Method and device for generating browser bookmark and method and device for browsing web page | |
EP2972822B1 (en) | System and method to enable web property access to a native application | |
CN103404182A (en) | Method and apparatus for preventing illegal access of business | |
CN102722551A (en) | Intelligent switching method and system for browser kernels | |
CN103067423A (en) | Browser kernel adaption method and browser | |
CN102541853A (en) | Method and device which are capable of obtaining application information by utilizing browser address bar | |
CN104301161A (en) | Computing method, computing device and communication system for business quality index | |
CN103237088A (en) | Corresponding relation library-based browsing method and system and cloud server | |
CN103593408A (en) | Method and device for acquiring user subscription resources | |
CN101945133A (en) | Data connecting method, device and system for mobile terminal | |
WO2014180154A1 (en) | A method and apparatus for data communication | |
CN102222095B (en) | Equipment for converting webpage to be displayed and method thereof | |
CN110555145A (en) | Browser-based webpage content acquisition system and acquisition method thereof | |
JP2008537202A (en) | A device-independent addressing system that accesses web pages via public mobile networks | |
CN104182402A (en) | Browser interface address bar input control method and browser interface address bar input control system | |
CN103440281A (en) | Method, device and equipment for acquiring download file | |
CN101888396B (en) | Method for calling equipment capacity, micro technical equipment and server | |
US20150317143A1 (en) | Method and apparatus for installing webpage application | |
EP2998885A1 (en) | Method and device for information search | |
CN105491064B (en) | A kind of method for pushing and equipment | |
KR101111898B1 (en) | Server system for reducing use of packet data use for smart phone | |
WO2014019467A1 (en) | A web browser operation method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200527 Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Alibaba (China) Co.,Ltd. Address before: 100080, Beijing, Suzhou Street, Haidian District No. 29 hospital, No. 18, building 16, Scandinavia Patentee before: UC MOBILE Ltd. |