WO2023273694A1 - 文案适配方法、装置及存储介质 - Google Patents

文案适配方法、装置及存储介质 Download PDF

Info

Publication number
WO2023273694A1
WO2023273694A1 PCT/CN2022/094414 CN2022094414W WO2023273694A1 WO 2023273694 A1 WO2023273694 A1 WO 2023273694A1 CN 2022094414 W CN2022094414 W CN 2022094414W WO 2023273694 A1 WO2023273694 A1 WO 2023273694A1
Authority
WO
WIPO (PCT)
Prior art keywords
element data
file element
effective area
local
identification information
Prior art date
Application number
PCT/CN2022/094414
Other languages
English (en)
French (fr)
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 北京沃东天骏信息技术有限公司
Publication of WO2023273694A1 publication Critical patent/WO2023273694A1/zh

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

Definitions

  • the embodiment of the present application relates to the field of computer and Internet technology, and relates to a copy adaptation method, device and storage medium.
  • Copywriting refers to character text displayed to users in application programs (Application, APP) and web pages.
  • Application Application
  • APP application programs
  • web pages In related technologies, copywriting can be stored in different locations, and the storage locations of copywriting can be divided into two types:
  • Apps and webpages can be adapted and displayed by selecting different language copywriting according to different countries.
  • Figure 1 when the APP or webpage is applied in an English-speaking country, the APP or webpage displays English text.
  • the APP or web page can call the cancel corresponding to Key1 for display, and the APP or web page can call the confirm corresponding to Key2 for display.
  • the APP or webpage displays Chinese copywriting.
  • the APP or web page can call the cancel corresponding to Key1 for display, and the APP or web page can call the confirmation corresponding to Key2 for display.
  • a copy adaptation method, device, and storage medium provided in the embodiments of the present application can improve the copy adaptation degree of different types of clients of the same application.
  • the embodiment of this application provides a text adaptation method, including:
  • the file element data includes: an array composed of the function identification information, at least one effective area information, and at least one version number corresponding to the at least one effective area information;
  • the local file element data includes: local function identification information, at least one local effective area information, at least one local version number corresponding to the at least one local effective area information, and at least one local copy content corresponding to the at least one local version number an array of information;
  • the function identification information is the same as the local function identification information.
  • the determination of the incremental file element data based on the text element data and the local file element data includes:
  • the version number in the file element data is smaller than the local version number in the local file element data, then determine that the local file element data is the incremental file element data.
  • the determination of the incremental file element data based on the text element data and the local file element data includes:
  • the at least one effective area information in the file element data has no corresponding version number, then determine that the local file element data is the incremental file element data.
  • determining that the local file element data is the incremental file element data includes:
  • the target local version number is a local version number higher than the first version number
  • the The first version number is a version number of the at least one version number that is lower than any local version number that is the same as its effective area information.
  • the method also includes:
  • the file element data has no corresponding incremental file element data.
  • the response to the request instruction obtains the file element data and its function identification information, including:
  • the response to the request instruction obtains the file element data and its function identification information, including:
  • the method before receiving the request instruction sent by the client, the method further includes:
  • Receive the replacement copy content information use the replacement copy content information to replace the local copy content information corresponding to the target replacement effective area information, obtain the replacement local file element data, and update it to the preset file database.
  • the determination of target replacement effective area information based on the replacement identification information includes:
  • the replacement identification information exists in the preset file database, and the preset file database has local effective area information corresponding to the replacement identification information, then determine the target replacement effective area information; or,
  • the replacement identification information exists in the preset file database, and the target replacement effective area information does not exist in the local effective area information corresponding to the replacement identification information in the preset file database, or, the If the replacement identification information does not exist in the preset file database, and the replacement identification information is correct and unique, a prompt message for adding effective area information is displayed;
  • the method further includes:
  • the method also includes:
  • the method after receiving the replacement identification information of the replacement text, the method further includes:
  • a prompt message indicating that the replacement identification information is entered incorrectly or exists is displayed on the current page.
  • the receiving replacement copy content information uses the replacement copy content information to replace the local copy content information corresponding to the target replacement effective area information, obtains the replacement local file element data, and updates to the preset Document database, including:
  • the embodiment of the present application also provides a text adaptation method, including:
  • the file element data includes: function identification information of the copy
  • the incremental file element is obtained based on the file element data and local file element data in the server;
  • the incremental file element data is updated to a corresponding target storage location for use.
  • the acquisition of the touch command of the target object in response to the touch command, extracts the file element data from the storage location corresponding to the copy, including:
  • the file element data is formed based on the function identification information and the at least one effective area information.
  • the acquisition of the touch command of the target object in response to the touch command, extracts the file element data from the storage location corresponding to the copy, including:
  • the file element data is formed based on the function identification information, the at least one valid area information and the at least one version number.
  • updating the incremental file element data to the corresponding target storage location for use based on the function identification information includes:
  • the at least one update effective area information, the at least one update version number, and the at least one update text content information are correspondingly classified and stored in the target storage location for use.
  • the acquisition of the touch command of the target object, in response to the touch command, before extracting the file element data from the storage location corresponding to the copy further includes:
  • the initial data of file elements includes: the function identification information and at least one effective area information of the copy;
  • the initial data of the file element is stored in the storage location of the corresponding copy.
  • the method further includes:
  • the method further includes:
  • the to-be-displayed storage location corresponding to the to-be-displayed copy is determined in the local storage, and the to-be-displayed copy content information corresponding to the to-be-displayed effective area information is extracted from the to-be-displayed storage location for display.
  • the embodiment of the present application also provides a text adaptation device, including:
  • the first receiving module is configured to receive the request instruction sent by the client
  • the first response module is configured to respond to the request instruction to obtain file element data and its function identification information
  • the first processing module is configured to determine local file element data corresponding to the function identification information in a preset file database based on the function identification information;
  • a determining module configured to determine incremental file element data based on the text element data and local file element data
  • the first sending module is configured to send the incremental file element data to the client for use by the client.
  • the embodiment of the present application also provides a text adaptation device, including:
  • An acquisition module configured to acquire a touch command of a target object and respond to the touch command
  • the extraction module is configured to extract file element data at a storage location corresponding to the copy; the file element data includes: function identification information of the copy;
  • the second sending module is configured to carry the file element data in the request instruction and send it to the server;
  • the second receiving module is configured to receive incremental file element data fed back by the server in response to the request instruction; the incremental file element is obtained based on the file element data and local file element data in the server ;
  • a storage unit configured to update the incremental file element data to a corresponding target storage location based on the function identification information for use.
  • the embodiment of the present application also provides a text adaptation device, including a first memory and a first processor, the first memory stores a computer program that can run on the first processor, and the first processor executes The program implements the steps in the server-side method.
  • the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by the first processor, the steps in the method on the server side are realized.
  • the embodiment of the present application also provides a text adaptation device, including a second memory and a second processor, the second memory stores a computer program that can run on the second processor, and the second processor executes The program implements the steps in the client-side method.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the second processor, the steps in the client method are realized.
  • the file element data and its function identification information are obtained; based on the function identification information, in the preset file database, determine the local file corresponding to the function identification information Element data; based on the file element data and the local file element data, determine the incremental file element data; send the incremental file element data to the client for use by the client. Because there is local file element data corresponding to file element data sent by different types of clients of the same application in the local preset file database.
  • the server obtains the incremental file element data of the latest version of the corresponding copy by detecting the file element data of different clients, and the server sends the incremental file element data to the client for the client to update the corresponding file element data to the corresponding incremental file element Data, which in turn can improve the adaptability of copywriting for different types of clients of the same application.
  • Fig. 1 is a schematic diagram of the adaptation effect of the prior art copy provided by the embodiment of the present application
  • FIG. 2 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of an optional effect of the text adaptation method provided by the embodiment of the present application.
  • FIG. 4 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 5 is a schematic flowchart of an optional text adaptation method provided in the embodiment of the present application.
  • FIG. 6 is a schematic flowchart of an optional text adaptation method provided by the embodiment of the present application.
  • FIG. 7 is a schematic flowchart of an optional text adaptation method provided by the embodiment of the present application.
  • FIG. 8 is a schematic flowchart of an optional text adaptation method provided by the embodiment of the present application.
  • FIG. 9 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 10 is a schematic flowchart of an optional text adaptation method provided in the embodiment of the present application.
  • FIG. 11 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 12 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 13 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 14 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 15 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 16 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 17 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 18 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 19 is a schematic diagram of an optional effect of the text adaptation method provided by the embodiment of the present application.
  • FIG. 20 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 21 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 22 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • FIG. 23 is an optional schematic flow chart of the text adaptation method provided by the embodiment of the present application.
  • Fig. 24 is an interactive diagram of the text adaptation method provided by the embodiment of the present application.
  • FIG. 25 is a schematic structural diagram of a copy adaptation device provided by an embodiment of the present application.
  • Fig. 26 is a hardware entity schematic diagram 1 of the text adaptation device provided by the embodiment of the present application.
  • Fig. 27 is a schematic diagram of the second structure of the copy adaptation device provided by the embodiment of the present application.
  • FIG. 28 is a second schematic diagram of a hardware entity of the text adaptation device provided by the embodiment of the present application.
  • first/second in the application documents, add the following explanation.
  • first ⁇ second ⁇ third are only used to distinguish similar objects and do not mean Regarding the specific ordering of objects, it can be understood that “first ⁇ second ⁇ third” can be exchanged for a specific order or sequence if allowed, so that the embodiment of the application described here can be used in addition to the performed in an order other than that shown or described.
  • FIG. 2 is a schematic flowchart of an optional text adaptation method provided by the embodiment of the present application, which will be described in conjunction with the steps shown in FIG. 2 .
  • the server receives the request instruction sent by the client through the pre-established communication line with the client.
  • the request instruction is sent to the server after the target corresponding to the client starts the client.
  • the request instruction received by the server may carry one file element data, or may carry multiple file element data.
  • the file element data includes the function identification information of the corresponding copy.
  • the client may be an application program installed on a device terminal, such as an APP.
  • the client can also be an application URL in a web page.
  • the server receives the request instruction sent by the client through the pre-established communication line with the client.
  • the request instruction carries file element data corresponding to a copy of the client.
  • the server responds to the request instruction and parses the file element data to obtain the function identification information contained in the file element data.
  • the server receives the request instructions sent by different types of clients through the pre-established communication lines between different types of clients of the same application and the server.
  • the request instructions of different types of clients respectively carry a plurality of file element data corresponding to a plurality of copywriting.
  • the server can obtain multiple pieces of function identification information corresponding to the multiple file element data.
  • one piece of function identification information may be a character string "0102".
  • the file element data corresponding to one of the copywriting is the file element data corresponding to one of the copywriting.
  • the function identification information corresponding to the copywriting is Key_Cancel.
  • the regional identification information corresponding to the text can be "chinese", “english” and “thailand”. Among them, the version number corresponding to "chinese” is V1.0. The version number corresponding to "english” is V2.0. The version number corresponding to "thailand” is V1.2.
  • the request instruction may be a coded character string or voice information or text information.
  • the server responds to the request instruction and parses the file element data to obtain the function identification information and at least one effective area information corresponding to the file element data.
  • the server may also obtain function identification information corresponding to multiple file element data, at least one effective area information, and at least one version number corresponding to at least one effective area information by parsing the multiple file element data.
  • multiple local file element data corresponding to the client are stored in the preset file database of the server.
  • the function identification information corresponding to the text is the same as the local function identification information in the local file element data.
  • the server can determine the corresponding local file element data in the preset file database through the function identification information in the file element data.
  • each local file element data includes: local function identification information corresponding to the text, at least one local effective area information, at least one local version number corresponding to at least one local effective area information, and at least one local version number corresponding to at least one local effective area information.
  • Text content information corresponding to the text.
  • the file element data includes: an array composed of function identification information, at least one effective area information, and at least one version number corresponding to the at least one effective area information.
  • the local file element data includes: an array of local function identification information, at least one local effective area information, at least one local version number corresponding to at least one local effective area information, and at least one local copy content information corresponding to at least one local version number; where , the function identification information is the same as the local function identification information.
  • the server obtains the local file element data corresponding to the file element data.
  • the server detects that the local file element data is the local file element data after the copy content information corresponding to the file element data is updated.
  • the server determines that the local file element data is incremental file element data.
  • the server obtains the local file element data corresponding to the file element data.
  • the server compares the version number in the file element data with the local version number in the corresponding local file element data. If the server compares and obtains that the local version number in the local file element data is higher than the corresponding version number, the server determines that the local file element data is incremental file element data.
  • the server obtains multiple local file element data corresponding to multiple file element data.
  • the server compares the version number in the element data of each file with the local version number in the corresponding local file element data. If the server compares and obtains that the local version number in at least one local file element data among the plurality of local file element data is higher than the corresponding version number, the server determines that the at least one local file element data is at least one incremental file element data.
  • the representation in the incremental file element data corresponds to the copy content information of the latest version of the copy.
  • S105 Send the incremental file element data to the client for use by the client.
  • the server sends the incremental file element data corresponding to the client to the client through the pre-established communication line with the client.
  • the client extracts the updated copy content information in the incremental file element data, stores the updated copy content information in the storage location of the corresponding copy content information, and deletes the corresponding copy content information .
  • the server sends the incremental file element data corresponding to the client to the client through the pre-established communication line with the client.
  • the client After the client receives the incremental file element data, it extracts the updated text content information and the corresponding updated version number in the incremental file element data, stores the updated text content information in the storage location of the corresponding text text content information, and The corresponding copy content information is deleted, and at the same time, the updated version number is stored in the storage location of the version number of the corresponding copy, and the corresponding version number is deleted.
  • the file element data and its function identification information are obtained; based on the function identification information, in the preset file database, determine the local file corresponding to the function identification information Element data; based on the file element data and the local file element data, determine the incremental file element data; send the incremental file element data to the client for use by the client. Because there is local file element data corresponding to file element data sent by different types of clients of the same application in the local preset file database.
  • the server obtains the incremental file element data of the latest version of the corresponding copy by detecting the file element data of different clients, and the server sends the incremental file element data to the client for the client to update the corresponding file element data to the corresponding incremental file element Data, which in turn can improve the adaptability of copywriting for different types of clients of the same application.
  • FIG. 4 is an optional flowchart of the text adaptation method provided in the embodiment of the present application.
  • S102 shown in FIG. 2 can be implemented through S106 , which will be described in conjunction with each step.
  • the client when the target object of the client is not the first time to open the client, the client sends a request instruction to the server.
  • the server receives the request instruction sent by the client through the pre-established communication line with the client.
  • the server responds to the request instruction, parses the request instruction, and obtains the file element data and the function identification information included in the file element data, at least one effective area information corresponding to the function identification information, and at least one version number corresponding to the at least one effective area information.
  • FIG. 4 is an optional flow chart of the text adaptation method provided by the embodiment of the present application.
  • S104 shown in FIG. 2 can be implemented through S107 , which will be described in conjunction with each step.
  • the server compares at least one version number of the file element data with at least one version number in the corresponding local file element data. If the version numbers in the file element data are all smaller than the local version numbers in the local file element data, the server determines that the local file element data is incremental file element data.
  • FIG. 5 is an optional flow chart of the text adaptation method provided in the embodiment of the present application.
  • S106 shown in FIG. 4 can be implemented through S108 , which will be described in conjunction with each step.
  • the client when the target object of the client starts the client for the first time, the client sends a request instruction to the server.
  • the server receives the request instruction sent by the client through the pre-established communication line with the client.
  • the server responds to the request instruction, parses the request instruction, and obtains the file element data, the function identification information included in the file element data, and at least one effective area information corresponding to the function identification information.
  • the file element data in the request command sent by the client to the server only includes the function identification information of the corresponding copy and at least one effective area information, and does not include at least one effective area information Corresponding version number and copy content information.
  • FIG. 5 is a schematic flowchart of an optional text adaptation method provided in the embodiment of the present application.
  • S107 shown in FIG. 4 can be implemented through S109 , which will be described in conjunction with each step.
  • the server parses and obtains the function identification information and at least one effective area information included in the file element data. At the same time, if it is detected that at least one effective area information in the file element data does not have a corresponding version number, it means that the client sends the request instruction for the first time, and the file element data does not include a version number.
  • the server determines that all the local file element data corresponding to the file element data are incremental file element data.
  • the server detects different types of clients at the same time, the file element data does not include the version number. Then the server can determine that different types of clients send request instructions for the first time, and then the server determines the local file element data corresponding to different types of clients as corresponding incremental file element data.
  • FIG. 6 is an optional flow chart of the text adaptation method provided by the embodiment of the present application.
  • S107 shown in FIG. 4 can be implemented through S110 , which will be described in conjunction with each step.
  • At least one version number corresponding to the at least one effective area information obtained by the server analysis is compared with at least one corresponding local version number. If the server detects that the first version number exists in at least one version number in the file element data. The server forms the incremental file element data based on the local function identification information, the target local version number corresponding to the first version number, the target local effective area information corresponding to the target local version number, and the target local copy content information.
  • the target local version number is a local version number that is higher than the first version number;
  • the first version number is a version number that is lower than any local version number in at least one version number that is the same as its effective area information.
  • the number of the first version number may be one or more, which is not limited here.
  • At least one version number corresponding to the effective area information A and B of the function identification information 01 is V1.1 and V1.2.
  • At least one local version number corresponding to the local effective area information A and B of the corresponding local function identification information 01 is V1.3 and V1.4.
  • the server compares V1.1 with V1.3, and compares V1.2 with V1.4 at the same time. If the server determines that V1.3 is greater than V1.1, and that V1.4 is greater than V1.2, then the server determines that the first version number includes V1.1 and V1.2. Then the server packs the local function identification information 01, the local effective area information A and B, and at least one local version number of V1.3 and V1.4 to form incremental file element data.
  • the server detects that 10 of the version numbers corresponding to the multiple function identification information corresponding to the multiple file element data are lower than the level of the 10 local version numbers corresponding to the corresponding local function identification information.
  • the server extracts the target local function identification information corresponding to the 10 target local version numbers, and the 10 target local effective area information and 10 target local copy content information corresponding to the 10 target local version numbers from the preset file database to form the 10 10 incremental file element data of the copy corresponding to each version number.
  • the effective region information represents language information corresponding to the region to which the client belongs.
  • FIG. 7 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S103 shown in FIG. 4 also includes the implementation of S111 , which will be described in conjunction with each step.
  • At least one version number is the same as at least one corresponding local version number, determine that the file element data has no corresponding incremental file element data.
  • the server compares at least one version number subordinate to the function identification information with at least one local version number subordinate to the corresponding local function identification information. If the server detects that at least one version number is identical to the corresponding local version number, the service area determines that the incremental file element data of the function identification information corresponding to the at least one version number is empty. It indicates that the text of the function identification information corresponding to the at least one version number has not been updated. Furthermore, the server will not send the incremental file element data corresponding to the function identification information to the client.
  • FIG. 8 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S101 shown in FIG. 2 also includes S112 to S114, which will be described in conjunction with each step .
  • the target object of the server determines one or more replacement texts.
  • the target object transmits the replacement identification information corresponding to the replacement text to the server through the human-computer interaction device of the server.
  • the replacement text indicates that the target object needs to replace the text content information corresponding to the replacement text in the server.
  • the server obtains the replacement identification information of the replacement text.
  • the server determines from the plurality of local function identification information in the preset file database, and replaces the target local file element data corresponding to the identification information.
  • the server extracts the local effective area information included in the element data of the target local file.
  • the server determines the effective area information of the target replacement from the local effective area information.
  • the target object if the target object does not find the target replacement effective area information in the local effective area information, the target object will send the target replacement effective area information to the server through the human-computer interaction device of the server.
  • the target object transmits the content information of the replacement text corresponding to the area information of the target replacement effective area to the server through the human-computer interaction device of the server.
  • the server stores the replacement copy content information in the storage location of the corresponding local copy content information, and deletes the corresponding local copy content information at the same time. Further, the replaced local file element data is obtained, and the replaced local file element data is updated to the preset file database.
  • the target object may upload to the server the content information of the replacement text corresponding to the effective area information of the target replacement through the mobile storage.
  • the target object may input the content information of the replacement text corresponding to the effective area information of the target replacement through a keyboard on the server.
  • the content information of the local text may be "**”
  • the content information of the corresponding replacement text may be "points”.
  • FIG. 9 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S113 to S114 shown in FIG. 8 can be realized through S115 to S118, and each step will be combined Be explained.
  • the server compares the replacement identification information with a plurality of local function identification information in the preset file database. If the server detects that the replacement identification information is the same as one of the local function identification information, that is, the replacement identification information exists in the preset file database, the server extracts the local effective area information corresponding to the local function identification information corresponding to the replacement identification information.
  • the target object determines the effective area information of the target replacement from the local effective area information through the human-computer interaction device of the server.
  • the locally effective area information may be one or more.
  • the target object transmits the content information of the replacement text corresponding to the area information of the target replacement effective area to the server through the human-computer interaction device of the server.
  • the server replaces the replacement text content information with the local copy content information corresponding to the target replacement effective region information.
  • the target object inputs to the server the replacement version number corresponding to the target replacement effective region information through the human-computer interaction device of the server.
  • the server configures the replacement version number to the information of the region where the target replacement takes effect. Then the replacement local text element data is obtained.
  • the server stores the replaced local file element data in a storage location corresponding to the local file element data, and deletes the corresponding local file element data.
  • FIG. 10 is an optional flow chart of the text adaptation method provided by the embodiment of the present application.
  • S113 shown in FIG. 8 can also be implemented through S119 to S122, which will be performed in combination illustrate.
  • the server compares the replacement identification information with a plurality of local function identification information in the preset file database. If the server detects that the replacement identification information is the same as one of the local function identification information, that is, the replacement identification information exists in the preset file database, the server extracts the local effective area information corresponding to the local function identification information corresponding to the replacement identification information. The server obtains a prompt message that the local effective area information entered by the target object does not have target replacement effective area information. The server displays a prompt message for adding effective area information on the current page.
  • the prompt information may be an input window for new effective area information.
  • the target object of the server inputs to the server the new effective area information fed back in response to the prompt information through the human-computer interaction device of the server.
  • the server takes the new effective area information as a target to replace the effective area information.
  • the server detects whether the format or content of the new effective area information is correct, and at the same time, the server detects whether there is local effective area information corresponding to the new effective area information in the preset file database.
  • the server of the application detects that the format of the new effective area information is correct, and there is no corresponding local effective area information in the preset file database.
  • the server adds the new effective area information to the corresponding local effective area information, and determines that the new effective area information is the target replacement effective area information.
  • FIG. 11 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S113 shown in FIG. 8 can also be implemented through S123 to S120, which will be performed in combination illustrate.
  • the replacement identification information does not exist in the preset file database, and the replacement identification information is correct and unique, displaying a prompt message for adding effective region information.
  • the server detects that there is no local function identification information corresponding to the replacement identification information in the preset file database. Moreover, the server detects that the format of the replacement identification information is correct, and then the server displays a prompt message for adding effective region information on the current page.
  • FIG. 12 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S121 shown in FIG. 10 also includes S124 , which will be described in conjunction with each step.
  • the server if the server detects that the format of the new effective area information is incorrect or the new effective area information has corresponding effective area information in the local effective area information, the server will display on the current page that the new effective area information has been entered incorrectly or that it already exists. prompt information.
  • FIG. 13 is an optional flow chart of the text adaptation method provided by the embodiment of the present application.
  • S112 shown in FIG. 8 also includes S125 , which will be described in conjunction with each step.
  • FIG. 14 is an optional schematic flowchart of the text adaptation method provided in the embodiment of the present application, which will be described in combination with each step.
  • the server receives a request instruction from the client.
  • the server receives the request instruction sent by the client through the pre-established communication line with the client.
  • the server parses the file element data in the request instruction, and obtains function identification information, effective area information and version number.
  • the server determines the local file element data corresponding to the file element data from the server database.
  • the server may determine the local file element data in the preset file database through the function identification information of the file element data.
  • the server compares the version number in the local file element data with the version number in the corresponding file element data.
  • the server compares the version number in the file element data with the local version number in the corresponding local file element data. If the two version numbers are the same, the server will not issue the version number corresponding to the version number. Delta file element data.
  • the version number of the local file element data is greater than the version number in the file element data.
  • the server if the client sends a request instruction to the server for the first time, the server will detect that the version number in the file element data is empty.
  • the server adds the function identification information corresponding to the version number, copy content information, version number and effective area information to the incremental file element data.
  • the server detects that the level of the version number is higher than the level of the corresponding local version number.
  • the server combines the corresponding local function identification information, copy content information, and effective area information to form incremental file element data corresponding to the local version number.
  • the server sends the incremental file element data to the client.
  • FIG. 15 is an optional schematic flowchart of the text adaptation method provided by the embodiment of the present application, which will be described in combination with each step.
  • the server obtains the replacement identification information of the replacement text through the interface.
  • the server detects whether the replacement identification information exists in the database.
  • the server detects that the replacement function identification information does not exist in the database. Then check whether the replacement function identification information is normal.
  • the server reports an error on the replacement identification information.
  • the server checks and finds that the replacement function identification information is abnormal, it reports an error.
  • the server displays the effective area information list of the replaced identification information.
  • the server if the server detects that the replacement function identification information exists in the database. Then the server will display a list of valid area information for the replaced functional identification information.
  • the target object checks whether there is effective area information to be modified.
  • the server prompts the target object to input new effective area information.
  • the server will prompt the target object to input new effective area information on the current page.
  • the server checks whether the new effective area information is normal.
  • the server reports an error to the new effective area information.
  • the server adds new effective area information to the list.
  • the server if the server detects that the new effective area information is normal, the server will add the effective area information into the list.
  • the server acquires information about a valid area selected by the target object.
  • the server will obtain the touch information of the target object and then select certain effective area information as the target modification effective area information.
  • the server prompts the target object to input new copy content information.
  • the server adds the corresponding version number to the new copy content information and adds it into the database.
  • FIG. 16 is a schematic flowchart of an optional text adaptation method provided by the embodiment of the present application, which will be described in conjunction with the steps shown in FIG. 16 .
  • the target object of the client when the target object of the client needs to start the client, the target object sends a touch instruction to the device to which the client belongs. After the client receives the touch command, it responds to the touch command and then the client turns on. At the same time, the client extracts the file element data corresponding to the copy from the storage location corresponding to the copy in the client. Wherein, the file element data includes the function identification information of the corresponding copy.
  • the touch instruction may include a touch instruction sent by the target object through a human-computer interaction component on a corresponding terminal device.
  • the touch command may be a single-click or double-click operation sent by the target object to the client.
  • the touch command may also be a voice control command sent by the target object to the client.
  • the target object clicks the client through the human-computer interaction component on the terminal, and the client starts after receiving the click instruction.
  • the client extracts multiple file element data corresponding to multiple copywriting from its own storage.
  • each file element data in the plurality of file element data includes at least the function identification information of the corresponding copy, at least one effective area information corresponding to the function identification information, and a version number corresponding to at least one effective area information.
  • the client carries the file element data in the request instruction and sends it to the server through the pre-established communication line with the server.
  • the client carries the file element data corresponding to the copy in the request instruction and sends it to the server through the pre-established communication line with the server.
  • the server parses the file element data corresponding to the copy, and obtains the corresponding function identification information.
  • the server determines the latest version of the incremental file element data among the multiple local file element data based on the function identification information.
  • the server sends the incremental file element data to the client through the pre-established communication line with the client.
  • the client receives incremental file element data.
  • the incremental file element data includes the content information of the latest version of the corresponding copy.
  • the client carries multiple file element data corresponding to multiple texts in the request instruction and sends it to the server.
  • the server parses the file element data corresponding to the multiple texts, and obtains multiple function identification information corresponding to the multiple texts.
  • the server determines at least one incremental file element data of the latest version corresponding to the multiple texts from among the multiple local file element data based on the multiple pieces of function identification information.
  • the server sends the incremental file element data to the client through the pre-established communication line with the client.
  • the client receives incremental file element data.
  • the client parses the element data of the incremental file, and obtains the update function identification information in the element data of the incremental file.
  • the client determines at least one piece of target function identification information corresponding to the updated function identification information from among the plurality of local function identification information.
  • the client determines the storage location corresponding to the target function identification information, and stores the latest version of copy content information in the corresponding incremental file element data in the corresponding target storage location.
  • the client after the client acquires at least one incremental file element data, it parses at least one incremental file element data, and obtains the update function identification information, update effective area information, and update information in at least one incremental file element data.
  • the client determines at least one piece of target function identification information corresponding to the updated function identification information from among the multiple pieces of function identification information.
  • the client determines the storage location corresponding to the target function identification information.
  • the client stores the update version number and the corresponding update text content information in the corresponding update file element data in the corresponding target storage location.
  • the copy content information corresponding to the effective area information of the copy to be updated in the client is updated to the latest version of the copy content information.
  • FIG. 17 is an optional flow chart of the text adaptation method provided by the embodiment of the present application.
  • S130 shown in FIG. 16 can be realized through S134 to S135, which will be described in conjunction with each step .
  • the target object when the target object opens the client for the first time. After the client acquires the touch command of the target object, the client responds to the touch command and extracts the function identification information and at least one effective area information pre-stored in the corresponding memory. Since the target object is opening the client for the first time, the copy in the client does not have the corresponding version number and copy content information.
  • the effective area information may represent the application language information of the area to which the client currently belongs.
  • the client forms the file element data corresponding to the copy based on the function identification information of the copy and at least one effective area information.
  • the client can form multiple file element data corresponding to multiple copywriting through the same method.
  • FIG. 18 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S130 shown in FIG. 16 can be realized through S136 to S137 , which will be described in conjunction with each step .
  • the client when the target object does not open the client for the first time. After the client obtains the touch command of the target object, the client responds to the touch command and extracts the pre-stored function identification information, at least one effective area information, and at least one version number corresponding to at least one effective area information in the corresponding memory . Since the target object is not opening the client for the first time, the copy in the client already has a corresponding version number and copy content information, and the relevant copy content information has been displayed.
  • the client forms the file element data corresponding to the copy based on the function identification information corresponding to the copy, at least one effective area information and at least one version number.
  • the function identification information corresponding to the copywriting is Key_Cancel.
  • the regional function identification information corresponding to the text can be "chinese", “english” and “thailand”. Among them, the version number corresponding to "chinese” is V1.0. The version number corresponding to "english” is V2.0. The version number corresponding to "thailand” is V1.2.
  • the copy content information corresponding to the version number V1.0 is “Cancel”
  • the copy content information corresponding to the version number V1.0 is “Cancel”
  • the copy content information corresponding to the version number V1.2 is “Cancel”
  • the copy content information corresponding to the version number V1.2 is “Cancel”
  • FIG. 18 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S133 shown in FIG. 16 can be realized through S138 to S140, which will be described in conjunction with each step .
  • the client parses the incremental file element data, and obtains the update function identification information corresponding to the incremental file element data, at least one update effective area information, at least one update version number corresponding to at least one update effective area information, and At least one update copy content information corresponding to at least one update effective area information.
  • the updated function identification information is the same as the function identification information of the corresponding copy.
  • At least one update valid area information is the same as the corresponding valid area information of the corresponding function identification information.
  • the client compares the updated function identification information with a plurality of function identification information, and determines the target function identification information corresponding to the updated function identification information from the plurality of function identification information.
  • the client determines the target storage location of the target copy corresponding to the target function identification information.
  • the target storage location may be the original storage area information in the local storage of the function identification information, effective area information, version number and copy content information corresponding to the target copy.
  • the client stores the update version number of each update effective area information in the version number of the corresponding effective area information according to the corresponding relationship between the update effective area information and the corresponding effective area function identification information
  • the corresponding target storage location stores the updated copy content information under each update effective area information in the target storage location to which the copy content information under the corresponding effective area information belongs.
  • the client deletes the version number and copy content information under the corresponding effective area information.
  • the client will create a new effective area information in the file element data.
  • area information storage area and store the update effective area information in this area, and store the update version number and update text content information corresponding to the update effective area information in the version number and copy content information corresponding to the update effective area storage area.
  • FIG. 20 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S130 shown in FIG. 16 also includes the implementation of S141 to S142, which will be carried out in combination with each step illustrate.
  • S141 Acquire initial data of file elements; the initial data of file elements includes: function identification information of copywriting and information of at least one effective area.
  • the client obtains the initial data of file elements corresponding to multiple copywriting.
  • the initial data of each file element includes the function identification information of the corresponding copy, and at least one effective area information.
  • the client divides the storage location corresponding to the initial data of each element of each copy in its own memory, and stores the initial data of each element in the corresponding storage location.
  • the client includes 100 copywriting.
  • the client divides the storage locations corresponding to 100 copywriting in its own memory, and the client stores the initial data of elements corresponding to the 100 copywriting in the storage locations corresponding to the division of copywriting.
  • FIG. 21 is an optional flow chart of the text adaptation method provided by the embodiment of the present application.
  • S131 shown in FIG. 16 is followed by the implementation of S143 to S144, which will be carried out in combination with each step illustrate.
  • the server detects whether the corresponding copy is updated for the first time.
  • the detected copy is updated for the first time, and an error is reported to the copy.
  • the client if the client detects that the corresponding copy is updated for the first time, the client will report an error to the target object.
  • FIG. 22 is an optional flowchart of the text adaptation method provided by the embodiment of the present application.
  • S133 shown in FIG. 16 is followed by the implementation of S145 to S146, which will be carried out in combination with each step illustrate.
  • the client when the target object is using the client, the client receives an instruction from the target object to execute a program for displaying text to be displayed.
  • the client obtains the identification information to be displayed and the effective area information to be displayed according to the program.
  • the effective area information to be displayed represents the language information of the area to which the client belongs.
  • S146 Determine the storage location to be displayed corresponding to the text to be displayed in the local storage based on the identification information to be displayed, and extract and display the content information of the text to be displayed corresponding to the effective area information to be displayed at the storage location to be displayed.
  • the client extracts the content information of the text to be displayed corresponding to the effective region information to be displayed from the local storage of the text to be displayed. According to the display area information of each text to be displayed in the program executing the text to be displayed, the client displays the content information of the corresponding text to be displayed.
  • FIG. 23 is an optional schematic flowchart of the text adaptation method provided by the embodiment of the present application, which will be described in combination with each step.
  • the client terminal is started, and the local database copy resources are acquired.
  • the client sends all copywriting resource data to the server.
  • the client parses the incremental file element data responded by the server.
  • the client updates the version number and copy content information in the incremental file element data sent by the server.
  • the client acquires copy content information of the corresponding copy according to the function identification information corresponding to the copy for use.
  • the client detects whether this update is the first full update.
  • FIG. 24 is an interactive diagram of the text adaptation method provided by the embodiment of the present application, which will be described in combination with each step.
  • the client acquires the touch command of the target object, responds to the touch command, and extracts file element data from the storage location corresponding to the copy.
  • step S301 is consistent with the implementation of S130, and will not be repeated here.
  • the server receives the request instruction sent by the client.
  • step S302 is consistent with the implementation of S101, and will not be repeated here.
  • the server responds to the request instruction to obtain file element data and its function identification information.
  • step S303 is consistent with the implementation of S102, and will not be repeated here.
  • the server determines local file element data corresponding to the function identification information in the preset file database.
  • step S304 is consistent with the implementation of S103, and will not be repeated here.
  • the server determines incremental file element data based on the file element data and the local file element data.
  • step S305 is consistent with the implementation of S104, and will not be repeated here.
  • the server sends the incremental file element data to the client for use by the client.
  • step S306 is consistent with the implementation of S105, and will not be repeated here.
  • FIG. 25 is a schematic structural diagram of a text adaptation device provided in an embodiment of the present application.
  • the embodiment of the present application provides a text adaptation device 800 , including: a first receiving unit 803 , a first responding unit 804 , a first processing unit 805 , a determining unit 806 and a first sending unit 807 .
  • the first receiving unit 803 is configured to receive a request instruction sent by the client;
  • the first response unit 804 is configured to respond to the request instruction to obtain file element data and its function identification information
  • the first processing unit 805 is configured to determine local file element data corresponding to the function identification information in the preset file database based on the function identification information;
  • a determining unit 806, configured to determine the incremental file element data based on the text element data and the local file element data
  • the first sending unit 807 is configured to send the incremental file element data to the client for use by the client.
  • the file element data includes: an array composed of function identification information, at least one effective area information, and at least one version number corresponding to at least one effective area information;
  • the local file element data includes: local function identification information, at least one local An array composed of effective area information, at least one local version number corresponding to at least one local effective area information, and at least one local copy content information corresponding to at least one local version number; wherein, the function identification information is the same as the local function identification information.
  • the determining unit 806 in the text adaptation device 800 is used to determine that the local file element data is incremental file element data if the version number in the file element data is smaller than the local version number in the local file element data .
  • the determining unit 806 in the copy adaptation device 800 is configured to determine that the local file element data is incremental file element data if at least one effective area information in the file element data has no corresponding version number.
  • the determining unit 806 in the copy adaptation device 800 is configured to, if at least one version number in the file element data contains the first version number, then based on the local function identification information, the target corresponding to the first version number
  • the local version number, the target local effective area information corresponding to the target local version number, and the target local copy content information form incremental file element data; wherein, the target local version number is a local version number higher than the first version number;
  • the first version number is a version number of the at least one version number that is lower than any local version number that is the same as its effective area information.
  • the determining unit 806 in the copy adaptation device 800 is configured to determine that the file element data has no corresponding incremental file element data if at least one version number is the same as the corresponding at least one local version number.
  • the determination unit 806 in the copy adaptation device 800 is used to respond to the request instruction, parse the request instruction to obtain the file element data, and the function identification information included in the file element data, and at least one effective area information corresponding to the function identification information .
  • the first response unit 804 in the text adaptation device 800 is used to respond to the request instruction, parse the request instruction to obtain the file element data, and at least one of the function identification information included in the file element data and the function identification information corresponding to the effective The region information and at least one version number corresponding to the at least one effective region information.
  • the first receiving unit 803 in the copy adaptation device 800 is used to receive the replacement identification information of the replacement copy, and the determination unit 806 is used to determine the effective area information of the target replacement based on the replacement identification information; the first receiving unit 803 is also used to receive the replacement copy content information, use the replacement copy content, replace the local copy content information corresponding to the target replacement effective area information, obtain the replacement local file element data, and update it to the preset file database.
  • the determining unit 806 in the copy adaptation device 800 is configured to determine if the replacement identification information exists in the preset file database, and the preset file database has local effective area information corresponding to the replacement identification information, then determine target replacement effective region information; or,
  • the replacement identification information exists in the default file database, and the local effective area information corresponding to the replacement identification information in the default file database does not contain target replacement effective area information, or the replacement identification information does not exist in the default file database , and the replacement identification information is correct and unique, a prompt message for adding effective area information will be displayed;
  • the determination unit 806 in the text adaptation device 800 is used to detect whether the new effective area information is correct and unique; if the detected new effective area information is correct and unique, add the new effective area to the local effective area information information, and determine the new effective area information as the target replacement effective area information.
  • the determination unit 806 in the copy adaptation device 800 is configured to display a prompt message on the current page that the information of the new effective area is entered incorrectly or that it is not unique.
  • the determination unit 806 in the text adaptation device 800 is used to detect that the replacement identification information is incorrect or not unique, and then display a prompt message indicating that the replacement identification information is entered incorrectly or already exists on the current page.
  • the first receiving unit 803 in the copy adaptation device 800 is used to receive the replacement copy content information, use the replacement copy content information to replace the local copy content information corresponding to the target replacement effective area information; obtain the target replacement effective The replacement version number corresponding to the area information, and configure the corresponding replacement version number for the target replacement effective area information, and then obtain the replacement local file element data; update the replacement local file element data to the preset file database.
  • the first receiving unit 803 receives the request instruction sent by the client; the first response unit 804 responds to the request instruction to obtain the file element data and its function identification information; the first processing unit 805 based on the function identification information , in the preset file database, determine the local file element data corresponding to the function identification information; determine the incremental file element data based on the file element data and the local file element data through the determining unit 806; File element data is sent to the client for use by the client. Because there is local file element data corresponding to file element data sent by different types of clients of the same application in the local preset file database.
  • the server obtains the incremental file element data of the latest version of the corresponding copy by detecting the file element data of different clients, and the server sends the incremental file element data to the client for the client to update the corresponding file element data to the corresponding incremental file element Data, which in turn can improve the adaptability of copywriting for different types of clients of the same application.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented.
  • the embodiment of the present application provides a copy adaptation device 800, including a first memory 802 and a first processor 801, the first memory 802 stores a computer program that can run on the first processor 801, and the first processing The steps in the above methods are realized when the program is executed by the device 801.
  • FIG. 26 is a first schematic diagram of a hardware entity of the text adaptation device provided in the embodiment of the present application.
  • the hardware entity of the text adaptation device 800 includes: a first processor 801 and a second A memory 802, wherein;
  • the first processor 801 generally controls the overall operation of the copy adaptation device 800 .
  • the first memory 802 is configured to store instructions and applications executable by the first processor 801, and can also cache data to be processed or processed by the modules in the first processor 801 and the document adaptation device 800 (for example, image data , audio data, voice communication data and video communication data), can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM).
  • FLASH flash memory
  • RAM Random Access Memory
  • FIG. 27 is a second structural schematic diagram of a text adaptation device provided in an embodiment of the present application.
  • the embodiment of the present application also provides a text adaptation device, including: an acquisition unit 903 , an extraction unit 904 , a second sending unit 905 , a second receiving unit 906 and a storage unit 907 .
  • An acquiring unit 903 configured to acquire a touch command of the target object and respond to the touch command;
  • An extracting unit 904 configured to extract file element data at a storage location corresponding to the copy; the file element data includes: function identification information of the copy;
  • the second sending unit 905 is configured to carry the file element data in the request instruction and send it to the server;
  • the second receiving unit 906 is configured to receive the incremental file element data fed back by the server in response to the request instruction; the incremental file element is obtained based on the file element data and the local file element data in the server;
  • the storage unit 907 is configured to update the incremental file element data to a corresponding target storage location for use based on the function identification information.
  • the acquisition unit 903 in the text adaptation device 900 is used to acquire the touch command of the target object, and in response to the touch command, the extraction unit 904 extracts the function identification information corresponding to the text and at least One effective area information; based on the function identification information and at least one effective area information, file element data is formed.
  • the acquisition unit 903 in the text adaptation device 900 is used to acquire the touch command of the target object, and in response to the touch command, the extraction unit 904 extracts the function identification information corresponding to the text from the storage location corresponding to the text, at least One effective area information and at least one version number corresponding to at least one effective area information; file element data is formed based on the function identification information, at least one effective area information and at least one version number.
  • the storage unit 907 in the text adaptation device 900 is used to parse the incremental file element data to obtain the update identification information, at least one update effective area information, and at least one update effective area information in the incremental file element data Corresponding at least one update version number and at least one update text content information corresponding to at least one update effective area information; determine the target storage location corresponding to the function identification information in the local storage; at least one update effective area information, at least one update version number Classification corresponding to at least one update copy content information is stored in the target storage location for use.
  • the acquiring unit 903 in the copy adaptation device 900 is used to acquire the initial file element data;
  • the file element initial data includes: the function identification information of the copy and at least one effective area information;
  • the file element initial data is stored in the corresponding The storage location of the copy.
  • the copy adaptation device 900 is used to detect whether the copy is updated for the first time if the incremental file element data fed back by the server is not received; if the detected copy is the first update, an error is reported to the copy.
  • the acquisition unit 903 in the copy adaptation device 900 is used to obtain the to-be-displayed identification information and the to-be-displayed effective area information of the to-be-displayed copy when displaying the to-be-displayed copy; based on the to-be-displayed identification information, store locally Determine the to-be-displayed storage location corresponding to the to-be-displayed copywriting in the to-be-displayed storage location, and extract the to-be-displayed copywriting content information corresponding to the to-be-displayed effective area information from the to-be-displayed storage location for display.
  • the acquisition unit 903 acquires the touch command of the target object, and in response to the touch command, the extraction unit 904 extracts the file element data; the second sending unit 905 carries the copy file element data in the request command and sends it to The server receives the incremental file element data fed back by the server in response to the request instruction through the second receiving unit 906; the incremental file element is obtained based on the file element data and the local file element data in the server; through the storage unit 905 based on the function identification information , update the incremental file element data to the corresponding target storage location for use.
  • the target object Because every time the target object opens the client, it will send the file element data of all the copywriting in the client to the server, and then receive the updated incremental file element data of the corresponding copy sent by the server.
  • the incremental file element data includes corresponding copy content information
  • the client stores the incremental file element data in the corresponding target storage location according to the identification information of the file element data corresponding to the incremental file element data, thereby allowing the client to Once the terminal is opened, it will obtain the latest version of the updated file element data, thereby improving the copy adaptation of different types of clients of the same application.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented.
  • the embodiment of the present application provides a copy adaptation device 900, including a second memory 902 and a second processor 901, the second memory 902 stores a computer program that can run on the second processor 901, and the second processing The steps in the above methods are realized when the program is executed by the device 901.
  • FIG. 28 is a second schematic diagram of a hardware entity of the text adaptation device provided in the embodiment of the present application.
  • the hardware entity of the text adaptation device 900 includes: a second processor 901 and a second processor 901 Two memory 902, wherein;
  • the second processor 901 generally controls the overall operation of the copy adaptation device 900 .
  • the second memory 902 is configured to store instructions and applications executable by the second processor 901, and can also cache data to be processed or processed by the modules in the second processor 901 and the document adaptation device 900 (for example, image data , audio data, voice communication data and video communication data), can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM).
  • FLASH flash memory
  • RAM Random Access Memory
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of units is only a logical function division.
  • the coupling, or direct coupling, or communication connection between the various components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
  • the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
  • the computer software products are stored in a storage medium and include several instructions to make A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, ROMs, magnetic disks or optical disks.
  • the file element data and its function identification information are obtained by receiving the request instruction sent by the client and responding to the request instruction. Based on the function identification information, the local file element data corresponding to the function identification information is determined in the preset file database, and the incremental file element data is determined based on the file element data and the local file element data and sent to the client. In this way, the local preset file database has local file element data corresponding to file element data sent by different types of clients of the same application.
  • the server obtains the incremental file element data of the latest version of the corresponding copy by detecting the file element data of different clients, and the server sends the incremental file element data to the client for the client to update the corresponding file element data to the corresponding incremental file element Data, which in turn can improve the adaptability of copywriting for different types of clients of the same application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供了一种文案适配方法、装置及存储介质,通过接收客户端发送的请求指令;响应请求指令,得到文件元素数据及其功能标识信息;基于功能标识信息,在预设文件数据库中,确定与功能标识信息对应的本地文件元素数据;基于文件元素数据和本地文件元素数据,确定增量文件元素数据并发送给客户端。由于本地预设文件数据库中有同一应用的不同类型客户端发送的文件元素数据对应的本地文件元素数据。服务器通过检测不同客户端的文件元素数据得到对应文案最新版本的增量文件元素数据,服务器将增量文件元素数据发送给客户端,供客户端将对应的文件元素数据更新为对应的增量文件元素数据,进而可以提高同一应用不同类型客户端的文案适配度。

