[go: up one dir, main page]

CN106371822A - Universal cloud platform internationalization method and device - Google Patents

Universal cloud platform internationalization method and device Download PDF

Info

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
internationalization
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
Application number
CN201610703014.9A
Other languages
Chinese (zh)
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201610703014.9A priority Critical patent/CN106371822A/en
Publication of CN106371822A publication Critical patent/CN106371822A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing 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 present application discloses a general cloud platform internationalization method and device. The method includes: obtaining the preferred language information of the client browser; according to the preferred language information, loading corresponding resource files and drawing the interface display of the cloud platform system. The device includes: an obtaining unit for obtaining the preferred language information of the client browser; a loading and drawing unit for loading corresponding resource files according to the preferred language information, and drawing the interface display of the cloud platform system. The above general cloud platform internationalization method and device provided in this application can effectively improve the efficiency of cloud platform system internationalization and improve user experience.

Description

一种通用的云平台国际化方法和装置A general cloud platform internationalization method and device

技术领域technical field

本发明属于web信息前端技术领域,特别是涉及一种通用的云平台国际化方法和装置。The invention belongs to the field of web information front-end technologies, and in particular relates to a general cloud platform internationalization method and device.

背景技术Background technique

所谓软件的国际化,就是软件开发时,要使其能同时应对世界不同地区和国家的访问,并针对不同地区和国家的访问,提供相应的符合来访者阅读习惯的页面或数据。国际化又称为i18n:internationalization.“i”为单词的第一个字母,“18”为“i”和“n”之间单词的个数,而“n”代表这个单词的最后一个字母。在计算机领域,国际化是指设计能够适应各种区域和语言环境的软件的过程。The so-called internationalization of software means that when software is developed, it must be able to respond to visits from different regions and countries in the world at the same time, and provide corresponding pages or data that meet the reading habits of visitors for visits from different regions and countries. Internationalization is also known as i18n: internationalization. "i" is the first letter of a word, "18" is the number of words between "i" and "n", and "n" represents the last letter of the word. In computing, internationalization refers to the process of designing software that can be adapted to various regional and language environments.

目前云平台系统的国际化主要是有以下方式:At present, the internationalization of the cloud platform system mainly has the following methods:

(1)用户手动选择语言类型(1) The user manually selects the language type

在用户登录云平台系统之前手动选择系统语言设置。该方式的缺点是每次用户登录时,都需要客户手动选择系统语言版本,或者在为用户初次安装时候,在系统脚本中输入系统的默认语言,用户设置繁琐且体验较差;Manually select the system language setting before the user logs into the cloud platform system. The disadvantage of this method is that each time the user logs in, the user needs to manually select the system language version, or enter the default language of the system in the system script when the user is first installed, the user setting is cumbersome and the experience is poor;

(2)服务端进行平台的国际化(2) The server carries out the internationalization of the platform

浏览器和服务端程序进行交互,它们之间交互的协议是HTTP协议,每次浏览器向服务端发送请求,浏览器都会组装一个HTTP报文。该HTTP报文包含报文头和报文体,报文头里会带有用户电脑环境的国家、语言等相关信息。服务端会根据该信息将需要国际化处理的文字进行语言翻译,并将翻译好的文字嵌入到网页里,最后发送给浏览器进行展示,该方式步骤繁琐,国际化效率也不高。The browser and the server program interact, and the protocol for interaction between them is the HTTP protocol. Every time the browser sends a request to the server, the browser will assemble an HTTP message. The HTTP message includes a message header and a message body, and the message header includes relevant information such as the country and language of the user's computer environment. The server will translate the text that needs to be internationalized according to the information, embed the translated text into the webpage, and finally send it to the browser for display. This method is cumbersome and the internationalization efficiency is not high.

发明内容Contents of the invention

为解决上述问题,本发明提供了一种通用的云平台国际化方法和装置,能够有效提高云平台系统国际化的效率,提升用户的体验。In order to solve the above problems, the present invention provides a general cloud platform internationalization method and device, which can effectively improve the efficiency of cloud platform system internationalization and improve user experience.

本发明提供的一种通用的云平台国际化方法包括:A general cloud platform internationalization method provided by the present invention includes:

获得客户端浏览器首选语言信息;Obtain the preferred language information of the client browser;

根据所述首选语言信息,加载对应的资源文件,绘制云平台系统的界面展示。According to the preferred language information, load the corresponding resource file, and draw the interface display of the cloud platform system.

优选的,在上述通用的云平台国际化方法中,Preferably, in the above general cloud platform internationalization method,

所述获得客户端浏览器首选语言信息包括:The obtaining the preferred language information of the client browser includes:

在用户访问所述云平台系统的初始化阶段,获得客户端浏览器表头信息;Obtain the header information of the client browser during the initialization phase of the user's access to the cloud platform system;

通过分析所述表头信息,获得用户浏览器设置的首选语言项,识别用户群的高优先级语言。By analyzing the header information, the preferred language item set by the user's browser is obtained, and the high-priority language of the user group is identified.

优选的,在上述通用的云平台国际化方法中,Preferably, in the above general cloud platform internationalization method,

所述加载对应的资源文件,绘制云平台系统的界面展示包括:The loading of the corresponding resource file and drawing the interface display of the cloud platform system include:

加载有效的语言文件,渲染完成所述云平台系统的页面。Load a valid language file, and render the page of the cloud platform system.

优选的,在上述通用的云平台国际化方法中,Preferably, in the above general cloud platform internationalization method,

还包括:Also includes:

当客户端浏览器首选语言信息缺失时,分析用户客户端的IP地址信息;When the preferred language information of the client browser is missing, analyze the IP address information of the user client;

根据所述IP地址信息进行定位,获得所述首选语言信息。Positioning is performed according to the IP address information to obtain the preferred language information.

优选的,在上述通用的云平台国际化方法中,Preferably, in the above general cloud platform internationalization method,

还包括:Also includes:

利用二进制编码分析页面的部分编码信息;Use binary encoding to analyze part of the encoding information of the page;

利用所述编码信息获得所述首选语言信息。The preferred language information is obtained by using the encoding information.

本发明提供的一种通用的云平台国际化装置包括:A general cloud platform internationalization device provided by the present invention includes:

获得单元,用于获得客户端浏览器首选语言信息;The obtaining unit is used to obtain the preferred language information of the client browser;

加载和绘制单元,用于根据所述首选语言信息,加载对应的资源文件,绘制云平台系统的界面展示。The loading and drawing unit is configured to load corresponding resource files according to the preferred language information, and draw the interface display of the cloud platform system.

优选的,在上述通用的云平台国际化装置中,Preferably, in the above general cloud platform internationalization device,

所述获得单元包括:The obtaining unit includes:

第一获得部件,用于在用户访问所述云平台系统的初始化阶段,获得客户端浏览器表头信息;The first obtaining component is used to obtain the header information of the client browser during the initialization phase of the user's access to the cloud platform system;

第一分析部件,用于分析所述表头信息,获得用户浏览器设置的首选语言项,识别用户群的高优先级语言。The first analysis component is configured to analyze the header information, obtain the preferred language item set by the user's browser, and identify the high-priority language of the user group.

优选的,在上述通用的云平台国际化装置中,Preferably, in the above general cloud platform internationalization device,

所述加载和绘制单元包括:The loading and drawing unit includes:

加载和渲染部件,用于加载有效的语言文件,渲染完成所述云平台系统的页面。The loading and rendering component is used to load a valid language file and render the page of the cloud platform system.

优选的,在上述通用的云平台国际化装置中,Preferably, in the above general cloud platform internationalization device,

所述获得单元包括:The obtaining unit includes:

第二分析部件,用于当客户端浏览器首选语言信息缺失时,分析用户客户端的IP地址信息;The second analysis component is used to analyze the IP address information of the user client when the preferred language information of the client browser is missing;

第二获得部件,用于根据所述IP地址信息进行定位,获得所述首选语言信息。The second obtaining component is configured to perform positioning according to the IP address information, and obtain the preferred language information.

