WO2019071406A1 - Procédé de traitement d'internationalisation de première page, serveur d'applications et support de stockage lisible par ordinateur - Google Patents

Procédé de traitement d'internationalisation de première page, serveur d'applications et support de stockage lisible par ordinateur Download PDF

Info

Publication number
WO2019071406A1
WO2019071406A1 PCT/CN2017/105436 CN2017105436W WO2019071406A1 WO 2019071406 A1 WO2019071406 A1 WO 2019071406A1 CN 2017105436 W CN2017105436 W CN 2017105436W WO 2019071406 A1 WO2019071406 A1 WO 2019071406A1
Authority
WO
WIPO (PCT)
Prior art keywords
internationalized
page
resource file
content
internationalization
Prior art date
Application number
PCT/CN2017/105436
Other languages
English (en)
Chinese (zh)
Inventor
陈飞
向洁
马会明
Original Assignee
深圳中兴力维技术有限公司
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 深圳中兴力维技术有限公司 filed Critical 深圳中兴力维技术有限公司
Priority to CN201780009061.6A priority Critical patent/CN108885544B/zh
Priority to PCT/CN2017/105436 priority patent/WO2019071406A1/fr
Publication of WO2019071406A1 publication Critical patent/WO2019071406A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Definitions

  • the present invention relates to the field of web page bursting technology, and in particular, to a front page page internationalization processing method, an application server, and a computer readable storage medium.
  • the international solution is mainly server back-end processing.
  • the Java back-end processes the template and outputs the assembled Html file.
  • the solution requires the developer to master certain back-end technologies, such as JSP, Velocity, etc., and if you switch the burst platform, all pages need to be re-issued.
  • All resource files need to be loaded at once, or each page loads a separate resource file. Loading all resource files at once can avoid duplication of internationalization, but it can lead to long periods of loading resources, affecting the user experience. If the private resource file is loaded separately for each page, the resource file can be divided to avoid the one-time loading speed being too slow, but the content will be repeated internationally. For example, "OK" will have many pages. If each page uses a separate resource file, it will result in the internationalization of the word "OK" in each resource file, causing duplicate work.
  • the main purpose of the present invention is to provide a front-end page internationalization processing method and a corresponding application server, which aims to solve the problem of how to implement internationalization of all content of a page in a pure front-end page, and improve resource file loading. Technical issues of efficiency.
  • the present invention provides a front-end page internationalization processing method, the method comprising the steps of: reading an attribute parameter set by a root node of a page, and obtaining a path of an internationalized resource file to be loaded by the current page; The path acquires a corresponding internationalized resource file, and loads in a preset order; parses the internationalized resource file; and replaces the content that needs to be internationalized in the page with the parsed internationalized content.
  • the method further includes the step before the step of reading the attribute parameter set by the root node of the page
  • the internationalized resource file stores the internationalized content in a key-value pair key-value mode, and the internationalized resource The file is named after the file name plus the language.
  • an international resource resource file without a language suffix is configured, and the default default international content is stored as the default international resource file.
  • the step of configuring the internationalized resource file corresponding to the page further includes: storing the internationalized content common to the plurality of pages in a common internationalized resource file.
  • the preset order is: a public default international resource file, an internationalized resource file of a common corresponding locale, a default internationalized resource file of the page private, and a corresponding language ring of the page private.
  • Internationalized resource documents are: a public default international resource file, an internationalized resource file of a common corresponding locale, a default internationalized resource file of the page private, and a corresponding language ring of the page private.
  • the step of setting an attribute parameter at the root node of the page specifically includes: setting a data-* attribute parameter for each label of the content that needs to be internationalized in the page, and configuring a current page.
  • the path of the loaded internationalized resource file is stored in the json format, and the value of the data-* attribute parameter is a key value in the internationalized resource file.
  • the step of setting an attribute parameter at the root node of the page further includes: if the content that needs to be internationalized is not the value of the input box or the content in the label, but an attribute of the label, Add an additional configuration item to the data-* attribute parameter to identify the attribute value that the label needs to be internationalized; if you need to internationalize multiple attributes of the label, use the English comma in the data-* attribute parameter. Separating a plurality of key values, and separating each of the internationalized tag attributes with a comma in the additional configuration item, the plurality of key values sequentially corresponding to the plurality of tag attributes.
  • the step of parsing the internationalized resource file specifically includes: parsing the content stored in the internationalized resource file into a key-value mode, and storing by using a public map, wherein the key corresponds to the The key value in the internationalized resource file, the value is the corresponding internationalized content in the internationalized resource file, and the key value in the public map is unique, and the key in the post-loaded internationalized resource file will be overwritten first.
  • the key in the loaded internationalization resource file specifically includes: parsing the content stored in the internationalized resource file into a key-value mode, and storing by using a public map, wherein the key corresponds to the The key value in the internationalized resource file, the value is the corresponding internationalized content in the internationalized resource file, and the key value in the public map is unique, and the key in the post-loaded internationalized resource file will be overwritten first.
  • the key in the loaded internationalization resource file specifically includes: parsing the content stored in the internationalized resource file into a key-value mode, and storing by using
  • the step of replacing the content that needs to be internationalized in the page with the parsed internationalized content includes: traversing all tags in the page that have data-* attribute parameters set, according to The dat a-* attribute parameter queries the corresponding key value from the public map, thereby obtaining corresponding internationalized content, and replacing the content that needs to be internationalized in the page with the obtained internationalized content.
  • the present invention further provides an application server, where the application server includes: a memory, a processor, an audio device, and a front page page stored on the memory and operable on the processor. And the front-end page internationalization processing program is executed by the processor to implement the step of the front-end page internationalization processing method as described above.
  • the present invention further provides a computer readable storage medium, where the front end page internationalization processing program is stored on the computer readable storage medium, and the front end page internationalization processing program is processed by a processor. The steps of implementing the front-end page internationalization processing method as described above are performed.
  • the front page internationalization processing method, the application server, and the computer readable storage medium proposed by the present invention The front-end and back-end pages of the website can be completely separated, so that the front-end pages are completely independent, and the front-end static pages are internationalized regardless of the platform of the back-end service and the language of the burst.
  • Html5 standard custom data data-* attribute parameter through the configuration of the static page, directly use the public JS file to read and traverse the page data-* attribute configuration, no longer need to write a separate JS file for each page, convenient
  • the need for internationalized content is replaced with the corresponding language content, which simplifies the workload of front-end internationalization and improves the efficiency of bursting. And it can realize the internationalization of the prompt content of the page content and prompt information, label custom attributes, etc., to meet the special needs of some pages.
  • the present invention uses a public international resource file and a page-localized international resource file to be dual-loaded, and can simultaneously load common internationalized resource files in different directories, and uniformly load some common international resources.
  • the page's private international resources are loaded on demand to achieve a balance between reduced work of internationalized language data and page loading efficiency.
  • ajax will automatically cache the loaded internationalized resource files. The second time you hit the same page again, you don't need to repeatedly download the internationalized resource files, it will automatically read from the cache. take. Make full use of the browser's own caching mechanism, so that the efficiency of the second page loading is further improved.
  • FIG. 1 is a schematic structural diagram of an application server according to a first embodiment of the present invention
  • FIG. 2 is a block diagram of a front-end page internationalization processing program according to a second embodiment of the present invention
  • FIG. 3 is a block diagram of a front-end page internationalization processing program according to a third embodiment of the present invention
  • 4 is a flowchart of a front-end page internationalization processing method according to a fourth embodiment of the present invention
  • FIG. 5 is a flowchart of a front-end page internationalization processing method according to a fifth embodiment of the present invention.
  • FIG. 1 it is a schematic diagram of an architecture of an application server 2 proposed by the present invention.
  • the application server 2 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through a system bus.
  • Figure 1 only shows the application server 2 with components 11-13, but it should be understood that not all illustrated components may be implemented and that more or fewer components may be implemented instead.
  • the memory 11 includes at least one type of readable storage medium, including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory. (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, etc.
  • the memory 11 may be an internal storage unit of the application server 2, such as a hard disk or memory of the application server 2.
  • the memory 11 may also be an external storage device of the application server 2, such as a plug-in hard disk equipped on the application server 2, a smart memory card (SMC), and a secure digital device. (Secure Digital, SD) card, flash card, etc.
  • the memory 11 can also include both the internal storage unit of the application server 2 and its external storage device.
  • the memory 11 is generally used to store an operating system installed in the application server 2 and various types of application software, such as program code of the front page internationalization processing program 200. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • the processor 12 may be a central processing unit in some embodiments (Central Processing)
  • the processor 12 is typically used to control the overall operation of the application server 2.
  • the processor 12 is configured to run program code or processing data stored in the memory 11, for example, running the front-end page internationalization processing program 200 and the like.
  • the network interface 13 may include a wireless network interface or a wired network interface, which is typically used for A communication connection is established between the application server 2 and other electronic devices.
  • a second embodiment of the present invention provides a front end page internationalization processing program 200.
  • the front-end page internationalization processing program 200 includes a series of computer program instructions stored in the memory 11, and when the computer program instructions are executed by the processor 12, embodiments of the present invention may be implemented.
  • the front end page is internationalized for processing operations.
  • the front end page globalization program 200 can be divided into one or more modules based on the particular operations implemented by the various portions of the computer program instructions. For example, in FIG. 2, the front end page globalization program 200 can be divided into a reading module 202, a loading module 204, a parsing module 206, and a replacement module 208. among them:
  • the reading module 202 is configured to read an attribute parameter set by the root node of the page, and obtain a path of the internationalized resource file that is required to be loaded by the current page.
  • the public JS is used to read the data-* attribute parameter set by the root node of the page, to obtain a path of the internationalized resource file to be loaded on the page.
  • the data-* attribute parameter configures a path of the internationalized resource file to be loaded on the current page, and stores the file in the json format.
  • the path is a URL path for the client (browser) to download the internationalized resource file.
  • the value of the data-* attribute parameter is a key value in the internationalized resource file. If the internationalized content is not the value of the input box or the content of the label, but an attribute of the label, such as title or placeholder, then an additional configuration item needs to be added in the data-* attribute parameter to identify the label.
  • Property values that need to be internationalized such as data-il8n-options.
  • the loading module 204 is configured to acquire a corresponding internationalized resource file according to the path, and load in a preset order.
  • the internationalized resource file can be obtained through ajax technology.
  • the preset order is: a public internationalized resource file > a page-specific default internationalized resource file > an internationalized resource file of a page-specific corresponding locale.
  • a public internationalized resource file > a page-specific default internationalized resource file > an internationalized resource file of a page-specific corresponding locale.
  • the resource file there are three internationalized resource files home.pro perties, home_zh_CN.properties, home_en_US .properties, which are private to the page, and the default internationalized resource file for this page, private Chinese internationalization. Resource files, private English internationalization resource files.
  • the common default internationalization resource file common.properties is loaded first, and then the publicized internationalized resource file corresponding to the locale is loaded according to the locale, for example, Chinese, then the public Chinese internationalization resource file common_ Z h_CN is loaded. .propertie S , At this point, the public international resource file is loaded. Then, load the page's private internationalization resource file home.properties and the private Chinese internationalization resource file home_zh_CN.properties, so that all the internationalized resource files corresponding to the page are loaded.
  • the publicized international resource file does not need to be repeatedly loaded, reducing the internationalization of some common content repetition.
  • the last loaded internationalized resource file has the highest priority for the same page.
  • the parsing module 206 is configured to parse the internationalized resource file.
  • the content stored in the internationalized resource file is parsed into a key-value mode, and is stored by using a public map.
  • key corresponds to the key value in the resource file
  • value is the corresponding internationalized content in the resource file.
  • the public map provides a mapping relationship, in which elements are stored in the form of key-values, which can quickly find v alue according to the key.
  • the key value in the public map is unique and cannot be repeated. If there is the same key, the key in the loaded internationalized resource file will overwrite the key in the previously loaded internationalized resource file. Therefore, if there is no corresponding international content in the internationalized resource file corresponding to the locale, the corresponding value in the default internationalized resource file is obtained.
  • the replacement module 208 is configured to replace the content that needs to be internationalized in the page with the parsed internationalized content.
  • the tag is not traversed, if the tag does not have a corresponding data-* attribute parameter, the default attribute is used to internationalize, and the content that needs to be internationalized is replaced with the default international content. If the tag belongs to input, select, text area, it is an input control, and the input box value is replaced by the internationalized content. In the case of other tags, the content in the replacement tag is the internationalized content. Content internationalization can not only internationalize text, but also replace images or other Html content, allowing different locales to display different images.
  • a third embodiment of the present invention provides a schematic diagram of a front-end page internationalization processing program 200.
  • the front-end page internationalization processing program 200 includes a configuration module 210 and a setting in addition to the reading module 202, the loading module 204, the parsing module 206, and the replacement module 208 in the second embodiment.
  • Module 212 the configuration module 210 and a setting in addition to the reading module 202, the loading module 204, the parsing module 206, and the replacement module 208 in the second embodiment.
  • the configuration module 210 is configured to configure an internationalized resource file corresponding to the page.
  • the internationalized resource file stores the internationalized content in a key-value mode, and the internationalized resource file is named by a file name plus a language.
  • the configuration module 210 can also configure an international resource resource file without a language suffix, and store the preset default internationalized content as a default internationalized resource file.
  • the default internationalized content can be obtained from the default internationalized resource file.
  • the configuration module 210 configures the internationalized resource file to store the internationalized content common to multiple pages in a common internationalized resource file. For example, the internationalized content corresponding to the words "date”, “confirm”, “cancel”, etc., can be stored in the publicized international resource file for all pages to call.
  • the setting module 212 is configured to set an attribute parameter at the root of the page to correspond to the current page.
  • a data-* attribute is added to a root node of a static page to be internationalized, and a data-* attribute parameter is set for each label of the content that needs to be internationalized in the page.
  • dat a-il8n configure the path of the internationalized resource file to be loaded on the current page, and store it in json format.
  • the path is a URL path for the client (browser) to download the internationalized resource file.
  • the value of the data-* attribute parameter is a key value in the internationalized resource file.
  • the Html page that needs to be internationalized is set by the data-* attribute parameter, so that all Html tags of the page can use a common JS file, and no additional operations need to be performed on js after setting once.
  • the custom attribute parameters may also be read by setting other custom attribute parameters and then using JS's getAttribute or jQuery's attr method.
  • the content configured in the custom attribute parameter can also be defined using an array or a string of specific punctuation.
  • the configuration of the other format is similar to the data-* attribute parameter of the json format, and will not be described here.
  • the configuration module 210 and the setting module 212 complete the configuration of the internationalized resource file corresponding to the page and the data-* attribute parameter, the page is loaded according to the data-*.
  • the attribute parameter automatically reads the corresponding internationalized resource file, thereby outputting the internationalized content.
  • a fourth embodiment of the present invention provides a front page page internationalization processing method.
  • the method includes the following steps:
  • S402. Read an attribute parameter set by the root node of the page, and obtain a path of the internationalized resource file to be loaded by the current page.
  • the public JS is used to read the data-* attribute parameter set by the root node of the page, to obtain a path of the internationalized resource file to be loaded on the page.
  • the data-* attribute parameter configures the path of the internationalized resource file to be loaded on the current page, and stores it in the json format.
  • the path is a URL path for the client (browser) to download the internationalized resource file.
  • the value of the data-* attribute parameter is a key value in the internationalized resource file. If the internationalized content is not the value of the input box or the content of the label, but an attribute of the label, such as title or placeholder, then an additional configuration item needs to be added in the data-* attribute parameter to identify the label.
  • Property values that need to be internationalized such as data-il8n-options.
  • a plurality of key values are separated by a comma in the data-* attribute parameter, and each of the additional configuration items is separated by a comma.
  • S404 Acquire a corresponding internationalized resource file according to the path, and load in a preset order.
  • the corresponding internationalized resource file is obtained according to the locale of the page.
  • the internationalized resource file can be obtained through ajax technology.
  • the preset order is: a public default international resource file, an internationalized resource file of a common corresponding locale, a default internationalized resource file of the page private, and an internationalized resource file corresponding to the local language of the page.
  • a public default international resource file For example, for a page, there are three public international resource files common.prop erties, common_zh_CN.properties, common_en_US .properties, and another 1 J is a public dog internationalization resource file, a public Chinese internationalization resource file. Public English international resource files, and three internationalized resource files home.properties, home_zh_CN.proper Ties .
  • home_en_US.properties which are the default internationalized resource files for the page, the private Chinese internationalization resource files, and the private English internationalization resource files.
  • the public default internationalization resource file common.properties is loaded first, and then the publicized internationalized resource file corresponding to the locale is loaded according to the locale, for example, Chinese, then the public Chinese internationalization resource file co mmon_zh_CN is loaded. Properties, at this point, the public international resource file is loaded. Then, load the page's private internationalization resource file home.properties and the private Chinese internationalization resource file home_zh_CN.properties, so that all the internationalized resource files corresponding to the page are loaded.
  • the publicized international resource file does not need to be repeatedly loaded, reducing the internationalization of some common content duplication.
  • the last loaded internationalized resource file has the highest priority for the same page.
  • the content stored in the internationalized resource file is parsed into a key-value mode, and is stored by using a public map.
  • key corresponds to the key value in the resource file
  • value is the corresponding internationalized content in the resource file.
  • the public map provides a mapping relationship, wherein the elements are stored in the form of a key-value, which can quickly find a val ue according to the key.
  • the key value in the public map is unique and cannot be repeated. If there is the same key, the key in the loaded internationalized resource file will overwrite the key in the previously loaded internationalized resource file. Therefore, if there is no corresponding international content in the internationalized resource file corresponding to the locale, the corresponding value in the default internationalized resource file is obtained.
  • the traversal tag ⁇ if the tag does not set the corresponding data-* attribute parameter, the default attribute is used to internationalize, and the content that needs to be internationalized is replaced with the default international content. If the tag belongs to input, select, and text area, it is an input control, and the input box value is replaced by the internationalized content. If it is another label, replace it The content within the tag is the internationalized content. Content internationalization can not only internationalize text, but also replace images or other Html content, so that different locales can display different images.
  • a fifth embodiment of the present invention provides a front page page internationalization processing method.
  • the steps S506-S512 of the front-end page internationalization processing method are similar to the steps S402-S4 08 of the fourth embodiment, except that the method further includes steps S502-S504.
  • the method comprises the following steps:
  • the internationalized resource file stores the internationalized content in a key-value mode, and the internationalized resource file is named by a file name plus a language.
  • the configuration module 210 can also configure an international resource resource file without a language suffix, and store the preset default internationalized content as a default internationalized resource file.
  • the default internationalized content can be obtained from the default internationalized resource file.
  • the configuration module 210 configures the internationalized resource file to store the internationalized content common to multiple pages in a common internationalized resource file. For example, the internationalized content corresponding to the words "date”, “confirm”, “cancel”, etc., can be stored in the publicized international resource file for all pages to call.
  • a data-* attribute is added to a root node of a static page to be internationalized, and a data-* attribute parameter is set for each label of the content that needs to be internationalized in the page.
  • dat a-il8n configure the path of the internationalized resource file to be loaded on the current page, and store it in json format.
  • the path is a URL path for the client (browser) to download the internationalized resource file.
  • the value of the data-* attribute parameter is a key value in the internationalized resource file.
  • the shell lj needs to add an additional configuration item to identify the data-* attribute parameter.
  • the tag needs to be internationalized attribute values, such as data-il8n-options.
  • a plurality of key values are separated by a comma in the data-* attribute parameter, and each of the additional configuration items is separated by a comma.
  • the Html page that needs to be internationalized is set by the data-* attribute parameter, so that all Html tags of the page can use a common JS file, and no additional operations need to be performed on js after setting once.
  • the custom attribute parameters may also be read by setting other custom attribute parameters and then using JS's getAttribute or jQuery's attr method.
  • the content configured in the custom attribute parameter can also be defined using an array or a string of specific punctuation.
  • the configuration of the other format is similar to the data-* attribute parameter of the json format, and will not be described here.
  • the public JS is used to read the data-* attribute parameter set by the root node of the page, to obtain a path of the internationalized resource file to be loaded on the page.
  • the corresponding internationalized resource file is obtained according to the locale of the page.
  • the internationalized resource file can be obtained through ajax technology.
  • the preset order is: a public default international resource file, an internationalized resource file of a common corresponding locale, a default internationalized resource file of the page private, and an internationalized resource file corresponding to the local language of the page.
  • a public default international resource file for a page, there are three public international resource files common.prop erties, common_zh_CN.properties, common_en_US .properties, and another 1 J is a public dog internationalization resource file, a public Chinese internationalization resource file. Public English international resource files, and three internationalized resource files home.properties, home_zh_CN.proper Ties .
  • home_en_US.properties which are the default internationalized resource files for the page, the private Chinese internationalization resource files, and the private English internationalization resource files.
  • the public default internationalization resource file common.properties is loaded first, and then the publicized internationalized resource file corresponding to the locale is loaded according to the locale, for example, Chinese, then the public Chinese internationalization resource file co mmon_zh_CN is loaded. Properties, at this point, the public international resource file is loaded. Then, load the page's private internationalization resource file home.properties and the private Chinese internationalization resource file home_zh_CN.properties, so that all the internationalized resource files corresponding to the page are loaded.
  • the last loaded internationalized resource file has the highest priority for the same page.
  • the content stored in the internationalized resource file is parsed into a key-value mode, and is stored by using a public map.
  • key corresponds to the key value in the resource file
  • value is the corresponding internationalized content in the resource file.
  • the public map provides a mapping relationship, wherein the elements are stored in the form of a key-value, which can quickly find a val ue according to the key.
  • the key value in the public map is unique and cannot be repeated. If there is the same key, the key in the loaded internationalized resource file will overwrite the key in the previously loaded internationalized resource file. Therefore, if there is no corresponding international content in the internationalized resource file corresponding to the locale, the corresponding value in the default internationalized resource file is obtained.
  • the traversal tag ⁇ if the tag does not set the corresponding data-* attribute parameter, the default attribute is used to internationalize, and the content that needs to be internationalized is replaced with the default international content. If the tag belongs to input, select, and text area, it is an input control, and the input box value is replaced by the internationalized content. If it is another label, replace it The content within the tag is the internationalized content. Content internationalization can not only internationalize text, but also replace images or other Html content, so that different locales can display different images.
  • the foregoing method can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases.
  • the former is a better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • the front page internationalization processing method, the application server and the computer readable storage medium proposed by the invention can completely separate the front and back pages of the website, so that the front end page is completely independent, and the platform of the back end service is completely complete.
  • Independent of the implementation of the internationalization of the front-end static pages. Use the Html5 standard custom data data-* attribute parameter to read and traverse the page directly using the public JS file through the configuration of the static page. With the data-* attribute configuration, it is no longer necessary to write a separate JS file for each page. It is convenient to replace the internationalized content with the corresponding language content, which simplifies the front-end internationalization workload and improves the bursting efficiency. And it can realize the internationalization of the prompt content of the page content and prompt information, label custom attributes, etc., to meet the special needs of some pages.
  • the present invention uses a public international resource file and a page-localized international resource file to be dual-loaded, and can simultaneously load common internationalized resource files in different directories, and is uniformly loaded for some common international resources.
  • Private international resources are loaded on demand to achieve a balance between reduced work of internationalized language data and page loading efficiency.
  • JS's native parsing and ajax features to ensure page parsing efficiency.
  • browser-based features, ajax will automatically cache the loaded international resource file, the second time you fight the same page again internationalization, do not need to repeatedly download the internationalized resource file, will automatically read from the cache take.
  • Make full use of the browser's own caching mechanism so that the efficiency of the second page loading is further improved. Therefore, it has industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

La présente invention concerne un procédé de traitement d'internationalisation de première page, un serveur d'applications et un support de stockage lisible par ordinateur. Le procédé comporte les étapes consistant à: lire un paramètre d'attribut qui est spécifié pour un nœud racine de page, pour obtenir le chemin d'un fichier de ressources d'internationalisation qui doit être chargé sur une page actuelle (S402); acquérir un fichier correspondant de ressources d'internationalisation selon le chemin, et charger celui-ci dans un ordre prédéfini (S404); analyser le fichier de ressources d'internationalisation (S406); et remplacer le contenu qui doit être internationalisé sur la page par le contenu d'internationalisation analysé (S408). La solution ci-dessus peut réaliser, sur une première page pure, l'internationalisation de tout le contenu de la page, et améliorer le rendement de chargement des fichiers de ressources.
PCT/CN2017/105436 2017-10-10 2017-10-10 Procédé de traitement d'internationalisation de première page, serveur d'applications et support de stockage lisible par ordinateur WO2019071406A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780009061.6A CN108885544B (zh) 2017-10-10 2017-10-10 前端页面国际化处理方法、应用服务器及计算机可读存储介质
PCT/CN2017/105436 WO2019071406A1 (fr) 2017-10-10 2017-10-10 Procédé de traitement d'internationalisation de première page, serveur d'applications et support de stockage lisible par ordinateur

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105436 WO2019071406A1 (fr) 2017-10-10 2017-10-10 Procédé de traitement d'internationalisation de première page, serveur d'applications et support de stockage lisible par ordinateur

Publications (1)

Publication Number Publication Date
WO2019071406A1 true WO2019071406A1 (fr) 2019-04-18

Family

ID=64325643

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105436 WO2019071406A1 (fr) 2017-10-10 2017-10-10 Procédé de traitement d'internationalisation de première page, serveur d'applications et support de stockage lisible par ordinateur

Country Status (2)

Country Link
CN (1) CN108885544B (fr)
WO (1) WO2019071406A1 (fr)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413574B (zh) * 2019-07-30 2023-04-07 深圳市携众通科技有限公司 一种自动生成代码国际化资源的方法
CN111651221B (zh) * 2020-07-14 2022-09-20 迈普通信技术股份有限公司 注解国际化方法及装置、存储介质及电子设备
CN113590185B (zh) * 2021-09-28 2022-02-18 苏州浪潮智能科技有限公司 基于微前端的页面国际化配置方法、装置、设备及介质
CN114491359A (zh) * 2021-12-28 2022-05-13 北京航天智造科技发展有限公司 网页国际化的处理方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456041A (zh) * 2010-10-29 2012-05-16 金蝶软件(中国)有限公司 一种网页语言切换的方法、装置及网络应用系统
CN105138555A (zh) * 2015-07-20 2015-12-09 新浪网技术(中国)有限公司 一种网页多语言国际化的加载方法和装置
CN106484402A (zh) * 2016-09-23 2017-03-08 郑州云海信息技术有限公司 一种适用通配符模式的国际化资源文件的配置方法
CN106648582A (zh) * 2016-09-19 2017-05-10 济南浪潮高新科技投资发展有限公司 一种国际化同名资源文件部署更新的实现方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193434B (zh) * 2006-11-29 2010-12-08 中兴通讯股份有限公司 优化漫游国国内用户呼叫国外来访用户话路的系统及方法
CN101710282B (zh) * 2009-11-16 2013-07-17 金蝶软件(中国)有限公司 实现系统支持多语言资源的方法及装置
CN104978394A (zh) * 2015-05-08 2015-10-14 安徽机电职业技术学院 支持多语种显示的网页标签数据组织更新方法
CN106484383B (zh) * 2015-08-31 2019-08-23 阿里巴巴集团控股有限公司 页面渲染方法、装置及设备
CN106569793B (zh) * 2016-09-19 2020-02-14 浪潮集团有限公司 一种基于Node.js的国际化实现方法
CN106603718A (zh) * 2017-01-01 2017-04-26 国云科技股份有限公司 一种统一管理资源并同步到私有云的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456041A (zh) * 2010-10-29 2012-05-16 金蝶软件(中国)有限公司 一种网页语言切换的方法、装置及网络应用系统
CN105138555A (zh) * 2015-07-20 2015-12-09 新浪网技术(中国)有限公司 一种网页多语言国际化的加载方法和装置
CN106648582A (zh) * 2016-09-19 2017-05-10 济南浪潮高新科技投资发展有限公司 一种国际化同名资源文件部署更新的实现方法
CN106484402A (zh) * 2016-09-23 2017-03-08 郑州云海信息技术有限公司 一种适用通配符模式的国际化资源文件的配置方法

Also Published As

Publication number Publication date
CN108885544B (zh) 2021-07-02
CN108885544A (zh) 2018-11-23

Similar Documents

Publication Publication Date Title
JP6114834B2 (ja) 情報提示方法、装置、プログラム、及び記録媒体
CN107203555B (zh) 页面加载处理方法及装置
CN106575298B (zh) 包含动态内容和陈旧内容的网站的快速呈现
WO2018077085A1 (fr) Procédé de traitement d'application, dispositif et support de stockage
US8983935B2 (en) Methods for utilizing a javascript emulator in a web content proxy server and devices thereof
US20180225387A1 (en) Method and apparatus for accessing webpage, apparatus and non-volatile computer storage medium
WO2019071406A1 (fr) Procédé de traitement d'internationalisation de première page, serveur d'applications et support de stockage lisible par ordinateur
CN110941500B (zh) 一种界面展示方法及装置
US20190340230A1 (en) System and method for generating websites from predefined templates
US9781262B2 (en) Methods and apparatus for voice-enabling a web application
US20120072831A1 (en) Method for creating a multi-lingual web page
US20110145299A1 (en) Offline Gadgets IDE
US20140040746A1 (en) Methods and apparatus for voiced-enabling a web application
KR102229742B1 (ko) 동적 이미지를 프리뷰하기 위한 방법 및 디바이스, 그리고 표현 패키지를 디스플레이하기 위한 방법 및 디바이스
WO2020048189A1 (fr) Génération d'image
US10375149B2 (en) Application registration and interaction
CN113382083B (zh) 一种网页截图方法和装置
CN112328140B (zh) 图像输入方法及其装置、设备、介质
US20210397671A1 (en) Method and device for processing resource description file and for obtaining page resource
US20140040745A1 (en) Methods and apparatus for voiced-enabling a web application
US10116726B2 (en) Methods for bundling images and devices thereof
CN113761412A (zh) 应用页面的显示方法、装置、电子设备、介质及应用系统
WO2016019875A1 (fr) Procédé et dispositif pour présenter des données de contenu provenant d'un réseau
WO2023092580A1 (fr) Procédé et appareil d'affichage de pages, support de stockage et dispositif électronique
CN107643892B (zh) 接口处理方法、装置、存储介质和处理器

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17928511

Country of ref document: EP

Kind code of ref document: A1