Description

文案适配方法、装置及存储介质
相关申请的交叉引用
本申请基于申请号为202110722079.9、申请日为2021年06月28日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请实施例涉及计算机及互联网技术领域,涉及一种文案适配方法、装置及存储介质。
背景技术
文案指的是在应用程序(Application,APP)、网页中显示给用户的字符文字。相关技术中,文案可以存储在不同的位置,可以将文案的存储位置分为两种:
1、存储在APP、网页的本地资源库中,不需要网络就可以显示。2、存储在服务器中,APP、网页等需要通过网络获取之后才可以显示。
目前大部分APP、网页、服务器为了适配多个国家的业务流程,通常会在文案的代码工程内保存对应的多套语言文案。APP、网页可以根据不同国家选取不同的语言文案来进行适配显示。示例性的,结合图1:当APP或者网页在英文国家进行应用时,APP或者网页显示英文文案。APP或者网页可以调取Key1对应的cancel进行显示,APP或者网页可以调取Key2对应的confirm进行显示。当APP或者网页在中文国家进行应用时,APP或者网页显示中文文案。APP或者网页可以调取Key1对应的取消进行显示,APP或者网页可以调取Key2对应的确定进行显示。
当一个应用对应的APP、网页和服务器适用于不同语言的国家时,在APP、网页、服务器的本地资源中就会有一套对应的语言适配文案。由于APP、网页、服务器对应的适配文案不是一个团队开发维护,经常会导致同一个应用的APP、网页和服务器的同一个业务流程所对应的文案不同。
发明内容
本申请实施例提供的一种文案适配方法、装置及存储介质,可以提高同一应用不同类型客户端的文案适配度。
本申请的技术方案是这样实现的:
本申请实施例提供了一种文案适配方法,包括:
接收客户端发送的请求指令;
响应所述请求指令,得到文件元素数据及其功能标识信息;
基于所述功能标识信息,在预设文件数据库中,确定与所述功能标识信息对应的本地文件元素数据;
基于所述文件元素数据和所述本地文件元素数据,确定增量文件元素数据;
将所述增量文件元素数据发送给所述客户端,供所述客户端使用。
上述方案中,所述文件元素数据包括:所述功能标识信息、至少一个生效区域信息和所述至少一个生效区域信息对应的至少一个版本号组成的数组;
所述本地文件元素数据包括:本地功能标识信息、至少一个本地生效区域信息、所述 至少一个本地生效区域信息对应的至少一个本地版本号和所述至少一个本地版本号对应的至少一个本地文案内容信息组成的数组;
其中,所述功能标识信息与所述本地功能标识信息相同。
上述方案中,所述基于所述文本元素数据和所述本地文件元素数据,确定增量文件元素数据,包括:
若所述文件元素数据中的版本号,小于所述本地文件元素数据中的本地版本号,则确定所述本地文件元素数据为所述增量文件元素数据。
上述方案中,所述基于所述文本元素数据和所述本地文件元素数据,确定增量文件元素数据,包括:
若所述文件元素数据中的所述至少一个生效区域信息无对应的版本号,则确定所述本地文件元素数据为所述增量文件元素数据。
上述方案中,所述若所述文件元素数据中的版本号,小于所述本地文件元素数据中的本地版本号,则确定所述本地文件元素数据为所述增量文件元素数据,包括:
若所述文件元素数据中的所述至少一个版本号中存在第一版本号,则基于所述本地功能标识信息、与所述第一版本号对应的目标本地版本号、与所述目标本地版本号对应的目标本地生效区域信息和目标本地文案内容信息,形成所述增量文件元素数据;其中,所述目标本地版本号为比所述第一版本号的版本高的本地版本号;所述第一版本号为所述至少一个版本号中低于与其生效区域信息相同的任意一个本地版本号的版本号。
上述方案中,所述方法还包括:
若所述至少一个版本号均与对应的所述至少一个本地版本号相同,则确定所述文件元素数据无对应的所述增量文件元素数据。
上述方案中,所述响应所述请求指令,得到文件元素数据及其功能标识信息,包括:
响应所述请求指令,解析所述请求指令得到所述文件元素数据,及所述文件元素数据包括的所述功能标识信息、所述功能标识信息对应的至少一个生效区域信息。
上述方案中,所述响应所述请求指令,得到文件元素数据及其功能标识信息,包括:
响应所述请求指令,解析所述请求指令得到所述文件元素数据,及所述文件元素数据包括的所述功能标识信息、所述功能标识信息对应的至少一个生效区域信息和所述至少一个生效区域信息对应的至少一个版本号。
上述方案中,所述接收客户端发送的请求指令之前,所述方法还包括:
接收替换文案的替换标识信息;
基于所述替换标识信息,确定出目标替换生效区域信息;
接收替换文案内容信息,采用所述替换文案内容信息,替换掉所述目标替换生效区域信息对应的本地文案内容信息,得到替换本地文件元素数据,并更新至所述预设文件数据库。
上述方案中,所述基于所述替换标识信息,确定出目标替换生效区域信息,包括:
若所述替换标识信息存在于所述预设文件数据库中,且所述预设文件数据库存在与所述替换标识信息对应的本地生效区域信息,则确定出所述目标替换生效区域信息;或者,
若所述替换标识信息存在于所述预设文件数据库中,且所述预设文件数据库中与所述替换标识信息对应的本地生效区域信息中不存在所述目标替换生效区域信息,或者,所述替换标识信息不存在于所述预设文件数据库中,且所述替换标识信息正确且唯一,则显示添加生效区域信息的提示信息;
接收响应所述提示信息反馈的新生效区域信息,将所述新生效区域信息作为所述目标替换生效区域信息。
上述方案中,所述接收响应所述提示信息反馈的新生效区域信息,所述新生效区域信息作为所述目标替换生效区域信息之后,所述方法还包括:
检测所述新生效区域信息是否正确且唯一;
若检测得到所述新生效区域信息正确且唯一,则在所述本地生效区域信息中添加所述新生效区域信息,并确定所述新生效区域信息为所述目标替换生效区域信息。
上述方案中,所述方法还包括:
若检测得到所述新生效区域信息错误或者不唯一,则在当前页面显示所述新效区域信息输入错误或者已存在的提示信息。
上述方案中,所述接收替换文案的替换标识信息之后,所述方法还包括:
检测得到所述替换标识信息错误或者不唯一,则在当前页面显示所述替换标识信息输入错误或者已存在的提示信息。
上述方案中,所述接收替换文案内容信息,采用所述替换文案内容信息,替换掉所述目标替换生效区域信息对应的本地文案内容信息,得到替换本地文件元素数据,并更新至所述预设文件数据库,包括:
接收所述替换文案内容信息,采用所述替换文案内容信息,替换掉所述目标替换生效区域信息对应的所述本地文案内容信息;
获取所述目标替换生效区域信息对应的替换版本号,并给所述目标替换生效区域信息配置对应的所述替换版本号,进而得到所述替换本地文件元素数据;
将所述替换本地文件元素数据更新至所述预设文件数据库。
本申请实施例还提供了一种文案适配方法,包括:
获取目标对象的触控指令,响应所述触控指令,在文案对应的存储位置提取文件元素数据;所述文件元素数据包括:所述文案的功能标识信息;
将所述文件元素数据携带在请求指令中发送给服务器;
接收所述服务器响应所述请求指令反馈的增量文件元素数据;所述增量文件元素是基于所述文件元素数据和所述服务器中的本地文件元素数据得到的;
基于所述功能标识信息,将所述增量文件元素数据更新到对应的目标存储位置进行使用。
上述方案中,所述获取目标对象的触控指令,响应所述触控指令,在文案对应的存储位置提取文件元素数据,包括:
获取所述目标对象的所述触控指令,响应所述触控指令,在所述文案对应的存储位置提取所述文案对应的所述功能标识信息和至少一个生效区域信息;
基于所述功能标识信息和所述至少一个生效区域信息,形成所述文件元素数据。
上述方案中,所述获取目标对象的触控指令,响应所述触控指令,在文案对应的存储位置提取文件元素数据,包括:
获取所述目标对象的所述触控指令,响应所述触控指令,在所述文案对应的存储位置提取所述文案对应的所述功能标识信息、至少一个生效区域信息和所述至少一个生效区域信息对应的至少一个版本号;
基于所述功能标识信息、所述至少一个生效区域信息和所述至少一个版本号,形成所述文件元素数据。
上述方案中,所述基于所述功能标识信息,将所述增量文件元素数据更新到对应的目标存储位置进行使用,包括:
解析所述增量文件元素数据,得到所述增量文件元素数据中的更新标识信息、至少一个更新生效区域信息、所述至少一个更新生效区域信息对应的至少一个更新版本号和所述至少一个更新生效区域信息对应的至少一个更新文案内容信息;
在本地存储中确定所述功能标识信息对应的所述目标存储位置;
将所述至少一个更新生效区域信息、所述至少一个更新版本号和所述至少一个更新文案内容信息对应分类存储在所述目标存储位置进行使用。
上述方案中,所述获取目标对象的触控指令,响应所述触控指令,在文案对应的存储位置提取文件元素数据之前,所述方法还包括:
获取文件元素初始数据;所述文件元素初始数据包括:所述文案的所述功能标识信息和至少一个生效区域信息;
将所述文件元素初始数据存储在对应文案的存储位置。
上述方案中,所述将所述文件元素数据携带在请求指令中发送给服务器之后,所述方法还包括:
若未接收所述服务器反馈的所述增量文件元素数据,则检测所述文案是否为首次更新;
检测得到所述文案为首次更新,对所述文案进行报错。
上述方案中,所述基于所述功能标识信息,将所述增量文件元素数据更新到对应的目标存储位置进行使用之后,所述方法还包括:
在进行显示待显示文案时,获取所述待显文案的待显标识信息和待显生效区域信息;
基于所述待显标识信息在本地存储中确定所述待显文案对应的待显示存储位置,在所述待显示存储位置提取所述待显生效区域信息对应的待显文案内容信息进行显示。
本申请实施例还提供了一种文案适配装置,包括:
第一接收模块,被配置为接收客户端发送的请求指令;
第一响应模块,被配置为响应所述请求指令,得到文件元素数据及其功能标识信息;
第一处理模块,被配置为基于所述功能标识信息,在预设文件数据库中,确定与所述功能标识信息对应的本地文件元素数据;
确定模块,被配置为基于所述文本元素数据和本地文件元素数据,确定增量文件元素数据;
第一发送模块,被配置为将所述增量文件元素数据发送给所述客户端,供所述客户端进行使用。
本申请实施例还提供了一种文案适配装置,包括:
获取模块,被配置为获取目标对象的触控指令,响应所述触控指令;
提取模块,被配置为在文案对应的存储位置提取文件元素数据;所述文件元素数据包括:所述文案的功能标识信息;
第二发送模块,被配置为将所述文件元素数据携带在请求指令中发送给服务器;
第二接收模块,被配置为接收所述服务器响应所述请求指令反馈的增量文件元素数据;所述增量文件元素是基于所述文件元素数据和所述服务器中的本地文件元素数据得到的;
存储单元,用于基于所述功能标识信息,将所述增量文件元素数据更新到对应的目标存储位置,以进行使用。
本申请实施例还提供了一种文案适配装置,包括第一存储器和第一处理器,所述第一存储器存储有可在第一处理器上运行的计算机程序,所述第一处理器执行所述程序时实现服务器一侧方法中的步骤。
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被第一处理器执行时实现服务器一侧方法中的步骤。
本申请实施例还提供了一种文案适配装置,包括第二存储器和第二处理器,所述第二存储器存储有可在第二处理器上运行的计算机程序,所述第二处理器执行所述程序时实现客户端一侧方法中的步骤。
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被第二处理器执行时实现客户端方法中的步骤。
本申请实施例中,通过接收客户端发送的请求指令;响应请求指令,得到文件元素数据及其功能标识信息;基于功能标识信息,在预设文件数据库中,确定与功能标识信息对应的本地文件元素数据;基于文件元素数据和本地文件元素数据,确定增量文件元素数 据;将增量文件元素数据发送给客户端,供客户端使用。由于本地预设文件数据库中有同一应用的不同类型客户端发送的文件元素数据对应的本地文件元素数据。服务器通过检测不同客户端的文件元素数据得到对应文案最新版本的增量文件元素数据,服务器将增量文件元素数据发送给客户端,供客户端将对应的文件元素数据更新为对应的增量文件元素数据,进而可以提高同一应用不同类型客户端的文案适配度。
附图说明
图1为本申请实施例提供的现有技术文案适配效果示意图;
图2为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图3为本申请实施例提供的文案适配方法的一个可选的效果示意图;
图4为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图5为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图6为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图7为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图8为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图9为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图10为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图11为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图12为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图13为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图14为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图15为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图16为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图17为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图18为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图19为本申请实施例提供的文案适配方法的一个可选的效果示意图;
图20为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图21为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图22为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图23为本申请实施例提供的文案适配方法的一个可选的流程示意图;
图24为本申请实施例提供的文案适配方法的交互图;
图25为本申请实施例提供的文案适配装置的结构示意图一;
图26为本申请实施例提供的文案适配装置的一种硬件实体示意图一;
图27为本申请实施例提供的文案适配装置的结构示意图二;
图28为本申请实施例提供的文案适配装置的一种硬件实体示意图二。
具体实施方式
为了使本申请的目的、技术方案和优点更加清楚,下面结合附图和实施例对本申请的技术方案进一步详细阐述,所描述的实施例不应视为对本申请的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。
如果申请文件中出现“第一/第二”的类似描述则增加以下的说明,在以下的描述中, 所涉及的术语“第一\第二\第三”仅仅是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。
图2为本申请实施例提供的文案适配方法的一个可选的流程示意图,将结合图2示出的步骤进行说明。
S101、接收客户端发送的请求指令。
本申请实施例中,服务器通过与客户端预先建立的通信线路接收到客户端发送的请求指令。其中,请求指令是客户端对应的目标对应开启客户端之后发送给服务器的。
本申请实施例中,服务器接收到的请求指令中可以携带一个文件元素数据,也可以携带多个文件元素数据。
其中,文件元素数据中包括对应文案的功能标识信息。
其中,客户端可以为安装在设备终端上的应用程序,例如:APP。客户端也可以为网页中的应用网址。
S102、响应请求指令,得到文件元素数据及其功能标识信息。
本申请实施例中,服务器通过与客户端预先建立的通信线路接收到客户端发送的请求指令。其中,请求指令中携带有对应客户端的一个文案的文件元素数据。服务器响应请求指令,解析该文件元素数据可以得到该文件元素数据中包括的功能标识信息。
本申请实施例中,服务器通过同一应用的不同类型的客户端与服务器预先建立的通信线路接收到,不同类型客户端发送的请求指令。其中,不同类型的客户端的请求指令中分别携带有对应多个文案的多个文件元素数据。服务器解析不同类型的客户端的多个文件元素数据可以得到对应多个文件元素数据的多个功能标识信息。示例性的,其中一个功能标识信息可以为字符串“0102”。
示例性的,结合图3,为其中一个文案对应的文件元素数据。其中,文案对应的功能标识信息为Key_Cancel。文案对应的区域标识信息可以为“chinese”、“english”和“thailand”。其中,“chinese”对应的版本号为V1.0。“english”对应的版本号为V2.0。“thailand”对应的版本号为V1.2。
本申请实施例中,请求指令可以是一个编码字符串或者是语音信息或者是文本信息。
本申请实施例中,服务器响应请求指令,解析文件元素数据也可以得到对应文件元素数据的功能标识信息和至少一个生效区域信息。服务器解析多个文件元素数据也可以得到分别对应多个文件元素数据的功能标识信息、至少一个生效区域信息和至少一个生效区域信息对应的至少一个版本号。
S103、基于功能标识信息,在预设文件数据库中,确定与功能标识信息对应的本地文件元素数据。
本申请实施例中,服务器的预设文件数据库中存储有对应客户端的多个本地文件元素数据。其中,对应文案的的功能标识信息和本地文件元素数据中的本地功能标识信息相同。服务器可以通过文件元素数据中的功能标识信息在预设文件数据库中确定出其对应的本地文件元素数据。
其中,每个本地文件元素数据包括:对应文案的本地功能标识信息、至少一个本地生效区域信息、至少一个本地生效区域信息对应的至少一个本地版本号和至少一个本地生效区域信息对应的至少一个本地文案内容信息。
本申请实施例中,文件元素数据包括:功能标识信息、至少一个生效区域信息和至少一个生效区域信息对应的至少一个版本号组成的数组。本地文件元素数据包括:本地功能 标识信息、至少一个本地生效区域信息、至少一个本地生效区域信息对应的至少一个本地版本号和至少一个本地版本号对应的至少一个本地文案内容信息组成的数组;其中,功能标识信息与本地功能标识信息相同。
S104、基于文件元素数据和本地文件元素数据,确定增量文件元素数据。
本申请实施例中,服务器得到了文件元素数据对应的本地文件元素数据。服务器检测得到本地文件元素数据为对应文件元素数据的文案内容信息更新后的本地文件元素数据。服务器确定该本地文件元素数据为增量文件元素数据。
本申请实施例中,服务器得到了文件元素数据对应的本地文件元素数据。服务器将文件元素数据中的版本号与对应本地文件元素数据中的本地版本号进行比对。若服务器比对得到本地文件元素数据中的本地版本号高于对应的版本号,则服务器确定该本地文件元素数据为增量文件元素数据。
本申请实施例中,服务器得到了多个文件元素数据对应的多个本地文件元素数据。服务器将每个文件元素数据中的版本号与对应本地文件元素数据中的本地版本号进行比对。若服务器比对得到多个本地文件元素数据中的至少一个本地文件元素数据中的本地版本号高于对应的版本号,则服务器确定该至少一个本地文件元素数据为至少一个增量文件元素数据。
其中,增量文件元素数据中的表征对应文案的最新版本的文案内容信息。
S105、将增量文件元素数据发送给客户端,供客户端使用。
本申请实施例中,服务器将对应客户端的增量文件元素数据通过与客户端预先建立的通信线路发送给客户端。客户端接收到增量文件元素数据之后,提取增量文件元素数据中的更新文案内容信息,将该更新文案内容信息存储在对应文案的文案内容信息的存储位置,并将对应的文案内容信息删除。
本申请实施例中,服务器将对应客户端的增量文件元素数据通过与客户端预先建立的通信线路发送给客户端。客户端接收到增量文件元素数据之后,提取增量文件元素数据中的更新文案内容信息及对应的更新版本号,将该更新文案内容信息存储在对应文案的文案内容信息的存储位置,并将对应的文案内容信息删除,同时将更新版本号存储在对应文案的版本号的存储位置,并将对应的版本号删除。
本申请实施例中,通过接收客户端发送的请求指令;响应请求指令,得到文件元素数据及其功能标识信息;基于功能标识信息,在预设文件数据库中,确定与功能标识信息对应的本地文件元素数据;基于文件元素数据和本地文件元素数据,确定增量文件元素数据;将增量文件元素数据发送给客户端,供客户端使用。由于本地预设文件数据库中有同一应用的不同类型客户端发送的文件元素数据对应的本地文件元素数据。服务器通过检测不同客户端的文件元素数据得到对应文案最新版本的增量文件元素数据,服务器将增量文件元素数据发送给客户端,供客户端将对应的文件元素数据更新为对应的增量文件元素数据,进而可以提高同一应用不同类型客户端的文案适配度。
在一些实施例中,参见图4,图4为本申请实施例提供的文案适配方法的一个可选的流程示意图,图2示出的S102可以通过S106实现,将结合各步骤进行说明。
S106、响应请求指令,解析请求指令得到文件元素数据,及文件元素数据包括的功能标识信息、功能标识信息对应的至少一个生效区域信息和至少一个生效区域信息对应的至少一个版本号。
本申请实施例中,当客户端的目标对象非首次开启客户端,客户端向服务器发送请求指令。服务器通过与客户端预先建立的通信线路接收到客户端发送的请求指令。服务器响应请求指令,解析该请求指令,得到了文件元素数据及文件元素数据包括的功能标识信息、功能标识信息对应的至少一个生效区域信息和至少一个生效区域信息对应的至少一个版本号。
在一些实施例中,参见图4,图4为本申请实施例提供的文案适配方法的一个可选的流程示意图,图2示出的S104可以通过S107实现,将结合各步骤进行说明。
S107、若文件元素数据中的版本号,小于本地文件元素数据中的本地版本号,则确定本地文件元素数据为增量文件元素数据。
本申请实施例中,服务器将文件元素数据至少一个版本号与,对应的本地文件元素数据中的至少一个版本号进行比对。若文件元素数据中的版本号都小于本地文件元素数据中的本地版本号,则服务器确定本地文件元素数据为增量文件元素数据。
在一些实施例中,参见图5,图5为本申请实施例提供的文案适配方法的一个可选的流程示意图,图4示出的S106可以通过S108实现,将结合各步骤进行说明。
S108、响应请求指令,解析请求指令得到文件元素数据,及文件元素数据包括的功能标识信息、功能标识信息对应的至少一个生效区域信息。
本申请实施例中,当客户端的目标对象首次开启客户端,客户端向服务器发送请求指令。服务器通过与客户端预先建立的通信线路接收到客户端发送的请求指令。服务器响应请求指令,解析该请求指令,得到了文件元素数据及文件元素数据包括的功能标识信息、功能标识信息对应的至少一个生效区域信息。
需要说明的是,当客户端首次开启时,客户端向服务器发送的请求指令中的文件元素数据中只包括了对应文案的功能标识信息和至少一个生效区域信息,并不包括至少一个生效区域信息对应的版本号和文案内容信息。
在一些实施例中,参见图5,图5为本申请实施例提供的文案适配方法的一个可选的流程示意图,图4示出的S107可以通过S109实现,将结合各步骤进行说明。
S109、若文件元素数据中的至少一个生效区域信息无对应的版本号,则确定本地文件元素数据为增量文件元素数据。
本申请实施例中,若服务器解析得到文件元素数据中的包括的功能标识信息和至少一个生效区域信息。同时,检测得到文件元素数据中的至少一个生效区域信息都不具有对应的版本号,则说明客户端是首次发送请求指令,该文件元素数据中不包括版本号。服务器确定文件元素数据对应的本地文件元素数据全部为增量文件元素数据。
本申请实施例中,若服务器同时检测到了不同类型的客户端的文件元素数据中都不包括版本号。则服务器可以确定不同类型的客户端都是首次发送请求指令,则服务器将不同类型的客户端分别对应的本地文件元素数据确定为分别对应的增量文件元素数据。
在一些实施例中,参见图6,图6为本申请实施例提供的文案适配方法的一个可选的流程示意图,图4示出的S107可以通过S110实现,将结合各步骤进行说明。
S110、若文件元素数据中的至少一个版本号中存在第一版本号,则基于本地功能标识信息、与第一版本号对应的目标本地版本号、与目标本地版本号对应的目标本地生效区域信息和目标本地文案内容信息,形成增量文件元素数据。
本申请实施例中,服务器解析得到的至少一个生效区域信息对应的至少一个版本号与,对应至少一个本地版本号进行比对。若服务器检测得到文件元素数据中的至少一个版本号中存在第一版本号。服务器则基于本地功能标识信息、与第一版本号对应的目标本地版本号、与目标本地版本号对应的目标本地生效区域信息和目标本地文案内容信息,形成增量文件元素数据。
其中,目标本地版本号为比第一版本号的版本高的本地版本号;第一版本号为至少一个版本号中低于与其生效区域信息相同的任意一个本地版本号的版本号。
其中,第一版本号的数量可以为一个也可以为多个,在此不做限定。
示例性的,功能标识信息01的生效区域信息A和B对应的至少一个版本号为V1.1和V1.2。对应的本地功能标识信息01的本地生效区域信息A和B对应的至少一个本地版本号为V1.3和V1.4。服务器将V1.1和V1.3进行比对,同时将V1.2和V1.4进行比对。 服务器确定V1.3大于V1.1,同时V1.4大于V1.2,则服务器确定第一版本号包括V1.1和V1.2。则服务器将本地功能标识信息01、本地生效区域信息A和B、至少一个本地版本号为V1.3和V1.4打包形成增量文件元素数据。
示例性的,服务器检测得到多个文件元素数据对应的多个功能标识信息对应的版本号中10个版本号低于对应的本地功能标识信息对应的10个本地版本号的等级。服务器在预设文件数据库中提取10个目标本地版本号对应的目标本地功能标识信息,及10个目标本地版本号对应的10个目标本地生效区域信息和10个目标本地文案内容信息,形成该10个版本号对应的文案的10个增量文件元素数据。
其中,生效区域信息表征对应客户端所属地区的语言信息。
在一些实施例中,参见图7,图7为本申请实施例提供的文案适配方法的一个可选的流程示意图,图4示出的S103之后还包括S111实现,将结合各步骤进行说明。
S111、若至少一个版本号均与对应的至少一个本地版本号相同,则确定文件元素数据无对应的增量文件元素数据。
本申请实施例中,服务器将功能标识信息下属的至少一个版本号与对应本地功能标识信息下属的至少一个本地版本号进行比对。服务器检测得到至少一个版本号与对应的本地版本号相同,则服务区确定该至少一个版本号对应的功能标识信息的增量文件元素数据为空。说明该至少一个版本号对应的功能标识信息的文案未更新。进而服务器不会向客户端发送该功能标识信息对应的增量文件元素数据。
在一些实施例中,参见图8,图8为本申请实施例提供的文案适配方法的一个可选的流程示意图,图2示出的S101之前还包括S112至S114,将结合各步骤进行说明。
S112、接收替换文案的替换标识信息。
本申请实施例中,若服务器的目标对象确定了一个或者多个替换文案。目标对象通过服务器的人机交互设备向服务器输送该替换文案对应的替换标识信息。
其中,替换文案表征该目标对象需要将服务器中该替换文案对应的文案内容信息进行替换。
S113、基于替换标识信息,确定出目标替换生效区域信息。
本申请实施例中,服务器获取到了替换文案的替换标识信息之后。服务器在预设文件数据库中的多个本地功能标识信息中确定出,替换标识信息对应的目标本地文件元素数据。服务器提取出目标本地文件元素数据中包括的本地生效区域信息。服务器在本地生效区域信息中确定出目标替换生效区域信息。
本申请实施例中,若目标对象在本地生效区域信息中未发现目标替换生效区域信息,则目标对象会通过服务器的人机交互设备向服务器输送目标替换生效区域信息。
S114、接收替换文案内容信息,采用替换文案内容信息,替换掉目标替换生效区域信息对应的本地文案内容信息,得到替换本地文件元素数据,并更新至预设文件数据库。
本申请实施例中,目标对象通过服务器的人机交互设备向服务器输送目标替换生效区域信息对应的替换文案内容信息。服务器将替换文案内容信息存储在对应的本地文案内容信息的存储位置,同时将对应的本地文案内容信息删除。进而得到替换本地文件元素数据,并将该替换本地文件元素数据更新至预设文件数据库。
本申请实施例中,目标对象可以通过移动存储器向服务器上传目标替换生效区域信息对应的替换文案内容信息。
示例性的,目标对象可以通过服务器上的键盘输入目标替换生效区域信息对应的替换文案内容信息。示例性的,本地文案内容信息可以为“**”,其对应的替换文案内容信息可以为“积分”。
在一些实施例中,参见图9,图9为本申请实施例提供的文案适配方法的一个可选的流程示意图,图8示出的S113至S114可以通过S115至S118实现,将结合各步骤进行说 明。
S115、若替换标识信息存在于预设文件数据库中,且预设文件数据库存在与替换标识信息对应的本地生效区域信息,则确定出目标替换生效区域信息。
本申请实施例中,服务器获取到了替换标识信息之后,服务器将该替换标识信息与预设文件数据库中的多个本地功能标识信息进行比对。若服务器检测得到替换标识信息与其中一个本地功能标识信息相同,也就是替换标识信息存在于预设文件数据库中,则服务器提取出该替换标识信息对应的本地功能标识信息对应的本地生效区域信息。目标对象通过服务器的人机交互设备在该本地生效区域信息中确定出目标替换生效区域信息。
其中,本地生效区域信息可以为一个也可以为多个。
S116、接收替换文案内容信息,采用替换文案内容信息,替换掉目标替换生效区域信息对应的本地文案内容信息。
本申请实施例中,目标对象通过服务器的人机交互设备向服务器输送目标替换生效区域信息对应的替换文案内容信息。服务器将该替换文本内容信息替换掉目标替换生效区域信息对应的本地文案内容信息。
S117、获取目标替换生效区域信息对应的替换版本号,并给目标替换生效区域信息配置对应的替换版本号,进而得到替换本地文件元素数据。
本申请实施例中,目标对象通过服务器的人机交互设备向服务器输入目标替换生效区域信息对应的替换版本号。服务器将该替换版本号配置给该目标替换生效区域信息。进而得到了替换本地文本元素数据。
S118、将替换本地文件元素数据更新至预设文件数据库。
本申请实施例中,服务器将替换本地文件元素数据存储在对应本地文件元素数据的存储位置,并将对应的本地文件元素数据删除。
在一些实施例中,参见图10,图10为本申请实施例提供的文案适配方法的一个可选的流程示意图,图8示出的S113还可以通过S119至S122实现,将结合各步骤进行说明。
S119、若替换标识信息存在于预设文件数据库中,且预设文件数据库中与替换标识信息对应的本地生效区域信息中不存在目标替换生效区域信息,则显示添加生效区域信息的提示信息。
本申请实施例中,服务器获取到了替换标识信息之后,服务器将该替换标识信息与预设文件数据库中的多个本地功能标识信息进行比对。若服务器检测得到替换标识信息与其中一个本地功能标识信息相同,也就是替换标识信息存在于预设文件数据库中,则服务器提取出该替换标识信息对应的本地功能标识信息对应的本地生效区域信息。服务器获取到目标对象输入的本地生效区域信息无目标替换生效区域信息的提示信息。服务器在当前页面显示添加生效区域信息的提示信息。
示例性的,该提示信息可以为新生效区域信息的输入窗口。
S120、接收响应提示信息反馈的新生效区域信息,将新生效区域信息作为目标替换生效区域信息。
本申请实施例中,服务器的目标对象通过服务器的人机交互设备向服务器输入响应该提示信息反馈的新生效区域信息。服务器将该新生效区域信息作为目标替换生效区域信息。
S121、检测新生效区域信息是否正确且唯一。
本申请实施例中,服务器检测该新生效区域信息的格式或者内容是否正确,同时服务器检测预设文件数据库中是否存在与该新生效区域信息对应的本地生效区域信息。
S122、若检测得到新生效区域信息正确且唯一,则在本地生效区域信息中添加新生效区域信息,并确定新生效区域信息为目标替换生效区域信息。
本申请服务器检测得到新生效区域信息的格式正确,且预设文件数据库中无对应的本地生效区域信息。服务器将该新生效区域信息添加在对应的本地生效区域信息中,并确定 该新生效区域信息为目标替换生效区域信息。
在一些实施例中,参见图11,图11为本申请实施例提供的文案适配方法的一个可选的流程示意图,图8示出的S113还可以通过S123至S120实现,将结合各步骤进行说明。
S123、替换标识信息不存在于预设文件数据库中,且替换标识信息正确且唯一,则显示添加生效区域信息的提示信息。
本申请实施例中,服务器检测得到预设文件数据库中不存在与替换标识信息对应的本地功能标识信息。且,服务器检测得到替换标识信息的格式正确,则服务器在当前页面显示添加生效区域信息的提示信息。
在一些实施例中,参见图12,图12为本申请实施例提供的文案适配方法的一个可选的流程示意图,图10示出的S121之后还包括S124,将结合各步骤进行说明。
S124、若检测得到新生效区域信息错误或者不唯一,则在当前页面显示新生效区域信息输入错误或者已存在的提示信息。
本申请实施例中,若服务器检测得到新生效区域信息的格式错误或者新生效区域信息在本地生效区域信息中存在对应的生效区域信息,则服务器在当前页面显示新生效区域信息输入错误或者已存在的提示信息。
在一些实施例中,参见图13,图13为本申请实施例提供的文案适配方法的一个可选的流程示意图,图8示出的S112之后还包括S125,将结合各步骤进行说明。
S125、检测得到替换标识信息错误或者不唯一,则在当前页面显示替换标识信息输入错误或者已存在的提示信息。
在一些实施例中,参见图14,图14为本申请实施例提供的文案适配方法的一个可选的流程示意图,将结合各步骤进行说明。
S201、服务器收到客户端的请求指令。
本申请实施例中,服务器通过与与客户端预先建立的通信线路接收到客户端发送的请求指令。
S202、服务器解析请求指令中的文件元素数据,获取功能标识信息,生效区域信息和版本号。
S203、服务器从服务器数据库中确定文件元素数据对应的本地文件元素数据。
本申请实施例中,由于文件元素数据中的功能标识信息与对应本地文件元素数据中的本地功能标识信息相同。服务器可以通过文件元素数据的功能标识信息确定预设文件数据库中的本地文件元素数据。
S204、服务器对比本地文件元素数据中的版本号和对应文件元素数据中的版本号。
S205、若两个版本号相同,服务器不下发。
本申请实施例中,服务器将文件元素数据中的版本号与对应本地文件元素数据中的本地版本号进行比对,若两个版本号相同,则服务器不会下发该版本号对应的文案的增量文件元素数据。
S206、本地文件元素数据版本号大于文件元素数据中的版本号。
S207、文件元素数据中的版本号为空。
本申请实施例中,若客户端首次向服务器发送请求指令,则服务器会检测得到文件元素数据中的版本号为空。
S208、服务器添加版本号对应功能标识信息、文案内容信息、版本号和生效区域信息到增量文件元素数据中。
本申请实施例中,服务器检测得到版本号等级高于对应的本地版本号的等级。服务器将对应的本地功能标识信息、文案内容信息、和生效区域信息结合形成该本地版本号对应的增量文件元素数据。
S209、服务器向客户端发送增量文件元素数据。
在一些实施例中,参见图15,图15为本申请实施例提供的文案适配方法的一个可选的流程示意图,将结合各步骤进行说明。
S211、服务器通过接口获取替换文案的替换标识信息。
S212、服务器检测数据库中是否存在该替换标识信息。
S213、检查该替换标识信息是否正常。
本申请实施例中,若服务器检测数据库中不存在该替换功能标识信息。则检查该替换功能标识信息是否正常。
S214、服务器对该替换标识信息进行报错。
本申请实施例中,若服务器检查得到该替换功能标识信息异常则进行报错。
S215、服务器显示该替换标识信息的生效区域信息列表。
本申请实施例中,若服务器检测数据库中存在该替换功能标识信息。则服务器会显示该替换功能标识信息的生效区域信息列表。
S216、目标对象检查是否存在要修改的生效区域信息。
S217、服务器提示让目标对象输入新的生效区域信息。
本申请实施例中,若目标对象检查该列表中不存在要修改的生效区域信息,则服务器会在当前页面提示目标对象输入新的生效区域信息。
S218、服务器检查新的生效区域信息是否正常。
S219、服务器对新的生效区域信息进行报错。
S220、服务器在列表中添加新的生效区域信息。
本申请实施例中,若服务器检测新的生效区域信息正常,则服务器会在该列表中添加进该生效区域信息。
S221、服务器获取目标对象选择某个生效区域信息。
本申请实施例中,若生效区域列表中包括了要修改的生效区域信息,则服务器会获取目标对象的触控信息进而选择某个生效区域信息为目标修改生效区域信息。
S222、服务器提示目标对象输入新的文案内容信息。
S223、服务器将新的文案内容信息增加对应的版本号并添加进数据库。
图16为本申请实施例提供的文案适配方法的一个可选的流程示意图,将结合图16示出的步骤进行说明。
S130、获取目标对象的触控指令,响应触控指令,在文案对应的存储位置提取文件元素数据。
本申请实施例中,客户端的目标对象需要开启客户端时,目标对象向客户端所属的设备发送触控指令。客户端接收到触控指令之后,响应触控指令进而客户端进行开启。同时,客户端在客户端内文案对应的存储位置提取文案对应的文件元素数据。其中,文件元素数据中包括对应文案的功能标识信息。
其中,触控指令可以包括目标对象通过对应终端设备上的人机交互组件发送的触控指令。触控指令可以为目标对象向客户端发送的的单击或者双击操作。触控指令也可以为目标对象向客户端发送的声控指令。
本申请实施例中,目标对象通过终端上的人机交互组件单击客户端,客户端接收到单击指令后开启。同时,客户端在自身的存储器中提取出多个文案对应的多个文件元素数据。其中,多个文件元素数据中的每个文件元素数据至少包括对应文案的功能标识信息,以及功能标识信息对应的至少一个生效区域信息,以及至少一个生效区域信息对应的版本号。
S131、将文件元素数据携带在请求指令中发送给服务器。
本申请实施例中,客户端将文件元素数据携带在请求指令中,通过与服务器预先建立的通信线路发送给服务器。
S132、接收服务器响应请求指令反馈的增量文件元素数据。
本申请实施例中,客户端通过与服务器预先建立的通信线路,将文案对应的文件元素数据携带在请求指令中发送给服务器。服务器接收到请求指令之后,解析文案对应的文件元素数据,得到了对应的功能标识信息。服务器基于功能标识信息在多个本地文件元素数据中确定出最新版本的增量文件元素数据。服务器通过与客户端预先建立的通信线路将增量文件元素数据发送给客户端。客户端接收到增量文件元素数据。
其中,增量文件元素数据中包括了对应文案的最新版本的文案内容信息。
本申请实施例中,客户端将多个文案对应的多个文件元素数据携带在请求指令中发送给服务器。服务器接收到请求指令之后,解析多个文案对应的文件元素数据,得到了多个文案对应的多个功能标识信息。服务器基于多个功能标识信息在多个本地文件元素数据中确定出该多个文案对应的最新版本的至少一个增量文件元素数据。服务器通过与客户端预先建立的通信线路将增量文件元素数据发送给客户端。客户端接收到增量文件元素数据。
S133、基于功能标识信息,将增量文件元素数据更新到对应的目标存储位置进行使用。
本申请实施例中,客户端获取到增量文件元素数据后,解析增量文件元素数据,得到了增量文件元素数据中的更新功能标识信息。客户端在本地的多个功能标识信息中确定至少一个更新功能标识信息对应的目标功能标识信息。客户端确定出目标功能标识信息对应的存储位置,将对应的增量文件元素数据中的最新版本的文案内容信息存储在对应的目标存储位置。
本申请实施例中,客户端获取到至少一个增量文件元素数据后,解析至少一个增量文件元素数据,得到了至少一个增量文件元素数据中的更新功能标识信息、更新生效区域信息及更新生效区域信息对应的更新版本号和更新文案内容信息。客户端在多个功能标识信息中确定至少一个更新功能标识信息对应的目标功能标识信息。客户端确定出目标功能标识信息对应的存储位置。客户端将对应的更新文件元素数据中更新版本号及对应的更新文案内容信息存储在对应的目标存储位置。使客户端中的待更新文案的对应生效区域信息的文案内容信息更新为最新版本的文案内容信息。
在一些实施例中,参见图17,图17为本申请实施例提供的文案适配方法的一个可选的流程示意图,图16示出的S130可以通过S134至S135实现,将结合各步骤进行说明。
S134、获取目标对象的触控指令,响应触控指令,在文案对应的存储位置提取文案对应的功能标识信息和至少一个生效区域信息。
本申请实施例中,当目标对象首次打开客户端时。客户端获取到了目标对象的触控指令之后,客户端响应触控指令,在对应的存储器内提取出文案预存的功能标识信息和至少一个生效区域信息。由于目标对象是首次开启客户端,所以客户端内的文案并不具有对应的版本号以及文案内容信息。
其中,生效区域信息可以表征客户端目前所属的区域的应用语言信息。
S135、基于功能标识信息和至少一个生效区域信息,形成文件元素数据。
本申请实施例中,客户端基于文案的功能标识信息和至少一个生效区域信息形成文案对应的文件元素数据。相应的,客户端可以通过相同的方法形成了多个文案对应的多个文件元素数据。
在一些实施例中,参见图18,图18为本申请实施例提供的文案适配方法的一个可选的流程示意图,图16示出的S130可以通过S136至S137实现,将结合各步骤进行说明。
S136、获取目标对象的触控指令,响应触控指令,在文案对应的存储位置提取文案对应的功能标识信息、至少一个生效区域信息和至少一个生效区域信息对应的至少一个版本号。
本申请实施例中,当目标对象非首次打开客户端时。客户端获取到了目标对象的触控指令之后,客户端响应触控指令,在对应的存储器内提取出文案预存的功能标识信息、至少一个生效区域信息、至少一个生效区域信息对应的至少一个版本号。由于目标对象是非 首次开启客户端,所以客户端内的文案并已经具有对应的版本号以及文案内容信息,并且已经进行了相关文案内容信息的显示。
S137、基于功能标识信息、至少一个生效区域信息和至少一个版本号,形成文件元素数据。
本申请实施例中,客户端基于文案对应的功能标识信息、至少一个生效区域信息和至少一个版本号,形成文案对应的文件元素数据。
示例性的,结合图19。为其中一个文案对应的文件元素数据。其中,文案对应的功能标识信息为Key_Cancel。文案对应的区域功能标识信息可以为“chinese”、“english”和“thailand”。其中,“chinese”对应的版本号为V1.0。“english”对应的版本号为V2.0。“thailand”对应的版本号为V1.2。版本号V1.0对应的文案内容信息为“取消”,版本号V1.0对应的文案内容信息为“Cancel”,版本号V1.2对应的文案内容信息为
Figure PCTCN2022094414-appb-000001
在一些实施例中,参见图18,图18为本申请实施例提供的文案适配方法的一个可选的流程示意图,图16示出的S133可以通过S138至S140实现,将结合各步骤进行说明。
S138、解析增量文件元素数据,得到增量文件元素数据中的更新标识信息、至少一个更新生效区域信息、至少一个更新生效区域信息对应的至少一个更新版本号和至少一个更新生效区域信息对应的至少一个更新文案内容信息。
本申请实施例中,客户端解析增量文件元素数据,得到了增量文件元素数据对应的更新功能标识信息、至少一个更新生效区域信息、至少一个更新生效区域信息对应的至少一个更新版本号和至少一个更新生效区域信息对应的至少一个更新文案内容信息。
本申请实施例中,更新功能标识信息与对应文案的功能标识信息相同。至少一个更新生效区域信息与对应的功能标识信息的对应生效区域信息相同。
S139、在本地存储中确定功能标识信息对应的目标存储位置。
本申请实施例中,客户端将更新功能标识信息与多个功能标识信息进行对比,在多个功能标识信息中确定出更新功能标识信息对应的目标功能标识信息。客户端确定目标功能标识信息对应目标文案的目标存储位置。
其中,目标存储位置可以为对应目标文案的功能标识信息、生效区域信息、版本号以及文案内容信息在本地存储中原始的存储区域信息。
S133、将至少一个更新生效区域信息、至少一个更新版本号和至少一个更新文案内容信息对应分类存储在目标存储位置,以进行使用。
本申请实施例中,客户端按照更新生效区域信息与对应的生效区域功能标识信息之间的对应的关系,将每个更新生效区域信息下属的更新版本号存储在对应生效区域信息下属的版本号所属的目标存储位置,将每个更新生效区域信息下属的更新文案内容信息存储在对应生效区域信息下属的文案内容信息所属的目标存储位置。同时客户端删除对应生效区域信息下属的版本号和文案内容信息。
本申请实施例中,若客户端接收到的增量文件元素数据中更新生效区域信息在对应的文件元素数据中不存在对应的生效区域信息,则客户端会在该文件元素数据中新建一个生效区域信息存储区域,并将该更新生效区域信息存储在该区域,并将该更新生效区域信息对应的更新版本号和更新文案内容信息存储在该更新生效区域下属的版本号及文案内容信息对应的存储区域。
在一些实施例中,参见图20,图20为本申请实施例提供的文案适配方法的一个可选的流程示意图,图16示出的S130之前还包括S141至S142实现,将结合各步骤进行说明。
S141、获取文件元素初始数据;文件元素初始数据包括:文案的功能标识信息和至少一个生效区域信息。
本申请实施例中,客户端获取到多个文案对应的文件元素初始数据。其中,每个文件元素初始数据中包括对应文案的功能标识信息、以及至少一个生效区域信息。
S135、将文件元素初始数据存储在对应文案的存储位置。
本申请实施例中,客户端在自身的存储器中划分出每个文案的每个元素初始数据对应的存储位置,并将每个元素初始数据存储在对应的存储位置。
示例性的,客户端内包括了100个文案。客户端在自身的存储器内划分出100个文案分别对应的存储位置,客户端将100个文案对应的元素初始数据存储在对应文案划分的存储位置。
在一些实施例中,参见图21,图21为本申请实施例提供的文案适配方法的一个可选的流程示意图,图16示出的S131之后还包括S143至S144实现,将结合各步骤进行说明。
S143、若未接收服务器反馈的增量文件元素数据,则检测文案是否为首次更新。
本申请实施例中,若客户端未接收到服务器反馈的增量文件元素数据,则服务器检测对应文案是否为首次更新。
S144、检测得到文案为首次更新,对文案进行报错。
本申请实施例中,若客户端检测得到对应文案为首次更新,则客户端会向目标对象进行报错。
在一些实施例中,参见图22,图22为本申请实施例提供的文案适配方法的一个可选的流程示意图,图16示出的S133之后还包括S145至S146实现,将结合各步骤进行说明。
S145、在进行显示待显示文案时,获取待显文案的待显标识信息和待显生效区域信息。
本申请实施例中,目标对象在应用客户端时,客户端接收到目标对象的指令执行显示待显示文案的程序。客户端按照程序获取待显示文案的待显示标识信息和待显示生效区域信息。
其中,待显示生效区域信息表征客户端所属区域的语言信息。
S146、基于待显标识信息在本地存储中确定待显文案对应的待显示存储位置,在待显示存储位置提取待显生效区域信息对应的待显文案内容信息进行显示。
本申请实施例中,客户端在待显示文案的本地存储中提取出待显示生效区域信息对应的待显示文案内容信息。客户端按照执行待显示文案的程序中的每个待显示文案的显示区域信息,将对应的待显示文案内容信息进行显示。
在一些实施例中,参见图23,图23为本申请实施例提供的文案适配方法的一个可选的流程示意图,将结合各步骤进行说明。
S225、客户端开启,获取本地数据库文案资源。
S226、客户端将所有文案资源数据发送给服务器。
S227、客户端是否收到服务器回应。
S230、客户端解析服务器回应的增量文件元素数据。
S231、客户端更新服务器发送的增量文件元素数据中的版本号和文案内容信息。
S232、客户端根据文案对应的功能标识信息获取对应文案的文案内容信息进行使用。
S228、客户端检测本次更新是否是第一次全量更新。
S229、客户端进行报错。
在一些实施例中,参见图24,图24为本申请实施例提供的文案适配方法的交互图,将结合各步骤进行说明。
S301、客户端获取目标对象的触控指令,响应触控指令,在文案对应的存储位置提取文件元素数据
步骤S301的详细实现与S130的实现一致,此处不再赘述。
S302、服务器接收客户端发送的请求指令。
步骤S302的详细实现与S101的实现一致,此处不再赘述。
S303、服务器响应请求指令,得到文件元素数据及其功能标识信息。
步骤S303的详细实现与S102的实现一致,此处不再赘述。
S304、服务器基于功能标识信息,在预设文件数据库中,确定与功能标识信息对应的本地文件元素数据。
步骤S304的详细实现与S103的实现一致,此处不再赘述。
S305、服务器基于文件元素数据和本地文件元素数据,确定增量文件元素数据。
步骤S305的详细实现与S104的实现一致,此处不再赘述。
S306、服务器将增量文件元素数据发送给客户端,供客户端使用。
步骤S306的详细实现与S105的实现一致,此处不再赘述。
在一些实施例中,参见图25,图25为本申请实施例提供的文案适配装置的结构示意图一
本申请实施例提供了一种文案适配装置800,包括:第一接收单元803、第一响应单元804、第一处理单元805、确定单元806和第一发送单元807。
第一接收单元803,用于接收客户端发送的请求指令;
第一响应单元804,用于响应请求指令,得到文件元素数据及其功能标识信息;
第一处理单元805,用于基于功能标识信息,在预设文件数据库中,确定与功能标识信息对应的本地文件元素数据;
确定单元806,用于基于文本元素数据和本地文件元素数据,确定增量文件元素数据;
第一发送单元807,用于将增量文件元素数据发送给客户端,供客户端进行使用。
本申请实施例中,文件元素数据包括:功能标识信息、至少一个生效区域信息和至少一个生效区域信息对应的至少一个版本号组成的数组;本地文件元素数据包括:本地功能标识信息、至少一个本地生效区域信息、至少一个本地生效区域信息对应的至少一个本地版本号和至少一个本地版本号对应的至少一个本地文案内容信息组成的数组;其中,功能标识信息与本地功能标识信息相同。
本申请实施例中,文案适配装置800中的确定单元806用于若文件元素数据中的版本号,小于本地文件元素数据中的本地版本号,则确定本地文件元素数据为增量文件元素数据。
本申请实施例中,文案适配装置800中的确定单元806用于若文件元素数据中的至少一个生效区域信息无对应的版本号,则确定本地文件元素数据为增量文件元素数据。
本申请实施例中,文案适配装置800中的确定单元806用于若文件元素数据中的至少一个版本号中存在第一版本号,则基于本地功能标识信息、与第一版本号对应的目标本地版本号、与目标本地版本号对应的目标本地生效区域信息和目标本地文案内容信息,形成增量文件元素数据;其中,目标本地版本号为比第一版本号的版本高的本地版本号;所述第一版本号为所述至少一个版本号中低于与其生效区域信息相同的任意一个本地版本号的版本号。
本申请实施例中,文案适配装置800中的确定单元806用于若至少一个版本号均与对应的至少一个本地版本号相同,则确定文件元素数据无对应的增量文件元素数据。
本申请实施例中,文案适配装置800中的确定单元806用于响应请求指令,解析请求指令得到文件元素数据,及文件元素数据包括的功能标识信息、功能标识信息对应的至少一个生效区域信息。
本申请实施例中,文案适配装置800中的第一响应单元804用于响应请求指令,解析请求指令得到文件元素数据,及文件元素数据包括的功能标识信息、功能标识信息对应的至少一个生效区域信息和至少一个生效区域信息对应的至少一个版本号。
本申请实施例中,文案适配装置800中的第一接收单元803用于接收替换文案的替换标识信息,确定单元806用于基于替换标识信息,确定出目标替换生效区域信息;第一接收单元803还用于接收替换文案内容信息,采用替换文案内容,替换掉目标替换生效区域信息对应的本地文案内容信息,得到替换本地文件元素数据,并更新至预设文件数据库。
本申请实施例中,文案适配装置800中的确定单元806用于若替换标识信息存在于预设文件数据库中,且预设文件数据库存在与替换标识信息对应的本地生效区域信息,则确定出目标替换生效区域信息;或者,
若替换标识信息存在于预设文件数据库中,且预设文件数据库中与替换标识信息对应的本地生效区域信息中不存在目标替换生效区域信息,或者,替换标识信息不存在于预设文件数据库中,且替换标识信息正确且唯一,则显示添加生效区域信息的提示信息;
接收响应提示信息反馈的新生效区域信息,将新生效区域信息作为目标替换生效区域信息。
本申请实施例中,文案适配装置800中的确定单元806用于检测新生效区域信息是否正确且唯一;若检测得到新生效区域信息正确且唯一,则在本地生效区域信息中添加新生效区域信息,并确定新生效区域信息为目标替换生效区域信息。
本申请实施例中,文案适配装置800中的确定单元806用于若检测得到新生效区域信息错误或者不唯一,则在当前页面显示新效区域信息输入错误或者已存在的提示信息。
本申请实施例中,文案适配装置800中的确定单元806用于检测得到替换标识信息错误或者不唯一,则在当前页面显示替换标识信息输入错误或者已存在的提示信息。
本申请实施例中,文案适配装置800中的第一接收单元803用于接收替换文案内容信息,采用替换文案内容信息,替换掉目标替换生效区域信息对应的本地文案内容信息;获取目标替换生效区域信息对应的替换版本号,并给目标替换生效区域信息配置对应的替换版本号,进而得到替换本地文件元素数据;将替换本地文件元素数据更新至预设文件数据库。
本申请实施例中,通过第一接收单元803接收客户端发送的请求指令;通过第一响应单元804响应请求指令,得到文件元素数据及其功能标识信息;通过第一处理单元805基于功能标识信息,在预设文件数据库中,确定与功能标识信息对应的本地文件元素数据;通过确定单元806基于文件元素数据和本地文件元素数据,确定增量文件元素数据;通过第一发送单元807将增量文件元素数据发送给客户端,供客户端使用。由于本地预设文件数据库中有同一应用的不同类型客户端发送的文件元素数据对应的本地文件元素数据。服务器通过检测不同客户端的文件元素数据得到对应文案最新版本的增量文件元素数据,服务器将增量文件元素数据发送给客户端,供客户端将对应的文件元素数据更新为对应的增量文件元素数据,进而可以提高同一应用不同类型客户端的文案适配度。
需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述的集群构建及订阅信息处理方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台文案适配装置(可以是个人计算机等)执行本申请各个实施例方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。
对应地,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述方法中的步骤。
对应地,本申请实施例提供一种文案适配装置800,包括第一存储器802和第一处理器801,第一存储器802存储有可在第一处理器801上运行的计算机程序,第一处理器801执行程序时实现上述方法中的步骤。
这里需要指出的是:以上存储介质和装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。
需要说明的是,图26为本申请实施例提供的文案适配装置的一种硬件实体示意图一,如图26所示,该文案适配装置800的硬件实体包括:第一处理器801和第一存储器802,其中;
第一处理器801通常控制文案适配装置800的总体操作。
第一存储器802配置为存储由第一处理器801可执行的指令和应用,还可以缓存待第一处理器801以及文案适配装置800中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过闪存(FLASH)或随机访问存储器(Random Access Memory,RAM)实现。
在一些实施例中,参见图27,图27为本申请实施例提供的文案适配装置的结构示意图二。
本申请实施例还提供了一种文案适配装置,包括:获取单元903、提取单元904、第二发送单元905、第二接收单元906和存储单元907。
获取单元903,用于获取目标对象的触控指令,响应触控指令;
提取单元904,用于在文案对应的存储位置提取文件元素数据;文件元素数据包括:文案的功能标识信息;
第二发送单元905,用于将文件元素数据携带在请求指令中发送给服务器;
第二接收单元906,用于接收服务器响应请求指令反馈的增量文件元素数据;增量文件元素是基于文件元素数据和服务器中的本地文件元素数据得到的;
存储单元907,用于基于功能标识信息,将增量文件元素数据更新到对应的目标存储位置进行使用。
本申请实施例中,文案适配装置900中的获取单元903用于获取目标对象的触控指令,响应触控指令,通过提取单元904在文案对应的存储位置提取文案对应的功能标识信息和至少一个生效区域信息;基于功能标识信息和至少一个生效区域信息,形成文件元素数据。
本申请实施例中,文案适配装置900中的获取单元903用于获取目标对象的触控指令,响应触控指令,通过提取单元904在文案对应的存储位置提取文案对应的功能标识信息、至少一个生效区域信息和至少一个生效区域信息对应的至少一个版本号;基于功能标识信息、至少一个生效区域信息和至少一个版本号,形成文件元素数据。
本申请实施例中,文案适配装置900中的存储单元907用于解析增量文件元素数据,得到增量文件元素数据中的更新标识信息、至少一个更新生效区域信息、至少一个更新生效区域信息对应的至少一个更新版本号和至少一个更新生效区域信息对应的至少一个更新文案内容信息;在本地存储中确定功能标识信息对应的目标存储位置;将至少一个更新生效区域信息、至少一个更新版本号和至少一个更新文案内容信息对应分类存储在目标存储位置,以进行使用。
本申请实施例中,文案适配装置900中的获取单元903用于获取文件元素初始数据;文件元素初始数据包括:文案的功能标识信息和至少一个生效区域信息;将文件元素初始数据存储在对应文案的存储位置。
本申请实施例中,文案适配装置900用于若未接收服务器反馈的增量文件元素数据,则检测文案是否为首次更新;检测得到文案为首次更新,对文案进行报错。
本申请实施例中,文案适配装置900中的获取单元903用于在进行显示待显示文案时,获取待显文案的待显标识信息和待显生效区域信息;基于待显标识信息在本地存储中确定待显文案对应的待显示存储位置,在待显示存储位置提取待显生效区域信息对应的待显文案内容信息进行显示。
本申请实施例中,通过获取单元903获取目标对象的触控指令,响应触控指令,通过提取单元904提取文件元素数据;通过第二发送单元905将文案文件元素数据携带在请求指令中发送给服务器,再通过第二接收单元906接收服务器响应请求指令反馈的增量文件 元素数据;增量文件元素是基于文件元素数据和服务器中的本地文件元素数据得到的;通过存储单元905基于功能标识信息,将增量文件元素数据更新到对应的目标存储位置,以进行使用。由于目标对象每次开启客户端都会将客户端内所有文案的文件元素数据发送给服务器,再接收服务器发送的对应文案更新后的增量文件元素数据。其中,增量文件元素数据中包括对应的文案内容信息,客户端再根据增量文件元素数据对应的文件元素数据的标识信息,将增量文件元素数据存储在对应的目标存储位置,进而使得客户端一旦开启,就会获取到最新版本的更新文件元素数据,进而提高了同一应用的不同类型的客户端的文案适配度。
对应地,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述方法中的步骤。
对应地,本申请实施例提供一种文案适配装置900,包括第二存储器902和第二处理器901,第二存储器902存储有可在第二处理器901上运行的计算机程序,第二处理器901执行程序时实现上述方法中的步骤。
这里需要指出的是:以上存储介质和装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。
需要说明的是,图28为本申请实施例提供的文案适配装置的一种硬件实体示意图二,如图28所示,该文案适配装置900的硬件实体包括:第二处理器901和第二存储器902,其中;
第二处理器901通常控制文案适配装置900的总体操作。
第二存储器902配置为存储由第二处理器901可执行的指令和应用,还可以缓存待第二处理器901以及文案适配装置900中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过闪存(FLASH)或随机访问存储器(Random Access Memory,RAM)实现。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储装置、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机、服务器、或者网络装置等)执行本申请各个实施例方法的全部或部分。而前述的存储介质包括:移动存储装置、ROM、磁碟或者光盘等各种可以存储程序代码的介质。
以上,仅为本申请的实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。
工业实用性
本申请实施例通过接收客户端发送的请求指令,响应请求指令,得到文件元素数据及其功能标识信息。再基于功能标识信息,在预设文件数据库中,确定与功能标识信息对应的本地文件元素数据,基于文件元素数据和本地文件元素数据,确定增量文件元素数据并发送给客户端。这样由于本地预设文件数据库中有同一应用的不同类型客户端发送的文件元素数据对应的本地文件元素数据。服务器通过检测不同客户端的文件元素数据得到对应文案最新版本的增量文件元素数据,服务器将增量文件元素数据发送给客户端,供客户端将对应的文件元素数据更新为对应的增量文件元素数据,进而可以提高同一应用不同类型客户端的文案适配度。

Claims (27)

  1. 一种文案适配方法,包括:
    接收客户端发送的请求指令;
    响应所述请求指令,得到文件元素数据及其功能标识信息;
    基于所述功能标识信息,在预设文件数据库中,确定与所述功能标识信息对应的本地文件元素数据;
    基于所述文件元素数据和所述本地文件元素数据,确定增量文件元素数据;
    将所述增量文件元素数据发送给所述客户端,供所述客户端使用。
  2. 根据权利要求1所述的文案适配方法,其中,所述文件元素数据包括:所述功能标识信息、至少一个生效区域信息和所述至少一个生效区域信息对应的至少一个版本号组成的数组;
    所述本地文件元素数据包括:本地功能标识信息、至少一个本地生效区域信息、所述至少一个本地生效区域信息对应的至少一个本地版本号和所述至少一个本地版本号对应的至少一个本地文案内容信息组成的数组;
    其中,所述功能标识信息与所述本地功能标识信息相同。
  3. 根据权利要求2所述的文案适配方法,其中,所述基于所述文件元素数据和所述本地文件元素数据,确定增量文件元素数据,包括:
    若所述文件元素数据中的版本号,小于所述本地文件元素数据中的本地版本号,则确定所述本地文件元素数据为所述增量文件元素数据。
  4. 根据权利要求2所述的文案适配方法,其中,所述基于所述文件元素数据和所述本地文件元素数据,确定增量文件元素数据,包括:
    若所述文件元素数据中的所述至少一个生效区域信息无对应的版本号,则确定所述本地文件元素数据为所述增量文件元素数据。
  5. 根据权利要求3所述的文案适配方法,其中,所述若所述文件元素数据中的版本号,小于所述本地文件元素数据中的本地版本号,则确定所述本地文件元素数据为所述增量文件元素数据,包括:
    若所述文件元素数据中的所述至少一个版本号中存在第一版本号,则基于所述本地功能标识信息、与所述第一版本号对应的目标本地版本号、与所述目标本地版本号对应的目标本地生效区域信息和目标本地文案内容信息,形成所述增量文件元素数据;其中,所述目标本地版本号为比所述第一版本号的版本高的本地版本号;所述第一版本号为所述至少一个版本号中低于与其生效区域信息相同的任意一个本地版本号的版本号。
  6. 根据权利要求3所述的文案适配方法,其中,所述方法还包括:
    若所述至少一个版本号均与对应的所述至少一个本地版本号相同,则确定所述文件元素数据无对应的所述增量文件元素数据。
  7. 根据权利要求1所述的文案适配方法,其中,所述响应所述请求指令,得到文件元素数据及其功能标识信息,包括:
    响应所述请求指令,解析所述请求指令得到所述文件元素数据,及所述文件元素数据包括的所述功能标识信息、所述功能标识信息对应的至少一个生效区域信息。
  8. 根据权利要求1所述的文案适配方法,其中,所述响应所述请求指令,得到文件元素数据及其功能标识信息,包括:
    响应所述请求指令,解析所述请求指令得到所述文件元素数据,及所述文件元素数据包括的所述功能标识信息、所述功能标识信息对应的至少一个生效区域信息和所述至少一个生效区域信息对应的至少一个版本号。
  9. 根据权利要求1所述的文案适配方法,其中,所述接收客户端发送的请求指令之 前,所述方法还包括:
    接收替换文案的替换标识信息;
    基于所述替换标识信息,确定出目标替换生效区域信息;
    接收替换文案内容信息,采用所述替换文案内容信息,替换掉所述目标替换生效区域信息对应的本地文案内容信息,得到替换本地文件元素数据,并更新至所述预设文件数据库。
  10. 根据权利要求9所述的文案适配方法,其中,所述基于所述替换标识信息,确定出目标替换生效区域信息,包括:
    若所述替换标识信息存在于所述预设文件数据库中,且所述预设文件数据库存在与所述替换标识信息对应的本地生效区域信息,则确定出所述目标替换生效区域信息;或者,
    若所述替换标识信息存在于所述预设文件数据库中,且所述预设文件数据库中与所述替换标识信息对应的本地生效区域信息中不存在所述目标替换生效区域信息,或者,所述替换标识信息不存在于所述预设文件数据库中,且所述替换标识信息正确且唯一,则显示添加生效区域信息的提示信息;
    接收响应所述提示信息反馈的新生效区域信息,将所述新生效区域信息作为所述目标替换生效区域信息。
  11. 根据权利要求10所述的文案适配方法,其中,所述接收响应所述提示信息反馈的新生效区域信息,将所述新生效区域信息作为所述目标替换生效区域信息之后,所述方法还包括:
    检测所述新生效区域信息是否正确且唯一;
    若检测得到所述新生效区域信息正确且唯一,则在所述本地生效区域信息中添加所述新生效区域信息,并确定所述新生效区域信息为所述目标替换生效区域信息。
  12. 根据权利要求11所述的文案适配方法,其中,所述方法还包括:
    若检测得到所述新生效区域信息错误或者不唯一,则在当前页面显示所述新效区域信息输入错误或者已存在的提示信息。
  13. 根据权利要求10所述的文案适配方法,其中,所述接收替换文案的替换标识信息之后,所述方法还包括:
    检测得到所述替换标识信息错误或者不唯一,则在当前页面显示所述替换标识信息输入错误或者已存在的提示信息。
  14. 根据权利要求9所述的文案适配方法,其中,所述接收替换文案内容信息,采用所述替换文案内容信息,替换掉所述目标替换生效区域信息对应的本地文案内容信息,得到替换本地文件元素数据,并更新至所述预设文件数据库,包括:
    接收所述替换文案内容信息,采用所述替换文案内容信息,替换掉所述目标替换生效区域信息对应的所述本地文案内容信息;
    获取所述目标替换生效区域信息对应的替换版本号,并给所述目标替换生效区域信息配置对应的所述替换版本号,进而得到所述替换本地文件元素数据;
    将所述替换本地文件元素数据更新至所述预设文件数据库。
  15. 一种文案适配方法,包括:
    获取目标对象的触控指令,响应所述触控指令,在文案对应的存储位置提取文件元素数据;所述文件元素数据包括:所述文案的功能标识信息;
    将所述文件元素数据携带在请求指令中发送给服务器;
    接收所述服务器响应所述请求指令反馈的增量文件元素数据;所述增量文件元素是基于所述文件元素数据和所述服务器中的本地文件元素数据得到的;
    基于所述功能标识信息,将所述增量文件元素数据更新到对应的目标存储位置进行使用。
  16. 根据权利要求15所述的文案适配方法,其中,所述获取目标对象的触控指令,响应所述触控指令,在文案对应的存储位置提取文件元素数据,包括:
    获取所述目标对象的所述触控指令,响应所述触控指令,在所述文案对应的存储位置提取所述文案对应的所述功能标识信息和至少一个生效区域信息;
    基于所述功能标识信息和所述至少一个生效区域信息,形成所述文件元素数据。
  17. 根据权利要求15所述的文案适配方法,其中,所述获取目标对象的触控指令,响应所述触控指令,在文案对应的存储位置提取文件元素数据,包括:
    获取所述目标对象的所述触控指令,响应所述触控指令,在所述文案对应的存储位置提取所述文案对应的所述功能标识信息、至少一个生效区域信息和所述至少一个生效区域信息对应的至少一个版本号;
    基于所述功能标识信息、所述至少一个生效区域信息和所述至少一个版本号,形成所述文件元素数据。
  18. 根据权利要求15所述的文案适配方法,其中,所述基于所述功能标识信息,将所述增量文件元素数据更新到对应的目标存储位置进行使用,包括:
    解析所述增量文件元素数据,得到所述增量文件元素数据中的更新标识信息、至少一个更新生效区域信息、所述至少一个更新生效区域信息对应的至少一个更新版本号和所述至少一个更新生效区域信息对应的至少一个更新文案内容信息;
    在本地存储中确定所述功能标识信息对应的所述目标存储位置;
    将所述至少一个更新生效区域信息、所述至少一个更新版本号和所述至少一个更新文案内容信息对应分类存储在所述目标存储位置进行使用。
  19. 根据权利要求15的文案适配方法,其中,所述获取目标对象的触控指令,响应所述触控指令,在文案对应的存储位置提取文件元素数据之前,所述方法还包括:
    获取文件元素初始数据;所述文件元素初始数据包括:所述文案的所述功能标识信息和至少一个生效区域信息;
    将所述文件元素初始数据存储在对应文案的存储位置。
  20. 根据权利要求15所述的文案适配方法,其中,所述将所述文件元素数据携带在请求指令中发送给服务器之后,所述方法还包括:
    若未接收所述服务器反馈的所述增量文件元素数据,则检测所述文案是否为首次更新;
    检测得到所述文案为首次更新,对所述文案进行报错。
  21. 根据权利要求15所述的文案适配方法,其中,所述基于所述功能标识信息,将所述增量文件元素数据更新到对应的目标存储位置进行使用之后,所述方法还包括:
    在进行显示待显示文案时,获取所述待显文案的待显标识信息和待显生效区域信息;
    基于所述待显标识信息在本地存储中确定所述待显文案对应的待显示存储位置,在所述待显示存储位置提取所述待显生效区域信息对应的待显文案内容信息进行显示。
  22. 一种文案适配装置,包括:
    第一接收模块,被配置为接收客户端发送的请求指令;
    第一响应模块,被配置为响应所述请求指令,得到文件元素数据及其功能标识信息;
    第一处理模块,被配置为基于所述功能标识信息,在预设文件数据库中,确定与所述功能标识信息对应的本地文件元素数据;
    确定模块,被配置为基于所述文本元素数据和本地文件元素数据,确定增量文件元素数据;
    第一发送模块,被配置为将所述增量文件元素数据发送给所述客户端,供所述客户端进行使用。
  23. 一种文案适配装置,包括:
    获取模块,被配置为获取目标对象的触控指令,响应所述触控指令;
    提取模块,被配置为在文案对应的存储位置提取文件元素数据;所述文件元素数据包括:所述文案的功能标识信息;
    第二发送模块,被配置为将所述文件元素数据携带在请求指令中发送给服务器;
    第二接收模块,被配置为接收所述服务器响应所述请求指令反馈的增量文件元素数据;所述增量文件元素是基于所述文件元素数据和所述服务器中的本地文件元素数据得到的;
    存储模块,用于基于所述功能标识信息,将所述增量文件元素数据更新到对应的目标存储位置进行使用。
  24. 一种文案适配装置,包括第一存储器和第一处理器,所述第一存储器存储有可在第一处理器上运行的计算机程序,所述第一处理器执行所述程序时实现权利要求1至14任一项所述方法中的步骤。
  25. 一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被第一处理器执行时实现权利要求1至14任一项所述方法中的步骤。
  26. 一种文案适配装置,包括第二存储器和第二处理器,所述第二存储器存储有可在第二处理器上运行的计算机程序,所述第二处理器执行所述程序时实现权利要求15至21任一项所述方法中的步骤。
  27. 一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被第二处理器执行时实现权利要求15至21任一项所述方法中的步骤。