优选的,在上述通用的云平台国际化装置中,Preferably, in the above general cloud platform internationalization device,

所述获得单元包括:The obtaining unit includes:

第三分析部件,用于利用二进制编码分析页面的部分编码信息;The third analysis component is used to analyze part of the encoding information of the page by using binary encoding;

第三获得部件,用于利用所述编码信息获得所述首选语言信息。A third obtaining component is configured to use the encoding information to obtain the preferred language information.

通过上述描述可知,本发明提供的上述通用的云平台国际化方法和装置,由于先获得客户端浏览器首选语言信息,然后根据所述首选语言信息,加载对应的资源文件,绘制云平台系统的界面展示,因此能够有效提高云平台系统国际化的效率,提升用户的体验。It can be seen from the above description that the above-mentioned general cloud platform internationalization method and device provided by the present invention obtain the preferred language information of the client browser first, and then load the corresponding resource file according to the preferred language information to draw the cloud platform system. Interface display, so it can effectively improve the efficiency of cloud platform system internationalization and enhance user experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本申请实施例提供的第一种通用的云平台国际化方法的流程图;FIG. 1 is a flow chart of the first general cloud platform internationalization method provided by the embodiment of the present application;

图2为本申请实施例提供的第一种通用的云平台国际化装置的示意图。FIG. 2 is a schematic diagram of the first universal cloud platform internationalization device provided by the embodiment of the present application.

具体实施方式detailed description

本发明的核心思想在于提供一种通用的云平台国际化方法和装置,能够有效提高云平台系统国际化的效率,提升用户的体验。The core idea of the present invention is to provide a general cloud platform internationalization method and device, which can effectively improve the efficiency of cloud platform system internationalization and improve user experience.

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本申请实施例提供的第一种通用的云平台国际化方法如图1所示,图1为本申请实施例提供的第一种通用的云平台国际化方法的流程图,该方法包括如下步骤:The first general cloud platform internationalization method provided by the embodiment of the present application is shown in Figure 1, and Figure 1 is a flow chart of the first general cloud platform internationalization method provided by the embodiment of the present application, which includes the following steps :

S1:获得客户端浏览器首选语言信息;S1: Obtain the preferred language information of the client browser;

需要说明的是,该方法主要考虑客户端操作系统和浏览器客户端的多样性,结合绝大部分浏览器的特点,基于客户端对云平台系统进行一系列的国际化。It should be noted that this method mainly considers the diversity of client operating systems and browser clients, combines the characteristics of most browsers, and performs a series of internationalization of the cloud platform system based on the client.

S2:根据所述首选语言信息,加载对应的资源文件,绘制云平台系统的界面展示。S2: According to the preferred language information, load the corresponding resource file, and draw the interface display of the cloud platform system.

在这种情况下,就可以提升用户对产品的体验,避免在程序部署或安装过程中的繁琐步骤,有效提高部署实施效率。In this case, it is possible to improve the user's experience with the product, avoid cumbersome steps in the process of program deployment or installation, and effectively improve the efficiency of deployment and implementation.

通过上述描述可知,本申请实施例提供的上述第一种通用的云平台国际化方法,由于先获得客户端浏览器首选语言信息,然后根据所述首选语言信息,加载对应的资源文件,绘制云平台系统的界面展示,因此能够有效提高云平台系统国际化的效率,提升用户的体验。It can be seen from the above description that the above-mentioned first general cloud platform internationalization method provided by the embodiment of the present application obtains the preferred language information of the client browser first, and then loads the corresponding resource file according to the preferred language information to draw the cloud The interface display of the platform system can effectively improve the efficiency of the internationalization of the cloud platform system and enhance the user experience.

本申请实施例提供的第二种通用的云平台国际化方法,是在上述第一种通用的云平台国际化方法的基础上,还包括如下技术特征:The second general cloud platform internationalization method provided by the embodiment of the present application is based on the above-mentioned first general cloud platform internationalization method, and also includes the following technical features:

