CN106371822A - Universal cloud platform internationalization method and device - Google Patents
Universal cloud platform internationalization method and device Download PDFInfo
- Publication number
- CN106371822A CN106371822A CN201610703014.9A CN201610703014A CN106371822A CN 106371822 A CN106371822 A CN 106371822A CN 201610703014 A CN201610703014 A CN 201610703014A CN 106371822 A CN106371822 A CN 106371822A
- Authority
- CN
- China
- Prior art keywords
- cloud platform
- information
- selection
- internationalizing
- user
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a universal cloud platform internationalization method and device. The method comprises the following steps of: obtaining preferred language information of a client browser; and loading a corresponding resource file and drawing interface display of a cloud platform system according to the preferred language information. The device comprises an obtaining unit and a loading and drawing unit, wherein the obtaining unit is used for obtaining the preferred language information of the client browser; and the loading and drawing unit is used for loading the corresponding resource file and drawing the interface display of the cloud platform system according to the preferred language information. The universal cloud platform internalization method and device can effectively improve the cloud platform system internationalization efficiency and enhance the user experience.
Description
Technical field
The invention belongs to web information front-end technology field, more particularly to a kind of general cloud platform method for internationalizing and
Device.
Background technology
The internationalization of so-called software it is simply that during software development, can will tackle different parts of the world and country simultaneously
Access, and the access for various regions and nations, the page meeting client's reading habit accordingly or data are provided.International
Change and be also called the first letter that i18n:internationalization. " i " is word, " 18 " are single between " i " and " n "
The number of word, and " n " represents the last letter of this word.In computer realm, internationalization refers to be designed to adapt to
The process of the software of various regions and language environment.
At present the internationalization of cloud platform system mainly has an in the following manner:
(1) user manually selects language form
System language setting was manually selected before User logs in cloud platform system.The shortcoming of which is that each user steps on
During record, it is required for client and manually selects system language version, or when installing for the first time for user, input in system script
The default language of system, user setup is loaded down with trivial details and experiences poor;
(2) service end carries out the internationalization of platform
Browser and serve end program interact, between them interaction agreement be http agreement, each browser to
Service end sends request, and browser all can assemble a http message.This http message comprises heading and message body, heading
In can carry the relevant informations such as the country of user computer environment, language.Service end can will need internationalization to process according to this information
Word carry out language translation, and translated word is embedded in webpage, is last transmitted to browser and is shown, the party
Formula complex steps, internationalization efficiency is not also high.
Content of the invention
For solving the above problems, the invention provides a kind of general cloud platform method for internationalizing and device, can be effective
Improve the international efficiency of cloud platform system, the experience of lifting user.
A kind of general cloud platform method for internationalizing that the present invention provides includes:
Obtain client browser first-selection linguistic information;
According to described first-selection linguistic information, load corresponding resource file, draw the showing interface of cloud platform system.
Preferably, in above-mentioned general cloud platform method for internationalizing,
Described acquisition client browser first-selection linguistic information includes:
Access the initial phase of described cloud platform system in user, obtain client browser Table Header information;
By analyzing described Table Header information, obtain the first-selected language item of user browser setting, the Gao You of identifying user group
First level language.
Preferably, in above-mentioned general cloud platform method for internationalizing,
The corresponding resource file of described loading, the showing interface drawing cloud platform system includes:
Load effective language file, render the page completing described cloud platform system.
Preferably, in above-mentioned general cloud platform method for internationalizing,
Also include:
When client browser first-selection linguistic information disappearance, the ip address information of analysis subscription client;
Positioned according to described ip address information, obtained described first-selection linguistic information.
Preferably, in above-mentioned general cloud platform method for internationalizing,
Also include:
Analyze the code segment information of the page using binary coding;
Obtain described first-selection linguistic information using described coding information.
A kind of general cloud platform world gasifying device that the present invention provides includes:
Obtaining unit, for obtaining client browser first-selection linguistic information;
Load and drawing unit, for according to described first-selection linguistic information, loading corresponding resource file, drawing cloud platform
The showing interface of system.
Preferably, in above-mentioned general cloud platform world gasifying device,
Described obtaining unit includes:
First acquisition part, for accessing the initial phase of described cloud platform system in user, obtains Client browse
Device Table Header information;
First analysis component, for analyzing described Table Header information, obtains the first-selected language item of user browser setting, identification
The high priority language of customer group.
Preferably, in above-mentioned general cloud platform world gasifying device,
Described loading includes with drawing unit:
Load and rendering component, for loading effective language file, render the page completing described cloud platform system.
Preferably, in above-mentioned general cloud platform world gasifying device,
Described obtaining unit includes:
Second analysis component, for when client browser first-selection linguistic information lacks, analyzing the ip of subscription client
Address information;
Second acquisition part, for being positioned according to described ip address information, obtains described first-selection linguistic information.
Preferably, in above-mentioned general cloud platform world gasifying device,
Described obtaining unit includes:
3rd analysis component, for analyzing the code segment information of the page using binary coding;
3rd acquisition part, for obtaining described first-selection linguistic information using described coding information.
The above-mentioned general cloud platform method for internationalizing being provided by foregoing description, the present invention and device, due to elder generation
Obtain client browser first-selection linguistic information, then according to described first-selection linguistic information, load corresponding resource file, draw
The showing interface of cloud platform system, therefore, it is possible to effectively improve the international efficiency of cloud platform system, the experience of lifting user.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing providing obtains other accompanying drawings.
The flow chart of the first general cloud platform method for internationalizing that Fig. 1 provides for the embodiment of the present application;
The schematic diagram of the first general cloud platform world gasifying device that Fig. 2 provides for the embodiment of the present application.
Specific embodiment
The core concept of the present invention is to provide a kind of general cloud platform method for internationalizing and device, can effectively improve
The international efficiency of cloud platform system, the experience of lifting user.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
The first general cloud platform method for internationalizing that the embodiment of the present application provides is as shown in figure 1, Fig. 1 is real for the application
The flow chart applying the first general cloud platform method for internationalizing of example offer, the method comprises the steps:
S1: obtain client browser first-selection linguistic information;
It should be noted that the method mainly considers the multiformity of client operating system and browser client, in conjunction with
The feature of most browsers, carries out a series of internationalization based on client to cloud platform system.
S2: according to described first-selection linguistic information, load corresponding resource file, draw the showing interface of cloud platform system.
In this case it is possible to lift the experience to product for the user, it is to avoid in program deployment or installation process
Tedious steps, effectively improve deployment efficiency of the practice.
The first the general cloud platform method for internationalizing above-mentioned being provided by foregoing description, the embodiment of the present application,
Due to first obtaining client browser first-selection linguistic information, then according to described first-selection linguistic information, load corresponding resource literary composition
Part, draws the showing interface of cloud platform system, therefore, it is possible to effectively improve the international efficiency of cloud platform system, lifting user's
Experience.
The general cloud platform method for internationalizing of second that the embodiment of the present application provides, is in the first general cloud above-mentioned
On the basis of platform method for internationalizing, also include following technical characteristic:
Described acquisition client browser first-selection linguistic information includes:
Access the initial phase of described cloud platform system in user, obtain client browser Table Header information;
By analyzing described Table Header information, obtain the first-selected language item of user browser setting, the Gao You of identifying user group
First level language.
The mode of this acquisition browser first-selection language is more universal and effective, more can quickly identify first-selected language
Yan Xiang, thus provide foundation for internationalization.
The third general cloud platform method for internationalizing that the embodiment of the present application provides, is in the general cloud of above-mentioned second
On the basis of platform method for internationalizing, also include following technical characteristic:
The corresponding resource file of described loading, the showing interface drawing cloud platform system includes:
Load effective language file, render the page completing described cloud platform system.
In this case, only load effective language file, avoid the loading of other inactive files it becomes possible to enter
One step improves the response speed of plateform system, after User logs in cloud platform system, renders page internationalization document presentation.
The 4th kind of general cloud platform method for internationalizing that the embodiment of the present application provides, is in the third general cloud above-mentioned
On the basis of platform method for internationalizing, also include following technical characteristic:
When client browser first-selection linguistic information disappearance, the ip address information of analysis subscription client;
Positioned according to described ip address information, obtained described first-selection linguistic information.
This is another kind of candidate's measure, can obtain the current position of user using the ip address of client, and user works as
Front position will substantially correspond to a kind of user and commonly use language, just can obtain user's first-selection language letter by means of which well
Breath, effectively supplements as one kind, enables to internationalization and be smoothed out.
The 5th kind of general cloud platform method for internationalizing that the embodiment of the present application provides, is in above-mentioned 4th kind of general cloud
On the basis of platform method for internationalizing, also include following technical characteristic:
Analyze the code segment information of the page using binary coding;
Obtain described first-selection linguistic information using described coding information.
If it should be noted that language preference disappearance in client browser, or the language of user's malice setting is first
Option is not supported, needs to carry out auxiliary setting by other information, and the mode of this page analysis is it is also possible to ensure effectively to obtain
Obtain the language of client browser and the preferred language of user so that internationalization is smoothed out.
The first general cloud platform world gasifying device that the embodiment of the present application provides is as shown in Fig. 2 Fig. 2 is real for the application
Apply the schematic diagram of the first general cloud platform world gasifying device of example offer, this device includes:
Obtaining unit 1, for obtaining client browser first-selection linguistic information;
The main multiformity considering client operating system and browser client, in conjunction with the spy of most browsers
Point, carries out a series of internationalization based on client to cloud platform system.
Load and drawing unit 2, for according to described first-selection linguistic information, loading corresponding resource file, draw cloud and put down
The showing interface of platform system.
In this case it is possible to lift the experience to product for the user, it is to avoid in program deployment or installation process
Tedious steps, effectively improve deployment efficiency of the practice.
By foregoing description, the first general cloud platform world gasifying device above-mentioned that the embodiment of the present application provides,
The international efficiency of cloud platform system, the experience of lifting user can be effectively improved.
The embodiment of the present application provide second general cloud platform the world gasifying device, be in the first general cloud above-mentioned
On the basis of the gasifying device of the platform world, also include following technical characteristic:
Described obtaining unit includes:
First acquisition part, for accessing the initial phase of described cloud platform system in user, obtains Client browse
Device Table Header information;
First analysis component, for analyzing described Table Header information, obtains the first-selected language item of user browser setting, identification
The high priority language of customer group.
The mode of this acquisition browser first-selection language is more universal and effective, more can quickly identify first-selected language
Yan Xiang, thus provide foundation for internationalization.
The third general cloud platform world gasifying device that the embodiment of the present application provides, is in the general cloud of above-mentioned second
On the basis of the gasifying device of the platform world, also include following technical characteristic:
Described loading includes with drawing unit:
Load and rendering component, for loading effective language file, render the page completing described cloud platform system.
In this case, only load effective language file, avoid the loading of other inactive files it becomes possible to enter
One step improves the response speed of plateform system, after User logs in cloud platform system, renders page internationalization document presentation.
The 4th kind of general cloud platform world gasifying device that the embodiment of the present application provides, is in the third general cloud above-mentioned
On the basis of the gasifying device of the platform world, also include following technical characteristic:
Described obtaining unit includes:
Second analysis component, for when client browser first-selection linguistic information lacks, analyzing the ip of subscription client
Address information;
Second acquisition part, for being positioned according to described ip address information, obtains described first-selection linguistic information.
This is another kind of candidate's measure, can obtain the current position of user using the ip address of client, and user works as
Front position will substantially correspond to a kind of user and commonly use language, just can obtain user's first-selection language letter by means of which well
Breath, effectively supplements as one kind, enables to internationalization and be smoothed out.
The 5th kind of general cloud platform world gasifying device that the embodiment of the present application provides, is in above-mentioned 4th kind of general cloud
On the basis of the gasifying device of the platform world, also include following technical characteristic:
Described obtaining unit includes:
3rd analysis component, for analyzing the code segment information of the page using binary coding;
3rd acquisition part, for obtaining described first-selection linguistic information using described coding information.
If it should be noted that language preference disappearance in client browser, or the language of user's malice setting is first
Option is not supported, needs to carry out auxiliary setting by other information, and the mode of this page analysis is it is also possible to ensure effectively to obtain
Obtain the language of client browser and the preferred language of user so that internationalization is smoothed out.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple modifications to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can be realized without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and be to fit to and principles disclosed herein and features of novelty phase one
The scope the widest causing.
Claims (10)
1. a kind of general cloud platform method for internationalizing is it is characterised in that include:
Obtain client browser first-selection linguistic information;
According to described first-selection linguistic information, load corresponding resource file, draw the showing interface of cloud platform system.
2. general cloud platform method for internationalizing according to claim 1 it is characterised in that
Described acquisition client browser first-selection linguistic information includes:
Access the initial phase of described cloud platform system in user, obtain client browser Table Header information;
By analyzing described Table Header information, obtain the first-selected language item of user browser setting, the high priority of identifying user group
Language.
3. general cloud platform method for internationalizing according to claim 2 it is characterised in that
The corresponding resource file of described loading, the showing interface drawing cloud platform system includes:
Load effective language file, render the page completing described cloud platform system.
4. general cloud platform method for internationalizing according to claim 3 is it is characterised in that also include:
When client browser first-selection linguistic information disappearance, the ip address information of analysis subscription client;
Positioned according to described ip address information, obtained described first-selection linguistic information.
5. general cloud platform method for internationalizing according to claim 4 is it is characterised in that also include:
Analyze the code segment information of the page using binary coding;
Obtain described first-selection linguistic information using described coding information.
6. a kind of general cloud platform world gasifying device is it is characterised in that include:
Obtaining unit, for obtaining client browser first-selection linguistic information;
Load and drawing unit, for according to described first-selection linguistic information, loading corresponding resource file, drawing cloud platform system
Showing interface.
7. general cloud platform world gasifying device according to claim 6 it is characterised in that
Described obtaining unit includes:
First acquisition part, for accessing the initial phase of described cloud platform system in user, obtains client browser table
Header;
First analysis component, for analyzing described Table Header information, obtains the first-selected language item of user browser setting, identifying user
The high priority language of group.
8. general cloud platform world gasifying device according to claim 7 it is characterised in that
Described loading includes with drawing unit:
Load and rendering component, for loading effective language file, render the page completing described cloud platform system.
9. general cloud platform method for internationalizing according to claim 8 is it is characterised in that described obtaining unit includes:
Second analysis component, for when client browser first-selection linguistic information lacks, analyzing the ip address of subscription client
Information;
Second acquisition part, for being positioned according to described ip address information, obtains described first-selection linguistic information.
10. general cloud platform world gasifying device according to claim 9 is it is characterised in that described obtaining unit includes:
3rd analysis component, for analyzing the code segment information of the page using binary coding;
3rd acquisition part, for obtaining described first-selection linguistic information using described coding information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610703014.9A CN106371822A (en) | 2016-08-22 | 2016-08-22 | Universal cloud platform internationalization method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610703014.9A CN106371822A (en) | 2016-08-22 | 2016-08-22 | Universal cloud platform internationalization method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106371822A true CN106371822A (en) | 2017-02-01 |
Family
ID=57878404
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610703014.9A Pending CN106371822A (en) | 2016-08-22 | 2016-08-22 | Universal cloud platform internationalization method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106371822A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108984170A (en) * | 2017-06-02 | 2018-12-11 | 阿里巴巴集团控股有限公司 | The multilingual rendering method of the H5 page and device |
CN111177318A (en) * | 2019-12-23 | 2020-05-19 | 杭州安恒信息技术股份有限公司 | Method, device and computer readable storage medium for executing international business |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894025A (en) * | 2010-07-26 | 2010-11-24 | 沈阳酷洲软件开发有限公司 | Dynamic electronic information internationalizing method |
US20110191458A1 (en) * | 2001-01-18 | 2011-08-04 | Shang-Che Cheng | Globalization Management System and Method Therefor |
CN104714968A (en) * | 2013-12-16 | 2015-06-17 | 中国银联股份有限公司 | Method and device for internationalizing web page |
-
2016
- 2016-08-22 CN CN201610703014.9A patent/CN106371822A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110191458A1 (en) * | 2001-01-18 | 2011-08-04 | Shang-Che Cheng | Globalization Management System and Method Therefor |
CN101894025A (en) * | 2010-07-26 | 2010-11-24 | 沈阳酷洲软件开发有限公司 | Dynamic electronic information internationalizing method |
CN104714968A (en) * | 2013-12-16 | 2015-06-17 | 中国银联股份有限公司 | Method and device for internationalizing web page |
Non-Patent Citations (1)
Title |
---|
李宁 等: "《开发宝典丛书 Java Web编程实战宝典-JSP+Servlet+Struts 2+Hibernate+Spring+Ajax》", 30 September 2014, 清华大学出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108984170A (en) * | 2017-06-02 | 2018-12-11 | 阿里巴巴集团控股有限公司 | The multilingual rendering method of the H5 page and device |
CN108984170B (en) * | 2017-06-02 | 2021-10-22 | 创新先进技术有限公司 | H5 page multi-language rendering method and device |
CN111177318A (en) * | 2019-12-23 | 2020-05-19 | 杭州安恒信息技术股份有限公司 | Method, device and computer readable storage medium for executing international business |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI671677B (en) | Interactive processing method and device | |
CA3018196C (en) | Visual regresssion testing tool | |
US10417315B2 (en) | Configuring a page for drag and drop arrangement of content artifacts in a page development tool | |
JP5362588B2 (en) | Application-based copy and paste operations | |
US9535651B2 (en) | Co-browsing systems and methods | |
CN110808897A (en) | Proxy access method, user equipment, storage medium, device and system | |
CN109542427B (en) | System customization method and device, electronic equipment and storage medium | |
US20140344907A1 (en) | Auto login method and device | |
CN103729425B (en) | Operate response method, client, browser and system | |
CN105354014A (en) | Application interface rendering display method and apparatus | |
CN107688529B (en) | Component debugging method and device | |
WO2016177341A1 (en) | Interface calling method and device, and terminal | |
CN103729285A (en) | Method, device and system for testing web page | |
CN105045887A (en) | Mixed mode cross-domain data interaction system and method | |
CN102063316A (en) | Information-processing device, communication system, program, and information-processing method | |
CN101963992A (en) | Method and browser for increasing webpage display speed | |
CN110780868A (en) | Website development method, device, equipment and storage medium based on componentized template | |
CN105068802A (en) | Cross device running Web application software implementation system and method | |
CN104899203B (en) | Webpage generation method and device and terminal equipment | |
CN106371822A (en) | Universal cloud platform internationalization method and device | |
CN113887442A (en) | OCR training data generation method, device, equipment and medium | |
CN111240790B (en) | Multi-language adaptation method, device, client and storage medium for application | |
CN108345683A (en) | Webpage display process, device, terminal and storage medium | |
CN105739717B (en) | Data inputting method and device | |
US20190172263A1 (en) | Method and apparatus for augmenting reality |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170201 |