PCT/CN2022/094414 2021-06-28 2022-05-23 文案适配方法、装置及存储介质 WO2023273694A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110722079.9A CN113392356B (zh) 2021-06-28 2021-06-28 文案适配方法、装置及存储介质
CN202110722079.9 2021-06-28

Publications (1)

Publication Number Publication Date
WO2023273694A1 true WO2023273694A1 (zh) 2023-01-05

Family

ID=77624344

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094414 WO2023273694A1 (zh) 2021-06-28 2022-05-23 文案适配方法、装置及存储介质

Country Status (2)

Country Link
CN (1) CN113392356B (zh)
WO (1) WO2023273694A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113392356B (zh) * 2021-06-28 2024-04-12 北京沃东天骏信息技术有限公司 文案适配方法、装置及存储介质
CN115361462B (zh) * 2022-08-26 2024-02-23 中国银行股份有限公司 手机应用程序文案更新方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229647A (zh) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 文案更新方法及装置
CN108984170A (zh) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 H5页面多语言渲染方法及装置
US20190056961A1 (en) * 2017-08-15 2019-02-21 Sap Se Server-side internationalization framework for web applications
CN109947512A (zh) * 2019-03-18 2019-06-28 北京字节跳动网络技术有限公司 一种文本适配显示方法、装置、服务器及存储介质
CN112817655A (zh) * 2021-01-29 2021-05-18 北京达佳互联信息技术有限公司 文案信息处理方法、装置、存储介质及电子设备
US20210173681A1 (en) * 2019-12-10 2021-06-10 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for displaying interface, electronic equipment, server, and storage medium
CN113392356A (zh) * 2021-06-28 2021-09-14 北京沃东天骏信息技术有限公司 文案适配方法、装置及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229647A (zh) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 文案更新方法及装置
CN108984170A (zh) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 H5页面多语言渲染方法及装置
US20190056961A1 (en) * 2017-08-15 2019-02-21 Sap Se Server-side internationalization framework for web applications
CN109947512A (zh) * 2019-03-18 2019-06-28 北京字节跳动网络技术有限公司 一种文本适配显示方法、装置、服务器及存储介质
US20210173681A1 (en) * 2019-12-10 2021-06-10 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for displaying interface, electronic equipment, server, and storage medium
CN112817655A (zh) * 2021-01-29 2021-05-18 北京达佳互联信息技术有限公司 文案信息处理方法、装置、存储介质及电子设备
CN113392356A (zh) * 2021-06-28 2021-09-14 北京沃东天骏信息技术有限公司 文案适配方法、装置及存储介质