所述获得客户端浏览器首选语言信息包括:The obtaining the preferred language information of the client browser includes:

在用户访问所述云平台系统的初始化阶段,获得客户端浏览器表头信息;Obtain the header information of the client browser during the initialization phase of the user's access to the cloud platform system;

通过分析所述表头信息,获得用户浏览器设置的首选语言项,识别用户群的高优先级语言。By analyzing the header information, the preferred language item set by the user's browser is obtained, and the high-priority language of the user group is identified.

这种获取浏览器首选语言的方式较为普遍且有效,能够更为快速的识别出首选语言项,从而为国际化提供依据。This method of obtaining the browser's preferred language is relatively common and effective, and can identify the preferred language item more quickly, thereby providing a basis for internationalization.

本申请实施例提供的第三种通用的云平台国际化方法,是在上述第二种通用的云平台国际化方法的基础上,还包括如下技术特征:The third general cloud platform internationalization method provided by the embodiment of the present application is based on the above second general cloud platform internationalization method, and also includes the following technical features:

所述加载对应的资源文件,绘制云平台系统的界面展示包括:The loading of the corresponding resource file and drawing the interface display of the cloud platform system include:

加载有效的语言文件,渲染完成所述云平台系统的页面。Load a valid language file, and render the page of the cloud platform system.

在这种情况下,只加载有效的语言文件,就避免了其他无效文件的加载,就能够进一步提高平台系统的响应速度,在用户登录云平台系统之后,渲染页面国际化文件展示。In this case, only valid language files are loaded, avoiding the loading of other invalid files, and the response speed of the platform system can be further improved. After the user logs in to the cloud platform system, the internationalized file display of the page is rendered.

本申请实施例提供的第四种通用的云平台国际化方法,是在上述第三种通用的云平台国际化方法的基础上,还包括如下技术特征:The fourth general cloud platform internationalization method provided by the embodiment of the present application is based on the above third general cloud platform internationalization method, and also includes the following technical features:

当客户端浏览器首选语言信息缺失时,分析用户客户端的IP地址信息;When the preferred language information of the client browser is missing, analyze the IP address information of the user client;

根据所述IP地址信息进行定位,获得所述首选语言信息。Positioning is performed according to the IP address information to obtain the preferred language information.

这是另一种候选措施,利用客户端的IP地址能够得到用户当前的位置,而用户当前的位置就会基本对应一种用户常用语言,利用这种方式就能很好的得到用户首选语言信息,作为一种有效的补充,能够使得国际化顺利进行。This is another candidate measure. The current location of the user can be obtained by using the IP address of the client, and the current location of the user basically corresponds to a language commonly used by the user. Using this method, the user's preferred language information can be obtained very well. As an effective supplement, it can make the internationalization go smoothly.

本申请实施例提供的第五种通用的云平台国际化方法,是在上述第四种通用的云平台国际化方法的基础上,还包括如下技术特征:The fifth general cloud platform internationalization method provided by the embodiment of the present application is based on the above-mentioned fourth general cloud platform internationalization method, and also includes the following technical features:

利用二进制编码分析页面的部分编码信息;Use binary encoding to analyze part of the encoding information of the page;

利用所述编码信息获得所述首选语言信息。The preferred language information is obtained by using the encoding information.

需要说明的是,若客户端浏览器中语言首选项缺失,或者用户恶意设置的语言首选项不支持,需要通过其他信息进行辅助设置,而这种页面分析的方式,也能够保证有效获得客户端浏览器的语言和用户的偏好语言,使得国际化顺利进行。It should be noted that if the language preference in the client browser is missing, or the language preference set maliciously by the user does not support it, other information needs to be used for auxiliary settings, and this method of page analysis can also ensure that the client The language of the browser and the preferred language of the user make internationalization go smoothly.

本申请实施例提供的第一种通用的云平台国际化装置如图2所示,图2为本申请实施例提供的第一种通用的云平台国际化装置的示意图,该装置包括:The first general cloud platform internationalization device provided in the embodiment of the present application is shown in Figure 2, which is a schematic diagram of the first general cloud platform internationalization device provided in the embodiment of the present application, and the device includes:

