CN105224338A - Realize the multilingual method of router and web services end - Google Patents

Realize the multilingual method of router and web services end Download PDF

Info

Publication number
CN105224338A
CN105224338A CN201510714034.1A CN201510714034A CN105224338A CN 105224338 A CN105224338 A CN 105224338A CN 201510714034 A CN201510714034 A CN 201510714034A CN 105224338 A CN105224338 A CN 105224338A
Authority
CN
China
Prior art keywords
lang
former
router
family
main part
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
Application number
CN201510714034.1A
Other languages
Chinese (zh)
Other versions
CN105224338B (en
Inventor
陶成军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510714034.1A priority Critical patent/CN105224338B/en
Publication of CN105224338A publication Critical patent/CN105224338A/en
Application granted granted Critical
Publication of CN105224338B publication Critical patent/CN105224338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides and a kind ofly realize the multilingual method of router and web services end, said method comprising the steps of: a kind ofly realize the multilingual method of router, it is characterized in that, said method comprising the steps of: receive Request Packet; The main part of read requests package; Judge that whether described main part is containing lang.js; When described main part contains lang.js, then perform corresponding do_lang action; Judge whether the family of languages changes; And when the family of languages changes, then former lang.js is upgraded.The present invention, by the optimization of web services end, can make the multilingual translation of router not carry out at web services end, thus alleviate the pressure of web services end, save the time; Further, more newspeak is convenient, thus convenient expansion.

Description

Realize the multilingual method of router and web services end
Technical field
The present invention relates to electrical domain, particularly relate to and realize the multilingual method of router and web services end.
Background technology
Router (Router), be the equipment connecting each LAN (Local Area Network), wide area network in the Internet, it can automatically be selected according to the situation of channel and set route, with optimal path, sends signal by tandem.
Router is for connecting multiple network separated in logic also known as gateway device (Gateway), and so-called logical network represents an independent network or a subnet.When data are transferred to another subnet from a subnet, the routing function by router has come.Therefore, router has the function judging the network address and select IP path, it can in Multi net voting Interconnection Environment, set up and connect flexibly, available diverse packet is connected various subnet with media access method, router only accepts the information of source station or other routers, belongs to a kind of InterWorking Equipment of network layer.
At present, router is widely used in all trades and professions, and the product of various different class has become and realizes that various backbone network inside connects, the main force of key internetworking and backbone network and internet interconnection business.
Further, most router has been supported multi-lingual, and also have and only support single language, but, this is not easy to the expansion of market abroad, in order to more quick, supports new language easily.
Existing multi-lingual way is add the hook of <#...#> and so in the page of web services end substantially, when having request to come, web services end is responsible for translating corresponding word string, and translated data is returned to client, client reading displayed.
But the multilingual way of existing router at least has shortcoming: the pressure increasing web services end, ask each time all to need conversion one substring, suppose, when router has a lot of session number simultaneously, can produce a large amount of time-consuming operation, while, is inconvenient to expand.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide and a kind ofly realize the multilingual method of router and web services end, realizing multilingual the brought increase web services end of router for solving in prior art, be inconvenient to the problem expanded.
For achieving the above object and other relevant objects, an aspect of of the present present invention provides a kind of and realizes the multilingual method of router, said method comprising the steps of: said method comprising the steps of: receive Request Packet; The main part of read requests package; Judge that whether described main part is containing lang.js; When described main part contains lang.js, then perform corresponding do_lang action; Judge whether the family of languages changes; And when the family of languages changes, then former lang.js is upgraded.
In one embodiment of the present invention, also comprise: when the family of languages does not change, then judge whether former lang.js is empty; When former lang.js is empty, then former lang.js is upgraded.
In one embodiment of the present invention, when former lang.js is not empty, then former lang.js is not upgraded.
In one embodiment of the present invention, judge that the family of languages step that whether changes comprises: the content of the content of the lang.js in described main part and former lang.js compared, to judge whether the family of languages changes.
For achieving the above object and other relevant objects, another aspect of the present invention provides a kind of and realizes the multilingual web services end of router, comprising: receiver module, receives Request Packet; Read module, the main part of read requests package; First judge module, judges that whether described main part is containing lang.js; Execution module, when described main part contains lang.js, then performs corresponding do_lang action; Second judge module, judges whether the family of languages changes; And update module, when the family of languages changes, then former lang.js is upgraded.
In one embodiment of the present invention, also comprise the 3rd judge module, wherein, when the family of languages does not change, then described 3rd judge module judges whether former lang.js is empty; When former lang.js is empty, then described update module upgrades former lang.js.
In one embodiment of the present invention, when former lang.js is not empty, then former lang.js is not upgraded.
In one embodiment of the present invention, described second judge module judges whether the family of languages changes and comprises: the content of the content of the lang.js in described main part and former lang.js compared, to judge whether the family of languages changes.
In sum, of the present inventionly realize the multilingual method of router and web services end, by the optimization of web services end, the multilingual translation of router can be made not carry out at web services end, thus alleviate the pressure of web services end, save the time; Further, more newspeak is convenient, thus convenient expansion.
Accompanying drawing explanation
Fig. 1 is shown as and of the present inventionly realizes the multilingual method flow diagram of router.
Fig. 2 is shown as the module diagram realizing the multilingual web services end of router of the present invention.
Element numbers explanation
2web service end
21 receiver modules
22 read modules
23 first judge modules
24 execution modules
25 second judge modules
26 update module
27 the 3rd judge modules
S11 ~ S16 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, the schematic flow sheet realizing the multilingual method of router of the present invention.
First, in step s 11, receive Request Packet, namely receive client, such as browser, the Request Packet sent.
Then, in step s 12, the main part of read requests package.
Afterwards, in step s 13, judge that whether main part is containing lang.js.
Then, in step S14, when described main part contains lang.js, then perform corresponding do_lang action.
Then, in step S15, judge whether the family of languages changes.
In one embodiment, judge whether the family of languages changes, Ke Yishi, the content of the content of the lang.js in main part and former lang.js is compared, to judge whether the family of languages changes, such as, the family of languages in main part has English EN, then represent and change.
Afterwards, in step s 16, when the family of languages changes, then former lang.js is upgraded, and client will be back to after upgrading, and then allow client load.
For example, when the family of languages changes, such as, current is EN, then return the EN.js of content to client, load to allow client.
In one embodiment, step S17, S18 can also be comprised.
In step S17, determine whether sky, namely judge whether former lang.js is empty, if be empty, then enter step S16, otherwise enters step S18, namely do not upgrade.
Refer to Fig. 2, the module diagram realizing the multilingual web services end of router of the present invention.
Described Web service end 2 comprises receiver module 21, read module 22, first judge module 23, execution module 24, second judge module 25, update module 26 and the 3rd judge module 27.
Described receiver module 21, for receiving Request Packet, namely receives client, such as browser, the Request Packet sent.
Described read module 22 is for the main part of read requests package.
Described first judge module 23 is for judging that whether main part is containing lang.js.
Described execution module 24 for when main part contains lang.js, then performs corresponding do_lang action.
Described second judge module 25 is for judging whether the family of languages changes.
In one embodiment, the second judge module 25 judges whether the family of languages changes, Ke Yishi, the content of the content of the lang.js in main part and former lang.js is compared, to judge whether the family of languages changes.
Described update module 26 for when the family of languages changes, then upgrades former lang.js, and will be back to client after upgrading, and then allows client load.
For example, when the family of languages changes, such as, current is EN, then return the EN.js of content to client, to allow client load, can certainly be updated to other Languages, such as Japanese JP.
Wherein, when the family of languages does not change, then the 3rd judge module 27 judges whether former lang.js is empty; When former lang.js is empty, then update module 26 upgrades former lang.js, and when former lang.js is not empty, does not then upgrade former lang.js.
In sum, of the present inventionly realize the multilingual method of router and web services end, by the optimization of web services end, the multilingual translation of router can be made not carry out at web services end, thus alleviate the pressure of web services end, save the time; Further, more newspeak is convenient, thus convenient expansion.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (8)

1. realize the method that router is multilingual, it is characterized in that, said method comprising the steps of:
Receive Request Packet;
The main part of read requests package;
Judge that whether described main part is containing lang.js;
When described main part contains lang.js, then perform corresponding do_lang action;
Judge whether the family of languages changes; And
When the family of languages changes, then former lang.js is upgraded.
2. according to claim 1ly realize the multilingual method of router, it is characterized in that: also comprise:
When the family of languages does not change, then judge whether former lang.js is empty;
When former lang.js is empty, then former lang.js is upgraded.
3. according to claim 2ly realize the multilingual method of router, it is characterized in that: when former lang.js is for time empty, then former lang.js is not upgraded.
4. according to claim 1ly realize the multilingual method of router, it is characterized in that: judge that the family of languages step that whether changes comprises:
The content of the content of the lang.js in described main part and former lang.js is compared, to judge whether the family of languages changes.
5. realize the web services end that router is multilingual, it is characterized in that, comprising:
Receiver module, receives Request Packet;
Read module, the main part of read requests package;
First judge module, judges that whether described main part is containing lang.js;
Execution module, when described main part contains lang.js, then performs corresponding do_lang action;
Second judge module, judges whether the family of languages changes; And
Update module, when the family of languages changes, then upgrades former lang.js.
6. according to claim 5ly realize the multilingual web services end of router, it is characterized in that: also comprise the 3rd judge module, wherein,
When the family of languages does not change, then described 3rd judge module judges whether former lang.js is empty;
When former lang.js is empty, then described update module upgrades former lang.js.
7. according to claim 6ly realize the multilingual web services end of router, it is characterized in that: when former lang.js is for time empty, then former lang.js is not upgraded.
8. according to claim 5ly realize the multilingual web services end of router, it is characterized in that: described second judge module judges whether the family of languages changes and comprises: the content of the content of the lang.js in described main part and former lang.js compared, to judge whether the family of languages changes.
CN201510714034.1A 2015-10-28 2015-10-28 Realize router multilingual method and web services end Active CN105224338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510714034.1A CN105224338B (en) 2015-10-28 2015-10-28 Realize router multilingual method and web services end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510714034.1A CN105224338B (en) 2015-10-28 2015-10-28 Realize router multilingual method and web services end

Publications (2)

Publication Number Publication Date
CN105224338A true CN105224338A (en) 2016-01-06
CN105224338B CN105224338B (en) 2018-07-24

Family

ID=54993335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510714034.1A Active CN105224338B (en) 2015-10-28 2015-10-28 Realize router multilingual method and web services end

Country Status (1)

Country Link
CN (1) CN105224338B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242409A (en) * 2008-01-18 2008-08-13 南京邮电大学 An efficient filtering method for multi-language network data packets
US20090028110A1 (en) * 2007-07-27 2009-01-29 Anthropedia International Co., Ltd. Seamless Establishment and Maintenance of Network Connections for Mobile Applications
CN201995143U (en) * 2011-01-12 2011-09-28 扬州万事通通讯电子发展有限公司 Multi-language multi-type wireless router and wireless communication system
CN104424531A (en) * 2013-09-06 2015-03-18 南京贝亚美迪多媒体科技有限公司 Multi-language order processing system and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090028110A1 (en) * 2007-07-27 2009-01-29 Anthropedia International Co., Ltd. Seamless Establishment and Maintenance of Network Connections for Mobile Applications
CN101242409A (en) * 2008-01-18 2008-08-13 南京邮电大学 An efficient filtering method for multi-language network data packets
CN201995143U (en) * 2011-01-12 2011-09-28 扬州万事通通讯电子发展有限公司 Multi-language multi-type wireless router and wireless communication system
CN104424531A (en) * 2013-09-06 2015-03-18 南京贝亚美迪多媒体科技有限公司 Multi-language order processing system and method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪丽才: "多语言Web网站的框架设计与实现", 《软件开发与应用》 *

Also Published As

Publication number Publication date
CN105224338B (en) 2018-07-24

Similar Documents

Publication Publication Date Title
US7496497B2 (en) Method and system for selecting web site home page by extracting site language cookie stored in an access device to identify directional information item
US9729499B2 (en) Browser and method for domain name resolution by the same
WO2016029821A1 (en) Method and device for creating virtual network instance
CN103581232B (en) Web page transmission, web page display device and comprise the system of this device
US10171294B2 (en) Information processing device and system design support method
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN113141405B (en) Service access method, middleware system, electronic device, and storage medium
WO2022267175A1 (en) Information processing method and apparatus, and computer device and storage medium
US11398981B2 (en) Path creation method and device for network on chip and electronic apparatus
CN111586097A (en) Network request processing method, computing device and storage medium
CN109697020A (en) A kind of date storage method, server and system
US9762700B2 (en) Client-side aggregation of nested resource dependencies
CN104267941A (en) Dynamic responsive web generation method and device
CN113761871A (en) Rich text rendering method and device, electronic equipment and storage medium
CN107092494B (en) Method and device for accessing APK (android Package) resource
CN106777144A (en) A kind of server switching method and device
CN105224338A (en) Realize the multilingual method of router and web services end
WO2023083071A1 (en) View interaction method and apparatus, electronic device, and computer readable medium
KR102407941B1 (en) User interface generation method of electronic device calling function or procedure of external device based on remote procedure call(rpc), program and electronic device thereof
CN109710604A (en) Data processing method, device, system, computer readable storage medium
CN109344351A (en) Webpage loading method, intermediate server and webpage loading system
CN105589870B (en) Method and system for filtering webpage advertisements
CN106202104A (en) The correlation technique of the opening speed of the optimization aim page and device
CN115022185A (en) Topological graph display method and device
CN110858240A (en) Front-end module loading method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201224

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 No. 3666 Sixian Road, Songjiang District, Shanghai

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211201

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd