CN106648618B - Text information generation method and device for virtual application - Google Patents

Text information generation method and device for virtual application Download PDF

Info

Publication number
CN106648618B
CN106648618B CN201611028421.0A CN201611028421A CN106648618B CN 106648618 B CN106648618 B CN 106648618B CN 201611028421 A CN201611028421 A CN 201611028421A CN 106648618 B CN106648618 B CN 106648618B
Authority
CN
China
Prior art keywords
original
updated
text
text field
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611028421.0A
Other languages
Chinese (zh)
Other versions
CN106648618A (en
Inventor
刘毅
严奕鋆
滕雅娜
陈煜�
陆俊
董锡军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611028421.0A priority Critical patent/CN106648618B/en
Publication of CN106648618A publication Critical patent/CN106648618A/en
Application granted granted Critical
Publication of CN106648618B publication Critical patent/CN106648618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The invention discloses a method and a device for generating text information of virtual application. Wherein, the method comprises the following steps: acquiring original configuration resources in the virtual application; extracting original text information in original configuration resources by running a preset script; generating original text information into a target file with a preset format; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information; and displaying the updated target file comprising the updated text information according to the original configuration resource. The invention solves the technical problem of low text information generation efficiency of the virtual application in the related technology.

Description

Text information generation method and device for virtual application
Technical Field
The invention relates to the field of computers, in particular to a method and a device for generating text information of virtual application.
Background
At present, for a multilingual version of a general application, because there are few words involved, only Extensible Markup Language (xml) is needed to configure all texts in a development stage, and all places in the application where texts are needed are obtained from the xml.
When the virtual application involves a large number of forms, for example, when the game application involves a large number of forms and the formats are different, each form may contain different text fields. Since the code of the virtual application does not contain any text, the required text is read from the configuration table. There are different configuration tables for different language versions of the text, wherein the core data in the configuration tables are the same except for the language versions.
And different configuration tables are created through different language versions, so that the multi-linguisticity of the text information of the configuration text can be realized. Manual replacement is required for interface resources involved in the virtual application.
The above scheme has the following problems:
(1) the multi-language version of the text information can be made only for one stable basic configuration version, once the basic version is modified, the configuration of each corresponding text information needs to be modified correspondingly, and the problem of low text information generation efficiency of virtual application is caused;
(2) when text information is processed, for example, when text information translation is performed, all configuration tables including the text information need to be provided, and the hidden danger of core data leakage exists;
(3) for interfaces involved in virtual application, the interfaces cannot be automatically modified, and manual intervention is needed for replacing pictures in the interfaces, so that the text information generation efficiency of the virtual application is low.
Aiming at the problem of low text information generation efficiency of the virtual application, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating text information of a virtual application, which are used for at least solving the technical problem of low text information generation efficiency of the virtual application in the related technology.
According to one aspect of the embodiment of the invention, a text information generation method of a virtual application is provided. The text information generation method of the virtual application comprises the following steps: acquiring original configuration resources in the virtual application; extracting original text information in original configuration resources by running a preset script; generating original text information into a target file with a preset format; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information; and displaying the updated target file comprising the updated text information according to the original configuration resource.
According to another aspect of the embodiment of the invention, a text information generating device of the virtual application is also provided. The text information generating device of the virtual application comprises: the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring original configuration resources in the virtual application; the extraction unit is used for extracting original text information in the original configuration resource by running a preset script; the generating unit is used for generating the original text information into a target file with a preset format; the processing unit is used for processing the original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information; and the display unit is used for displaying the updated target file comprising the updated text information according to the original configuration resource.
In the embodiment of the invention, original configuration resources in the virtual application are obtained; extracting original text information in original configuration resources by running a preset script; generating original text information into a target file with a preset format; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information; the updated target file including the updated text information is displayed according to the original configuration resources, and the purpose of generating and displaying the text information is achieved, so that the technical effect of improving the text information generation efficiency of the virtual application is achieved, and the technical problem of low text information generation efficiency of the virtual application in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of a hardware environment of a text information generating method of a virtual application according to an embodiment of the present invention;
fig. 2 is a flowchart of a text information generating method of a virtual application according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for extracting an original text field in an original text configuration resource by running a first preset script according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for generating an original text field into a table file with a preset format according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for extracting an original text field in an original text configuration resource by running a first preset script according to an embodiment of the present invention;
FIG. 6 is a flow diagram of a method for configuring a resource to expose an updated form file including updated text fields from original text in accordance with an embodiment of the present invention;
FIG. 7 is a flowchart of a method for finding a key value of a target updated text field from a table file according to a key of the target updated text field according to an embodiment of the present invention;
FIG. 8 is a flowchart of a method for configuring a resource to present an updated target picture including updated textual information from an original picture, in accordance with an embodiment of the present invention;
FIG. 9 is a diagram of an original configuration resource according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating key and key values for an original configuration resource, according to an embodiment of the present invention;
FIG. 11 is a flow diagram of a script execution method according to an embodiment of the invention;
FIG. 12 is a diagram illustrating a target file with a default format according to an embodiment of the present invention;
fig. 13 is a flowchart of another text information generating method of a virtual application according to an embodiment of the present invention;
fig. 14 is a flowchart of another text information generating method of a virtual application according to an embodiment of the present invention;
fig. 15 is a flowchart of another text information generating method of a virtual application according to an embodiment of the present invention;
FIG. 16 is a diagram of a multilingual directory according to an embodiment of the present invention;
FIG. 17 is a schematic illustration of an interface of a virtual application according to an embodiment of the invention;
FIG. 18 is a schematic illustration of an interface of another virtual application according to an embodiment of the present invention;
fig. 19 is a schematic diagram of a text information generating apparatus of a virtual application according to an embodiment of the present invention;
fig. 20 is a schematic diagram of another text information generating apparatus of a virtual application according to an embodiment of the present invention;
fig. 21 is a schematic diagram of another text information generating apparatus of a virtual application according to an embodiment of the present invention;
fig. 22 is a schematic diagram of another text information generating apparatus of a virtual application according to an embodiment of the present invention; and
fig. 23 is a block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to the embodiment of the invention, the embodiment of the text information generation method of the virtual application is provided.
Alternatively, in this embodiment, the text information generating method of the virtual application may be applied to a hardware environment formed by the server 102 and the terminal 104 as shown in fig. 1. Fig. 1 is a schematic diagram of a hardware environment of a text information generating method for a virtual application according to an embodiment of the present invention. As shown in fig. 1, a server 102 is connected to a terminal 104 via a network including, but not limited to: the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, etc. in a wide area network, a metropolitan area network, or a local area network. The method for generating text information of virtual application according to the embodiment of the present invention may be executed by the server 102, the terminal 104, or both the server 102 and the terminal 104. The text information generating method for the terminal 104 to execute the virtual application according to the embodiment of the present invention may be executed by a client installed thereon.
Fig. 2 is a flowchart of a text information generating method of a virtual application according to an embodiment of the present invention. As shown in fig. 2, the method for generating text information of a virtual application may include the steps of:
step S202, the original configuration resources in the virtual application are obtained.
In the solution provided by step S202 of the present invention, the original configuration resource in the virtual application is obtained.
The virtual application may be a game, such as a web game, a game on a client, and the like. The original configuration resources, i.e., the original basic configuration, on the virtual application may include original text configuration resources, such as an original configuration table, and the original configuration table includes a configuration for a text, such as a configuration for a text field, and may also include a configuration for data, and the like. The original configuration resource may also include an original picture configuration resource, such as a library including picture resources having textual information.
And step S204, extracting original text information in the original configuration resource by running a preset script.
In the solution provided by step S204 of the present invention, the original text information in the original configuration resource is extracted by running a preset script.
The preset Script is a Script language, and may be a Visual Basic Script (VBS) or a JavaScript Script (JSFL). After the original configuration resource in the virtual application is obtained, a preset script is run, for example, a VBS script is run to extract original text information in the original text configuration resource, or a JSFL script is run to extract original picture information in the original picture configuration resource, where the original picture configuration resource includes original picture information of the preset text information and is used to configure the original picture information, and the original text information includes the original picture information.
Step S206, generating the original text information into a target file with a preset format.
In the solution provided by step S206 of the present invention, the original text information is generated into a target file with a preset format.
After the original text information in the original configuration resource is extracted by running the preset script, the original text information can be generated into a table file in a preset format, and the original text information can also be generated into a picture file in the preset format. The target file in the preset format comprises original text information.
Step S208, the original text information in the target file is processed to obtain an updated target file.
In the solution provided by step S208 of the present invention, the original text information in the target file is processed to obtain an updated target file, where the updated target file includes updated text information obtained by processing the original text information.
After the original text information is generated into the target file with the preset format, the original text information in the target file is processed, and the original text information of the target file can be managed, translated, increased or decreased, and the like, so that the updated target file is obtained. Optionally, the updated target file includes updated text information obtained by processing the original text information.
Step S210, displaying the updated target file including the updated text information according to the original configuration resource.
In the solution provided by step S210 of the present invention, the updated target file including the updated text information is displayed according to the original configuration resource.
After the original text information in the target file is processed to obtain the updated target file, the updated target file including the updated text information is displayed according to the original configuration resource, the identification information of the updated target file can be found in the original configuration resource, the key of the updated target file is found according to the identification information, the corresponding key value is found according to the key of the updated target file, and the updated target file is displayed through the key value.
Through the steps S202 to S210, the original configuration resources in the virtual application are obtained; extracting original text information in original configuration resources by running a preset script; generating original text information into a target file with a preset format; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information; the updated target file including the updated text information is displayed according to the original configuration resources, so that the technical problem of low text information generation efficiency of the virtual application in the related technology can be solved, and the technical effect of low text information generation efficiency of the virtual application is further achieved.
As an alternative embodiment, the extracting, by using a preset script, original text information in an original configuration resource includes: extracting an original text field in original text configuration resources by running a first preset script, wherein the original configuration resources comprise original text configuration resources used for configuring original text information, and the original text information comprises the original text field; generating the original text information into a target file with a preset format comprises the following steps: and generating the original text field into a table file with a preset format, wherein the target file comprises a table file, and the table file is also a multi-language table and can be provided with a plurality of language versions. Processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises: processing an original text field in the table file to obtain an updated table file, wherein the updated table file comprises an updated text field obtained by processing the original text field; displaying the updated target file including the updated text information according to the original configuration resource includes: the resource is configured to present an updated form file including updated text fields according to the original text.
The preset script includes a first preset script, optionally, the first preset script is a VBS script, the original configuration resource includes an original text configuration resource, that is, an original basic configuration, the original text configuration resource may include an original text field, may also include data of a virtual application, and the like, and the original text information includes the original text field. The method comprises the steps of extracting original text fields in original text configuration resources by running a first preset script, namely obtaining the original text fields in the original text configuration resources by running the first preset script and leading the original text fields out of the original text configuration resources, and optionally obtaining all the original text fields in the original text configuration resources by running the first preset script and leading all the original text fields out of the original text configuration resources. After an original text field in an original text configuration resource is obtained by running a first preset script, a text library file under a current directory is opened, a column of the text library file is set, column names are set, the text library file can be set into two columns, the two columns are respectively used for identifying text identification information and text content of the text field, the text field in the original text configuration resource is copied into the text library file, and the current line number of the text library file is accumulated until all the original text fields in the original text configuration resource are copied. After copying all original text fields in the original text configuration resource, performing uniqueness check on the original text fields in the text library file, namely, checking whether the original text fields in the text library file have repeated original text fields, modifying the repeated original text fields if the repeated original text fields exist, and finally saving the text library file to obtain a table file in a preset format, wherein the target file comprises the table file.
After the table file with the preset format is obtained, processing the original text field in the table file to obtain an updated table file, the original text field in the table file can be managed, translated, modified, added, deleted and the like to obtain an updated text field, the updated form file includes an updated text field obtained by processing the original text field, displaying the updated form file including the updated text field according to the original text configuration resource, firstly finding the identification information of the updated text field of the updated form file in the original configuration resource, finding out the key of the updated text field according to the identification information of the updated text field, finding out the corresponding key value according to the key of the updated text field, and displaying the updated text field through the key value, and further displaying the updated table file comprising the updated text field.
As an alternative embodiment, in step S204, extracting the original text information in the original configuration resource by running the preset script includes: extracting an original text field in an original text configuration resource by running a first preset script, and further opening an original form by running the first preset script to copy the original text field in the original form. Generating the original text field into a table file with a preset format comprises the following steps: and pasting the original text field into the initialized text library, and displaying the text library in a table form to obtain a table file.
Fig. 3 is a flowchart of a method for extracting an original text field in an original text configuration resource by running a first preset script according to an embodiment of the present invention. As shown in fig. 3, the method for extracting an original text field in an original text configuration resource by running a first preset script includes the following steps:
in step S301, an original form is opened by running a first preset script.
In the scheme provided by the above step S301 of the present invention, the original form is opened by running the first preset script.
The original text field in the original text configuration resource is represented in the form of an original form, and after the original configuration resource in the virtual application is acquired, the original form is opened by running a first preset script, so that the original form in the original text configuration resource can be opened by running a VBS script.
In step S302, the original text field in the original form is copied.
In the scheme provided by the above step S302 of the present invention, the original text field in the original form is copied.
The operation of the first preset script comprises opening a text library file under a current directory, setting columns and column names of a table to be generated, for example, setting the columns of the table file to be generated as two columns, setting the column name of the first column as a text identifier, setting the column name of the second column as a text, opening an original table, and copying an original text field in the original table, so that the original text field in the original text configuration resource is extracted by operating the first preset script.
After copying the original text field in the original form, pasting the original text field into the initialized text library, accumulating the line number in the initialized text library until all the original text field in the original form is copied, pasting all the original text field into the initialized text library, and finally displaying the text library in a form to obtain a form file, wherein the form file is the form file to be generated.
In the embodiment, the original table is opened by running a first preset script; the original text field in the original form is copied, the original text field is pasted to the initialized text library, the text library is displayed in a form to obtain a form file, and the purposes of extracting the original text field in the original text configuration resource by running a first preset script and generating the original text field into the form file in a preset format are achieved.
As an alternative embodiment, step S206 generates the original text information into a target file with a preset format, including generating the original text field into a table file with a preset format, and further including: acquiring keys of an original text field and key values of the original text field; generating a table file with a preset format according to keys of the original text field and key values of the original text field, wherein the original text field in the table file is processed to obtain an updated table file, and the step of: and processing the key value of the original text field in the table file to obtain an updated table file.
Fig. 4 is a flowchart of a method for generating an original text field into a table file with a preset format according to an embodiment of the present invention. As shown in fig. 4, the method for generating the original text field into the table file with the preset format includes the following steps:
step S401, obtaining the key of the original text field and the key value of the original text field.
In the scheme provided in step S401 of the present invention, a key of the original text field and a key value of the original text field are obtained, where the key of the original text field is represented by a preset character string, and the key value of the original text field is used to represent content information of the original text field.
The original text field is represented by a key of the original text field and a key value of the original text field, the key of the original text field is represented by a preset character string, for example, the key of the original text field is represented by a character string including "string", and the key of the original text field, that is, the identification information of the original text field, is used for identifying the uniqueness of the original text field. The key value of the original text field is used to represent the content information of the original text field. After an original text field in an original text configuration resource is extracted by running a first preset script, acquiring keys of the original text field and key values of the original text field.
Step S402, generating the keys of the original text field and the key values of the original text field into a table file with a preset format.
In the scheme provided by step S402 of the present invention, the keys of the original text field and the key values of the original text field are generated into a table file with a preset format.
After the keys of the original text field and the key values of the original text field are obtained, the keys of the original text field and the key values of the original text field are generated into a table file with a preset format. For example, the key of the original text field is set in the first column of the table file, and the key of the original text field is set in the second column of the table file, and the format of the table file is the EXCEL format.
After the keys of the original text field and the key values of the original text field are generated into the table file with the preset format, the key values of the original text field in the table file are processed, so that the content information represented by the key values can be translated, modified, added, deleted and the like, the updated table file is obtained, the original text field in the table file is processed, and the updated table file is obtained.
The embodiment generates the keys of the original text field and the key values of the original text field into the table file with the preset format by acquiring the keys of the original text field and the key values of the original text field, processes the key values of the original text field in the table file to obtain the updated table file, realizes the purposes of generating the original text field into the table file with the preset format and processing the original text field in the table file to obtain the updated table file, avoids the problem that the original text field can only be modified aiming at one stable original configuration resource when generating the text information of the virtual application, avoids the complex processing of corresponding modification on the corresponding original text field once the original configuration resource is modified, and also avoids the occurrence of core data leakage caused by submitting all the original configuration resources when translating the original text field, the generation efficiency of the text information of the virtual application is improved.
As an alternative embodiment, in step S204, extracting the original text information in the original configuration resource by running the preset script includes: extracting an original text field in an original text configuration resource by running a first preset script, and further comprising: acquiring an original text field in an original text configuration resource by running a first preset script; and replacing the original text field in the original text configuration resource.
Fig. 5 is a flowchart of a method for extracting an original text field in an original text configuration resource by running a first preset script according to an embodiment of the present invention. As shown in fig. 5, the method for running the first preset script to extract the original text field in the original text configuration resource includes the following steps:
step S501, an original text field in an original text configuration resource is obtained by running a first preset script.
In the scheme provided by step S501 of the present invention, the original text field in the original text configuration resource is obtained by running the first preset script.
After the original configuration resource in the virtual application is obtained, the original text field in the original text configuration resource is obtained by running the first preset script, and the original text field in the original form can be obtained by running the VBS script.
Step S502, replacing the original text field in the original text configuration resource with a preset character string to obtain an updated text configuration resource.
In the scheme provided by step S502 of the present invention, the original text field in the original text configuration resource is replaced with a preset character string, so as to obtain an updated text configuration resource.
After the original text field in the original text configuration resource is obtained by running the first preset script, the original text configuration resource does not include any original text field, all the original text fields in the original text configuration resource are replaced by preset character strings, optionally, the preset character strings are character strings including "string", and then the updated text configuration resource is obtained. The table file with the preset format comprises keys of an original text field and key values of the original text field, and the keys of the original text field are represented by preset character strings in the updated text configuration resource. At this time, the configuration table of the virtual application includes the updated text configuration resource and the table file in the preset format.
According to the embodiment, the original text field in the original text configuration resource is obtained by running the first preset script, and the original text field in the original text configuration resource is replaced, so that the purpose of obtaining the updated text configuration resource is achieved.
As an alternative embodiment, step S210, the displaying, according to the original configuration resource, the updated target file including the updated text information includes: displaying the updated form file including the updated text field according to the original text configuration resource, and further comprising: determining preset identification information of a target update text field in an update text configuration resource according to an indication signal for reading the target update text field; determining a key of a target update text field according to preset identification information; searching a key value of the target update text field from the table file according to the key of the target update text field; and displaying the content information of the target update text field according to the key value of the target update text field.
FIG. 6 is a flowchart of a method for configuring a resource to expose an updated form file including updated text fields according to original text, according to an embodiment of the present invention. As shown in fig. 6, the method for configuring a resource showing an updated form file including updated text fields according to original text includes the following steps:
step S601, receiving an indication signal for reading a target updated text field.
In the scheme provided by step S601 of the present invention, an indication signal for reading a target updated text field is received, where the target updated text field is an updated text field to be displayed.
The table file with the preset format comprises an update text field, the update text field comprises a plurality of update text fields, and a target update text field is read and is the update text field of the content information to be displayed. The indication signal is a signal for reading the target updated text field, and the indication signal is received to read the target updated text field.
Step S602, determining preset identification information of the target update text field in the update text configuration resource according to the indication signal.
In the solution provided by step S602 of the present invention, the preset identification information of the target updated text field is determined in the updated text configuration resource according to the indication signal.
After receiving the indication signal for reading the target updated text field, the configuration table including the updated text field may be found from the original text configuration resource, and the configuration table including the updated text field and the preset identification information of the target updated text field are determined according to the indication signal, where the preset identification information may be an ID of the updated text field for identifying uniqueness of the updated text field.
Step S603, determining a key of the target update text field according to the preset identification information.
In the solution provided by step S603 of the present invention, the key of the target updated text field is determined according to the preset identification information.
The target update text field is represented by a key of the target update text field and a key value of the target update text field. After determining the preset identification information of the target updated text field according to the indication signal, determining the key of the updated text field according to the preset identification information, and searching the information of the updated text field including "stride" in the configuration table including the updated text field according to the ID of the updated text field.
Step S604, searching the key value of the target update text field from the table file according to the key of the target update text field.
In the scheme provided by step S604 of the present invention, a key value of the target updated text field is searched from the table file according to a key of the target updated text field, where the key value of the target updated text field is used to indicate content information of the target updated text field.
The keys of the target updated text field and the key values of the target updated text field have a one-to-one correspondence. After the key of the target update text field is determined according to the preset identification information, the key value of the target update text field is searched from the table file according to the key of the target update text field, and then the content information of the target update text field is determined.
And step S605, displaying the content information of the target update text field according to the key value of the target update text field.
In the scheme provided in step S605 of the present invention, content information of the target update text field is displayed according to the key value of the target update text field.
And after the key value of the target update text field is searched from the table file according to the key of the target update text field, displaying the content information of the target update text field according to the key value of the target update text field.
The embodiment receives an indication signal for reading a target update text field, wherein the target update text field is an update text field to be displayed; determining preset identification information of a target update text field in the update text configuration resource according to the indication signal; determining a key of a target update text field according to preset identification information; searching a key value of the target update text field from the table file according to the key of the target update text field, wherein the key value of the target update text field is used for representing the content information of the target update text field; the content information of the target update text field is displayed according to the key value of the target update text field, the purpose of displaying the updated table file comprising the update text field according to the original text configuration resource is achieved, and the text information generation efficiency of the virtual application is improved.
As an alternative embodiment, the step S604 of finding the key value of the target updated text field from the table file according to the key of the target updated text field includes: and searching the key value of the target update text field from the table file by judging that the key of the target update text field contains the preset character string.
Fig. 7 is a flowchart of a method for searching a key value of a target updated text field from a table file according to a key of the target updated text field according to an embodiment of the present invention. The method for configuring the resource to show the updated form file comprising the updated text field according to the original text comprises the following steps:
step S701, determining whether a key of the target updated text field contains a preset character string.
In the solution provided by step S701 of the present invention, it is determined whether the key of the target updated text field contains a preset character string.
After determining the key of the target updated text field according to the preset identification information, determining whether the key of the target updated text field contains a preset character string, wherein the preset character string may begin with 'STRID', and determining whether the key of the target updated text field begins with 'STRID'.
Step S702, the key value of the target update text field is searched from the table file.
In the solution provided in step S702 of the present invention, if it is determined that the key of the target updated text field includes the preset character string, the key value of the target updated text field is searched from the table file.
After judging whether the key of the target update text field contains the preset character string, if the key of the target update text field contains the preset character string, finding a key value corresponding to the key of the update text field from the multi-language table through the key of the update text field, and displaying content information represented by the key value of the update text field.
As an alternative embodiment, the extracting the original text information in the original configuration resource by running the preset script includes: extracting original picture information containing preset text information in original picture configuration resources by running a second preset script, wherein the original configuration resources comprise original picture configuration resources used for configuring the original picture information, and the original text information comprises the original picture information; generating the original text information into a target file with a preset format comprises the following steps: exporting an original picture corresponding to the original picture information according to a preset prefix corresponding to the original picture information to obtain a target picture in a preset format, wherein the target file comprises the target picture which comprises preset text information; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises: processing preset text information in the target picture to obtain an updated target picture, wherein the updated target picture comprises updated text information obtained by processing the preset text information; displaying the updated target file including the updated text information according to the original configuration resource includes: and displaying the updated target picture comprising the updated text information according to the original picture configuration resource.
As an alternative embodiment, step S210, displaying the updated target file including the updated text information according to the original configuration resource, includes: displaying an updated target picture including updated text information according to the original picture configuration resource, and further replacing the original picture with the same file name as the updated target picture with the updated target picture under the condition that the original picture with the same file name as the target picture exists in the original picture configuration resource; and displaying the updated target picture.
Fig. 8 is a flowchart of a method for displaying an updated target picture including updated text information according to an original picture configuration resource according to an embodiment of the present invention. As shown in fig. 8, the method for displaying an updated target picture including updated text information according to an original picture configuration resource includes the following steps:
in step S801, the file name of the updated target picture is acquired.
In the solution provided in the above step S801 of the present invention, the file name of the updated target picture is obtained.
Step S802, judging whether an original picture with the same file name as the updated target picture exists in the original picture configuration resource.
In the solution provided in step S802 of the present invention, it is determined whether an original picture having the same file name as the updated target picture exists in the original picture configuration resource.
In step S803, the original picture having the same file name as the updated target picture is replaced with the updated target picture.
In the solution provided in step S803 of the present invention, if it is determined that there is an original picture with the same file name as the target picture in the original picture configuration resource, the original picture with the same file name as the updated target picture is replaced with the updated target picture.
Step S804, displaying the updated target picture.
In the solution provided in the above step S805 of the present invention, the updated target picture is displayed.
Optionally, the virtual application includes many interfaces, most of the interfaces have art words or pictures include words, and when the multi-language version is made, the multi-language version needs to be replaced by the corresponding language version. Compared with the time and labor waste of manual replacement, the JSFL script replacement method has the advantages of being fast and efficient and the like, and achieves the effect of improving the text information generation efficiency of the virtual application.
Flash is used as popular 2D animation software, and can be used as UI editing in both a web game and a client game. The use of JSFL scripts is employed to derive all text-containing pictures in the library. The pictures containing the characters are added with specific prefixes to distinguish which pictures need to be derived. The JSFL script can open each interface file in turn, traverse all bitmap resources in the library, and export the picture to the same-name folder of the corresponding interface file if finding that the file name contains a specific prefix.
At the moment, the exported pictures are only required to be translated by a translator, interface files are not required to be provided, translation omission and layout change are avoided, the translated pictures of other language versions are imported into the library through the JSFL script, the files with the same name in the library are replaced, and finally Flash is issued to obtain a new interface file, so that the effect of improving the text information generation efficiency of virtual application is achieved.
Example 2
The technical solution of the present invention will be described below with reference to preferred embodiments.
The existing scheme for making the multi-language version usually needs development, planning and mutual cooperation of art, and a plurality of links are all absent. Only one person is needed for automatic production of the script, and the VBS script and the JSFL script are respectively run to export text resources and picture resources when production is needed. And automatically importing the text information into the virtual application after the text information on the text resource and the picture resource is translated.
The whole script is divided into two parts, namely, original text fields are derived from all original configuration resources to form a table file with a preset format, namely, a new multi-language table is formed. The virtual application comprises hundreds of configuration tables, some tables comprise text fields, other tables do not need to be processed, the script extracts the text fields in all the tables to form an independent configuration table, the independent table comprises all the text information in the whole virtual application, and only the table file in the preset format needs to be processed when the text information is translated, increased and decreased in the later period without providing the original table in the original configuration resource. In addition, pictures containing characters are derived from all interfaces in the virtual application, and finally, the processed new language version pictures are led back to the corresponding interfaces.
FIG. 9 is a diagram of an original configuration resource according to an embodiment of the invention. As shown in fig. 9, the virtual application is a game, the game configuration table mostly exists in an Excel form, for convenience of management, the game configuration table is often divided into a plurality of files, each file is further divided into a plurality of forms (sheets), in order to derive all text fields, a piece of globally unique identification information needs to be added beside the corresponding field, and the ID may be an ID, for example, the ID is 1 to 15. Where each ID has a corresponding name and description, for example, when the ID is 1, the corresponding name is "level 10 attacking gemstone", and description is "mystery gemstone adding attacks, the owner seems to be a mystery in mystery".
Fig. 10 is a schematic diagram of configuring keys and key values for an original configuration resource according to an embodiment of the present invention. As shown in fig. 10, all text fields to be exported are configured, and the text fields are brought out, where the exported text fields include two columns, a "stride" head is used as a key (key), and content information of the corresponding text field is used as a key value (value). The script automatically detects all Excel files in the directory, traverses all Sheet files, and reads out corresponding values and writes the corresponding values into a new multi-language table once the table is found to contain fields needing to be exported.
FIG. 11 is a flow diagram of a script execution method according to an embodiment of the invention. As shown in fig. 11, the script execution flow is as follows: opening a text base file under a current directory, setting column names, only containing two columns in a new table to be created, wherein the first column is a text ID, the second column is a text, opening an original table, copying text fields in source configuration into a text base, accumulating the current line number of the text base until all the text fields in the original table are traversed, performing uniqueness check on the text fields in the text base to ensure that the text fields are not repeated, finally closing and storing the text base to obtain a table file in a preset format, and finishing the operation of the whole script.
Fig. 12 is a schematic diagram of a target file in a preset format according to an embodiment of the present invention. As shown in fig. 12, the target file in the preset format is a table file in the preset format, and includes two columns, where the first column "text ID" is a key of a text field, and the second column "text" is content information of the text field.
Once new texts are added or modified in the configuration, only the new language table and the old language table are needed to be compared with texts, differences are found for incremental updating, all configuration tables are not needed to be provided like the existing scheme, and therefore the generation efficiency of the text information of the virtual application is improved.
Fig. 13 is a flowchart of another text information generating method of a virtual application according to an embodiment of the present invention. As shown in fig. 13, an Excel table is exported to a text file for reading of the virtual application, and the configuration table can be divided into "basic configuration" + "multi-language configuration", which does not contain any text field, and all the characters of the previous configuration are replaced by special characters of "string _ xxxxxx". The multilingual configuration includes all texts with "STRID _ XXXXX" as key and specific text as value. When a certain field needs to be read in the virtual application, a corresponding table is found in the basic configuration, then corresponding information is found according to the ID, whether the read field starts with the STRID or not is found, if the field starts with the STRID, multiple languages are read, the multiple languages are configured, the corresponding value is found from the multiple language table through the key, namely the text needing to be displayed is found, and if the field does not start with the STRID, the field is obtained.
The virtual application comprises a plurality of interfaces, most of the interfaces are provided with art words or pictures comprise words, and the interfaces are required to be replaced by corresponding language versions when the multilingual versions are manufactured. Compare in the wasting time and energy of artifical replacement, this scheme adopts the JSFL script to replace, has characteristics such as swift high efficiency.
Flash, as a relatively popular 2D animation software, can be used as a UI for editing both web games and end games. In this regard, JSFL is employed to derive all text-containing pictures in the library. The pictures containing the characters are added with specific prefixes to distinguish which pictures need to be derived. The script opens each interface file in turn, traverses all bitmap resources in the library, and exports the picture to the same-name folder of the corresponding interface file if the file name contains a specific prefix.
And importing the pictures of other language versions after the translation is finished into the library through the JSFL script, replacing the files with the same name in the library, and finally issuing Flash to obtain a new interface file.
The embodiment of the invention avoids manual intervention, automatically generates in the whole process, only provides characters and pictures to be translated for a translator, avoids leakage of core data, does not need to make a multi-language version on a stable version, can make at any time, supports incremental updating, and is transparent to the whole development process without any adaptation to the multi-language version.
Example 2
The application environment of the embodiment of the present invention may refer to the application environment in embodiment 1, but is not described herein again. The embodiment of the present invention provides an example of a selectable specific application of a text information generating apparatus for implementing the virtual application, which is specifically described by taking a game application as an example.
In the game application, the whole script is divided into two parts, firstly, text fields are derived from all the configurations to form a new multi-language table, the game can comprise nearly hundred configuration tables, some tables can comprise the text fields, other tables do not need to be processed, the script can extract half lines of text fields in all the tables to form an independent configuration table, the new table can comprise all the text information in the whole game, and the translation and increase and decrease in the later period only need to process the table without providing the original table; and secondly, pictures containing characters are exported from all interfaces, and finally, new language version pictures are exported to the corresponding interfaces.
Fig. 14 is a flowchart of another text information generating method of a virtual application according to an embodiment of the present invention. As shown in fig. 14, the method for generating text information of a virtual application includes the following steps: and running the VBS script, exporting the text configuration, translating the text configuration, and reading the text configuration during running, thereby realizing the creation of the multi-language version of the game application.
Fig. 15 is a flowchart of another text information generating method of a virtual application according to an embodiment of the present invention. As shown in fig. 15, the method for generating text information of a virtual application includes the following steps: the JSFL script is operated, the character picture is derived, the characters on the character picture are translated, the translated character picture is adopted to replace the picture in the original interface, the typesetting and layout are not required to be rearranged, manual intervention is not required in the whole process, and the generation efficiency of the text information of the virtual application is improved.
FIG. 16 is a diagram of a multilingual directory according to an embodiment of the present invention. As shown in fig. 16, the multi-language object includes types of fonts, for example, including a simplified font and a traditional font, wherein the simplified font corresponds to a prop table, a task table, etc., the traditional font corresponds to an english prop table, an english task table, etc., and the traditional font also corresponds to a traditional prop table, a traditional task table, etc.
FIG. 17 is a schematic diagram of an interface of a virtual application according to an embodiment of the invention. As shown in fig. 17, the game interface includes original text information, where the original text information includes an original text field in an original form in an original configuration resource, and content information corresponding to the original text field is: information such as "start time of the group star blaze sink tribe 10 months 23 days-11 months 22 days", "charming hunting 00:00-23:59 every day, 5 challenge opportunities every day", and the like ", the original text information further includes original picture information of the game application, and the original picture corresponding to the original picture information includes preset text information, such as" tribe guard war "," group star blaze sink tribe! "," to collect diamonds from tribes! ".
FIG. 18 is a schematic diagram of an interface of another virtual application according to an embodiment of the invention. As shown in fig. 18, the original text field in all configuration tables is first derived by VBS script, and the original text field is simplified, so that a multi-language table containing all texts is obtained. The original text field of the simplified body is translated into the traditional body, a generated multi-language form needs to be provided, and all configurations of the game do not need to be handed over to a translation party. The JSFL script is used for exporting the pictures with characters in all interfaces in the game application, the characters in the pictures are handed over and translated to manufacture traditional Chinese characters, and finally the pictures including the traditional Chinese characters are automatically imported back to the original interface without typesetting and layout again, manual intervention is not needed in the whole process, and the generation efficiency of the text information of the virtual application is improved.
In game application, the existing scheme for making a multi-language version usually needs development, planning and art mutual cooperation, and a plurality of links are all absent. Only one person is needed for automatic script making, the VBS script and the JSFL script are respectively operated to import text resources and picture resources when the script needs to be made, and the VBS script and the JSFL script are automatically imported back to the game after translation is completed, so that the generation efficiency of the text information of the virtual application is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 4
According to the embodiment of the invention, the text information generating device of the virtual application is also provided, wherein the text information generating device is used for implementing the text information generating method of the virtual application. Fig. 19 is a schematic diagram of a text information generating apparatus of a virtual application according to an embodiment of the present invention. As shown in fig. 19, the text information generating apparatus of the virtual application may include: an acquisition unit 10, an extraction unit 20, a generation unit 30, a processing unit 40 and a presentation unit 50.
An obtaining unit 10, configured to obtain an original configuration resource in a virtual application.
And the extracting unit 20 is used for extracting the original text information in the original configuration resource by running a preset script.
The generating unit 30 is configured to generate the original text information into a target file in a preset format.
And the processing unit 40 is configured to process the original text information in the target file to obtain an updated target file, where the updated target file includes updated text information obtained by processing the original text information.
And the display unit 50 is used for displaying the updated target file comprising the updated text information according to the original configuration resource.
Optionally, the extracting unit 20 is configured to extract an original text field in an original text configuration resource by running a first preset script, where the original configuration resource includes an original text configuration resource for configuring original text information, and the original text information includes the original text field; the generating unit 30 is configured to generate the original text field into a table file in a preset format, where the target file includes the table file; the processing unit 40 is configured to process an original text field in the table file to obtain an updated table file, where the updated table file includes an updated text field obtained by processing the original text field; the presentation unit 50 is configured to present the updated form file including the updated text field according to the original text configuration resource.
Optionally, the original text field in the original text configuration resource is represented in the form of an original form, and the extraction unit 20 is configured to open the original form by running a first preset script; copying an original text field in an original form; the generating unit 50 is configured to paste the original text field into the initialized text library, and display the text library in a table form to obtain a table file.
Fig. 20 is a schematic diagram of another text information generating apparatus of a virtual application according to an embodiment of the present invention. As shown in fig. 20, the text information generating apparatus of the virtual application may include: an acquisition unit 10, an extraction unit 20, a generation unit 30, a processing unit 40 and a presentation unit 50. Wherein the generating unit 30 comprises: a first acquisition module 31 and a generation module 32.
It should be noted that the acquiring unit 10, the extracting unit 20, the generating unit 30, the processing unit 40, and the presenting unit 50 in this embodiment have the same functions as those in the text information generating apparatus for virtual application in the embodiment shown in fig. 19, and are not described again here.
The first obtaining module 31 is configured to obtain a key of an original text field and a key value of the original text field, where the key of the original text field is represented by a preset character string, and the key value of the original text field is used to represent content information of the original text field.
And the generating module 32 is configured to generate a table file in a preset format according to the keys of the original text field and the key values of the original text field.
The processing unit 40 is configured to process the key value of the original text field in the table file to obtain an updated table file.
Fig. 21 is a schematic diagram of another text information generating apparatus of a virtual application according to an embodiment of the present invention. As shown in fig. 21, the text information generating apparatus of the virtual application may include: the device comprises an acquisition unit 10, an extraction unit 20, a generation unit 30, a processing unit 40 and a presentation unit 50, wherein the generation unit 30 comprises: a first acquisition module 31 and a generation module 32. Wherein the extraction unit 20 includes: a second acquisition module 21 and a replacement module 22.
It should be noted that the acquiring unit 10, the extracting unit 20, the generating unit 30, the processing unit 40, the presenting unit 50, the first acquiring module 31, and the generating module 32 in this embodiment have the same functions as the text information generating device of the virtual application in the embodiment shown in fig. 20, and are not described again here.
And a second obtaining module 21, configured to obtain the original text field in the original text configuration resource by running the first preset script.
And the replacing module 22 is configured to replace the original text field in the original text configuration resource with a preset character string to obtain an updated text configuration resource.
Fig. 22 is a schematic diagram of another text information generating apparatus of a virtual application according to an embodiment of the present invention. As shown in fig. 22, the text information generating apparatus of the virtual application may include: the device comprises an acquisition unit 10, an extraction unit 20, a generation unit 30, a processing unit 40 and a presentation unit 50, wherein the generation unit 30 comprises: a first acquisition module 31 and a generation module 32, the extraction unit 20 comprising: a second acquisition module 21 and a replacement module 22. Wherein, the display unit 50 includes: a receiving module 51, a first determining module 52, a second determining module 53, a searching module 54 and a presenting module 55.
It should be noted that the acquiring unit 10, the extracting unit 20, the generating unit 30, the processing unit 40, the presenting unit 50, the first acquiring module 31, the generating module 32, the second acquiring module 21, and the replacing module 22 in this embodiment have the same functions as the text information generating apparatus of the virtual application in the embodiment shown in fig. 21, and are not described again here.
The receiving module 51 is configured to receive an indication signal for reading a target updated text field after processing a key value of an original text field in a table file to obtain an updated table file, where the target updated text field is an updated text field to be displayed.
And a first determining module 52, configured to determine, in the updated text configuration resource, preset identification information of the target updated text field according to the indication signal.
And a second determining module 53, configured to determine a key of the target updated text field according to the preset identification information.
And a searching module 54, configured to search a key value of the target updated text field from the table file according to the key of the target updated text field, where the key value of the target updated text field is used to represent content information of the target updated text field.
And the display module 55 is configured to display the content information of the target update text field according to the key value of the target update text field.
Optionally, the searching module 54 is configured to determine whether a key of the target updated text field contains a preset character string; and if the key of the target updating text field contains the preset character string, searching the key value of the target updating text field from the table file.
Optionally, the extracting unit 20 is configured to extract, by running a second preset script, original picture information containing preset text information in an original picture configuration resource, where the original configuration resource includes an original picture configuration resource used for configuring the original picture information, and the original text information includes the original picture information; the generating unit 30 is configured to generate the original text information into a target file with a preset format, and includes: exporting an original picture corresponding to the original picture information according to a preset prefix corresponding to the original picture information to obtain a target picture in a preset format, wherein the target file comprises the target picture which comprises preset text information; the processing unit 40 is configured to process preset text information in the target picture to obtain an updated target picture, where the updated target picture includes updated text information obtained by processing the preset text information; the presentation unit 50 is configured to present an updated target picture including updated text information according to the original picture configuration resource.
The display unit 50 includes: a third acquisition module, a judgment module and a display module. The third acquisition module is used for acquiring the file name of the updated target picture; the judging module is used for judging whether an original picture with the same file name as the updated target picture exists in the original picture configuration resource; the display module is used for displaying the updated target picture after the original picture with the same file name as the target picture in the original picture configuration resources is cut off and the original picture with the same file name as the updated target picture is replaced by the updated target picture.
It should be noted that the obtaining unit 10 in this embodiment may be configured to execute step S202 in embodiment 1 of this application, the extracting unit 20 in this embodiment may be configured to execute step S204 in embodiment 1 of this application, the generating unit 30 in this embodiment may be configured to execute step S206 in embodiment 1 of this application, the processing unit 40 in this embodiment may be configured to execute step S208 in embodiment 1 of this application, and the displaying unit 50 in this embodiment may be configured to execute step S210 in embodiment 1 of this application.
The embodiment acquires the original configuration resource in the virtual application through the acquisition unit 10, the extraction unit 20 extracts the original text information in the original configuration resource by running the preset script, the original text information is generated into a target file with a preset format by the generating unit 30, the original text information in the target file is processed by the processing unit 40 to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information, the display unit 50 displays the updated target file including the updated text information according to the original configuration resource, so as to achieve the purpose of generating and displaying the text information, therefore, the technical effect of improving the text information generation efficiency of the virtual application is achieved, and the technical problem that the text information generation efficiency of the virtual application in the related technology is low is solved.
It should be noted here that the above units and modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the above embodiment 1. It should be noted that the above units and modules as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
Example 5
According to the embodiment of the invention, the server or the terminal for implementing the text information generation method of the virtual application is also provided.
Fig. 23 is a block diagram of a terminal according to an embodiment of the present invention. As shown in fig. 23, the terminal may include: one or more processors 231 (only one of which is shown), memory 233, and transmission means 235. as shown in fig. 23, the terminal may also include input and output devices 237.
The memory 233 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for generating text information of a virtual application in the embodiment of the present invention, and the processor 231 executes various functional applications and data processing by running the software programs and modules stored in the memory 233, that is, implements the method for generating text information of a virtual application. The memory 233 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 233 can further include memory located remotely from the processor 231, which can be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 235 is used for receiving or transmitting data via a network, and may also be used for data transmission between the processor and the memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 235 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 235 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Among them, the memory 233 is used to store, in particular, an application program.
The processor 231 may call the application stored in the memory 233 through the transmission device 235 to perform the following steps:
acquiring original configuration resources in the virtual application;
extracting original text information in original configuration resources by running a preset script;
generating original text information into a target file with a preset format;
processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information;
and displaying the updated target file comprising the updated text information according to the original configuration resource.
The processor 231 is further configured to perform the following steps: extracting an original text field in original text configuration resources by running a first preset script, wherein the original configuration resources comprise original text configuration resources used for configuring original text information, and the original text information comprises the original text field; generating an original text field into a table file with a preset format, wherein the target file comprises the table file; processing an original text field in the table file to obtain an updated table file, wherein the updated table file comprises an updated text field obtained by processing the original text field; the resource is configured to present an updated form file including updated text fields according to the original text.
The processor 231 is further configured to perform the following steps: an original text field in an original text configuration resource is represented in the form of an original form, and the original form is opened by running a first preset script; copying an original text field in an original form; and pasting the original text field into the initialized text library, and displaying the text library in a table form with a preset format to obtain a table file.
The processor 231 is further configured to perform the following steps: acquiring keys of an original text field and key values of the original text field, wherein the keys of the original text field are represented by preset character strings, and the key values of the original text field are used for representing content information of the original text field; and generating the keys of the original text field and the key values of the original text field into a table file with a preset format, and processing the key values of the original text field in the table file to obtain an updated table file.
The processor 231 is further configured to perform the following steps: acquiring an original text field in an original text configuration resource by running a first preset script; and replacing the original text field in the original text configuration resource with a preset character string to obtain the updated text configuration resource.
The processor 231 is further configured to perform the following steps: the update text field comprises a plurality of update text fields and receives an indication signal for reading a target update text field, wherein the target update text field is an update text field to be displayed; determining preset identification information of a target update text field in the update text configuration resource according to the indication signal; determining a key of a target update text field according to preset identification information; searching a key value of the target update text field from the table file according to the key of the target update text field, wherein the key value of the target update text field is used for representing the content information of the target update text field; and displaying the content information of the target update text field according to the key value of the target update text field.
The processor 231 is further configured to perform the following steps: judging whether the keys of the target update text field contain preset character strings or not; and if the key of the target updating text field contains the preset character string, searching the key value of the target updating text field from the table file.
The processor 231 is further configured to perform the following steps: extracting original picture information containing preset text information in original picture configuration resources by running a second preset script, wherein the original configuration resources comprise original picture configuration resources used for configuring the original picture information, and the original text information comprises the original picture information; generating the original text information into a target file with a preset format comprises the following steps: exporting an original picture corresponding to the original picture information according to a preset prefix corresponding to the original picture information to obtain a target picture in a preset format, wherein the target file comprises the target picture which comprises preset text information; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises: processing preset text information in the target picture to obtain an updated target picture, wherein the updated target picture comprises updated text information obtained by processing the preset text information; displaying the updated target file including the updated text information according to the original configuration resource includes: and displaying the updated target picture comprising the updated text information according to the original picture configuration resource.
The processor 231 is further configured to perform the following steps: acquiring the file name of the updated target picture; judging whether an original picture with the same file name as the updated target picture exists in the original picture configuration resource; if the original picture with the same file name as the target picture in the original picture configuration resource is judged to exist, replacing the original picture with the same file name as the updated target picture with the updated target picture; and displaying the updated target picture.
The embodiment of the invention provides a scheme of a text information generation method of virtual application. Obtaining original configuration resources in the virtual application; extracting original text information in original configuration resources by running a preset script; generating original text information into a target file with a preset format; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information; the updated target file including the updated text information is displayed according to the original configuration resources, and the purpose of generating and displaying the text information is achieved, so that the technical effect of improving the text information generation efficiency of the virtual application is achieved, and the technical problem of low text information generation efficiency of the virtual application in the related art is solved.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 23 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 23 is a diagram illustrating a structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 23, or have a different configuration than shown in FIG. 23.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 6
The embodiment of the invention also provides a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing a text information generating method of a virtual application.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
acquiring original configuration resources in the virtual application;
extracting original text information in original configuration resources by running a preset script;
generating original text information into a target file with a preset format;
processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information;
and displaying the updated target file comprising the updated text information according to the original configuration resource.
Optionally, the storage medium is further arranged to store program code for performing the steps of: extracting an original text field in original text configuration resources by running a first preset script, wherein the original configuration resources comprise original text configuration resources used for configuring original text information, and the original text information comprises the original text field; generating an original text field into a table file with a preset format, wherein the target file comprises the table file; processing an original text field in the table file to obtain an updated table file, wherein the updated table file comprises an updated text field obtained by processing the original text field; the resource is configured to present an updated form file including updated text fields according to the original text.
Optionally, the storage medium is further arranged to store program code for performing the steps of: an original text field in an original text configuration resource is represented in the form of an original form, and the original form is opened by running a first preset script; copying an original text field in an original form; and pasting the original text field into the initialized text library, and displaying the text library in a table form with a preset format to obtain a table file.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring keys of an original text field and key values of the original text field, wherein the keys of the original text field are represented by preset character strings, and the key values of the original text field are used for representing content information of the original text field; and generating the keys of the original text field and the key values of the original text field into a table file with a preset format, and processing the key values of the original text field in the table file to obtain an updated table file.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring an original text field in an original text configuration resource by running a first preset script; and replacing the original text field in the original text configuration resource with a preset character string to obtain the updated text configuration resource.
Optionally, the storage medium is further arranged to store program code for performing the steps of: the update text field comprises a plurality of update text fields and receives an indication signal for reading a target update text field, wherein the target update text field is an update text field to be displayed; determining preset identification information of a target update text field in the update text configuration resource according to the indication signal; determining a key of a target update text field according to preset identification information; searching a key value of the target update text field from the table file according to the key of the target update text field, wherein the key value of the target update text field is used for representing the content information of the target update text field; and displaying the content information of the target update text field according to the key value of the target update text field.
Optionally, the storage medium is further arranged to store program code for performing the steps of: judging whether the keys of the target update text field contain preset character strings or not; and if the key of the target updating text field contains the preset character string, searching the key value of the target updating text field from the table file.
Optionally, the storage medium is further arranged to store program code for performing the steps of: extracting original picture information containing preset text information in original picture configuration resources by running a second preset script, wherein the original configuration resources comprise original picture configuration resources used for configuring the original picture information, and the original text information comprises the original picture information; generating the original text information into a target file with a preset format comprises the following steps: exporting an original picture corresponding to the original picture information according to a preset prefix corresponding to the original picture information to obtain a target picture in a preset format, wherein the target file comprises the target picture which comprises preset text information; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises: processing preset text information in the target picture to obtain an updated target picture, wherein the updated target picture comprises updated text information obtained by processing the preset text information; displaying the updated target file including the updated text information according to the original configuration resource includes: and displaying the updated target picture comprising the updated text information according to the original picture configuration resource.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring the file name of the updated target picture; judging whether an original picture with the same file name as the updated target picture exists in the original picture configuration resource; if the original picture with the same file name as the target picture in the original picture configuration resource is judged to exist, replacing the original picture with the same file name as the updated target picture with the updated target picture; and displaying the updated target picture.
The embodiment of the invention provides a scheme of a text information generation method of virtual application. Obtaining original configuration resources in the virtual application; extracting original text information in original configuration resources by running a preset script; generating original text information into a target file with a preset format; processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information; the updated target file including the updated text information is displayed according to the original configuration resources, and the purpose of generating and displaying the text information is achieved, so that the technical effect of improving the text information generation efficiency of the virtual application is achieved, and the technical problem of low text information generation efficiency of the virtual application in the related art is solved.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (14)

1. A text information generation method for virtual application is characterized by comprising the following steps:
acquiring original configuration resources in the virtual application;
extracting original text information in the original configuration resources by running a preset script;
generating the original text information into a target file with a preset format;
processing original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information;
displaying the updated target file comprising the updated text information according to the original configuration resource;
extracting original text information in the original configuration resource through the preset script comprises the following steps: extracting an original text field in an original text configuration resource by running a first preset script, wherein the original configuration resource comprises the original text configuration resource used for configuring the original text information, and the original text information comprises the original text field;
generating the original text information into the target file with the preset format comprises: generating the original text field into a table file in the preset format, wherein the target file comprises the table file;
processing the original text information in the target file to obtain the updated target file comprises: processing an original text field in the form file to obtain an updated form file, wherein the updated form file comprises an updated text field obtained by processing the original text field;
displaying the updated target file including the updated textual information according to the original configuration resource includes: and displaying the updated table file comprising the updated text field according to the original text configuration resource.
2. The method of claim 1, wherein the original text field in the original text configuration resource is represented in original table form,
extracting the original text field in the original text configuration resource by running the first preset script comprises: opening the original form by running the first preset script; copying original text fields in the original form;
generating the original text field into the table file with the preset format comprises: and pasting the original text field to an initialized text library, and displaying the text library in a table form of the preset format to obtain the table file.
3. The method of claim 1, wherein generating the original text field as the table file of the preset format comprises:
acquiring a key of the original text field and a key value of the original text field, wherein the key of the original text field is represented by a preset character string, and the key value of the original text field is used for representing content information of the original text field;
generating the keys of the original text field and the key values of the original text field as the table file of the preset format,
wherein, processing the original text field in the form file to obtain the updated form file comprises: and processing the key value of the original text field in the table file to obtain the updated table file.
4. The method of claim 3, wherein extracting the original text field in the original text configuration resource by executing the first preset script comprises:
acquiring an original text field in the original text configuration resource by running the first preset script;
and replacing the original text field in the original text configuration resource with the preset character string to obtain the updated text configuration resource.
5. The method of claim 4, wherein the updated text field comprises a plurality of updated text fields, and wherein configuring the resource presentation with the updated form file comprising the updated text field according to the original text comprises:
receiving an indication signal for reading a target update text field, wherein the target update text field is an update text field to be displayed;
determining preset identification information of the target update text field in the update text configuration resource according to the indication signal;
determining a key of the target update text field according to the preset identification information;
searching a key value of the target update text field from the table file according to the key of the target update text field, wherein the key value of the target update text field is used for representing content information of the target update text field;
and displaying the content information of the target update text field according to the key value of the target update text field.
6. The method of claim 5, wherein finding the key value for the target updated text field from the table file according to the key for the target updated text field comprises:
judging whether the key of the target updating text field contains the preset character string;
and if the key of the target updating text field is judged to contain the preset character string, searching the key value of the target updating text field from the table file.
7. The method of claim 1,
extracting the original text information in the original configuration resource by running the preset script comprises: extracting original picture information containing preset text information in original picture configuration resources by running a second preset script, wherein the original configuration resources comprise the original picture configuration resources used for configuring the original picture information, and the original text information comprises the original picture information;
generating the original text information into the target file with the preset format comprises: exporting an original picture corresponding to the original picture information according to a preset prefix corresponding to the original picture information to obtain a target picture in a preset format, wherein the target file comprises the target picture which comprises the preset text information;
processing the original text information in the target file to obtain the updated target file comprises: processing the preset text information in the target picture to obtain an updated target picture, wherein the updated target picture comprises the updated text information obtained by processing the preset text information;
displaying the updated target file including the updated textual information according to the original configuration resource includes: and displaying the updated target picture comprising the updated text information according to the original picture configuration resource.
8. The method of claim 7, wherein displaying the updated target picture including the updated textual information according to the original picture configuration resource comprises:
acquiring the file name of the updated target picture;
judging whether an original picture with the same file name as the updated target picture exists in the original picture configuration resource;
if the original picture with the same file name as the target picture is judged to exist in the original picture configuration resource, replacing the original picture with the same file name as the updated target picture with the updated target picture;
and displaying the updated target picture.
9. A text information generating apparatus for a virtual application, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring original configuration resources in the virtual application;
the extraction unit is used for extracting original text information in the original configuration resource by running a preset script;
the generating unit is used for generating the original text information into a target file with a preset format;
the processing unit is used for processing the original text information in the target file to obtain an updated target file, wherein the updated target file comprises updated text information obtained by processing the original text information;
the display unit is used for displaying the updated target file comprising the updated text information according to the original configuration resource;
the extraction unit is used for extracting an original text field in an original text configuration resource by running a first preset script, wherein the original configuration resource comprises the original text configuration resource used for configuring the original text information, and the original text information comprises the original text field;
the generating unit is used for generating the original text field into a table file in the preset format, wherein the target file comprises the table file;
the processing unit is used for processing an original text field in the form file to obtain an updated form file, wherein the updated form file comprises an updated text field obtained by processing the original text field;
the display unit is used for displaying the updated form file comprising the updated text field according to the original text configuration resource.
10. The apparatus of claim 9, wherein the original text field in the original text configuration resource is represented in an original table form,
the extraction unit is used for opening the original form by running the first preset script; copying original text fields in the original form;
the generating unit is used for pasting the original text field to an initialized text library, and displaying the text library in a table form of the preset format to obtain the table file.
11. The apparatus of claim 9, wherein the generating unit comprises:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring keys of the original text field and key values of the original text field, the keys of the original text field are represented by preset character strings, and the key values of the original text field are used for representing content information of the original text field;
a generating module, configured to generate the table file in the preset format according to the key of the original text field and the key value of the original text field,
the processing unit is used for processing the key value of the original text field in the table file to obtain the updated table file.
12. The apparatus of claim 11, wherein the extraction unit comprises:
the second obtaining module is used for obtaining an original text field in the original text configuration resource by running the first preset script;
and the replacing module is used for replacing the original text field in the original text configuration resource with the preset character string to obtain the updated text configuration resource.
13. The apparatus of claim 12, wherein the updated text field comprises a plurality of updated text fields, and wherein the presentation unit comprises:
the receiving module is used for receiving an indication signal for reading a target update text field after processing a key value of an original text field in the form file to obtain the updated form file, wherein the target update text field is an update text field to be displayed;
a first determining module, configured to determine, in the updated text configuration resource, preset identification information of the target updated text field according to the indication signal;
the second determining module is used for determining the key of the target updated text field according to the preset identification information;
the searching module is used for searching a key value of the target update text field from the table file according to the key of the target update text field, wherein the key value of the target update text field is used for representing the content information of the target update text field;
and the display module is used for displaying the content information of the target update text field according to the key value of the target update text field.
14. The apparatus of claim 9,
the extraction unit is used for extracting original picture information containing preset text information in an original picture configuration resource by running a second preset script, wherein the original configuration resource comprises the original picture configuration resource used for configuring the original picture information, and the original text information comprises the original picture information;
the generating unit is configured to generate the original text information into the target file with the preset format, and includes: exporting an original picture corresponding to the original picture information according to a preset prefix corresponding to the original picture information to obtain a target picture in a preset format, wherein the target file comprises the target picture which comprises the preset text information;
the processing unit is used for processing the preset text information in the target picture to obtain an updated target picture, wherein the updated target picture comprises the updated text information obtained by processing the preset text information;
the display unit is used for displaying the updated target picture including the updated text information according to the original picture configuration resource.
CN201611028421.0A 2016-11-16 2016-11-16 Text information generation method and device for virtual application Active CN106648618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611028421.0A CN106648618B (en) 2016-11-16 2016-11-16 Text information generation method and device for virtual application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611028421.0A CN106648618B (en) 2016-11-16 2016-11-16 Text information generation method and device for virtual application

Publications (2)

Publication Number Publication Date
CN106648618A CN106648618A (en) 2017-05-10
CN106648618B true CN106648618B (en) 2020-02-07

Family

ID=58808534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611028421.0A Active CN106648618B (en) 2016-11-16 2016-11-16 Text information generation method and device for virtual application

Country Status (1)

Country Link
CN (1) CN106648618B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780897B (en) * 2019-08-26 2022-05-10 华为云计算技术有限公司 Code changing method and device
CN112169326A (en) * 2020-10-19 2021-01-05 网易(杭州)网络有限公司 Picture processing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118558A (en) * 2007-07-10 2008-02-06 青岛海信移动通信技术股份有限公司 Converting method and apparatus for resource file

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118558A (en) * 2007-07-10 2008-02-06 青岛海信移动通信技术股份有限公司 Converting method and apparatus for resource file

Also Published As

Publication number Publication date
CN106648618A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US20200167529A1 (en) Translation Review Workflow Systems and Methods
CN108664239B (en) Cross-technology-stack web front-end development system and method based on micro-service
CN111160045B (en) Game resource file translation method, device and equipment
CN101667118A (en) Method and device for multi-language version development and replacement
CN111068336B (en) Game translation version generation method and device, electronic equipment and storage medium
US20210311678A1 (en) Creation of component templates
KR102033416B1 (en) Method for generating data extracted from document and apparatus thereof
CN105574092A (en) Information mining method and device
CN102110102A (en) Data processing method and device, and file identifying method and tool
CN111729313A (en) Language configuration method and device, storage medium and electronic device
CN105550165A (en) Plug-in and method capable of importing webpage article into webpage text editor
CN100585561C (en) Method for clipping relocatable ELF files in embedded system
CN104008087A (en) Automatic typesetting method and system special for copywriter with standard format
CN106648618B (en) Text information generation method and device for virtual application
WO2015057457A1 (en) Systems and methods to segment text for layout and rendering
CN106407288B (en) Method and system for synchronously updating information
CN106933782A (en) A kind of comparison method and device of textual resources file
JP7040227B2 (en) Information processing programs, information processing methods, and information processing equipment
CN108694172B (en) Information output method and device
CN107133200A (en) A kind of android system text string extracting and merging method
CN115904167A (en) Processing method and device of webpage icon, storage medium and electronic equipment
CN108062295B (en) Content processing method and device
CN109543122B (en) Content synchronization method, device, storage medium and electronic device
CN110807298B (en) Method and system for processing marking information
CN112988300A (en) Method and device for displaying text in page, storage medium and electronic equipment

Legal Events

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