获得单元1,用于获得客户端浏览器首选语言信息;The obtaining unit 1 is used to obtain the preferred language information of the client browser;

主要考虑客户端操作系统和浏览器客户端的多样性,结合绝大部分浏览器的特点,基于客户端对云平台系统进行一系列的国际化。Mainly consider the diversity of client operating systems and browser clients, combine the characteristics of most browsers, and carry out a series of internationalization of cloud platform systems based on clients.

加载和绘制单元2,用于根据所述首选语言信息,加载对应的资源文件,绘制云平台系统的界面展示。The loading and drawing unit 2 is configured to load corresponding resource files according to the preferred language information, and draw the interface display of the cloud platform system.

在这种情况下,就可以提升用户对产品的体验,避免在程序部署或安装过程中的繁琐步骤,有效提高部署实施效率。In this case, it is possible to improve the user's experience with the product, avoid cumbersome steps in the process of program deployment or installation, and effectively improve the efficiency of deployment and implementation.

通过上述描述可知,本申请实施例提供的上述第一种通用的云平台国际化装置,能够有效提高云平台系统国际化的效率,提升用户的体验。It can be seen from the above description that the first general cloud platform internationalization device provided by the embodiment of the present application can effectively improve the efficiency of cloud platform system internationalization and improve user experience.

本申请实施例提供的第二种通用的云平台国际化装置,是在上述第一种通用的云平台国际化装置的基础上,还包括如下技术特征:The second general cloud platform internationalization device provided by the embodiment of the present application is based on the above-mentioned first general cloud platform internationalization device, and also includes the following technical features:

所述获得单元包括:The obtaining unit includes:

第一获得部件,用于在用户访问所述云平台系统的初始化阶段,获得客户端浏览器表头信息;The first obtaining component is used to obtain the header information of the client browser during the initialization phase of the user's access to the cloud platform system;

第一分析部件,用于分析所述表头信息,获得用户浏览器设置的首选语言项,识别用户群的高优先级语言。The first analysis component is configured to analyze the header information, obtain the preferred language item set by the user's browser, and identify the high-priority language of the user group.

这种获取浏览器首选语言的方式较为普遍且有效,能够更为快速的识别出首选语言项,从而为国际化提供依据。This method of obtaining the browser's preferred language is relatively common and effective, and can identify the preferred language item more quickly, thereby providing a basis for internationalization.

本申请实施例提供的第三种通用的云平台国际化装置,是在上述第二种通用的云平台国际化装置的基础上,还包括如下技术特征:The third general cloud platform internationalization device provided by the embodiment of the present application is based on the above second general cloud platform internationalization device, and also includes the following technical features:

所述加载和绘制单元包括:The loading and drawing unit includes:

加载和渲染部件,用于加载有效的语言文件,渲染完成所述云平台系统的页面。The loading and rendering component is used to load a valid language file and render the page of the cloud platform system.

在这种情况下,只加载有效的语言文件,就避免了其他无效文件的加载,就能够进一步提高平台系统的响应速度,在用户登录云平台系统之后,渲染页面国际化文件展示。In this case, only valid language files are loaded, avoiding the loading of other invalid files, and the response speed of the platform system can be further improved. After the user logs in to the cloud platform system, the internationalized file display of the page is rendered.

本申请实施例提供的第四种通用的云平台国际化装置,是在上述第三种通用的云平台国际化装置的基础上,还包括如下技术特征:The fourth universal cloud platform internationalization device provided in the embodiment of the present application is based on the above-mentioned third general cloud platform internationalization device, and also includes the following technical features:

所述获得单元包括:The obtaining unit includes:

第二分析部件,用于当客户端浏览器首选语言信息缺失时,分析用户客户端的IP地址信息;The second analysis component is used to analyze the IP address information of the user client when the preferred language information of the client browser is missing;

第二获得部件,用于根据所述IP地址信息进行定位,获得所述首选语言信息。The second obtaining component is configured to perform positioning according to the IP address information, and obtain the preferred language information.

这是另一种候选措施,利用客户端的IP地址能够得到用户当前的位置,而用户当前的位置就会基本对应一种用户常用语言,利用这种方式就能很好的得到用户首选语言信息,作为一种有效的补充,能够使得国际化顺利进行。This is another candidate measure. The current location of the user can be obtained by using the IP address of the client, and the current location of the user basically corresponds to a language commonly used by the user. Using this method, the user's preferred language information can be obtained very well. As an effective supplement, it can make the internationalization go smoothly.

本申请实施例提供的第五种通用的云平台国际化装置,是在上述第四种通用的云平台国际化装置的基础上,还包括如下技术特征:The fifth general cloud platform internationalization device provided in the embodiment of the present application is based on the above fourth general cloud platform internationalization device, and also includes the following technical features:

所述获得单元包括:The obtaining unit includes:

第三分析部件,用于利用二进制编码分析页面的部分编码信息;The third analysis component is used to analyze part of the encoding information of the page by using binary encoding;

第三获得部件,用于利用所述编码信息获得所述首选语言信息。A third obtaining component is configured to use the encoding information to obtain the preferred language information.

需要说明的是,若客户端浏览器中语言首选项缺失,或者用户恶意设置的语言首选项不支持,需要通过其他信息进行辅助设置,而这种页面分析的方式,也能够保证有效获得客户端浏览器的语言和用户的偏好语言,使得国际化顺利进行。It should be noted that if the language preference in the client browser is missing, or the language preference set maliciously by the user does not support it, other information needs to be used for auxiliary settings, and this method of page analysis can also ensure that the client The language of the browser and the preferred language of the user make internationalization go smoothly.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

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.
CN201610703014.9A 2016-08-22 2016-08-22 Universal cloud platform internationalization method and device Pending CN106371822A (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984170A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 H5 page multilingual rendering method and device
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
李宁 等: "《开发宝典丛书 Java Web编程实战宝典-JSP+Servlet+Struts 2+Hibernate+Spring+Ajax》", 30 September 2014, 清华大学出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984170A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 H5 page multilingual rendering method and device
CN108984170B (en) * 2017-06-02 2021-10-22 创新先进技术有限公司 H5 page multilingual 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
CN109683998B (en) Internationalization realization method, device and system
US10956652B2 (en) Support for non-native file types in web application environment
TWI671677B (en) Interactive processing method and device
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US11455365B2 (en) Data processing method and apparatus
CN108416021B (en) Browser webpage content processing method and device, electronic equipment and readable medium
CN107040574B (en) Screenshot and data processing method and device
US9785710B2 (en) Automatic crawling of encoded dynamic URLs
CN108959605A (en) For the screenshot method of webpage, device, computer equipment and storage medium
CN104714968A (en) Method and device for internationalizing web page
CN104021154B (en) A kind of method and apparatus scanned in a browser
CN111814085A (en) Novel WEB online agent method based on JavaScript hook
US20190179879A1 (en) Webpage rendering using a remotely generated layout node tree
CN102981853B (en) A kind of Text Entry by webpage submits long article method and apparatus originally to
CN106371822A (en) Universal cloud platform internationalization method and device
CN110992131A (en) Form processing method and device and storage medium
CN102708195B (en) A kind of form data sharing method and device
CN102981852A (en) Long text submission method and device thereof
CN116382604A (en) Method, system, storage medium and equipment for printing PDF (portable document format) file on webpage
CN110737861A (en) webpage data processing method, device, equipment and storage medium
CN101772196A (en) Method and system for processing message sent by mobile terminal and acting server
CN114124883B (en) Data access method and device based on cloud storage address, computer equipment and medium
AU2015231829A1 (en) Asset collection service through capture of content
CN101950251A (en) Localization method for mobile Widget
CN114115648B (en) Data request processing method, device, equipment and storage medium

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

Application publication date: 20170201

RJ01 Rejection of invention patent application after publication