Also Published As

Publication number Publication date
CN113392356B (zh) 2024-04-12
CN113392356A (zh) 2021-09-14

Similar Documents

Publication Publication Date Title
WO2023273694A1 (zh) 文案适配方法、装置及存储介质
EP3491544B1 (en) Web page display systems and methods
US8942973B2 (en) Content page URL translation
US8095547B2 (en) Method and apparatus for detecting spam user created content
CN102722563B (zh) 页面显示方法及装置
US8788583B2 (en) Sharing form training result utilizing a social network
US8073915B1 (en) Detection of chain-letters in user-generated comments for websites
US20140365523A1 (en) Push subscriptions
US10992612B2 (en) Contact information extraction and identification
US11297015B2 (en) Message providing device for registering setting information of chatbot for each user and non-transitory computer readable medium storing program
EP3839785A1 (en) Characterizing malware files for similarity searching
CN1670732A (zh) 用于同步软件应用程序和web网站之间用户界面语言的方法和系统
US20080120541A1 (en) System and method for on-line retrieval and typing of non-standard characters
JP2018508059A (ja) ネットワークベース静的フォントサブセット管理
US8839126B1 (en) Secure HTML components for building client-side user interface
WO2017185272A1 (zh) 一种人机交互方法及其装置
WO2015035897A1 (en) Search methods, servers, and systems
US20070180143A1 (en) Translation Web Services For Localizing Resources
US10937033B1 (en) Pre-moderation service that automatically detects non-compliant content on a website store page
US9298689B2 (en) Multiple template based search function
CN112597147A (zh) 一种生成场景配置策略的方法、场景配置方法及其装置
EP3889770B1 (en) Mini program material processing
US8452814B1 (en) Gathering context in action to support in-context localization
KR101820495B1 (ko) 인터넷에서의 웹사이트 및 커뮤니티와 게시판의 사용자 인터페이스와 문자의 다국어번역과 출력 방법
CN112948733B (zh) 接口维护方法、装置、计算设备以及介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22831518

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE