[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110413932B - Page display method, device, terminal, server, system and storage medium - Google Patents

Page display method, device, terminal, server, system and storage medium Download PDF

Info

Publication number
CN110413932B
CN110413932B CN201910704675.7A CN201910704675A CN110413932B CN 110413932 B CN110413932 B CN 110413932B CN 201910704675 A CN201910704675 A CN 201910704675A CN 110413932 B CN110413932 B CN 110413932B
Authority
CN
China
Prior art keywords
language
language mode
target
character
identifier
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.)
Active
Application number
CN201910704675.7A
Other languages
Chinese (zh)
Other versions
CN110413932A (en
Inventor
钟望
朱建庭
翁鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201910704675.7A priority Critical patent/CN110413932B/en
Publication of CN110413932A publication Critical patent/CN110413932A/en
Application granted granted Critical
Publication of CN110413932B publication Critical patent/CN110413932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Machine Translation (AREA)

Abstract

The embodiment of the application provides a page display method, a page display device, a terminal, a server, a page display system and a storage medium, wherein the method comprises the following steps: the terminal sends a display request for displaying the target page in the first language mode to the server, the server can send a language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode, the terminal can modify the character identifier in the basic logic code of the target page into the character corresponding to the first language mode according to the language data packet to obtain the target logic code, and then the terminal can display the target page in the first language mode based on the target logic code. Based on the above processing, the efficiency of page maintenance can be improved.

Description

Page display method, device, terminal, server, system and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a page display method, apparatus, terminal, server, system, and storage medium.
Background
With the rapid development of computer network technology, a user can browse pages of a website through a terminal (e.g., a browser) and manage the displayed content of the pages. During browsing of a page, a user may need to switch language modes, e.g., the page is currently displayed in english mode, and the user may need to display the page in chinese mode.
In the related art, a technician is required to independently develop code in each language model. For example, if a page of a website needs to provide a chinese mode and an english mode, codes in two language modes with the same logic need to be developed respectively, and a corresponding connection address needs to be configured for each language mode. When the user needs to switch from the English mode to the Chinese mode, the terminal can acquire and load the codes in the Chinese mode through the connection address corresponding to the Chinese mode, and the page of the Chinese mode is displayed to the user.
It can be seen that in the related art, a technician is required to develop codes in multiple language modes with the same logic, which reduces the efficiency of page maintenance.
Disclosure of Invention
An object of the embodiments of the present application is to provide a page display method, device, terminal, server, system, and storage medium, which can improve efficiency of page maintenance. The specific technical scheme is as follows:
in a first aspect, to achieve the above object, an embodiment of the present application discloses a page display method, where the method is applied to a terminal, and the method includes:
sending a display request for displaying a target page in a first language mode to a server, wherein the display request carries an identifier of the first language mode;
when a language data packet which is sent by the server according to the identifier of the first language mode and corresponds to the first language mode is received, modifying the character identifier in the basic logic code of the target page into the corresponding character of the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the first language mode and the character identifier;
displaying the target page in the first language mode based on the target logic code.
Optionally, the first language mode is a preset default language mode;
before sending the display request for displaying the target page in the first language mode to the server, the method further comprises:
receiving a page access instruction input by a user;
judging whether the target page is accessed by the user for the first time or not;
the sending a display request to a server to display the target page in the first language mode includes:
and if the current situation is that the user accesses the target page for the first time, sending a display request carrying the mark of the default language mode to a server.
Optionally, the method further includes:
if the user does not visit the target page for the first time at present, acquiring a second language mode when the user visits the target page last time;
sending a display request carrying the identifier of the second language mode to a server;
when a language data packet which is sent by the server according to the identifier of the second language mode and corresponds to the second language mode is received, modifying the character identifier in the basic logic code of the target page into the corresponding character of the second language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the second language mode and the character identifier;
displaying the target page in the second language mode based on the target logic code.
Optionally, the sending, to the server, a display request for displaying the target page in the first language mode includes:
receiving a page refreshing instruction input by a user, wherein the page refreshing instruction carries an identifier of the first language mode, and the page refreshing instruction is used for indicating the terminal to display a target page in the first language mode;
and sending a display request carrying the identifier of the first language mode to a server.
Optionally, the text identifier includes a placeholder.
In a second aspect, in order to achieve the above object, an embodiment of the present application further discloses a page display method, where the method is applied to a server, and the method includes:
receiving a display request for displaying a target page in a first language mode, wherein the display request carries an identifier of the first language mode;
and sending a language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode, so that the terminal modifies the character identifier in the basic logic code of the target page into a character corresponding to the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing characters required to be displayed in the target page, the language data packet comprises a corresponding relation between the characters in the first language mode and the character identifier, and the target page is displayed in the first language mode based on the target logic code.
Optionally, the method further includes:
receiving an update instruction aiming at the language data packet, wherein the update instruction carries a target character identifier of a character corresponding to the update requirement and an updated target character;
and modifying the characters corresponding to the target character identification in the language data packet into the target characters.
Optionally, after the words in the language data packet corresponding to the target word identifier are modified into the target words, the method further includes:
and modifying the characters corresponding to the target character identifier in the language data packets corresponding to the other language modes except the first language mode into the characters corresponding to the target characters in the other language modes.
In order to achieve the above object, an embodiment of the present application further discloses a page display device, where the page display device is applied to a terminal, and the device includes:
the system comprises a sending module, a receiving module and a display module, wherein the sending module is used for sending a display request for displaying a target page in a first language mode to a server, and the display request carries an identifier of the first language mode;
the processing module is used for modifying a character identifier in a basic logic code of the target page into a corresponding character of the first language mode according to the language data packet when the language data packet which is sent by the server according to the identifier of the first language mode and corresponds to the first language mode is received, so as to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises a corresponding relation between the character of the first language mode and the character identifier;
and the display module is used for displaying the target page in the first language mode based on the target logic code.
Optionally, the first language mode is a preset default language mode;
the device further comprises:
the judging module is used for receiving a page access instruction input by a user;
judging whether the target page is accessed by the user for the first time or not;
the sending module is specifically configured to send, to a server, a display request carrying the identifier of the default language mode if the target page is currently accessed for the first time by the user.
Optionally, the apparatus further comprises:
the processing module is used for acquiring a second language mode when the user accesses the target page last time if the user does not access the target page for the first time;
sending a display request carrying the identifier of the second language mode to a server;
when a language data packet which is sent by the server according to the identifier of the second language mode and corresponds to the second language mode is received, modifying the character identifier in the basic logic code of the target page into the corresponding character of the second language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the second language mode and the character identifier;
displaying the target page in the second language mode based on the target logic code.
Optionally, the sending module is specifically configured to receive a page refresh instruction input by a user, where the page refresh instruction carries an identifier of the first language mode, and the page refresh instruction is used to instruct the terminal to display a target page in the first language mode;
and sending a display request carrying the identifier of the first language mode to a server.
Optionally, the text identifier includes a placeholder.
In a fourth aspect, in order to achieve the above object, an embodiment of the present application further discloses a page display apparatus, where the apparatus is applied to a server, and the apparatus includes:
the system comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a display request which is sent by a terminal and used for displaying a target page in a first language mode, and the display request carries an identifier of the first language mode;
and the sending module is used for sending a language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode so that the terminal modifies the character identifier in the basic logic code of the target page into the corresponding character of the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character required to be displayed in the target page, the language data packet comprises the corresponding relation between the character of the first language mode and the character identifier, and the target page is displayed in the first language mode based on the target logic code.
Optionally, the apparatus further comprises:
the updating module is used for receiving an updating instruction aiming at the language data packet, wherein the updating instruction carries a target character identifier of a character corresponding to the updating instruction to be updated and the updated target character;
and modifying the characters corresponding to the target character identification in the language data packet into the target characters.
Optionally, the updating module is further configured to modify, in a language data packet corresponding to another language mode except the first language mode, a word corresponding to the target word identifier into a word corresponding to the target word in the other language mode.
In a fifth aspect, to achieve the above object, an embodiment of the present application further discloses a page display system, where the system includes a terminal and a server;
the terminal is configured to send a display request for displaying the target page in the first language mode to the server, where the display request carries an identifier of the first language mode;
the server is used for receiving a display request which is sent by the terminal and used for displaying the target page in the first language mode; according to the identifier of the first language mode, sending a language data packet corresponding to the first language mode to the terminal;
the terminal is further configured to modify, when receiving a language data packet corresponding to the first language mode and sent by the server according to the identifier of the first language mode, a character identifier in a basic logic code of the target page to a corresponding character of the first language mode according to the language data packet, so as to obtain a target logic code, where the character identifier in the basic logic code is used to represent a character to be displayed in the target page, and the language data packet includes a correspondence between the character of the first language mode and the character identifier; displaying the target page in the first language mode based on the target logic code.
On the other hand, in order to achieve the above object, an embodiment of the present application further discloses a terminal, where the terminal includes a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to implement the page display method according to the first aspect when executing the program stored in the memory.
On the other hand, in order to achieve the above object, an embodiment of the present application further discloses a server, where the server includes a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to implement the page display method according to the second aspect when executing the program stored in the memory.
On the other hand, in order to achieve the above object, an embodiment of the present application further discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the page display method according to the first aspect are implemented.
On the other hand, in order to achieve the above object, an embodiment of the present application further discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the page display method according to the second aspect are implemented.
On the other hand, in order to achieve the above object, an embodiment of the present application further discloses a computer program product containing instructions, which when run on a computer, causes the computer to execute the steps of the page display method according to the first aspect.
On the other hand, in order to achieve the above object, an embodiment of the present application further discloses a computer program product containing instructions, which when run on a computer, causes the computer to perform the steps of the page display method according to the second aspect.
The embodiment of the application provides a page display method, a terminal can send a display request for displaying a target page in a first language mode to a server, the server can send a language data packet corresponding to the first language mode to the terminal according to an identifier of the first language mode, the terminal can modify a character identifier in a basic logic code of the target page into a character corresponding to the first language mode according to the language data packet to obtain a target logic code, and then the terminal can display the target page in the first language mode based on the target logic code. Based on the processing, the terminal can display the target page in different language modes only according to the basic logic code and the language data packet of the target page, and does not need to develop corresponding codes for each language mode, so that the page maintenance efficiency can be improved.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a structural diagram of a page display system according to an embodiment of the present application;
fig. 2 is a flowchart of a page display method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a display interface of a target page according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a page display method according to an embodiment of the present application;
fig. 5 is a flowchart of an example of a page display method provided in an embodiment of the present application;
fig. 6 is a structural diagram of a page display device according to an embodiment of the present application;
fig. 7 is a structural diagram of a page display device according to an embodiment of the present application;
fig. 8 is a structural diagram of a terminal according to an embodiment of the present application;
fig. 9 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related art, if a certain page needs to be displayed in different language modes, a technician is required to develop codes in a plurality of language modes with the same logic, and the page maintenance efficiency is further reduced.
In order to solve the above problem, the present embodiment provides a page display method, which may be applied to the terminal 101 and the server 102 in fig. 1, where the terminal 101 may be a browser.
The terminal 101 may transmit a display request for displaying a target page in the first language mode to the server 102.
When the server 102 receives the display request, the server 102 may send a language data packet corresponding to the first language mode to the terminal 101 according to the identifier of the first language mode.
When the terminal 101 receives the language data packet, the terminal 101 may modify the text identifier in the basic logic code of the target page into a text in the corresponding first language mode, so as to obtain a target logic code, and then the terminal 101 may display the target page in the first language mode based on the target logic code.
Based on the above processing, the terminal 101 can display the target page in different language modes only according to the basic logic code and the language data packet of the target page, and it is not necessary to develop a corresponding code for each language mode, and thus, the efficiency of page maintenance can be improved.
Referring to fig. 2, fig. 2 is a flowchart of a page display method provided in an embodiment of the present application, where the method may be applied to a terminal, and the method may include the following steps:
s201: a display request to display the target page in the first language mode is sent to the server.
The display request may carry an identifier of the first language mode. The first language mode may be any language mode, for example, the first language mode may be a chinese language mode, an english language mode, or a korean language mode. The target page may be a page that the terminal currently needs to display.
In the application embodiment, the terminal may send a display request carrying an identifier of the first language mode to the server, so as to notify the server that the terminal needs to display the target page in the first language mode.
In one implementation, if the terminal is a browser, the display request sent by the terminal may carry a field for indicating the first language mode. For example, the field is zh, which may indicate that the first language mode is a chinese mode; the field is en, which can indicate that the first language mode is an English mode; the field is ko, which may indicate that the first language mode is korean.
S202: and when a language data packet which is sent by the server according to the identifier of the first language mode and corresponds to the first language mode is received, modifying the character identifier in the basic logic code of the target page into the character of the corresponding first language mode according to the language data packet to obtain the target logic code.
The character identification in the basic logic code is used for representing characters required to be displayed in the target page, and the language data packet comprises the corresponding relation between the characters in the first language mode and the character identification.
In the language data packet, the text identifier may be a key and the text may be a corresponding value.
In the application embodiment, when the server receives a display request sent by the terminal, the server may obtain an identifier of the first language mode in the display request, and further, the server may determine which language mode the first language mode is specific to. Then, the server can send the language data packet corresponding to the first language mode to the terminal.
Correspondingly, after the terminal receives the language data packet sent by the server, the terminal can modify the character identification in the basic logic code of the target page into the corresponding character in the first language mode according to the language data packet to obtain the target logic code.
In this step, the terminal may obtain the basic logic code of the pre-configured target page according to the connection address of the target page.
It can be understood that, in the basic logic code, for the characters required to be displayed in the target page, the characters are recorded by the character identifiers of the characters, and the characters required to be displayed in the target page recorded in the target logic code are all the characters in the first language mode.
In one implementation, in the basic logic code, the placeholder can be used as a text identifier for representing different text to be displayed in the target page.
After the terminal receives the language data packet sent by the server, the terminal can modify the placeholder in the basic logic code of the target page into the corresponding character of the first language mode according to the language data packet to obtain the target logic code.
For example, in the language data packet in the chinese mode, the character identifier corresponding to the chinese "message" may be a, and correspondingly, in the language data packet in the english mode, the english character corresponding to the character identifier a may be "message". In the basic logic code of the target page, the code portions corresponding to the "message" are all identified by the literal identifier a.
After the terminal receives the language data packet in the Chinese mode, the terminal can modify the character identifier A in the basic logic code into Chinese 'message', and further can obtain the target logic code in the Chinese mode.
After the terminal receives the language data packet in the english mode, the terminal can modify the character identifier a in the basic logic code into english "message", and then can obtain the target logic code in the english mode.
S203: based on the target logic code, the target page is displayed in a first language mode.
In the application embodiment, after the terminal obtains the target logic code, the terminal can load the target logic code, and further, the terminal can display the target page in the first language mode.
In addition, the terminal can determine the first language mode according to the condition that the user accesses the target page.
Optionally, if the first language mode is a preset default language mode, before S201, the method may further include the following steps:
step one, receiving a page access instruction input by a user.
In the application embodiment, when a user needs to access a target page through a terminal, the user may input a page access instruction for the target page to the terminal, where the page access instruction may carry a page identifier of the target page, and the page identifier may be a connection address of the target page.
Correspondingly, the terminal can receive a page access instruction input by the user, and further, the terminal determines that the user needs to access the target page according to the page identifier of the target page in the page access instruction.
And step two, judging whether the current target page is accessed by the user for the first time.
In the application embodiment, after the terminal determines that the target user needs to access the target page, the terminal can judge whether the target page is accessed by the user for the first time or not, so as to perform corresponding processing according to the judgment result.
In one implementation, if the terminal is a browser and the user has previously accessed the target page through the terminal, the cookie (data stored on the user's local terminal) of the terminal stores history information of the target page displayed by the terminal. The history information may include an identification of a language mode (which may be referred to as a history language mode) when the terminal last displayed the target page.
Therefore, after the terminal determines that the target user needs to access the target page, the terminal can determine whether the local cookie has history information for displaying the target page.
If the historical information for displaying the target page exists in the local cookie, the terminal can determine that the target page is not accessed by the user for the first time currently; if the history information for displaying the target page does not exist in the local cookie, the terminal can determine that the target page is accessed for the first time by the user currently.
The default language mode may be set by a technician according to business requirements, for example, the default language mode may be a chinese language mode, or the default language mode may be an english language mode, but is not limited thereto.
Accordingly, S201 may include the steps of: and if the current target page is accessed by the user for the first time, sending a display request carrying the mark of the default language mode to the server.
In the application embodiment, when the terminal determines that the target page is currently accessed by the user for the first time, the terminal may send a display request carrying an identifier of a default language mode to the server to notify the server that the terminal needs to display the target page in the default language mode.
In one implementation, if the terminal is a browser, when the terminal determines that the target page is currently accessed for the first time by the user, a field for indicating a language mode in a display request sent by the terminal may be null.
Accordingly, when the server receives the display request, the server determines that the field for indicating the language mode is empty, and then, the server may determine that the terminal needs to display the target page in the default language mode. Further, the server may transmit a language data packet corresponding to the default language mode to the terminal.
The terminal can obtain the target logic code in the default language mode according to the received language data packet, and then the terminal can display the target page in the default language mode.
Optionally, the method may further include the steps of:
step one, if the current time is not that the user accesses the target page for the first time, a second language mode when the user accesses the target page last time is obtained.
In the application embodiment, when the terminal determines that the target page is not currently accessed by the user for the first time, the terminal may determine the language mode (i.e., the second language mode) when the target page was last displayed.
In one implementation, if the terminal is a browser, when the terminal determines that the current target page is not accessed by the user for the first time, the terminal may obtain history information of the displayed target page stored in the local cookie, and according to the history information, the terminal may determine the second language mode when the target page is displayed last time.
For example, the terminal may determine the chinese mode as the second language mode if the terminal last displayed the target page as the chinese mode.
And step two, sending a display request carrying the identifier of the second language mode to the server.
In the application embodiment, after the terminal determines the second language mode, the terminal may send a display request carrying an identifier of the second language mode to the server to notify the server that the terminal needs to display the target page in the second language mode.
And step three, when a language data packet which is sent by the server according to the identifier of the second language mode and corresponds to the second language mode is received, modifying the character identifier in the basic logic code of the target page into the character of the corresponding second language mode according to the language data packet to obtain a target logic code, and displaying the target page in the second language mode based on the target logic code.
The character identification in the basic logic code is used for representing characters required to be displayed in the target page, and the language data packet comprises the corresponding relation between the characters in the second language mode and the character identification.
When the server receives a display request carrying the identifier of the second language mode sent by the terminal, the server may send a language data packet corresponding to the second language mode to the terminal.
Correspondingly, the terminal can obtain the target logic code in the second language mode according to the received language data packet, and further, the terminal can display the target page in the second language mode.
The method for displaying the target page by the terminal in the second language mode is similar to the method for displaying the target page by the terminal in the first language mode.
In addition, the terminal may further provide a language mode switching function, so that the user may switch the language mode in the process of browsing the target page, and optionally, S201 may include the following steps:
step one, receiving a page refreshing instruction input by a user.
The page refreshing instruction may carry an identifier of the first language mode, and the page refreshing instruction is used to instruct the terminal to display the target page in the first language mode.
In the application embodiment, in the process of browsing the target page by the user, the user can select the language mode of switching the terminal to display the target page, and correspondingly, the terminal can receive the page refreshing instruction and determine that the terminal needs to be switched to display the target page in the first language mode.
In an implementation manner, a target page displayed by the terminal may be provided with an option of switching a language mode, referring to fig. 3, where fig. 3 is a display interface of the target page provided in the embodiment of the present application.
It can be seen that, when the current terminal displays the target page in the chinese mode, and the user needs to display the target page in the english mode, the user can select the "english" option under the "multilingual" option, and accordingly, the terminal can receive the page refresh instruction carrying the identifier of the english language mode, and determine that the terminal needs to switch to display the target page in the english mode.
And step two, sending a display request carrying the identifier of the first language mode to the server.
In the application embodiment, after the terminal receives the page refresh command carrying the identifier of the first language mode, the terminal may send a display request carrying the identifier of the first language mode to the server to notify the server that the terminal needs to display the target page in the first language mode.
Accordingly, when the server receives the display request, the server may send a language data packet corresponding to the first language mode to the terminal.
The terminal can obtain the target logic code in the first language mode according to the received language data packet, and then the terminal can display the target page in the first language mode.
Referring to fig. 4, fig. 4 is a flowchart of a page display method provided in an embodiment of the present application, where the method may be applied to a server, and the method may include the following steps:
s401: and receiving a display request for displaying the target page in the first language mode, which is sent by the terminal.
The display request may carry an identifier of the first language mode.
In the application embodiment, the terminal may send a display request carrying an identifier of the first language mode to the server, so as to notify the server that the terminal needs to display the target page in the first language mode.
Correspondingly, when the server receives the display request sent by the terminal, the server may obtain the identifier of the first language mode in the display request, and further, the server may determine which language mode the first language mode is specific.
S402: and sending a language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode, so that the terminal modifies the character identifier in the basic logic code of the target page into a character corresponding to the first language mode according to the language data packet to obtain a target logic code, and displaying the target page in the first language mode based on the target logic code.
The character identification in the basic logic code is used for representing characters required to be displayed in the target page, and the language data packet comprises the corresponding relation between the characters in the first language mode and the character identification.
The server may store language data packets corresponding to different language modes, and the language data packet of each language mode may have a unique version number. In the language data packet, the text identifier may be a key, and the text may be a corresponding value. The server may store the language data packet locally in the format of a JS (JavaScript, a scripting language) file.
For example, in the language data packet in the chinese mode, the character identifier corresponding to the chinese "message" may be a, and correspondingly, in the language data packet in the english mode, the english character corresponding to the character identifier a may be "message".
In the application embodiment, after the server determines which language mode the first language mode is specifically according to the identifier of the first language mode in the display request, the server may send the language data packet corresponding to the first language mode to the terminal.
Correspondingly, after the terminal receives the language data packet sent by the server, the terminal can modify the character identifier in the basic logic code of the target page into the corresponding character of the first language mode according to the language data packet to obtain the target logic code. Further, the terminal may display the target page in the first language mode based on the target logic code.
The processing method of the terminal has been described in detail in the above embodiments, and is not described herein again.
In addition, the server may further update the language data packet, and optionally, the method may further include the following steps:
step one, receiving an updating instruction aiming at a language data packet.
The update instruction may carry a target character identifier of a character corresponding to the update instruction and an updated target character.
In the application embodiment, when the user needs to modify the text displayed in the target page, the user may directly update the language data packet, that is, the user may input an update instruction for the language data packet to the server.
Correspondingly, the server can receive the updating instruction and extract the target character identification and the target character carried in the updating instruction.
And step two, modifying the characters corresponding to the target character identification in the language data packet into target characters.
In the application embodiment, after the server obtains the target character identifier and the target character, the server may modify the character corresponding to the target character identifier in the language data packet corresponding to the first language mode into the target character.
For example, for the above example, when the user needs to modify the "message" in the target page to "notify", the update instruction received by the server may carry the text identifier a and the text "notify". The server can modify the words corresponding to the word identifiers A in the language data packet in the Chinese mode into 'notification'.
In addition, the server can update language data packets of other language modes.
Optionally, the method may further include the steps of: and modifying the characters corresponding to the target character identifier in the language data packets corresponding to the other language modes except the first language mode into the characters corresponding to the target character in the other language modes.
In the application embodiment, after the language data packet corresponding to the first language mode is updated, the server may further modify the text corresponding to the target text identifier in the language data packets corresponding to the other language modes except the first language mode into the text corresponding to the target text in the other language modes, so as to update the language data packets corresponding to the other language modes.
For example, for the above example, after the server modifies the text corresponding to the text identifier a to "notify" in the language data packet corresponding to the chinese mode, the server may also modify the text corresponding to the text representation a to "notify" in the language data packet corresponding to the english mode.
Furthermore, when the user refreshes the target page at the terminal, the server can send the updated language data packet to the terminal, the terminal can modify the basic logic code corresponding to the target page according to the updated language data packet to obtain the target logic code, and then the terminal can display the updated target page.
Referring to fig. 5, fig. 5 is a flowchart of an example of a page display method provided in an embodiment of the present application, where the method may include the following steps:
s501: the terminal receives a page access instruction input by a user.
S502: and if the current target page is accessed by the user for the first time, the terminal sends a display request carrying the identifier of the default language mode to the server.
The default language mode may be a chinese language mode.
S503: and the server sends a language data packet corresponding to the default language mode to the terminal.
S504: and the terminal modifies the character identification in the basic logic code of the target page into the character of the corresponding default language mode according to the language data packet corresponding to the default language mode to obtain a first target logic code.
S505: the terminal displays the target page in a default language mode based on the first target logic code.
S506: the terminal receives a page refreshing command input by a user.
The page refreshing instruction carries an identifier of a first language mode, and is used for indicating the terminal to display a target page in the first language mode, where the first language mode may be an english mode.
S507: and the terminal sends a display request carrying the identifier of the first language mode to the server.
S508: and the server sends the language data packet corresponding to the first language mode to the terminal.
S509: and the terminal modifies the character identification in the basic logic code of the target page into the corresponding character of the first language mode according to the language data packet corresponding to the first language mode to obtain a second target logic code.
S5010: and the terminal displays the target page in the first language mode based on the second target logic code.
Corresponding to the embodiment of the method in fig. 2, referring to fig. 6, fig. 6 is a structural diagram of a page display apparatus provided in the embodiment of the present application, where the apparatus may be applied to a terminal, and the apparatus may include:
a sending module 601, configured to send a display request for displaying a target page in a first language mode to a server, where the display request carries an identifier of the first language mode;
the processing module 602 is configured to, when a language data packet corresponding to a first language mode and sent by a server according to an identifier of the first language mode is received, modify a character identifier in a basic logic code of a target page into a character of the corresponding first language mode according to the language data packet, so as to obtain a target logic code, where the character identifier in the basic logic code is used to represent a character to be displayed in the target page, and the language data packet includes a correspondence between the character of the first language mode and the character identifier;
a display module 603 configured to display the target page in the first language mode based on the target logic code.
Optionally, the first language mode is a preset default language mode;
the device still includes:
the judging module is used for receiving a page access instruction input by a user;
judging whether the current target page is accessed by the user for the first time;
the sending module 601 is specifically configured to send a display request carrying an identifier of a default language mode to the server if the target page is currently accessed by the user for the first time.
Optionally, the apparatus further comprises:
the processing module is used for acquiring a second language mode when the target page is accessed last time if the target page is not accessed for the first time by the user currently;
sending a display request carrying the identifier of the second language mode to a server;
when a language data packet which is sent by a server according to the identifier of the second language mode and corresponds to the second language mode is received, modifying the character identifier in the basic logic code of the target page into the character of the corresponding second language mode according to the language data packet to obtain the target logic code, wherein the character identifier in the basic logic code is used for representing the character to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the second language mode and the character identifier;
based on the target logic code, the target page is displayed in the second language mode.
Optionally, the sending module 601 is specifically configured to receive a page refresh instruction input by a user, where the page refresh instruction carries an identifier of a first language mode, and the page refresh instruction is used to instruct the terminal to display a target page in the first language mode;
and sending a display request carrying the identifier of the first language mode to a server.
Optionally, the textual representation includes a placeholder.
Corresponding to the embodiment of the method in fig. 4, referring to fig. 7, fig. 7 is a block diagram of a page display apparatus provided in an embodiment of the present application, where the apparatus may be applied to a server, and the apparatus may include:
a receiving module 701, configured to receive a display request for displaying a target page in a first language mode, where the display request carries an identifier of the first language mode;
a sending module 702, configured to send a language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode, so that the terminal modifies the character identifier in the basic logic code of the target page into a character of the corresponding first language mode according to the language data packet to obtain the target logic code, where the character identifier in the basic logic code is used to represent a character to be displayed in the target page, and the language data packet includes a correspondence between the character of the first language mode and the character identifier, and displays the target page in the first language mode based on the target logic code.
Optionally, the apparatus further comprises:
the updating module is used for receiving an updating instruction aiming at the language data packet, wherein the updating instruction carries a target character identifier of a character corresponding to the updating instruction and the updated target character;
and modifying the characters corresponding to the target character identification in the language data packet into target characters.
Optionally, the updating module is further configured to modify, in the language data packet corresponding to the language mode other than the first language mode, the text corresponding to the target text identifier into a text corresponding to the target text in the other language mode.
As can be seen from the above, according to the page display device in the embodiment of the present application, the terminal sends a display request for displaying the target page in the first language mode to the server, the server may send the language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode, the terminal may modify the text identifier in the basic logic code of the target page into the text in the corresponding first language mode according to the language data packet to obtain the target logic code, and then the terminal may display the target page in the first language mode based on the target logic code. Based on the above processing, the efficiency of page maintenance can be improved.
In addition, referring to fig. 1, fig. 1 is a structural diagram of a page display system provided in an embodiment of the present application, where the system may include a terminal 101 and a server 102;
the terminal 101 is configured to send a display request for displaying a target page in a first language mode to the server 102, where the display request carries an identifier of the first language mode;
a server 102, configured to receive a display request for displaying a target page in a first language mode, sent by a terminal 101; according to the identifier of the first language mode, sending a language data packet corresponding to the first language mode to the terminal 101;
the terminal 101 is further configured to modify, when receiving a language data packet corresponding to the first language mode and sent by the server 102 according to the identifier of the first language mode, a character identifier in a basic logic code of the target page into a character of the corresponding first language mode according to the language data packet, so as to obtain a target logic code, where the character identifier in the basic logic code is used to represent a character to be displayed in the target page, and the language data packet includes a correspondence relationship between the character of the first language mode and the character identifier; based on the target logic code, the target page is displayed in a first language mode.
The embodiment of the present application further provides a terminal, as shown in fig. 8, including a memory 801 and a processor 802;
a memory 801 for storing a computer program;
the processor 802 is configured to implement the page display method provided in the embodiment of the present application when executing the program stored in the memory 801.
Specifically, the page display method includes:
sending a display request for displaying a target page in a first language mode to a server, wherein the display request carries an identifier of the first language mode;
when a language data packet which is sent by a server according to an identifier of a first language mode and corresponds to the first language mode is received, modifying a character identifier in a basic logic code of a target page into a character of the corresponding first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises a corresponding relation between the character of the first language mode and the character identifier;
based on the target logic code, the target page is displayed in a first language mode.
It should be noted that other implementation manners of the above page display method are the same as those of the foregoing method embodiment, and are not described herein again.
The terminal may be provided with a communication interface for enabling communication between the terminal and another device.
The embodiment of the present application further provides a server, as shown in fig. 9, including a memory 901 and a processor 902;
a memory 901 for storing a computer program;
the processor 902 is configured to implement the page display method provided in the embodiment of the present application when executing the program stored in the memory 901.
Specifically, the page display method includes:
receiving a display request for displaying a target page in a first language mode, wherein the display request carries an identifier of the first language mode;
and sending a language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode, so that the terminal modifies the character identifier in the basic logic code of the target page into a character corresponding to the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character to be displayed in the target page, the language data packet comprises the corresponding relation between the character of the first language mode and the character identifier, and the target page is displayed in the first language mode based on the target logic code.
It should be noted that other implementation manners of the page display method are the same as those of the foregoing method embodiment, and are not described herein again.
The server may be provided with a communication interface for enabling communication between the server and another device.
The processor, the communication interface, and the memory are configured to communicate with each other through a communication bus, where the communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is enabled to execute the page display method provided by the embodiment of the present application.
Specifically, the page display method includes:
sending a display request for displaying a target page in a first language mode to a server, wherein the display request carries an identifier of the first language mode;
when a language data packet which is sent by a server according to an identifier of a first language mode and corresponds to the first language mode is received, modifying a character identifier in a basic logic code of a target page into a character of the corresponding first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises a corresponding relation between the character of the first language mode and the character identifier;
based on the target logic code, the target page is displayed in a first language mode.
It should be noted that other implementation manners of the page display method are the same as those of the foregoing method embodiment, and are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is enabled to execute the page display method provided by the embodiment of the present application.
Specifically, the page display method includes:
receiving a display request for displaying a target page in a first language mode, wherein the display request carries an identifier of the first language mode;
and sending a language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode, so that the terminal modifies the character identifier in the basic logic code of the target page into a character corresponding to the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character to be displayed in the target page, the language data packet comprises the corresponding relation between the character of the first language mode and the character identifier, and the target page is displayed in the first language mode based on the target logic code.
It should be noted that other implementation manners of the page display method are the same as those of the foregoing method embodiment, and are not described herein again.
The embodiment of the present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the page display method provided by the embodiment of the present application.
Specifically, the page display method includes:
sending a display request for displaying a target page in a first language mode to a server, wherein the display request carries an identifier of the first language mode;
when a language data packet which is sent by a server according to an identifier of a first language mode and corresponds to the first language mode is received, modifying a character identifier in a basic logic code of a target page into a character of the corresponding first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises a corresponding relation between the character of the first language mode and the character identifier;
based on the target logic code, the target page is displayed in a first language mode.
It should be noted that other implementation manners of the page display method are the same as those of the foregoing method embodiment, and are not described herein again.
The embodiment of the present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the page display method provided by the embodiment of the present application.
Specifically, the page display method includes:
receiving a display request for displaying a target page in a first language mode, wherein the display request carries an identifier of the first language mode;
and sending a language data packet corresponding to the first language mode to the terminal according to the identifier of the first language mode, so that the terminal modifies the character identifier in the basic logic code of the target page into a character corresponding to the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character to be displayed in the target page, the language data packet comprises the corresponding relation between the character of the first language mode and the character identifier, and the target page is displayed in the first language mode based on the target logic code.
It should be noted that other implementation manners of the page display method are the same as those of the foregoing method embodiment, and are not described herein again.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the terminal, the server, the system, the computer-readable storage medium, and the computer program product embodiment, since they are substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (19)

1. A page display method is applied to a terminal and comprises the following steps:
sending a display request for displaying a target page in a first language mode to a server, wherein the display request carries an identifier of the first language mode;
acquiring a basic logic code of the target page configured in advance according to the connection address of the target page; in the basic logic code, aiming at the characters required to be displayed in the target page, recording the characters by character identification of the characters; when a language data packet which is sent by the server according to the identifier of the first language mode and corresponds to the first language mode is received, modifying the character identifier in the basic logic code of the target page into the corresponding character of the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the first language mode and the character identifier; the text identifier comprises a placeholder;
displaying the target page in the first language mode based on the target logic code.
2. The method of claim 1, wherein the first language mode is a preset default language mode;
before sending the display request for displaying the target page in the first language mode to the server, the method further includes:
receiving a page access instruction input by a user;
judging whether the target page is accessed by the user for the first time or not;
the sending a display request to a server to display the target page in the first language mode includes:
and if the current situation is that the user accesses the target page for the first time, sending a display request carrying the mark of the default language mode to a server.
3. The method of claim 2, further comprising:
if the user does not visit the target page for the first time at present, acquiring a second language mode when the user visits the target page last time;
sending a display request carrying the identifier of the second language mode to a server;
when a language data packet which is sent by the server according to the identifier of the second language mode and corresponds to the second language mode is received, modifying the character identifier in the basic logic code of the target page into the corresponding character of the second language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the second language mode and the character identifier;
displaying the target page in the second language mode based on the target logic code.
4. The method of claim 1, wherein sending a display request to a server to display the target page in the first language mode comprises:
receiving a page refreshing instruction input by a user, wherein the page refreshing instruction carries an identifier of the first language mode, and the page refreshing instruction is used for indicating the terminal to display a target page in the first language mode;
and sending a display request carrying the identifier of the first language mode to a server.
5. A page display method is applied to a server and comprises the following steps:
receiving a display request for displaying a target page in a first language mode, wherein the display request carries an identifier of the first language mode;
according to the identifier of the first language mode, sending a language data packet corresponding to the first language mode to the terminal, so that the terminal modifies the character identifier in the basic logic code of the target page into a character corresponding to the first language mode according to the language data packet to obtain a target logic code, wherein the basic logic code is as follows: the terminal acquires a basic logic code of the target page configured in advance according to the connection address of the target page; in the basic logic code, aiming at the characters required to be displayed in the target page, recording the characters by character identification of the characters; the character identification in the basic logic code is used for representing characters required to be displayed in the target page, the language data packet comprises the corresponding relation between the characters in the first language mode and the character identification, the character identification comprises a placeholder, and the target page is displayed in the first language mode based on the target logic code.
6. The method of claim 5, further comprising:
receiving an update instruction aiming at the language data packet, wherein the update instruction carries a target character identifier of a character corresponding to the update requirement and an updated target character;
and modifying the characters corresponding to the target character identification in the language data packet into the target characters.
7. The method of claim 6, wherein after the modifying the text in the language data packet corresponding to the target text identifier into the target text, the method further comprises:
and modifying the characters corresponding to the target character identifier in the language data packets corresponding to the other language modes except the first language mode into the characters corresponding to the target characters in the other language modes.
8. A page display device, which is applied to a terminal, the device comprising:
the system comprises a sending module, a receiving module and a display module, wherein the sending module is used for sending a display request for displaying a target page in a first language mode to a server, and the display request carries an identifier of the first language mode;
the processing module is used for acquiring a basic logic code of the target page configured in advance according to the connection address of the target page; in the basic logic code, aiming at the characters required to be displayed in the target page, recording the characters by character identification of the characters; when a language data packet which is sent by the server according to the identifier of the first language mode and corresponds to the first language mode is received, modifying the character identifier in the basic logic code of the target page into the corresponding character of the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the first language mode and the character identifier; the text identifier comprises a placeholder;
and the display module is used for displaying the target page in the first language mode based on the target logic code.
9. The apparatus of claim 8, wherein the first language mode is a preset default language mode;
the device further comprises:
the judging module is used for receiving a page access instruction input by a user;
judging whether the target page is accessed by the user for the first time or not;
the sending module is specifically configured to send, to a server, a display request carrying the identifier of the default language mode if the target page is currently accessed for the first time by the user.
10. The apparatus of claim 9, further comprising:
the processing module is used for acquiring a second language mode when the user accesses the target page last time if the user does not access the target page for the first time;
sending a display request carrying the identifier of the second language mode to a server;
when a language data packet which is sent by the server according to the identifier of the second language mode and corresponds to the second language mode is received, modifying the character identifier in the basic logic code of the target page into the corresponding character of the second language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the second language mode and the character identifier; the text identifier comprises a placeholder;
displaying the target page in the second language mode based on the target logic code.
11. The apparatus according to claim 10, wherein the sending module is specifically configured to receive a page refresh instruction input by a user, where the page refresh instruction carries an identifier of the first language mode, and the page refresh instruction is used to instruct the terminal to display a target page in the first language mode;
and sending a display request carrying the identifier of the first language mode to a server.
12. A page display device, characterized in that the device is applied to a server, and the device comprises:
the system comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a display request which is sent by a terminal and used for displaying a target page in a first language mode, and the display request carries an identifier of the first language mode;
a sending module, configured to send, according to the identifier of the first language mode, a language data packet corresponding to the first language mode to the terminal, so that the terminal modifies, according to the language data packet, a text identifier in a basic logic code of the target page into a text of the corresponding first language mode, to obtain a target logic code, where the basic logic code is: the terminal acquires a basic logic code of the target page configured in advance according to the connection address of the target page; in the basic logic code, aiming at the characters required to be displayed in the target page, recording the characters by character identification of the characters; the character identification in the basic logic code is used for representing characters required to be displayed in the target page, the language data packet comprises the corresponding relation between the characters in the first language mode and the character identification, the character identification comprises a placeholder, and the target page is displayed in the first language mode based on the target logic code.
13. The apparatus of claim 12, further comprising:
the updating module is used for receiving an updating instruction aiming at the language data packet, wherein the updating instruction carries a target character identifier of a character corresponding to the updating instruction to be updated and the updated target character;
and modifying the characters corresponding to the target character identification in the language data packet into the target characters.
14. The apparatus of claim 13, wherein the updating module is further configured to modify a word corresponding to the target word identifier in a language data packet corresponding to a language mode other than the first language mode to a word corresponding to the target word in the other language mode.
15. The page display system is characterized by comprising a terminal and a server;
the terminal is used for sending a display request for displaying a target page in a first language mode to the server, wherein the display request carries an identifier of the first language mode;
the server is used for receiving a display request which is sent by the terminal and used for displaying the target page in the first language mode; according to the identifier of the first language mode, sending a language data packet corresponding to the first language mode to the terminal;
the terminal is further used for acquiring a basic logic code of the target page configured in advance according to the connection address of the target page; in the basic logic code, aiming at the characters required to be displayed in the target page, recording the characters by character identification of the characters; when a language data packet which is sent by the server according to the identifier of the first language mode and corresponds to the first language mode is received, modifying the character identifier in the basic logic code of the target page into the corresponding character of the first language mode according to the language data packet to obtain a target logic code, wherein the character identifier in the basic logic code is used for representing the character which needs to be displayed in the target page, and the language data packet comprises the corresponding relation between the character of the first language mode and the character identifier; the text identifier comprises a placeholder; displaying the target page in the first language mode based on the target logic code.
16. A terminal comprising a memory and a processor;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-4.
17. A server, comprising a memory and a processor;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 5-7.
18. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
19. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 5-7.
CN201910704675.7A 2019-07-31 2019-07-31 Page display method, device, terminal, server, system and storage medium Active CN110413932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910704675.7A CN110413932B (en) 2019-07-31 2019-07-31 Page display method, device, terminal, server, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910704675.7A CN110413932B (en) 2019-07-31 2019-07-31 Page display method, device, terminal, server, system and storage medium

Publications (2)

Publication Number Publication Date
CN110413932A CN110413932A (en) 2019-11-05
CN110413932B true CN110413932B (en) 2022-05-06

Family

ID=68364900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910704675.7A Active CN110413932B (en) 2019-07-31 2019-07-31 Page display method, device, terminal, server, system and storage medium

Country Status (1)

Country Link
CN (1) CN110413932B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124410A (en) * 2019-12-28 2020-05-08 北京浪潮数据技术有限公司 Page loading method, device and equipment and readable storage medium
CN111857903A (en) * 2020-04-22 2020-10-30 北京嘀嘀无限科技发展有限公司 Display page processing method, device, equipment and storage medium
CN113760314A (en) * 2020-07-17 2021-12-07 北京沃东天骏信息技术有限公司 Page module control method and device, electronic equipment and storage medium
CN113515710B (en) * 2021-04-23 2024-03-01 北京金山云网络技术有限公司 Page information display method and device, electronic equipment and storage medium
CN113778488B (en) * 2021-09-14 2024-02-06 北京飞讯数码科技有限公司 Page updating method and device, computer equipment and storage medium
CN114020194A (en) * 2021-11-25 2022-02-08 浙江太美医疗科技股份有限公司 Display data modification method and device, computer equipment and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003296223A (en) * 2002-03-29 2003-10-17 Fuji Xerox Co Ltd Method and device, and program for providing web page information
CN101957846B (en) * 2010-09-19 2012-07-04 优视科技有限公司 Method and system for automatically setting page language by mobile terminal browser
CN104020991B (en) * 2014-05-16 2017-11-07 可牛网络技术(北京)有限公司 The multi-language switching method and device of application program
CN105607898B (en) * 2015-10-21 2019-02-12 浪潮(北京)电子信息产业有限公司 A kind of dynamic website development approach and system
US10229113B1 (en) * 2016-09-28 2019-03-12 Amazon Technologies, Inc. Leveraging content dimensions during the translation of human-readable languages

Also Published As

Publication number Publication date
CN110413932A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110413932B (en) Page display method, device, terminal, server, system and storage medium
CN109543454B (en) Anti-crawler method and related equipment
US20170371974A1 (en) Method for loading webpage, client and programmable device
US9898260B2 (en) Adaptive function-based dynamic application extension framework
US10198410B2 (en) Method, device and mobile terminal for restoring page
CN109522500B (en) Webpage display method, device, terminal and storage medium
CN108959495B (en) page display method, device, equipment and computer storage medium of H5 webpage
CN107124477A (en) Processing method, terminal and the server of web site contents
CN111294395A (en) Terminal page transmission method, device, medium and electronic equipment
CN111695060A (en) Page switching method, device, equipment and storage medium
CN104267921A (en) Page display control method and server
US20180018315A1 (en) Information processing device, program, and information processing method
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
CN110750958A (en) Text display method and device, electronic equipment and medium
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
EP2998885A1 (en) Method and device for information search
CN113221049A (en) Page updating method and device, electronic equipment and storage medium
CN112770142A (en) Interactive video interaction method and device and electronic equipment
CN111181836B (en) Message pushing method and device
CN112433741B (en) Page processing method, device and system, electronic equipment and storage medium
CN108021593B (en) Information transfer method and device and browser
CN105808628A (en) Webpage transcoding method, apparatus and system
KR20130103239A (en) Method, server and terminal for providing web browsing service having translation
CN113515328B (en) Page rendering method, device, electronic equipment and storage medium
CN112783548B (en) Access method and device of network system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant