WO2021243916A1 - 终端的文本显示方法、装置、系统和存储介质 - Google Patents

终端的文本显示方法、装置、系统和存储介质 Download PDF

Info

Publication number
WO2021243916A1
WO2021243916A1 PCT/CN2020/119739 CN2020119739W WO2021243916A1 WO 2021243916 A1 WO2021243916 A1 WO 2021243916A1 CN 2020119739 W CN2020119739 W CN 2020119739W WO 2021243916 A1 WO2021243916 A1 WO 2021243916A1
Authority
WO
WIPO (PCT)
Prior art keywords
language
converted
data
terminal
conversion
Prior art date
Application number
PCT/CN2020/119739
Other languages
English (en)
French (fr)
Inventor
段晓辰
Original Assignee
北京旷视科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京旷视科技有限公司 filed Critical 北京旷视科技有限公司
Publication of WO2021243916A1 publication Critical patent/WO2021243916A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a text display method, device, system and storage medium of a terminal.
  • the page In the traffic system, it is usually necessary to display the corresponding text information to the guests. In the internationalized software, the page usually needs to be displayed in different languages based on the need.
  • the display of different languages is usually based on the front-end web page.
  • the front-end developer extracts the text information in the page, extracts the text as variables, replaces the original text with the variables, and then saves the variables and the corresponding text information in the resource file.
  • the page switches languages, loads the corresponding Resource files to show.
  • the traditional traffic system is based on the front-end web page, and its display content is single, so the application scene is single, the efficiency of switching display between different languages is low and the operation is inconvenient.
  • a text display method of a terminal including:
  • the data to be converted is data formed according to a preset data conversion template, and the target conversion language is used to characterize the data in the data to be converted
  • the target conversion language allocating the data to be converted to the queue to be converted corresponding to the target conversion language
  • the converted data and the language package are sent to a language package management device, so that the language package management device distributes the converted data and the language package to each terminal for display.
  • a text display method of a terminal including:
  • the converted text in the converted data corresponding to the language to be displayed is displayed.
  • a text display method of a terminal including:
  • the language pack includes the target conversion language adopted by the converted data, and the target conversion language is used to characterize the language category of the text content conversion in the to-be-converted data;
  • a text display device of a terminal including:
  • the acquisition module is used to acquire the data to be converted and the target conversion language corresponding to the data to be converted; wherein the data to be converted is data constructed according to a preset data conversion template, and the target conversion language is used to characterize the The language category of the text content conversion in the data to be converted;
  • An allocation module configured to allocate the data to be converted to the queue to be converted corresponding to the target conversion language according to the target conversion language;
  • a receiving module configured to receive converted data obtained after language conversion of the data to be converted according to the target conversion language and a corresponding language package, the language package including the target conversion language adopted by the converted data;
  • the sending module is configured to send the converted data and the language pack to a language pack management device, so that the language pack management device distributes the converted data and the language pack to each terminal for display.
  • a text display device of a terminal including:
  • the first receiving module is configured to receive the converted data and the language package sent by the language package management device; wherein the converted data corresponds to at least one target conversion language;
  • the second receiving module is used to receive a selection instruction
  • a determining module configured to determine the language to be displayed from at least one target conversion language of the language pack according to the selection instruction
  • the display module is used to display the converted text in the converted data corresponding to the language to be displayed.
  • a text display device of a terminal including:
  • the acquisition module is used to acquire the converted data and the corresponding language pack; wherein, the language pack includes the target conversion language adopted by the converted data, and the target conversion language is used to characterize the text content in the data to be converted Language category to be converted;
  • the distribution module is used to distribute the converted data and the language pack to each terminal for display.
  • a terminal text display system includes a conversion platform server, a language package management device, and at least one terminal;
  • the conversion platform server is used to obtain the data to be converted and the target conversion language corresponding to the data to be converted, and according to the target conversion language, distribute the data to be converted to the target conversion language corresponding to the target conversion language A queue, and receiving the converted data and the corresponding language package obtained after language conversion of the data to be converted according to the target conversion language, and sending the converted data and the language package to the language package management device;
  • the data to be converted is data constructed according to a preset conversion data template
  • the target conversion language is used to characterize the language category of the text content conversion in the data to be converted
  • the language pack includes the converted data.
  • the language pack management device is configured to distribute the received converted data and the language pack to each of the terminals;
  • the terminal is configured to receive the converted data and the language package sent by the language package management device, and according to a selection instruction, determine the language to be displayed from at least one target conversion language of the language package, and display The converted text in the converted data corresponding to the language to be displayed.
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • the data to be converted is data formed according to a preset data conversion template, and the target conversion language is used to characterize the data in the data to be converted
  • the target conversion language allocating the data to be converted to the queue to be converted corresponding to the target conversion language
  • the converted data and the language package are sent to a language package management device, so that the language package management device distributes the converted data and the language package to each terminal for display.
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • the converted text in the converted data corresponding to the language to be displayed is displayed.
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • the language pack includes the target conversion language used by the converted data, and the target conversion language is used to characterize the language category of the text content conversion in the data to be converted ;
  • a computer-readable storage medium on which a computer program is stored, and the computer program implements the following steps when executed by a processor:
  • the data to be converted is data formed according to a preset data conversion template, and the target conversion language is used to characterize the data in the data to be converted
  • the target conversion language allocating the data to be converted to the queue to be converted corresponding to the target conversion language
  • the converted data and the language package are sent to a language package management device, so that the language package management device distributes the converted data and the language package to each terminal for display.
  • a computer-readable storage medium on which a computer program is stored, and the computer program implements the following steps when executed by a processor:
  • the converted text in the converted data corresponding to the language to be displayed is displayed.
  • a computer-readable storage medium on which a computer program is stored, and the computer program implements the following steps when executed by a processor:
  • the language pack includes the target conversion language adopted by the converted data, and the target conversion language is used to characterize the language category of the text content conversion in the to-be-converted data;
  • the converted data and language package of each terminal are managed by the language package management device and decoupled from the software running on the terminal.
  • the software especially the front-end page
  • the software running on the terminal can be updated to update the language pack and translated text.
  • the embodiment of the present disclosure can add language packs in real time without updating the software running on the terminal. Editing with translated text makes the switching and updating of language categories and display content easier and faster.
  • the language pack management device distributes the converted data and language packs to multiple associated terminals.
  • the embodiments of the present disclosure can realize web-based, client-based
  • the multi-terminal linkage display of the end and the back end meets the needs of international business, and the application scenarios are more abundant and flexible.
  • FIG. 1 is an architecture diagram of a terminal text display system provided by an embodiment
  • FIG. 2 is a schematic flowchart of a text display method of a terminal according to an embodiment
  • FIG. 3 is a schematic flowchart of a text display method of a terminal according to another embodiment
  • FIG. 4 is a schematic flowchart of a text display method of a terminal according to another embodiment
  • FIG. 5 is a schematic flowchart of a text display method of a terminal according to another embodiment
  • FIG. 6 is a schematic flowchart of a text display method of a terminal according to another embodiment
  • FIG. 7 is a schematic flowchart of a text display method of a terminal according to another embodiment.
  • FIG. 8 is a schematic structural diagram of a text display device of a terminal according to an embodiment
  • FIG. 9 is a schematic structural diagram of a text display device of a terminal according to another embodiment.
  • FIG. 10 is a schematic structural diagram of a text display device of a terminal according to another embodiment.
  • Figure 11 is an internal structure diagram of a computer device provided by an embodiment
  • FIG. 12 is an internal structure diagram of a terminal provided by an embodiment.
  • the terminal text display method provided by the embodiment of the present disclosure can be applied to the terminal text display system as shown in FIG. 1.
  • the terminal 1002 communicates with the language package management device 1004 through the network
  • the conversion platform server 1006 communicates with the language package management device 1004 through the network.
  • the terminal 1002 may be a client terminal such as an access control machine, a welcome device, etc., and may also be a web front end and a back end for providing services.
  • Each terminal includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the language pack management device 1004 and the conversion platform server 1006 can be implemented by independent servers or a server cluster composed of multiple servers.
  • the execution body of the following method embodiments may be a text display device of a terminal, and the device may be implemented as part or all of the foregoing computer equipment through software, hardware, or a combination of software and hardware.
  • the following method embodiments are described from multi-side devices, respectively, taking the execution subject as the conversion platform server, terminal, and language package management device as examples.
  • Fig. 2 is a schematic flowchart of a text display method of a terminal according to an embodiment. This embodiment relates to the specific process in which the conversion platform server converts the data to be converted and sends it to the corresponding terminal for display, as shown in Figure 2, including:
  • the project manager usually generates a language package through the computer terminal of the project management according to the type of language that the project needs to be developed currently needs to be converted into.
  • the language package may include two language categories (also referred to as language types), Japanese and Chinese, and the conversion platform server receives this data package submitted by the project manager through the computer terminal of the project management.
  • the conversion is what we usually call translation, and the conversion platform server is the server where the translation platform is located.
  • the project manager can send a language package composed of the project name, language code, and target conversion language to be converted to the conversion platform server.
  • the project name can be an application identifier, such as the name, code, number, etc.
  • the language code can include, but is not limited to, en for English, cn for Chinese, ge for German, etc., in the form of language codes Other characters can also be used, which are only examples here, and this embodiment does not limit this;
  • the target conversion language can include but is not limited to at least one of English, Chinese, German, etc. Types, such as two, three, or even more, have a one-to-one correspondence between language categories and language codes, for example, en corresponds to English, cn corresponds to Chinese, ge corresponds to German, and so on.
  • the conversion platform server receives the to-be-converted data sent by the developer through the computer terminal.
  • the to-be-converted data has a certain data structure and is data constructed according to a preset data conversion template.
  • different characters in different positions in the above-mentioned data conversion template respectively represent which terminal, which application needs to be converted, and the content that needs to be converted.
  • the structured data formed according to the preset data conversion template guarantees the readability of the data to be converted at the code level and the consistency of data access and data processing, which is convenient for data processing.
  • the conversion platform server allocates the data to be converted according to the target conversion language to the queue to be converted corresponding to the target conversion language.
  • each queue to be translated can correspond to a target conversion language, that is, to achieve conversion to a language.
  • the conversion platform server allocates the data to be converted to the queue to be converted in Chinese and the queue to be converted in English, respectively.
  • S103 Receive converted data obtained after performing language conversion of the data to be converted according to the target conversion language and a corresponding language package, where the language package includes the target conversion language adopted by the converted data.
  • the translator or automatic translation equipment converts the data to be converted in the corresponding queue to be converted according to the target conversion language, obtains the converted data, and uploads the converted data and the language package corresponding to the target conversion language, for example, through translation
  • the computer terminal used uploads the converted data and the language package corresponding to the target conversion language.
  • the translator can log in to the conversion platform server through a registered account to perform translation and input the translation result.
  • artificial intelligence technology can also be used for automatic conversion and upload to the conversion platform server.
  • the conversion platform server receives the above-mentioned converted data and the language package corresponding to the converted data.
  • the language pack may include at least one language category of the converted data, which corresponds to the target conversion language.
  • the language pack includes two language categories, English and Chinese.
  • S104 Send the converted data and the language package to a language package management device, so that the language package management device distributes the converted data and the language package to each terminal for display.
  • the conversion platform server sends the converted data and language packs to the language pack management device, and the language pack management device distributes the converted data and language packs to each terminal, so that each terminal can transfer the text in the converted data.
  • the content is displayed as required.
  • the conversion platform server can obtain the data to be converted and the target conversion language corresponding to the data to be converted, and according to the target conversion language, allocate the data to be converted to the queue to be converted corresponding to the target conversion language.
  • the conversion data is converted into at least one language.
  • the conversion platform server receives the converted data and the language package corresponding to the target conversion language after language conversion of the data to be converted according to the target conversion language, and sends the converted data and language package to the language package management device to make the language
  • the package management device distributes the converted data and language packages to each terminal, so that each terminal can receive the converted data in at least one language.
  • the traditional The problem of single display content brought about by displaying only the front-end page has enriched the display form of the terminal.
  • the language categories in the language pack when multiple language categories need to be switched, there is no need to modify the code each time, and the language categories in the language pack can be called through each terminal to realize the display of different language categories.
  • the language category and display content can be switched on the terminal side. Therefore, this method can realize the personalized display of the terminal and the differentiated display of multiple terminals, while the language category and display content can be switched more simply and quickly.
  • this method can realize the differentiated display of the terminal, can meet the needs of international business, and has richer and more flexible application scenarios.
  • the converted data and language packs of each terminal are managed uniformly by the language pack management device, and are decoupled from the software running on the terminal, compared to the prior art language packs and software (especially front-end pages) are bundled and stored and run on the terminal.
  • the solution for updating language packs and translated texts only after software is updated embodiments of the present disclosure can add language packs in real time and edit existing translated texts without updating the software running on the terminal, so that the language category and display content can be switched , Update is easier and faster.
  • the language pack management device distributes the converted data and language packs to multiple associated terminals.
  • the embodiments of the present disclosure can realize web-based, client-based
  • the multi-terminal linkage display of the end and the back end meets the needs of international business, and the application scenarios are more abundant and flexible.
  • a possible implementation form of "the language package management device distributes the converted data and the language package to each terminal for display" in the foregoing step S104 may include :
  • the language pack management device distributes the converted data and the language pack to each terminal for display according to the terminal identification included in the converted data.
  • the data to be converted includes unconverted text, variable names corresponding to the unconverted text, source language, terminal identification, and application identification.
  • the converted data includes the converted text after language conversion, the variable name, the target language, the terminal identification and the application identification.
  • the data to be converted can include the unconverted text of "Welcome", the variable name "XX” corresponding to "Welcome", and "Welcome”.
  • the source language is "Chinese”
  • the terminal logo is "Client Welcome Device”
  • the application logo "YY Company Door Welcome System”.
  • the converted data can include the converted text after language conversion, such as the converted text "Welcome” after the conversion of "Welcome", the variable name "XX”, the target language "English”, the terminal identification "Client Welcome Device” and Application logo "YY company door welcome system".
  • the above example is only an example.
  • the above unconverted text may include multiple, such as "hello”, "good morning”, etc.; the above terminal identifier may include the terminal identifiers of multiple terminals, among which the terminal identifiers of different types of terminals Different; the target language can include Chinese, English, etc. which need to be converted.
  • developers at each end such as front-end development, back-end development, and client-side development, extract unconverted text in their respective codes and set variable names for the unconverted text.
  • a fixed character can be added as a prefix to the variable name, and this prefix can characterize which terminal it comes from.
  • the back-end can use the abbreviation "+B" of the project name, which represents the terminal identifier of the back-end, as the prefix of the variable name
  • the front-end can use the abbreviation of the project name "+F", which represents the terminal identifier of the front-end, as the prefix of the variable name.
  • the terminal can use the abbreviation "+P" of the project name, which represents the terminal identifier of the client, as the prefix of the variable name, so as to distinguish the data to be converted submitted by the developer from which terminal.
  • the above data to be converted can also be added with corresponding meaning descriptions, for example, "Welcome” is added to “Welcome outsiders” to ensure the uniqueness of the data to be converted, avoid confusion, and use variable names To represent the content that needs to be displayed can ensure the readability of the code level, and further improve the accuracy of the text display.
  • the conversion platform server sends the converted data and the language package to the language package management device, and the language package management device reads the terminal identifier in the converted data, and then converts the above-mentioned converted data according to the corresponding terminal identifier in the converted data.
  • language packs are distributed to each terminal for display.
  • the terminal may select one of the language packs as the language to be displayed, and display the converted text corresponding to the language to be displayed in the converted data. For example, when it is determined that foreign guests whose native language is English are being received, "English" in the language pack can be used as the language to be displayed, and then the converted text "Welcome" corresponding to the language to be displayed can be displayed.
  • the unconverted text corresponding to different terminals can be different.
  • the unconverted text corresponding to the client may include: hello and welcome
  • the unconverted text corresponding to the back-end may include: software update and software upgrade.
  • the converted text corresponding to different terminals can be different.
  • the converted text corresponding to the same terminal can be different.
  • the converted text of the client can be "Bye”
  • the converted text corresponding to the front end can be As "Goodbye”.
  • the language package management device can distribute the converted data and language package to the terminal corresponding to the converted data according to the terminal identification, so that each terminal can display different languages, or different characters in the same language, or different expressions in the same language and the same semantics. .
  • the language pack management device distributes the converted data and language packs to each terminal for display according to the terminal identification included in the converted data, so that different terminals can obtain and display the corresponding converted data based on their respective terminal identifications.
  • the multi-end differentiated display makes the form of text display richer and more targeted.
  • the method may also be as shown in FIG. 3, including:
  • S105 Receive the converted modified data, and search for the converted data to be edited according to the variable name, target language, terminal identifier, and application identifier in the converted modified data.
  • the conversion platform server can receive the conversion modification data sent by the terminal, and the data form of the conversion modification data can refer to the above The structure description of the data to be converted will not be repeated here.
  • the conversion modification data includes the conversion modification text that needs to be modified. For example, if the client request is to modify "Hello” to "Hello”, then the modification text is converted to "Hello", and the conversion platform server modifies the variables in the data according to the above conversion.
  • the conversion platform server may search based on the variable name, target language, terminal identifier, and application identifier in the converted modified data, find the converted data to be edited, and then export it as editable text, and then export the converted data to editable text.
  • the converted text in the converted data is replaced with the converted modified text, and then re-imported to realize the update of the converted data, and then the conversion platform server sends the updated converted data to the language pack management device, so that the language pack management device will be updated
  • the converted data is then distributed to the corresponding terminal of the converted device for display.
  • the terminal originally displayed the text "Hello” it will change to display "Hello”.
  • the updated converted data needs to be sent to the terminal that needs it, and the other terminals are not updated.
  • the updated converted data can be sent to each terminal.
  • the terminal detects that there is new converted data or the converted data is updated (for example, the text corresponding to some variables is changed), it will immediately update the existing data, thereby changing the text display on the terminal interface.
  • the conversion platform server determines the converted data to be edited based on the conversion modification data sent by the terminal, and then determines the converted data to be edited according to the conversion modification text in the conversion modification data.
  • the converted text is updated, and finally the updated converted data is sent to the language pack management device, so that the language pack management device distributes the updated converted data to each terminal for display, thereby realizing the text based on customer needs Display changes.
  • This method does not require developers to re-participate, and the update of the displayed text is more convenient and quicker, which greatly reduces the maintenance cost in the later period, and further meets the customization requirements of the terminal.
  • the method may also be as shown in FIG. 4, including:
  • S109 Receive newly-added converted data obtained after language conversion of the data to be converted, and update the language pack according to the newly-added target conversion language to obtain an updated language pack.
  • the conversion platform server can receive the newly added target conversion language sent by the terminal and the new target conversion language to be converted corresponding to the newly added target conversion language Data, the specific description of the data to be converted can be referred to the above, and will not be repeated here. At this time, the conversion platform server allocates the corresponding data to be converted to the queue to be converted corresponding to the newly added target conversion language according to the newly added target conversion language for conversion. For the implementation process of this step, please refer to the description of S102 above.
  • the conversion platform server receives the newly converted data obtained after language conversion of the data to be converted, and updates the language pack according to the newly added target conversion language to obtain the updated language pack, that is, add the new target to the original language pack
  • the conversion platform server sends the newly converted data and updated language packs to the language pack management device, so that the language pack management device distributes the newly converted data and updated language packs to each terminal for display.
  • the language pack management device distributes the newly converted data and updated language packs to each terminal for display.
  • the conversion platform server can receive the newly added target conversion language "French” sent by the terminal and the data to be converted corresponding to the newly added target conversion language, and according to the newly added target conversion language, distribute the data to be converted to the " "French” corresponds to the queue to be converted.
  • receive the newly converted data obtained after language conversion of the data to be converted receives the newly converted data obtained after language conversion of the data to be converted.
  • This newly converted data includes the converted data of French, and update the language pack according to the newly added "French” to obtain the updated language Pack, the language category "French” is added to this updated language pack.
  • the conversion platform server acquires the newly-added target conversion language and the data to be converted corresponding to the newly-added target conversion language, and according to the newly-added target conversion language, allocates the to-be-converted data to the newly-added target conversion
  • the queue to be converted corresponding to the language and then receives the newly converted data obtained after language conversion of the data to be converted, and updates the language pack according to the newly added target conversion language to obtain the updated language pack, and finally adds the converted data and
  • the updated language pack is sent to the language pack management device, so that the language pack management device distributes the newly converted data and the updated language pack to each terminal for display.
  • the method can realize the text display of the newly added language based on the requirements of the newly added language submitted by the terminal, so it can meet the needs of a large number of internationalization, and the usage scenarios are further enriched.
  • the new language does not require the involvement of developers, it makes it easier and faster to realize the needs of the new language, greatly reducing the maintenance cost in the later period, and further satisfying the customization needs of the terminal.
  • the execution subject is the conversion platform server to describe the technical solutions of the present disclosure.
  • the execution subject is the terminal to illustrate the technical solutions of the present disclosure.
  • Fig. 5 is a schematic flowchart of a method for displaying text on a terminal according to an embodiment. This embodiment relates to a specific process in which the terminal displays the converted text according to the language to be displayed. As shown in Figure 5, it includes:
  • S201 Receive the converted data and the language package sent by the language package management device; wherein the converted data corresponds to at least one target conversion language.
  • S202 Receive a selection instruction. For example, receiving a selection instruction for the language pack input by a user or a selection instruction sent by the language management device.
  • the terminal receives the converted data and the language package sent by the language package management device.
  • the converted data corresponds to at least one target conversion language.
  • the selection instruction points to a language category in the language pack as the language to be displayed.
  • the terminal may receive a user's selection instruction for the aforementioned language pack.
  • the aforementioned selection instruction may be an instruction issued by the user through a click operation of the language pack drop-down menu displayed on the terminal interface, such as the user's external connection of the terminal. The device mouse has clicked on the language category "English", and has issued a selection command pointing to "English".
  • the foregoing selection instruction may also be a selection instruction sent by the language pack management device forwarding other terminals.
  • A, B, and C are the three terminals included in the welcome system.
  • the language pack management device receives the user's choice of the language "English” to be displayed, and then the user's choice Forward to terminal B and terminal C, so that the display language of terminal B and C will be changed to "English".
  • the drop-down menu of the language pack displayed on the terminal interface can be updated in real time. For example, when the terminal detects a new language pack in the new language pack, the new language can be added to the drop-down menu displayed on the interface.
  • the terminal determines the language to be displayed corresponding to the selection instruction from at least one target conversion language corresponding to the language pack based on the above selection instruction, and displays the converted text of the converted data corresponding to the language to be displayed. For example, if the selection instruction points to "English", the terminal determines that the language to be displayed is English from at least one target conversion language in the language pack. At this time, the terminal displays the converted text "welcome" in the converted data corresponding to English.
  • the terminal receives the converted data and language package sent by the language package management device, and receives the selection instruction for the language package input by the user or the selection instruction sent by the language management device, and then according to the selection instruction, select the language package corresponding to the language package.
  • the at least one target conversion language determines the language to be displayed and displays the converted text in the converted data corresponding to the language to be displayed.
  • the method can display the converted text based on the language to be displayed pointed by the selection instruction, so it can display text in different languages based on the user selection of the terminal, and there is no need to modify the code every time when switching between multiple language categories is required.
  • the display of different language categories can be realized by each terminal based on the selection instruction of the language pack, so that the language category and display content can be switched on the terminal side, so this method can realize the personalized display of the terminal and the differentiation of multiple terminals At the same time as the display, the language category and display content are switched more easily and quickly.
  • this method can realize the differentiated display of the terminal, can meet the needs of international business, and has richer and more flexible application scenarios.
  • the method further includes: in response to the received selection instruction, sending the selection instruction to the language pack management device, so that the language
  • the package management device forwards the selection instruction to other associated terminals, instructing the other terminals to display the converted text in the converted data corresponding to the language to be displayed.
  • the other terminal here may be a terminal associated with the terminal that receives the selection instruction for the first time.
  • a terminal may send the selection instruction to the language pack management device to forward the selection instruction to other associated terminals through the language pack management device, so as to make the associated According to the selection instruction, other terminals determine the language to be displayed from at least one target conversion language corresponding to the language pack, and display the converted text in the converted data corresponding to the language to be displayed.
  • a terminal in response to receiving a selection instruction for a language package, a terminal sends a selection instruction to the language package management device, and the language package management device forwards the selection instruction to other associated terminals to instruct the associated other The terminal displays the converted text, which can be realized in the same system.
  • the corresponding other terminals are updated according to the new language to be displayed.
  • the language to be displayed is updated in the backend .
  • the terminal may also receive the updated converted data sent by the language pack management device, and replace the updated converted data with the same variable name, target language, and The converted data of the terminal ID and the application ID.
  • the terminal can obtain the updated converted data sent by the language pack management device, and replace the original converted data with the updated converted data to realize the change requirement.
  • the terminal can implement a text display change based on customer needs. This method does not require developers to re-participate, and the update of the display text of the terminal is more convenient and quick, which greatly reduces the maintenance cost in the later period, and further meets the needs of customized display of the terminal.
  • a possible implementation manner of the foregoing step S204 may include: obtaining the lock state at the current moment; if the lock state is locked, continue to display the displayed language corresponding to the current display language. Converted text in the converted data.
  • each terminal can also set its own lock state. When the current lock state of the terminal is locked, the text displayed by the terminal will not change, for example, it will not be displayed according to the updated converted text. Instead, it continues to display the converted text in the converted data corresponding to the current display language.
  • the terminal may continue to display the converted text in the converted data corresponding to the current display language after receiving the selection instruction; it may also be that the terminal in the locked state no longer receives the selection instruction sent by the language pack management device In this way, the converted text in the converted data corresponding to the current display language is continued to be displayed, thereby avoiding excessive information transmission and saving equipment resources.
  • the terminal updates the displayed text according to the selection instruction.
  • the terminal can determine whether to update the text based on the selection instruction according to the respective lock status. While the display content can be updated conveniently and uniformly, the terminal that does not need to be updated can also be locked according to actual usage requirements. To maintain the original display content, and further enrich the functions, making the application scenarios more abundant.
  • Fig. 6 is a schematic flowchart of a text display method of a terminal according to an embodiment. This embodiment relates to a specific process in which the language pack management device distributes the converted data according to the terminal identifier. As shown in Figure 6, it includes:
  • the language package management device receives the converted data and the corresponding language package sent by the conversion platform server.
  • the converted data and language packs For detailed descriptions of the converted data and language packs, reference may be made to the descriptions of the foregoing embodiments, and details are not repeated here.
  • the language pack management device distributes the converted data and language packs to each terminal for display. It can either synchronously deliver the aforementioned converted data and language packs to each terminal for display, or it can be to send the aforementioned converted data and language packs to each terminal for display. The package is delivered to each terminal separately for display.
  • the language pack management device can first deliver the converted data and language packs (for example, including English, French, German) in a certain default language (for example, English) to the terminal, so that the terminal displays the drop-down of the available languages according to the language pack. List (including English, French, German). After the user selects a language to be displayed (such as German) according to the drop-down list, the language pack management device then issues the converted data corresponding to the language to be displayed to reduce the storage space of the terminal Occupy and reduce the amount of data transfer.
  • language packs for example, including English, French, German
  • a certain default language for example, English
  • the language package management device obtains the converted data after the conversion of the data to be converted and the language package corresponding to the target conversion language to which the data to be converted needs to be converted, and distributes the converted data and the language package to each terminal for display.
  • each terminal can receive the converted data in at least one language, and by displaying the content in the converted data in at least one language, it can avoid The problem of single display content caused by the traditional display based only on the front-end page has enriched the display form of the terminal.
  • this method can realize the personalized display of the terminal and the differentiated display of multiple terminals, while the language category and display content can be switched more simply and quickly. Applied in the face communication system, this method can realize the differentiated display of the terminal, can meet the needs of international business, and has richer and more flexible application scenarios.
  • the data to be converted includes unconverted text, variable names corresponding to the unconverted text, source language, terminal identification, and application identification; the converted data includes language conversion After the converted text, the variable name, the target language, the terminal identification and the application identification; wherein, terminal identifications of different types of terminals are different.
  • the data to be converted includes unconverted text, variable names corresponding to the unconverted text, source language, terminal identification, and application identification.
  • the converted data includes the converted text after language conversion, the variable name, the target language, the terminal identification and the application identification.
  • the data to be converted can include the unconverted text of "Welcome", and the variable names "XX” and “Hello” corresponding to "Welcome”.
  • the source language is “Chinese”
  • the terminal logo is "Client Welcome Device”
  • the application logo “YY Company Door Welcome System”.
  • the converted data can include the converted text after language conversion, such as the converted text "Welcome” after the conversion of "Welcome", the variable name "XX”, the target language "English”, the terminal identification "Client Welcome Device” and Application logo "YY company door welcome system".
  • the above unconverted text may include multiple, such as "hello", "good morning”, etc.; the above terminal identifier may include the terminal identifiers of multiple terminals, among which the terminal identifiers of different types of terminals Different; the target language can include Chinese, English, etc. which need to be converted.
  • developers at each end such as front-end development, back-end development, and client-side development, extract unconverted text in their respective codes and set variable names for the unconverted text.
  • a fixed character can be added to the variable name as a prefix, and this prefix can characterize which terminal it comes from.
  • the back-end can use the abbreviation "+B" of the project name, which represents the terminal identifier of the back-end, as the prefix of the variable name
  • the front-end can use the abbreviation of the project name "+F", which represents the terminal identifier of the front-end, as the prefix of the variable name
  • the terminal can use the abbreviation "+P" of the project name, which represents the terminal identifier of the client, as the prefix of the variable name, to distinguish the data to be converted from which terminal developer submitted.
  • the above data to be converted can also be added with corresponding meaning descriptions, for example, "Welcome” and “Welcome outsiders” are added to ensure the uniqueness of the data to be converted, avoid confusion, and use variable names.
  • Welcome and “Welcome outsiders” are added to ensure the uniqueness of the data to be converted, avoid confusion, and use variable names.
  • To represent the content that needs to be displayed can ensure the readability of the code level, and further improve the accuracy of the text display.
  • a possible implementation form of the above step S302 may include: distributing the converted data and the language package to each terminal for display according to the terminal identifier included in the converted data.
  • the language package management device receives the converted data and language package sent by the conversion platform server, reads the terminal identification in the converted data, and then distributes the above-mentioned converted data and language package to the terminal according to the terminal identification in the converted data Identify the corresponding terminal for display.
  • the terminal may select one of the language packs as the language to be displayed, and display the converted text corresponding to the language to be displayed in the converted data. For example, when it is determined that foreign guests whose native language is English are being received, "English" in the language pack can be used as the language to be displayed, and then the converted text "Welcome" corresponding to the language to be displayed can be displayed. It should be noted that when one unconverted text corresponds to multiple terminals, a group of to-be-converted data can be generated, and the above-mentioned processing can be performed to realize multi-terminal differentiated display.
  • the language pack management device distributes the converted data and language packs to each terminal for display according to the terminal identification included in the converted data, so that different terminals can obtain and display the corresponding converted data based on their respective terminal identifications.
  • the multi-end differentiated display makes the form of text display richer and more targeted.
  • the method may further include as shown in FIG. 7:
  • S303 Receive a selection instruction. For example, a selection instruction input by the user for the language package sent by the terminal is received.
  • the terminal associated with a certain terminal may be a terminal that wants to have a language update linkage relationship with the terminal, for example, multiple terminals that belong to the same local area network and are deployed with the same or related applications.
  • the language package management device receives the selection instruction input by the user for the language package sent by the terminal, and then forwards the selection instruction to the corresponding terminal associated with the terminal that receives the selection instruction input by the user, so that the selection instruction is received
  • the terminal determines the language to be displayed corresponding to the selection instruction from at least one target conversion language corresponding to the language pack, and displays the converted text of the converted data corresponding to the language to be displayed.
  • the selection instruction points to "English”
  • the terminal that receives the selection instruction determines that the language to be displayed is English from at least one target conversion language in the language package.
  • the terminal displays the converted data in the converted data corresponding to English.
  • the text "welcome”.
  • the language pack management device receives a user-input selection instruction for the language pack sent by the terminal, and forwards the selection instruction to the terminal associated with the terminal that receives the selection instruction input by the user, so that the associated terminal Based on the selection instruction, the language to be displayed is determined from at least one target conversion language corresponding to the language pack, and the converted text in the converted data corresponding to the language to be displayed is displayed.
  • This method can be implemented in the same system.
  • the corresponding other terminals are updated according to the new language to be displayed.
  • the language to be displayed is updated in the backend, multiple languages can be implemented.
  • the terminal is updated synchronously to realize the unified adjustment of the terminal display content, so it is more convenient and faster.
  • a possible implementation of the above step S304 may include: acquiring the locked state of the terminal associated with the terminal that receives the selection instruction input by the user; forwarding the selection instruction to the locked state being not Lock the target terminal, so that the target terminal determines the language to be displayed from at least one target conversion language corresponding to the language pack based on the selection instruction, and displays the converted data corresponding to the language to be displayed
  • the converted text of can obtain the lock status set by each terminal, which can include locked and unlocked. When the current lock status of the terminal is locked, the text displayed by the terminal will not change, for example, no It will be displayed according to the updated conversion modified text, but will continue to display the converted text in the converted data corresponding to the current display language.
  • the language pack management device can send a selection instruction to the terminal, and after receiving the selection instruction, the terminal continues to display the converted text in the converted data corresponding to the current display language; it can also be when the terminal's lock state is locked, The language pack management device no longer sends a selection instruction to the terminal, so that the terminal continues to display the converted text in the converted data corresponding to the current display language, thereby avoiding excessive information transmission and saving equipment resources.
  • the locked state of the terminal is unlocked, the unlocked terminal is used as the target terminal, and the language pack management device sends a selection instruction to the target terminal, so that the target terminal updates the displayed text according to the selection instruction.
  • the language pack management device obtains the locked state of the terminal associated with the terminal that receives the selection instruction input by the user, and forwards the selection instruction to the target terminal whose locked state is unlocked, so that the target terminal is based on
  • the selection instruction determines the language to be displayed from at least one target conversion language corresponding to the language pack, and displays the converted text in the converted data corresponding to the language to be displayed.
  • the terminal can realize whether to proceed based on the selection instruction according to the respective lock state
  • the update of the text allows the target terminal that needs to be updated to be updated according to actual needs to conveniently update the display content by setting unlocked, while enabling the locked terminal to maintain the original display content, further enriching the display of the terminal Differentiation makes the application scenarios more abundant.
  • steps in the flowcharts of FIGS. 2-7 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least part of the steps in Figures 2-7 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or stages The order of execution of is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
  • a text display device of a terminal including:
  • the acquiring module 100 is used to acquire the data to be converted and the target conversion language corresponding to the data to be converted; wherein the data to be converted is data formed according to a preset data conversion template, and the target conversion language is used to characterize the data to be converted. State the language category of the text content conversion in the data to be converted;
  • the distribution module 200 is configured to distribute the data to be converted to the queue to be converted corresponding to the target conversion language according to the target conversion language;
  • the receiving module 300 is configured to receive converted data obtained after language conversion of the data to be converted according to the target conversion language and a corresponding language package, the language package including the target conversion language adopted by the converted data;
  • the sending module 400 is configured to send the converted data and the language package to a language package management device, so that the language package management device distributes the converted data and the language package to each terminal for display.
  • the data to be converted includes unconverted text, variable names corresponding to the unconverted text, source language, terminal identification, and application identification; the converted data includes converted text after language conversion, all The variable name, target language, terminal identifier, and application identifier; among them, the terminal identifiers of different types of terminals are different; the sending module 400 is specifically used for the language package management device to convert the converted data and the language package according to the The terminal identification included in the converted data is distributed to each terminal for display.
  • the acquisition module 100 is further configured to receive the conversion modification data, and search for the converted data to be edited according to the variable name, target language, terminal identification, and application identification in the conversion modification data; and The conversion modification text in the conversion modification data updates the converted text in the converted data to be edited;
  • the sending module 400 is further configured to send the updated converted data to the language pack management device, so that the language pack management device distributes the updated converted data to the terminals included in the converted data Identify the corresponding terminal for display.
  • the acquiring module 100 is further configured to acquire the newly-added target conversion language and the data to be converted corresponding to the newly-added target conversion language;
  • the distribution module 200 is further configured to distribute the data to be converted to the queue to be converted corresponding to the newly added target conversion language according to the newly added target conversion language;
  • the receiving module 300 is further configured to receive newly-added converted data obtained after language conversion of the data to be converted;
  • the obtaining module 100 is further configured to update the language pack according to the newly added target conversion language to obtain an updated language pack;
  • the sending module 400 is further configured to send the newly-added converted data and the updated language package to the language-package management device, so that the language-package management device sends the newly-added converted data and the updated language package to the language package management device.
  • the language pack is distributed to each of the terminals for display.
  • a text display device of a terminal including:
  • the first receiving module 500 is configured to receive the converted data and the language package sent by the language package management device; wherein the converted data corresponds to at least one target conversion language;
  • the second receiving module 600 is configured to receive a selection instruction
  • the determining module 700 is configured to determine the language to be displayed from at least one target conversion language of the language pack according to the selection instruction;
  • the display module 800 is used to display the converted text in the converted data corresponding to the language to be displayed.
  • the display module 800 is further configured to send the selection instruction to the language pack management device in response to the received selection instruction, so that the language pack management device sends the language pack management device to other associated terminals. Forward the selection instruction to instruct other terminals to display the converted text in the converted data corresponding to the language to be displayed.
  • the first receiving module 500 is further configured to receive the updated converted data sent by the language pack management device, and replace the updated converted data with the updated converted data.
  • the data has converted data with the same variable name, target language, terminal ID, and application ID.
  • the display module 800 is specifically configured to obtain the lock state at the current moment; if the lock state is locked, continue to display the converted text in the converted data corresponding to the current display language.
  • a text display device of a terminal including:
  • the obtaining module 900 is used to obtain the converted data and the corresponding language pack; wherein, the language pack includes the target conversion language adopted by the converted data, and the target conversion language is used to characterize the text in the data to be converted Language category of content conversion;
  • the distribution module 1000 is configured to distribute the converted data and the language pack to each terminal for display.
  • the converted data includes the converted text, the variable name, the target language, the terminal identifier, and the application identifier; wherein the terminal identifiers of different types of terminals are different; the distribution module 1000 is specifically used to transfer all The converted data and the language pack are distributed to each terminal for display according to the terminal identification included in the converted data.
  • the obtaining module 900 is further configured to receive a selection instruction sent by a terminal; forward the selection instruction to other terminals associated with the terminal, so that the other associated terminals are based on the selection instruction,
  • the language to be displayed is determined from the language pack, and the converted text in the converted data corresponding to the language to be displayed is displayed.
  • the acquiring module 900 is specifically configured to acquire the locked status of other terminals associated with the terminal; forward the selection instruction to the target terminal whose locked status is unlocked, so that the target terminal is based on the locked status of the target terminal.
  • the selection instruction determines the language to be displayed from at least one target conversion language of the language pack, and displays the converted text in the converted data corresponding to the language to be displayed.
  • Each module in the text display device of the above terminal may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a terminal text display system is also provided. As shown in FIG. 1, the system includes a conversion platform server 1006, a language pack management device 1004, and at least one terminal 1002;
  • the conversion platform server 1006 is configured to obtain the data to be converted and the target conversion language corresponding to the data to be converted, and according to the target conversion language, distribute the data to be converted to the queue to be converted corresponding to the target conversion language , And receiving the converted data and the corresponding language package obtained after language conversion of the data to be converted according to the target conversion language, and sending the converted data and the language package to the language package management device 1004;
  • the data to be converted is data constructed according to a preset conversion data template
  • the target conversion language is used to characterize the language category of the text content conversion in the data to be converted
  • the language pack includes the converted data.
  • the language pack management device 1004 is configured to distribute the received converted data and the language pack to each terminal 1002;
  • the terminal 1002 is configured to receive the converted data and the language package sent by the language package management device 1004, and according to the selection instruction, determine the language to be displayed from a target conversion language corresponding to the language package, and display the The converted text in the converted data corresponding to the language to be displayed.
  • the data to be converted includes unconverted text, variable names corresponding to the unconverted text, source language, terminal identification, and application identification; the converted data includes the converted text after language conversion, the variable Name, target language, terminal identification and application identification; among them, different types of terminals have different terminal identifications.
  • the language pack management device 1004 is further configured to distribute the converted data and the language pack to each terminal 1002 for display according to the terminal identification included in the converted data.
  • the conversion platform server 1006 is also used to receive conversion modification data; find the converted data to be edited according to the variable name, target language, terminal identification, and application identification in the conversion modification data; Modify the converted text in the modified data to update the converted text in the converted data to be edited; send the updated converted data to the language pack management device 1004;
  • the language pack management device 1004 is further configured to distribute the updated converted data to the terminal corresponding to the terminal identifier included in the converted data for display;
  • the terminal 1002 is further configured to receive updated converted data sent by the language pack management device; use the updated converted data to replace the updated converted data with the same variable name, target language, and terminal Transformed data for identification and application identification.
  • the conversion platform server 1006 is also used to obtain the newly-added target conversion language and the data to be converted corresponding to the newly-added target conversion language; according to the newly-added target conversion language, convert The data to be converted is allocated to the queue to be converted corresponding to the newly-added target conversion language; the newly-added converted data obtained after the language conversion of the to-be-converted data is received; and the language is converted according to the newly-added target Updating the language pack to obtain an updated language pack; sending the newly-added converted data and the updated language pack to the language pack management device;
  • the language pack management device 1004 is further configured to distribute the newly-added converted data and the updated language pack to each of the terminals for display.
  • the terminal 1002 is specifically configured to obtain the lock state at the current moment; if the lock state is locked, it continues to display the converted text in the converted data corresponding to the current display language.
  • the terminal 1002 is further configured to send a selection instruction input by the user for the language package to the language package management device 1004;
  • the language pack management device 1004 is also used to obtain the locked state of each terminal 1002, and forward the selection instruction to the target terminal 1002 whose locked state is unlocked;
  • the target terminal 1002 is further configured to determine the language to be displayed from at least one target conversion language of the language pack according to the selection instruction, and display the converted text in the converted data corresponding to the language to be displayed.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 11.
  • the computer equipment includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer equipment is used to store the data to be converted and the converted data.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a text display method of the terminal.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 12.
  • the computer equipment includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator's network, NFC (near field communication) or other technologies.
  • the computer program is executed by the processor to realize a text display method of the terminal.
  • the display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, or it can be a button, trackball or touchpad set on the housing of the computer equipment , It can also be an external keyboard, touchpad, or mouse.
  • FIG. 11 and FIG. 12 are only block diagrams of part of the structure related to the solution of the present disclosure, and do not constitute a limitation on the computer device to which the solution of the present disclosure is applied.
  • the computer device may include more or fewer components than shown in the figures, or combine certain components, or have a different component arrangement.
  • FIG. 11 and FIG. 12 are only block diagrams of part of the structure related to the solution of the present disclosure, and do not constitute a limitation on the computer device to which the solution of the present disclosure is applied.
  • the computer device may include more or fewer components than shown in the figures, or combine certain components, or have a different component arrangement.
  • a computer device including a memory and a processor, and a computer program is stored in the memory.
  • the processor executes the computer program, the following steps are implemented: acquiring data to be converted and a target corresponding to the data to be converted Conversion language; wherein the data to be converted is data constructed according to a preset data conversion template, and the target conversion language is used to characterize the language category of the text content conversion in the data to be converted; according to the target conversion language , Allocating the data to be converted to the queue to be converted corresponding to the target conversion language; receiving the converted data and the corresponding language package obtained after the data to be converted is converted into the language according to the target conversion language, so
  • the language pack includes the target conversion language used by the converted data; the converted data and the language pack are sent to the language pack management device, so that the language pack management device will convert the converted data and the The language pack is distributed to each terminal for display.
  • the data to be converted includes unconverted text, variable names corresponding to the unconverted text, source language, terminal identification, and application identification; the converted data includes converted text after language conversion, all The variable name, target language, terminal identification, and application identification; wherein the terminal identifications of different types of terminals are different; when the processor executes the computer program, the following steps are also implemented: the language pack management device combines the converted data with the The language pack is distributed to each terminal for display according to the terminal identification included in the converted data.
  • the processor when the processor executes the computer program, the processor further implements the following steps: receiving conversion modification data; searching for the converted data to be edited according to the variable name, target language, terminal identification, and application identification in the conversion modification data; The conversion modification text in the conversion modification data updates the converted text in the converted data to be edited; the updated converted data is sent to the language pack management device, so that the language pack management device will The updated converted data is distributed to the terminal corresponding to the terminal identifier included in the converted data for display.
  • the processor further implements the following steps when executing the computer program: acquiring the newly-added target conversion language and the data to be converted corresponding to the newly-added target conversion language; converting according to the newly-added target Language, allocating the data to be converted to the queue to be converted corresponding to the newly added target conversion language; receiving newly converted data obtained after language conversion of the data to be converted; according to the newly added The target conversion language updates the language pack to obtain an updated language pack; sending the newly-added converted data and the updated language pack to the language pack management device, so that the language pack management device will The converted data and the updated language pack are distributed to each of the terminals for display.
  • a computer device including a memory and a processor, and a computer program is stored in the memory.
  • the processor executes the computer program, the following steps are implemented: receiving converted data and language packages sent by a language package management device Wherein, the converted data corresponds to at least one target conversion language; receiving a selection instruction; according to the selection instruction, determining the language to be displayed from at least one target conversion language of the language pack; displaying the to-be-displayed The converted text in the converted data corresponding to the language.
  • the processor further implements the following step when executing the computer program: in response to the received selection instruction, sending the selection instruction to the language pack management device, so that the language pack management device sends the relevant Other terminals connected to the network forward the selection instruction to instruct other terminals to display the converted text in the converted data corresponding to the language to be displayed.
  • the processor further implements the following steps when executing the computer program: receiving the updated converted data sent by the language pack management device; replacing the updated converted data with the updated converted data.
  • the converted data has converted data with the same variable name, target language, terminal ID, and application ID.
  • the processor further implements the following steps when executing the computer program: acquiring the lock status at the current moment; if the lock status is locked, continue to display the converted text in the converted data corresponding to the current display language.
  • a computer device including a memory and a processor, and a computer program is stored in the memory.
  • the processor executes the computer program, the following steps are implemented: acquiring converted data and a corresponding language package;
  • the language pack includes the target conversion language used by the converted data, the target conversion language is used to characterize the language category of the text content conversion in the data to be converted; the converted data and the language pack are distributed to Display on each terminal.
  • the processor further implements the following steps when executing the computer program: receiving the selection instruction sent by the terminal; forwarding the selection instruction to other terminals associated with the terminal, so that the other associated terminals are determined based on the selected instruction.
  • the language to be displayed is displayed, and the converted text in the converted data corresponding to the language to be displayed is displayed.
  • the processor further implements the following steps when executing the computer program: acquiring the locked status of other terminals associated with the terminal; forwarding the selection instruction to the target terminal whose locked status is unlocked, so that the target Based on the selection instruction, the terminal determines the language to be displayed from at least one target conversion language of the language pack, and displays the converted text in the converted data corresponding to the language to be displayed.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: acquiring data to be converted and a target conversion language corresponding to the data to be converted; Wherein, the data to be converted is data constructed according to a preset data conversion template, and the target conversion language is used to characterize the language category of the text content conversion in the data to be converted; The data to be converted is allocated to the queue to be converted corresponding to the target conversion language; the converted data and the corresponding language pack obtained after the data to be converted are subjected to language conversion according to the target conversion language are received, the language pack Including the target conversion language used by the converted data; sending the converted data and the language package to a language package management device, so that the language package management device distributes the converted data and the language package To each terminal for display.
  • the data to be converted includes unconverted text, variable names corresponding to the unconverted text, source language, terminal identification, and application identification; the converted data includes converted text after language conversion, all The variable name, target language, terminal identifier, and application identifier; among them, the terminal identifiers of different types of terminals are different; when the computer program is executed by the processor, the following steps are also implemented: the language pack management device combines the converted data with the The language package is distributed to each terminal for display according to the terminal identification included in the converted data.
  • the following steps are further implemented: receiving conversion modification data; searching for the converted data to be edited according to the variable name, target language, terminal identification, and application identification in the conversion modification data; Update the converted text in the converted data to be edited according to the converted modified text in the converted modified data; send the updated converted data to the language pack management device, so that the language pack management device The updated converted data is distributed to the terminal corresponding to the terminal identifier included in the converted data for display.
  • the following steps are further implemented: acquiring the newly-added target conversion language and the data to be converted corresponding to the newly-added target conversion language; according to the newly-added target Conversion language, allocating the data to be converted to the queue to be converted corresponding to the newly added target conversion language; receiving newly converted data obtained after language conversion of the data to be converted; according to the newly added The target conversion language updates the language pack to obtain an updated language pack; sending the newly-added converted data and the updated language pack to the language pack management device, so that the language pack management device will The converted data and the updated language pack are distributed to each of the terminals for display.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: receiving converted data and language packages sent by a language package management device; wherein, The converted data corresponds to at least one target conversion language; receiving a selection instruction; according to the selection instruction, the language to be displayed is determined from at least one target conversion language of the language pack; and the language corresponding to the language to be displayed is displayed The converted text in the converted data.
  • the following steps are further implemented: in response to the received selection instruction, the selection instruction is sent to the language package management device, so that the language package management device sends the The other associated terminals forward the selection instruction to instruct the other terminals to display the converted text in the converted data corresponding to the language to be displayed.
  • the following steps are further implemented: receiving the updated converted data sent by the language pack management device; replacing the updated converted data with the updated converted data.
  • Converted data Converted data that has the same variable name, target language, terminal ID, and application ID.
  • the following steps are also implemented: acquiring the locked state at the current moment; if the locked state is locked, continue to display the converted text in the converted data corresponding to the current display language .
  • a computer-readable storage medium is provided, and a computer program is stored thereon.
  • the computer program is executed by a processor, the following steps are implemented: acquiring converted data and a corresponding language package; wherein, the language package Including the target conversion language used by the converted data, where the target conversion language is used to characterize the language category of the text content conversion in the to-be-converted data; and the converted data and the language pack are distributed to each terminal To display.
  • the converted data includes the converted text, the variable name, the target language, the terminal identification, and the application identification; wherein the terminal identifications of different types of terminals are different; the computer program is also implemented when the computer program is executed by the processor.
  • the following steps are further implemented: receiving a selection instruction sent by a terminal; forwarding the selection instruction to other terminals associated with the terminal, so that other associated terminals are based on The selection instruction determines the language to be displayed from the language package, and displays the converted text in the converted data corresponding to the language to be displayed.
  • the following steps are further implemented: acquiring the locked state of other terminals associated with the terminal; forwarding the selection instruction to the target terminal whose locked state is unlocked, so that The target terminal determines the language to be displayed from at least one target conversion language of the language pack based on the selection instruction, and displays the converted text in the converted data corresponding to the language to be displayed.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)
  • Machine Translation (AREA)

Abstract

本公开涉及一种终端的文本显示方法、装置、系统和存储介质。该方法包括:获取待转换数据和待转换数据对应的目标转换语言;待转换数据为按照预设的数据转换模板构成的数据,目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;按照目标转换语言,将待转换数据分配至与目标转换语言对应的待转换队列;接收将待转换数据按照目标转换语言进行语言转换之后得到的已转换数据和对应的语言包;将已转换数据和语言包发送至语言包管理设备,以使语言包管理设备将已转换数据和语言包分发至各终端进行显示。采用本方法能够使得终端的显示更为丰富。

Description

终端的文本显示方法、装置、系统和存储介质
本公开基于申请号为202010493782.2、申请日为2020年6月3日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。
技术领域
本公开涉及计算机技术领域,特别是涉及一种终端的文本显示方法、装置、系统和存储介质。
背景技术
在通行系统中,通常需要对来宾显示相应的文本信息,在国际化的软件中,页面通常要基于需要显示不同的语言。
传统的国际化通行系统,不同语言的显示通常是基于前端的web页面进行的。具体包括前端开发人员提取页面中的文本信息,将文本提取为变量,用变量来替换原有文本,然后将变量和对应的文本信息存到资源文件里面,当页面切换语言的时候,加载对应的资源文件来展现。
然而传统通行系统,基于前端的web页面进行,其显示内容单一,因而应用场景单一,不同语言切换显示的效率低且操作不方便。
发明内容
基于此,有必要针对上述技术问题,提供一种丰富多样化的终端的文本显示方法、装置、通行系统和存储介质。
根据本公开的一个方面,提供一种终端的文本显示方法,所述方法包括:
获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;
接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所述语言包包括所述已转换数据采用的目标转换语言;
将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
根据本公开的另一个方面,提供一种终端的文本显示方法,所述方法包括:
接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;
接收选择指令;
根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;
显示所述待显示语言对应的已转换数据中的已转换文本。
根据本公开的又一个方面,提供一种终端的文本显示方法,所述方法包括:
获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
将所述已转换数据和所述语言包分发至各终端进行显示。
根据本公开的又一个方面,提供一种终端的文本显示装置,所述装置包括:
获取模块,用于获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
分配模块,用于按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;
接收模块,用于接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所述语言包包括所述已转换数据采用的目标转换语言;
发送模块,用于将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
根据本公开的又一个方面,提供一种终端的文本显示装置,所述装置包括:
第一接收模块,用于接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;
第二接收模块,用于接收选择指令;
确定模块,用于根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;
显示模块,用于显示所述待显示语言对应的已转换数据中的已转换文本。
根据本公开的又一个方面,提供一种终端的文本显示装置,所述装置包括:
获取模块,用于获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
分发模块,用于将所述已转换数据和所述语言包分发至各终端进行显示。
根据本公开的又一个方面,提供一种终端文本显示系统,所述系统包括转换平台服务器、语言包管理设备和至少一个终端;
所述转换平台服务器,用于获取待转换数据和所述待转换数据对应的目标转换语言,并按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队 列,以及接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,并将所述已转换数据和所述语言包发送至语言包管理设备;
其中,所述待转换数据为按照预设的转换数据模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别,所述语言包包括所述已转换数据采用的目标转换语言;
所述语言包管理设备,用于将接收到的所述已转换数据和所述语言包分发至各所述终端;
所述终端,用于接收所述语言包管理设备发送的已转换数据和所述语言包,并根据选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言,以及显示所述待显示语言对应的已转换数据中的已转换文本。
根据本公开的又一个方面,提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;
接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所述语言包包括所述已转换数据采用的目标转换语言;
将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
根据本公开的又一个方面,提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;
接收选择指令;
根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;
显示所述待显示语言对应的已转换数据中的已转换文本。
根据本公开的又一个方面,提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
将所述已转换数据和所述语言包分发至各终端进行显示。
根据本公开的又一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;
接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所述语言包包括所述已转换数据采用的目标转换语言;
将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
根据本公开的又一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;
接收选择指令;
根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;
显示所述待显示语言对应的已转换数据中的已转换文本。
根据本公开的又一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
将所述已转换数据和所述语言包分发至各终端进行显示。
上述终端的文本显示方法、装置、系统和存储介质中,各终端的已转换数据和语言包由语言包管理设备统一管理,与终端运行的软件解耦,相比于现有技术中语言包与软件(特别是前端页面)捆绑存储、对终端运行的软件进行更新才能更新语言包和翻译文本的方案,本公开实施例可以在终端运行的软件不更新的情况下实时新增语言包并对已有翻译文本进行编辑,使语言类别和显示内容的切换、更新更为简便和快捷。同时,语言包管理设备将已转换数据和语言包分发至关联的多个终端,相比于现有技术中单一终端基于前端页面的文本显示的方案,本公开实施例能够实现基于web页面、客户端、后端的多终端联动显示,满足国际化业务需求,应用场景更为丰富和灵活。
附图说明
图1为一个实施例提供的终端文本显示系统的架构图;
图2为一个实施例提供的终端的文本显示方法的流程示意图;
图3为另一个实施例提供的终端的文本显示方法的流程示意图;
图4为又一个实施例提供的终端的文本显示方法的流程示意图;
图5为又一个实施例提供的终端的文本显示方法的流程示意图;
图6为又一个实施例提供的终端的文本显示方法的流程示意图;
图7为又一个实施例提供的终端的文本显示方法的流程示意图;
图8为一个实施例提供的终端的文本显示装置的结构示意图;
图9为另一个实施例提供的终端的文本显示装置的结构示意图;
图10为又一个实施例提供的终端的文本显示装置的结构示意图;
图11为一个实施例提供的计算机设备的内部结构图;
图12为一个实施例提供的终端的内部结构图。
具体实施方式
为了使本公开的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。
本公开实施例提供的终端的文本显示方法,可以应用于如图1所示的终端文本显示系统中。其中,终端1002通过网络与语言包管理设备1004通过网络进行通信,转换平台服务器1006与语言包管理设备1004通过网络进行通信。其中,终端1002可以是门禁机、迎宾设备等客户端,还可以是Web前端和用于提供服务的后端。各终端包括但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。语言包管理设备1004和转换平台服务器1006可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
下面以具体的实施例对本公开的技术方案以及本公开的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本公开的实施例进行描述。
需要说明的是,下述方法实施例的执行主体可以是终端的文本显示装置,该装置可以通过软件、硬件或者软硬件结合的方式实现成为上述计算机设备的部分或者全部。下述方法实施例分别从多侧设备,分别以执行主体为转换平台服务器、终端、语言包管理设备为例进行说明。
图2为一个实施例提供的终端的文本显示方法的流程示意图。本实施例涉及的是转换平台服务器将待转换数据进行转换并发送至对应的终端进行显示的具体过程,如图2所示,包括:
S101、获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别。
如果将终端的文本显示流程作为一个应用的项目进行开发的话,通常由项目管理人员通过项目管理的电脑终端根据当前需要开发的项目所需要转换成的语言的类别,生成语言 包。例如,语言包可以包括日语和汉语这两种语言类别(也可称为语言种类),转换平台服务器接收项目管理人员通过项目管理的电脑终端提交的这个数据包。这里的转换为我们通常所说的翻译,转换平台服务器也就是翻译平台所在的服务器。可选地,项目管理人员可以根据项目名称、语言代码和需要进行转换成的目标转换语言组成的语言包发送至转换平台服务器。其中,项目名称可以是应用标识,例如当前开发的应用的名称、代码、编号等;语言代码可以包括但不限于表征英语的en,表征中文的cn,表征德文的ge等等,语言代码形式还可以采用其他字符,此处仅为示例,本实施例对此不做限定;目标转换语言可以包括但不限于英文(English)、中文(Chinese)和德文(German)等等中的至少一种,例如两种、三种,甚至更多,语言类别和语言代码一一对应,例如en和English对应,cn和Chinese对应,ge和German对应等等。
转换平台服务器接收开发人员通过电脑终端发送的待转换数据,该待转换数据具有一定的数据结构,为按照预设的数据转换模板构成的数据。可选地,上述数据转换模板中不同位置的不同字符分别表征是哪个终端、哪个应用所需要进行转换的数据以及所需要转换的内容。这样按照预设的数据转换模板形成的结构化数据保证使得待转换数据在代码层面的可读性和数据存取、数据处理的一致性,便于数据处理。
S102、按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列。
具体的,转换平台服务器将上述待转换数据按照上述目标转换语言,分别分配至与目标转换语言对应的待转换队列。需要说明的是,每个待翻译队列可以对应一种目标转换语言,即实现对一种语言的转换。例如,上述目标转换语言包括中文和英文,则转换平台服务器将该待转换数据分别分配至中文的待转换队列和英文的待转换队列。
S103、接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,语言包包括已转换数据采用的目标转换语言。
翻译人员或自动翻译设备将对应的待转换队列中的待转换数据按照目标转换语言进行转换之后,得到已转换数据,并将已转换数据和目标转换语言对应的语言包进行上传,例如可通过翻译用的电脑终端将已转换数据和目标转换语言对应的语言包进行上传。可选地,翻译人员可以通过注册账号登录转换平台服务器进行翻译并输入翻译的结果,当然也可以采用人工智能的技术进行自动转换并上传至转换平台服务器。此时,转换平台服务器接收到上述已转换数据和该已转换数据对应的语言包。
需要说明的是,该语言包可以包括至少一种已转换数据的语言类别,和目标转换语言对应。例如上述待转换语言按照目标转换语言进行转换之后,得到的已转换数据为英文和中文两种语言类别的数据,则该语言包中包括英文和中文两种语言类别。
S104、将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
具体的,转换平台服务器将上述已转换数据和语言包发送至语言包管理设备,语言包 管理设备将上述已转换数据和语言包分发至各个终端,使得各个终端可以将上述已转换数据中的文本内容按照需求进行显示。
本实施例中,转换平台服务器能够获取待转换数据和待转换数据对应的目标转换语言,并按照目标转换语言,将待转换数据分配至与目标转换语言对应的待转换队列,因此可以实现将待转换数据进行至少一种语言的转换。然后转换平台服务器通过接收将待转换数据按照目标转换语言进行语言转换之后得到的已转换数据和目标转换语言对应的语言包,并将已转换数据和语言包发送至语言包管理设备,以使语言包管理设备将已转换数据和语言包分发至各终端,能够使得各个终端接收到至少一种语言的已转换数据,通过将至少一种语言的已转换数据中的内容进行显示,能够避免传统的仅基于前端的页面进行显示所带来的显示内容单一的问题,丰富了终端的显示形式。并且当语言包中的语言类别为多个的时候,在需要进行多种语言类别的切换时,无需每次修改代码实现,可以通过各个终端调用语言包中的语言类别来实现不同语言类别的显示,使得语言类别和显示内容实现基于终端侧的切换,因此该方法能够实现终端的个性化显示以及多个终端差异化的显示的同时,语言类别和显示内容的切换更为简便和快捷。应用在人脸通行系统中,该方法能够实现终端差异化显示,能够满足国际化业务需求,应用场景更为丰富和灵活。
由于各终端的已转换数据和语言包由语言包管理设备统一管理,与终端运行的软件解耦,相比于现有技术中语言包与软件(特别是前端页面)捆绑存储、对终端运行的软件进行更新才能更新语言包和翻译文本的方案,本公开实施例可以在终端运行的软件不更新的情况下实时新增语言包并对已有翻译文本进行编辑,使语言类别和显示内容的切换、更新更为简便和快捷。同时,语言包管理设备将已转换数据和语言包分发至关联的多个终端,相比于现有技术中单一终端基于前端页面的文本显示的方案,本公开实施例能够实现基于web页面、客户端、后端的多终端联动显示,满足国际化业务需求,应用场景更为丰富和灵活。
可选地,在上述实施例的基础上,上述步骤S104中“所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示”的一种可能的实现形式可以包括:所述语言包管理设备将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
所述待转换数据包括未转换文本、所述未转换文本对应的变量名、源语言、终端标识以及应用标识。所述已转换数据包括语言转换后的已转换文本、所述变量名、目标语言、终端标识和应用标识。这里以举例的形式对上述名词所表征的含义进行示例性说明:例如,待转换数据可以包括“欢迎光临”这个未转换文本、“欢迎光临”对应的变量名“XX”、“欢迎光临”的源语言“中文”、终端标识“客户端迎宾设备”以及“YY公司门迎系统”这个应用标识。已转换数据可以包括语言转换后的已转换文本,例如“欢迎光临”转换后的已转换文本“Welcome”、变量名“XX”、目标语言“英文”、终端标识“客户端迎宾设备”和应用标识“YY公司门迎系统”。上述举例仅为一种示例,上述未转换文本可 能包括多个,例如“你好”、“早上好”等等;上述终端标识可以包括多个终端的终端标识,其中,不同类型终端的终端标识不同;目标语言可以包括中文、英文等等所需要转换的语言类别。在一个实施例中,各端的开发人员,例如前端开发、后端开发、还有客户端开发等,提取各自代码中的未转换文本,并对未转换文本设置变量名。可选地,这个变量名还可以增加一个固定的字符作为前缀,这个前缀能够表征来自哪个终端。例如,后端可以用项目名的缩写“+B”这个代表后端的终端标识作为变量名的前缀,前端可以用项目名的缩写“+F”这个代表前端的终端标识作为变量名的前缀,客户端可以用项目名的缩写“+P”这个代表客户端的终端标识作为变量名的前缀,以此区分来自哪个终端的开发人员提交的待转换数据。可选地,上述待转换数据还可以加上对应的含义说明,例如对“欢迎光临”加上“欢迎外来人员”这样的说明,来确保待转换数据的唯一性,避免出现混淆,采用变量名来代表需要显示的内容能够确保代码层面的可读性,进一步提高了文本显示的准确性。
具体的,转换平台服务器将已转换数据和语言包发送至语言包管理设备,语言包管理设备将读取已转换数据中的终端标识,然后按照已转换数据中对应的终端标识将上述已转换数据和语言包分发至各终端进行显示。可选地,终端可以在语言包中选择一种作为待显示语言,将已转换数据中的待显示语言对应的已转换文本进行显示。例如可以是确定接待的是母语为英语国家的外宾时,可以将语言包中的“英文”作为待显示语言,然后将该待显示语言对应的已转换文本“Welcome”进行显示。需要说明的是,不同终端对应的未转换文本可以不同。例如,客户端对应的未转换文本可以包括:你好、欢迎光临,后端对应的未转换文本可以包括:软件更新、软件升级。对应的,不同终端对应的已转换文本可以不同。此外,对于同一未转换文本、同一语言,同一终端对应的已转换文本可以不同,例如,对于同一未转换文本“再见”,客户端的已转换文本可以为“Bye”,前端对应的已转换文本可以为“Goodbye”。语言包管理设备可根据终端标识将已转换数据和语言包分发至已转换数据对应的终端,以使各终端显示不同语言,或同种语言的不同文字,或同种语言、同一语义的不同表达。
本实施例中,由于待转换数据包括未转换文本、未转换文本对应的变量名、源语言、终端标识以及应用标识;并且已转换数据包括语言转换后的已转换文本、变量名、目标语言、终端标识和应用标识。因此,语言包管理设备将已转换数据和语言包按照已转换数据包括的终端标识分发至各终端进行显示,从而使得不同终端能够基于各自的终端标识获取对应的已转换数据并进行显示,从而实现多端差异化的显示,使得文本显示的形式更为丰富以及更具有针对性。
可选地,在上述实施例的基础上,所述方法还可以如图3所示,包括:
S105、接收转换修改数据,并根据所述转换修改数据中的变量名、目标语言、终端标识和应用标识查找待编辑的已转换数据。
S106、根据所述转换修改数据中的转换修改文本更新所述待编辑的已转换数据中的已 转换文本。
S107、将更新后的所述已转换数据发送至语言包管理设备,以使所述语言包管理设备将更新后的所述已转换数据分发至所述已转换数据包括的终端标识对应的终端进行显示。
具体的,当终端有翻译文本变更需求的时候,例如客户端需要改变某变量名对应的文本显示内容,转换平台服务器能够接收终端发送的转换修改数据,该转换修改数据的数据形式可以参考上述对于待转换数据的结构描述,此处不再赘述。转换修改数据中包括需要修改的转换修改文本,例如客户端需求是将“你好”修改为“您好”,则转换修改文本为“您好”,转换平台服务器根据上述转换修改数据中的变量名、目标语言、终端标识和应用标识查找对应的待编辑的已转换数据,即“你好”这个已转换文本对应的已转换数据,然后用“您好”这个转换修改文本来更新待编辑的已转换数据中的已转换文本“你好”。可选地,转换平台服务器可以是将根据转换修改数据中的变量名、目标语言、终端标识和应用标识进行查找,找到待编辑的已转换数据,然后导出为可编辑的文本,将导出的已转换数据中的已转换文本替换为转换修改文本,然后重新导入,实现已转换数据的更新,然后转换平台服务器将更新后的已转换数据发送至语言包管理设备,以使语言包管理设备将更新后的已转换数据分发至该已转换设备对应终端进行显示。此时,终端原本显示“你好”这个文本的,则会变为显示“您好”。需要说明的是,有翻译文本变更需求的可能只是某一终端,此时只需把更新后的已转换数据发送至有需求的终端,其他终端不更新。当需要多终端同一更新时,可将更新后的已转换数据发送各终端。
可以理解的是,终端检测到有新的已转换数据或已转换数据有更新时(例如部分变量对应的文本改变),会立即更新现有数据,从而改变终端界面上的文本显示。
本实施例中,转换平台服务器通过基于终端发送的转换修改数据,并基于转换修改数据确定出待编辑的已转换数据,然后根据转换修改数据中的转换修改文本对待编辑的已转换数据中的已转换文本进行更新,最后通过将更新后的已转换数据发送至语言包管理设备,以使语言包管理设备将更新后的已转换数据分发至各终端进行显示,从而实现了基于客户需求的文本的显示变更。该方法无需开发人员重新参与,显示文本的更新更为方便快捷,极大地降低了后期的维护成本,进一步满足了终端的定制化需求。
可选地,在上述各个实施例的基础上,所述方法还可以如图4所示,包括:
S108、获取新增的目标转换语言和与所述新增的目标转换语言对应的所述待转换数据,并按照所述新增的目标转换语言,将所述待转换数据分配至与所述新增的目标转换语言对应的待转换队列。
S109、接收将所述待转换数据进行语言转换之后得到的新增已转换数据,并根据所述新增的目标转换语言更新所述语言包,得到更新语言包。
S110、将所述新增已转换数据和所述更新语言包发送至所述语言包管理设备,以使所述语言包管理设备将所述新增已转换数据和所述更新语言包分发至各所述终端进行显示。
当终端有变更需求的时候,例如客户端需要变更目标转换语言,例如新增一种语言, 转换平台服务器能够接收终端发送的新增的目标转换语言和与新增的目标转换语言对应的待转换数据,该待转换数据的具体描述可以参考前文所述,此处不再赘述。此时转换平台服务器按照新增的目标转换语言,将对应的待转换数据分配至与新增的目标转换语言对应的待转换队列进行转换,该步骤的实现过程可以参见前述S102的描述。然后转换平台服务器接收将待转换数据进行语言转换之后得到的新增已转换数据,并根据新增的目标转换语言更新语言包,得到更新语言包,即在原有的语言包中加入新增的目标转换语言,该步骤可以参见前述S103的描述。转换平台服务器将新增已转换数据和更新语言包发送至语言包管理设备,以使语言包管理设备将新增已转换数据和更新语言包分发至各终端进行显示,该步骤可以参见前述S104的描述。
例如,转换平台服务器能够接收终端发送的新增的目标转换语言“法语”和与新增的目标转换语言对应的待转换数据,并按照新增的目标转换语言,将待转换数据分配至与“法语”对应的待转换队列。待翻译完成,接收将待转换数据进行语言转换之后得到的新增已转换数据,这个新增已转换数据中包括法语的已转换数据,并根据新增的“法语”更新语言包,得到更新语言包,这个更新语言包中多了“法语”这一语言类别。
本实施例中,转换平台服务器获取新增的目标转换语言和与新增的目标转换语言对应的待转换数据,并按照新增的目标转换语言,将待转换数据分配至与新增的目标转换语言对应的待转换队列,然后接收将待转换数据进行语言转换之后得到的新增已转换数据,并根据新增的目标转换语言更新语言包,得到更新语言包,最后将新增已转换数据和更新语言包发送至语言包管理设备,以使语言包管理设备将新增已转换数据和更新语言包分发至各终端进行显示。该方法能够基于终端提交的新增语言的需求,实现新增语言的文本显示,因此能够满足大量国际化的需求,使用场景进一步丰富。同时,由于新增语言无需开发人员介入参与,使得新增语言的需求实现更为方便快捷,极大地降低了后期的维护成本,进一步满足了终端的定制化需求。
上述实施例均已执行主体为转换平台服务器对本公开的技术方案进行说明,接下来,则以执行主体为终端来阐述本公开的技术方案。
图5为一个实施例提供的终端的文本显示方法的流程示意图。本实施例涉及的是终端按照待显示语言对已转换文本进行显示的具体过程。如图5所示,包括:
S201、接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言。
S202、接收选择指令。例如,接收用户输入的针对所述语言包的选择指令或所述语言管理设备发送的选择指令。
具体的,终端接收语言包管理设备发送的已转换数据和语言包。其中,已转换数据对应至少一种目标转换语言。关于已转换数据和语言包的详细描述也可以参见前述实施例,此处不再赘述。需要说明的是,该选择指令指向语言包中的一种语言类别,作为待显示语言。可选地,终端可以接收用户针对上述语言包的选择指令,例如,上述选择指令可以是 用户通过终端界面显示的语言包的下拉菜单进行的点选操作所发出的指令,如用户通过终端的外接设备鼠标等点选了“英文”这个语言类别,已发出指向“英文”的选择指令。可选地,上述选择指令还可以是语言包管理设备转发其他终端发送的选择指令。例如A、B、C是迎宾系统中包括的3个终端,当用户在A终端选择了“英文”时,语言包管理设备接收到用户选择的待显示语言“英文”后可将用户的选择转发至B终端和C终端,使B终端和C终端联动的将显示语言更换为“英文”。可以理解的是,终端界面显示的语言包的下拉菜单可实时更新,例如当终端检测到新的语言包中有新增语言时,可以在界面显示的下拉菜单中加入新增语言。
S203、根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言。
S204、显示所述待显示语言对应的已转换数据中的已转换文本。
具体的,终端基于上述选择指令,从语言包对应的至少一种目标转换语言中确定出与选择指令对应的待显示语言,并按照待显示语言对应的已转换数据众的已转换文本进行显示。例如,选择指令指向“English”,终端从语言包中的至少一个目标转换语言中确定出待显示语言为英文,此时,终端显示英文对应的已转换数据中的已转换文本“welcome”。
本实施例中,终端接收语言包管理设备发送的已转换数据和语言包,并接收用户输入的针对语言包的选择指令或语言管理设备发送的选择指令,然后根据选择指令,从语言包对应的至少一种目标转换语言中确定出待显示语言并显示待显示语言对应的已转换数据中的已转换文本。该方法能够实现基于选择指令指向的待显示语言对已转换文本进行显示,因此能够实现基于终端的用户选择来显示不同语言的文本,在需要进行多种语言类别的切换时,无需每次修改代码实现,可以通过各个终端基于对语言包的选择指令来实现不同语言类别的显示,使得语言类别和显示内容实现基于终端侧的切换,因此该方法能够实现终端的个性化显示以及多个终端差异化的显示的同时,语言类别和显示内容的切换更为简便和快捷。应用在人脸通行系统中,该方法能够实现终端差异化显示,能够满足国际化业务需求,应用场景更为丰富和灵活。
可选地,在上述图5所示的实施例基础上,所述方法还包括:响应于接收到的所述选择指令,向所述语言包管理设备发送所述选择指令,以使所述语言包管理设备向相关联的其他终端转发所述选择指令,指示该其他终端对所述待显示语言对应的已转换数据中的已转换文本进行显示。此处的其他终端可以是与首次接收到选择指令的终端相关联的终端。例如,一个终端可以响应于接收到用户输入的针对语言包的选择指令,向语言包管理设备发送该选择指令,以通过语言包管理设备将选择指令转发至相关联的其他终端,以使得相关联的其他终端按照该选择指令从语言包对应的至少一种目标转换语言中确定出待显示语言,并将待显示语言对应的已转换数据中的已转换文本以进行显示。本实施例中,一个终端响应于接收到针对语言包的选择指令,通过向语言包管理设备发送选择指令,并由语言包管理设备向相关联的其他终端转发选择指令,指示该相关联的其他终端对已转换文本 进行显示,能够实现在同一个系统中,基于一个终端的待显示语言的更新,将对应的其他终端按照新的待显示语言进行更新,在后端进行待显示语言更新的时候,能够实现多个终端同步更新,进而实现终端显示内容的统一调整,因此更为方便和快捷。
可选地,在上述实施例的基础上,终端还可以接收所述语言包管理设备发送的更新后的已转换数据,并采用所述更新后的已转换数据替换具有相同变量名、目标语言、终端标识和应用标识的已转换数据。本实施例中的更新后的已转换数据的生成方式和说明可以参见前述实施例的描述,此处也不做限定。具体的,当终端有变更需求的时候,终端能够获取上述语言包管理设备发送的更新后的已转换数据,并采用更新后的已转换数据替换原有的已转换数据,实现变更需求。
本实施例中,终端能够实现基于客户需求的文本的显示变更。该方法无需开发人员重新参与,终端的显示文本的更新更为方便快捷,极大地降低了后期的维护成本,进一步满足了终端的定制化显示的需求。
可选地,在上述实施例的基础上,上述步骤S204的一种可能的实现方式可以包括:获取当前时刻的锁定状态;若所述锁定状态为已锁定,则继续显示当前显示语言对应的已转换数据中的已转换文本。具体的,各个终端还可以设置自身的锁定状态,当终端当前时刻的锁定状态为已锁定的时候,该终端所显示的文本不会发生变化,例如不会按照更新后的转换修改文本进行显示,而是继续显示当前显示语言对应的已转换数据中的已转换文本。可选地,此时终端可以是接收到选择指令后继续显示当前显示语言对应的已转换数据中的已转换文本;也可以是锁定状态为锁定的终端不再接收语言包管理设备发送的选择指令从而继续显示当前显示语言对应的已转换数据中的已转换文本,从而避免过多的信息传输,节约了设备资源。可选地,如果终端锁定状态为未锁定,则该终端根据选择指令更新所显示的文本。本实施例中,终端能够根据各自的锁定状态来确定是否基于选择指令进行文本的更新,在能够便捷实现统一更新显示内容的同时,还能够根据实际使用需求对无需更新的终端通过设定已锁定来保持原有的显示内容,进一步丰富了功能,使得应用场景更为丰富。
接下来,再以执行主体为语言包管理设备来阐述本公开的技术方案。
图6为一个实施例提供的终端的文本显示方法的流程示意图。本实施例涉及的是语言包管理设备将已转换数据按照终端标识进行分发的具体过程。如图6所示,包括:
S301、获取已转换数据和对应的语言包;其中,所述语言包用于指示所述已转换数据采用的语言的类别。
具体的,语言包管理设备接收转换平台服务器发送已转换数据和对应的语言包。这里的已转换数据和语言包的详细描述可以参见前述实施例的描述,此处也不再赘述。
S302、将所述已转换数据和所述语言包分发至各终端进行显示。
具体的,语言包管理设备将已转换数据和语言包分发至各终端进行显示,可以是将上述已转换数据和语言包同步下发至各终端进行显示,也可以是将上述已转换数据和语言包 分开下发至各终端进行显示。
在一例中,语言包管理设备可先下发某一默认语言(例如英语)的已转换数据和语言包(例如包含英语、法语、德语)至终端,使终端根据语言包显示可选语言的下拉列表(包含英语、法语、德语),用户根据下拉列表选择某一待显示语言后(例如德语),语言包管理设备再下发对应该待显示语言的已转换数据,以减少对终端存储空间的占用并减少数据传输量。
本实施例中,语言包管理设备获取待转换数据转换之后的已转换数据和待转换数据需要转换的目标转换语言对应的语言包,将已转换数据和语言包分发至各终端进行显示。该方法通过将已转换数据和语言包分发至各个终端进行显示,能够使得各个终端接收到至少一种语言的已转换数据,通过将至少一种语言的已转换数据中的内容进行显示,能够避免传统的仅基于前端的页面进行显示所带来的显示内容单一的问题,丰富了终端的显示形式。并且当语言包中的语言类别为多个的时候,在需要进行多种语言类别的切换时,无需每次修改代码实现,可以通过各个终端调用语言包中的语言类别来实现不同语言类别的显示,使得语言类别和显示内容实现基于终端侧的切换,因此该方法能够实现终端的个性化显示以及多个终端差异化的显示的同时,语言类别和显示内容的切换更为简便和快捷。应用在人脸通行系统中,该方法能够实现终端差异化显示,能够满足国际化业务需求,应用场景更为丰富和灵活。
在上述图6所示的实施例的基础上,所述待转换数据包括未转换文本、所述未转换文本对应的变量名、源语言、终端标识以及应用标识;所述已转换数据包括语言转换后的已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同。所述待转换数据包括未转换文本、所述未转换文本对应的变量名、源语言、终端标识以及应用标识。所述已转换数据包括语言转换后的已转换文本、所述变量名、目标语言、终端标识和应用标识。这里以举例的形式对上述名词所表征的含义进行示例性说明:例如,待转换数据可以包括“欢迎光临”这个未转换文本、“欢迎光临”对应的变量名“XX”、“你好”的源语言“中文”、终端标识“客户端迎宾设备”以及“YY公司门迎系统”这个应用标识。已转换数据可以包括语言转换后的已转换文本,例如“欢迎光临”转换后的已转换文本“Welcome”、变量名“XX”、目标语言“英文”、终端标识“客户端迎宾设备”和应用标识“YY公司门迎系统”。上述举例仅为一种示例,上述未转换文本可能包括多个,例如“你好”、“早上好”等等;上述终端标识可以包括多个终端的终端标识,其中,不同类型终端的终端标识不同;目标语言可以包括中文、英文等等所需要转换的语言类别。在一个实施例中,各端的开发人员,例如前端开发、后端开发、还有客户端开发等,提取各自代码中的未转换文本,并对未转换文本设置变量名。可选地,这个变量名还可以增加一个固定的字符作为前缀,这个前缀能够表征来自哪个终端。例如,后端可以用项目名的缩写“+B”这个代表后端的终端标识作为变量名的前缀,前端可以用项目名的缩写“+F”这个代表前端的终端标识作为变量名的前缀,客户端可以用项目名的缩写“+P” 这个代表客户端的终端标识作为变量名的前缀,以此区分来自哪个终端的开发人员提交的待转换数据。可选地,上述待转换数据还可以加上对应的含义说明,例如对“欢迎光临”加上“欢迎外来人员”这样的说明,来确保待转换数据的唯一性,避免出现混淆,采用变量名来代表需要显示的内容能够确保代码层面的可读性,进一步提高了文本显示的准确性。
上述步骤S302的一种可能的实现形式可以包括:将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
具体的,语言包管理设备接收转换平台服务器发送的已转换数据和语言包,读取已转换数据中的终端标识,然后按照已转换数据中的终端标识将上述已转换数据和语言包分发至终端标识对应的终端进行显示。可选地,终端可以在语言包中选择一种作为待显示语言,将已转换数据中的待显示语言对应的已转换文本进行显示。例如可以是确定接待的是母语为英语国家的外宾时,可以将语言包中的“英文”作为待显示语言,然后将该待显示语言对应的已转换文本“Welcome”进行显示。需要说明的是,一个未转换文本对应多个终端的情况可以生成一组待转换数据,并进行上述处理实现多端差异化的显示。
本实施例中,由于待转换数据包括未转换文本、未转换文本对应的变量名、源语言、终端标识以及应用标识;并且已转换数据包括语言转换后的已转换文本、变量名、目标语言、终端标识和应用标识。因此,语言包管理设备将已转换数据和语言包按照已转换数据包括的终端标识分发至各终端进行显示,从而使得不同终端能够基于各自的终端标识获取对应的已转换数据并进行显示,从而实现多端差异化的显示,使得文本显示的形式更为丰富以及更具有针对性。
可选地,在上述各个实施例的基础上,所述方法还可以如图7所示包括:
S303、接收选择指令。例如,接收终端发送的用户针对所述语言包输入的选择指令。
S304、将所述选择指令转发至与接收用户输入的所述选择指令的终端相关联的终端,以使所述相关联的终端基于所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
与某终端关联的终端可以是希望与该终端具有语言更新联动关系的终端,例如属于同一局域网的部署有相同或相关应用程序的多个终端。具体的,语言包管理设备接收终端发送的用户针对语言包输入的选择指令,然后将选择指令转发至与接收用户输入的所述选择指令的终端相关联的、对应的终端,使得接收到选择指令的终端从语言包对应的至少一种目标转换语言中确定出与选择指令对应的待显示语言,并按照待显示语言对应的已转换数据众的已转换文本进行显示。例如,选择指令指向“English”,接收到该选择指令的终端从语言包中的至少一个目标转换语言中确定出待显示语言为英文,此时,终端显示英文对应的已转换数据中的已转换文本“welcome”。本实施例中,语言包管理设备接收终端发送的用户针对语言包输入的选择指令,并将选择指令转发至与接收用户输入的所述选择指令的终端相关联的终端,以使相关联的终端基于选择指令,从语言包对应的至少一种目标 转换语言中确定出待显示语言,并显示待显示语言对应的已转换数据中的已转换文本。该方法能够实现在同一个系统中,基于一个终端的待显示语言的更新,将对应的其他终端的按照新的待显示语言进行更新,在后端进行待显示语言更新的时候,能够实现多个终端同步更新,进而实现终端显示内容的统一调整,因此更为方便和快捷。
在一个实施例中,上述步骤S304的一种可能的实现方式可以包括:获取与接收用户输入的所述选择指令的终端相关联的终端的锁定状态;将所述选择指令转发至锁定状态为未锁定的目标终端,以使所述目标终端基于所述选择指令,从所述语言包对应的至少一种目标转换语言中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。具体的,语言包管理设备能够获取各个终端设置的锁定状态,可以包括已锁定和未锁定,当终端当前时刻的锁定状态为已锁定的时候,该终端所显示的文本不会发生变化,例如不会按照更新后的转换修改文本进行显示,而是继续显示当前显示语言对应的已转换数据中的已转换文本。可选地,语言包管理设备可以向该终端发送选择指令,终端接收到选择指令后继续显示当前显示语言对应的已转换数据中的已转换文本;也可以是终端的锁定状态为锁定的时候,语言包管理设备不再向该终端发送的选择指令,使得该终端继续显示当前显示语言对应的已转换数据中的已转换文本,从而避免过多的信息传输,节约了设备资源。可选地,如果终端锁定状态为未锁定,则将该未锁定的终端作为目标终端,语言包管理设备向该目标终端发送选择指令,使得目标终端根据选择指令更新所显示的文本。本实施例中,语言包管理设备通过获取与接收用户输入的所述选择指令的终端相关联的终端的锁定状态,并将选择指令转发至锁定状态为未锁定的目标终端,以使目标终端基于选择指令,从语言包对应的至少一种目标转换语言中确定出待显示语言,并显示待显示语言对应的已转换数据中的已转换文本终端能够根据各自的锁定状态来实现是否基于选择指令进行文本的更新,在能够根据实际使用需求对需要更新的目标终端通过设定未锁定来便捷地统一更新显示内容的同时,使得已锁定的终端能够保持原有的显示内容,进一步丰富个终端显示的差异化,使得应用场景更为丰富。
应该理解的是,虽然图2-7的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-7中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在一个实施例中,如图8所示,提供了一种终端的文本显示装置,包括:
获取模块100,用于获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
分配模块200,用于按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;
接收模块300,用于接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所述语言包包括所述已转换数据采用的目标转换语言;
发送模块400,用于将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
在一个实施例中,所述待转换数据包括未转换文本、所述未转换文本对应的变量名、源语言、终端标识以及应用标识;所述已转换数据包括语言转换后的已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同;发送模块400,具体用于所述语言包管理设备将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
在一个实施例中,获取模块100,还用于接收转换修改数据,并根据所述转换修改数据中的变量名、目标语言、终端标识和应用标识查找待编辑的已转换数据;以及根据所述转换修改数据中的转换修改文本更新所述待编辑的已转换数据中的已转换文本;
发送模块400,还用于将更新后的所述已转换数据发送至语言包管理设备,以使所述语言包管理设备将更新后的所述已转换数据分发至所述已转换数据包括的终端标识对应的终端进行显示。
在一个实施例中,获取模块100,还用于获取新增的目标转换语言和与所述新增的目标转换语言对应的所述待转换数据;
分配模块200,还用于按照所述新增的目标转换语言,将所述待转换数据分配至与所述新增的目标转换语言对应的待转换队列;
接收模块300,还用于接收将所述待转换数据进行语言转换之后得到的新增已转换数据;
获取模块100,还用于根据所述新增的目标转换语言更新所述语言包,得到更新语言包;
发送模块400,还用于将所述新增已转换数据和所述更新语言包发送至所述语言包管理设备,以使所述语言包管理设备将所述新增已转换数据和所述更新语言包分发至各所述终端进行显示。
在一个实施例中,如图9所示,提供了一种终端的文本显示装置,包括:
第一接收模块500,用于接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;
第二接收模块600,用于接收选择指令;
确定模块700,用于根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;
显示模块800,用于显示所述待显示语言对应的已转换数据中的已转换文本。
在一个实施例中,显示模块800,还用于响应于接收到的所述选择指令,向所述语言包管理设备发送所述选择指令,以使所述语言包管理设备向相关联的其他终端转发所述选择指令,指示其他终端对所述待显示语言对应的已转换数据中的已转换文本以进行显示。
在一个实施例中,第一接收模块500,还用于接收所述语言包管理设备发送的更新后的已转换数据,并采用所述更新后的已转换数据替换与所述更新后的已转换数据具有相同变量名、目标语言、终端标识和应用标识的已转换数据。
在一个实施例中,显示模块800,具体用于获取当前时刻的锁定状态;若所述锁定状态为已锁定,则继续显示当前显示语言对应的已转换数据中的已转换文本。
在一个实施例中,如图10所示,提供了一种终端的文本显示装置,包括:
获取模块900,用于获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
分发模块1000,用于将所述已转换数据和所述语言包分发至各终端进行显示。
在一个实施例中,所述已转换数据包括已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同;分发模块1000,具体用于将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
在一个实施例中,获取模块900,还用于接收终端发送的选择指令;将所述选择指令转发至与所述终端相关联的其他终端,以使相关联的其他终端基于所述选择指令,从所述语言包中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
在一个实施例中,获取模块900,具体用于获取所述终端相关联的其他终端的锁定状态;将所述选择指令转发至锁定状态为未锁定的目标终端,以使所述目标终端基于所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
关于终端的文本显示装置的具体限定可以参见上文中对于终端的文本显示方法的限定,在此不再赘述。上述终端的文本显示装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,还提供了一种终端文本显示系统,如图1所示,所述系统包括转换平台服务器1006、语言包管理设备1004和至少一个终端1002;
转换平台服务器1006,用于获取待转换数据和所述待转换数据对应的目标转换语言,并按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列,以及接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,并将所述已转换数据和所述语言包发送至语言包管理设备1004;
其中,所述待转换数据为按照预设的转换数据模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别,所述语言包包括所述已转换数据采用的目标转换语言;
语言包管理设备1004,用于将接收到的所述已转换数据和所述语言包分发至各终端1002;
终端1002,用于接收语言包管理设备1004发送的已转换数据和所述语言包,并根据选择指令,从所述语言包对应的一种目标转换语言中确定出待显示语言,以及显示所述待显示语言对应的已转换数据中的已转换文本。
在一个实施例中,待转换数据包括未转换文本、所述未转换文本对应的变量名、源语言、终端标识以及应用标识;所述已转换数据包括语言转换后的已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同。
在一个实施例中,语言包管理设备1004还用于将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端1002进行显示。
在一个实施例中,转换平台服务器1006,还用于接收转换修改数据;根据所述转换修改数据中的变量名、目标语言、终端标识和应用标识查找待编辑的已转换数据;根据所述转换修改数据中的转换修改文本更新所述待编辑的已转换数据中的已转换文本;将更新后的所述已转换数据发送至语言包管理设备1004;
语言包管理设备1004,还用于将更新后的所述已转换数据分发至所述已转换数据包括的终端标识对应的终端进行显示;
终端1002,还用于接收所述语言包管理设备发送的更新后的已转换数据;采用所述更新后的已转换数据替换与所述更新后的已转换数据具有相同变量名、目标语言、终端标识和应用标识的已转换数据。
在一个实施例中,转换平台服务器1006,还用于获取新增的目标转换语言和与所述新增的目标转换语言对应的所述待转换数据;按照所述新增的目标转换语言,将所述待转换数据分配至与所述新增的目标转换语言对应的待转换队列;接收将所述待转换数据进行语言转换之后得到的新增已转换数据;根据所述新增的目标转换语言更新所述语言包,得到更新语言包;将所述新增已转换数据和所述更新语言包发送至所述语言包管理设备;
语言包管理设备1004,还用于将所述新增已转换数据和所述更新语言包分发至各所述终端进行显示。
在一个实施例中,终端1002,具体用于获取当前时刻的锁定状态;若所述锁定状态为已锁定,则继续显示当前显示语言对应的已转换数据中的已转换文本。
在一个实施例中,终端1002还用于向语言包管理设备1004发送的用户针对所述语言包输入的选择指令;
语言包管理设备1004,还用于获取各终端1002的锁定状态,并将所述选择指令转发至锁定状态为未锁定的目标终端1002;
目标终端1002,还用于根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
关于上述终端文本显示系统的实施例的实现原理和有益效果可以参见前述方法实施例,此处不再赘述。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图11所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储待转换数据和已转换数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种终端的文本显示方法。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图12所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种终端的文本显示方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图11和图12中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
本领域技术人员可以理解,图11和图12中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所 述语言包包括所述已转换数据采用的目标转换语言;将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
在一个实施例中,所述待转换数据包括未转换文本、所述未转换文本对应的变量名、源语言、终端标识以及应用标识;所述已转换数据包括语言转换后的已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同;处理器执行计算机程序时还实现以下步骤:所述语言包管理设备将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
在一个实施例中,处理器执行计算机程序时还实现以下步骤:接收转换修改数据;根据所述转换修改数据中的变量名、目标语言、终端标识和应用标识查找待编辑的已转换数据;根据所述转换修改数据中的转换修改文本更新所述待编辑的已转换数据中的已转换文本;将更新后的所述已转换数据发送至语言包管理设备,以使所述语言包管理设备将更新后的所述已转换数据分发至所述已转换数据包括的终端标识对应的终端进行显示。
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取新增的目标转换语言和与所述新增的目标转换语言对应的所述待转换数据;按照所述新增的目标转换语言,将所述待转换数据分配至与所述新增的目标转换语言对应的待转换队列;接收将所述待转换数据进行语言转换之后得到的新增已转换数据;根据所述新增的目标转换语言更新所述语言包,得到更新语言包;将所述新增已转换数据和所述更新语言包发送至所述语言包管理设备,以使所述语言包管理设备将所述新增已转换数据和所述更新语言包分发至各所述终端进行显示。
应当清楚的是,本公开实施例中处理器执行计算机程序的过程,与上述方法中各个步骤的执行过程一致,具体可参见上文中的描述。
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;接收选择指令;根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;显示所述待显示语言对应的已转换数据中的已转换文本。
在一个实施例中,处理器执行计算机程序时还实现以下步骤:响应于接收到的所述选择指令,向所述语言包管理设备发送所述选择指令,以使所述语言包管理设备向相关联的其他终端转发所述选择指令,指示其他终端将所述待显示语言对应的已转换数据中的已转换文本以进行显示。
在一个实施例中,处理器执行计算机程序时还实现以下步骤:接收所述语言包管理设备发送的更新后的已转换数据;采用所述更新后的已转换数据替换与所述更新后的已转换数据具有相同变量名、目标语言、终端标识和应用标识的已转换数据。
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取当前时刻的锁定状 态;若所述锁定状态为已锁定,则继续显示当前显示语言对应的已转换数据中的已转换文本。
应当清楚的是,本公开实施例中处理器执行计算机程序的过程,与上述方法中各个步骤的执行过程一致,具体可参见上文中的描述。
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;将所述已转换数据和所述语言包分发至各终端进行显示。
在一个实施例中,所述已转换数据包已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同;处理器执行计算机程序时还实现以下步骤:将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
在一个实施例中,处理器执行计算机程序时还实现以下步骤:接收终端发送的选择指令;将所述选择指令转发至与终端相关联的其他终端,以使相关联的其他终端基于所中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取与终端相关联的其他终端的锁定状态;将所述选择指令转发至锁定状态为未锁定的目标终端,以使所述目标终端基于所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
应当清楚的是,本公开实施例中处理器执行计算机程序的过程,与上述方法中各个步骤的执行过程一致,具体可参见上文中的描述。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所述语言包包括所述已转换数据采用的目标转换语言;将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
在一个实施例中,所述待转换数据包括未转换文本、所述未转换文本对应的变量名、源语言、终端标识以及应用标识;所述已转换数据包括语言转换后的已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同;计算机程序被处理器执行时还实现以下步骤:所述语言包管理设备将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:接收转换修改数据;根据所述转换修改数据中的变量名、目标语言、终端标识和应用标识查找待编辑的已转换数据;根据所述转换修改数据中的转换修改文本更新所述待编辑的已转换数据中的已转换文本;将更新后的所述已转换数据发送至语言包管理设备,以使所述语言包管理设备将更新后的所述已转换数据分发至所述已转换数据包括的终端标识对应的终端进行显示。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取新增的目标转换语言和与所述新增的目标转换语言对应的所述待转换数据;按照所述新增的目标转换语言,将所述待转换数据分配至与所述新增的目标转换语言对应的待转换队列;接收将所述待转换数据进行语言转换之后得到的新增已转换数据;根据所述新增的目标转换语言更新所述语言包,得到更新语言包;将所述新增已转换数据和所述更新语言包发送至所述语言包管理设备,以使所述语言包管理设备将所述新增已转换数据和所述更新语言包分发至各所述终端进行显示。
应当清楚的是,本公开实施例中处理器执行计算机程序的过程,与上述方法中各个步骤的执行过程一致,具体可参见上文中的描述。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;接收选择指令;根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;显示所述待显示语言对应的已转换数据中的已转换文本。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于接收到的所述选择指令,向所述语言包管理设备发送所述选择指令,以使所述语言包管理设备向相关联的其他终端转发所述选择指令,指示其他终端将所述待显示语言对应的已转换数据中的已转换文本以进行显示。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:接收所述语言包管理设备发送的更新后的已转换数据;采用所述更新后的已转换数据替换与所述更新后的已转换数据具有相同变量名、目标语言、终端标识和应用标识的已转换数据。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取当前时刻的锁定状态;若所述锁定状态为已锁定,则继续显示当前显示语言对应的已转换数据中的已转换文本。
应当清楚的是,本公开实施例中处理器执行计算机程序的过程,与上述方法中各个步骤的执行过程一致,具体可参见上文中的描述。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;将所述已转换数据和所述语言包分发至各终端进行显示。
在一个实施例中,所述已转换数据包括已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同;计算机程序被处理器执行时还实现以下步骤:将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:接收终端发送的选择指令;将所述选择指令转发至与所述终端相关联的其他终端,以使相关联的其他终端基于所述选择指令,从所述语言包中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取与所述终端相关联的其他终端的锁定状态;将所述选择指令转发至锁定状态为未锁定的目标终端,以使所述目标终端基于所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
应当清楚的是,本公开实施例中处理器执行计算机程序的过程,与上述方法中各个步骤的执行过程一致,具体可参见上文中的描述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本公开所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本公开的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干变形和改进,这些都属于本公开的保护范围。因此,本公开专利的保护范围应以所附权利要求为准。

Claims (18)

  1. 一种终端的文本显示方法,其特征在于,所述方法包括:
    获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
    按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;
    接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所述语言包包括所述已转换数据采用的目标转换语言;
    将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
  2. 根据权利要求1所述的方法,其特征在于,所述待转换数据包括未转换文本、所述未转换文本对应的变量名、源语言、终端标识以及应用标识;所述已转换数据包括语言转换后的已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同;
    所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示,包括:
    所述语言包管理设备将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
  3. 根据权利要求2所述方法,其特征在于,所述方法还包括:
    接收转换修改数据;
    根据所述转换修改数据中的变量名、目标语言、终端标识和应用标识查找待编辑的已转换数据;
    根据所述转换修改数据中的转换修改文本更新所述待编辑的已转换数据中的已转换文本;
    将更新后的所述已转换数据发送至语言包管理设备,以使所述语言包管理设备将更新后的所述已转换数据分发至所述已转换数据包括的终端标识对应的终端进行显示。
  4. 根据权利要求1-3任一项所述方法,其特征在于,所述方法还包括:
    获取新增的目标转换语言和与所述新增的目标转换语言对应的所述待转换数据;
    按照所述新增的目标转换语言,将所述待转换数据分配至与所述新增的目标转换语言对应的待转换队列;
    接收将所述待转换数据进行语言转换之后得到的新增已转换数据;
    根据所述新增的目标转换语言更新所述语言包,得到更新语言包;
    将所述新增已转换数据和所述更新语言包发送至所述语言包管理设备,以使所述语言 包管理设备将所述新增已转换数据和所述更新语言包分发至各所述终端进行显示。
  5. 一种终端的文本显示方法,其特征在于,包括:
    接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;
    接收选择指令;
    根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;
    显示所述待显示语言对应的已转换数据中的已转换文本。
  6. 根据权利要求5所述方法,其特征在于,所述方法还包括:
    响应于接收到的所述选择指令,向所述语言包管理设备发送所述选择指令,以使所述语言包管理设备向相关联的其他终端转发所述选择指令,指示所述其他终端对所述待显示语言对应的已转换数据中的已转换文本进行显示。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    接收所述语言包管理设备发送的更新后的已转换数据;
    采用所述更新后的已转换数据替换与所述更新后的已转换数据具有相同变量名、目标语言、终端标识和应用标识的已转换数据。
  8. 根据权利要求5至7任一项所述的方法,其特征在于,所述显示所述待显示语言对应的已转换数据中的已转换文本,包括:
    获取当前时刻的锁定状态;
    若所述锁定状态为已锁定,则继续显示当前显示语言对应的已转换数据中的已转换文本。
  9. 一种终端的文本显示方法,其特征在于,所述方法包括:
    获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
    将所述已转换数据和所述语言包分发至各终端进行显示。
  10. 根据权利要求9所述的方法,其特征在于,所述已转换数据包括已转换文本、所述变量名、目标语言、终端标识和应用标识;其中,不同类型的终端的终端标识不同;
    所述将所述已转换数据和所述语言包分发至各终端进行显示,包括:
    将所述已转换数据和所述语言包按照所述已转换数据包括的终端标识分发至各终端进行显示。
  11. 根据权利要求10所述方法,其特征在于,所述方法还包括:
    接收终端发送的选择指令;
    将所述选择指令转发至与所述终端相关联的其他终端,以使所述相关联的其他终端基于所述选择指令,从所述语言包中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
  12. 根据权利要求11所述方法,其特征在于,所述将所述选择指令转发至与所述终 端相关联的其他终端,包括:
    获取与所述终端相关联的其他终端的锁定状态;
    将所述选择指令转发至锁定状态为未锁定的目标终端,以使所述目标终端基于所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言,并显示所述待显示语言对应的已转换数据中的已转换文本。
  13. 一种终端的文本显示装置,其特征在于,所述装置包括:
    获取模块,用于获取待转换数据和所述待转换数据对应的目标转换语言;其中,所述待转换数据为按照预设的数据转换模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
    分配模块,用于按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列;
    接收模块,用于接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,所述语言包包括所述已转换数据采用的目标转换语言;
    发送模块,用于将所述已转换数据和所述语言包发送至语言包管理设备,以使所述语言包管理设备将所述已转换数据和所述语言包分发至各终端进行显示。
  14. 一种终端的文本显示装置,其特征在于,所述装置包括:
    第一接收模块,用于接收语言包管理设备发送的已转换数据和语言包;其中,所述已转换数据对应至少一种目标转换语言;
    第二接收模块,用于接收选择指令;
    确定模块,用于根据所述选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言;
    显示模块,用于显示所述待显示语言对应的已转换数据中的已转换文本。
  15. 一种终端的文本显示装置,其特征在于,所述装置包括:
    获取模块,用于获取已转换数据和对应的语言包;其中,所述语言包包括所述已转换数据采用的目标转换语言,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别;
    分发模块,用于将所述已转换数据和所述语言包分发至各终端进行显示。
  16. 一种终端文本显示系统,其特征在于,所述系统包括转换平台服务器、语言包管理设备和至少一个终端;
    所述转换平台服务器,用于获取待转换数据和所述待转换数据对应的目标转换语言,并按照所述目标转换语言,将所述待转换数据分配至与所述目标转换语言对应的待转换队列,以及接收将所述待转换数据按照所述目标转换语言进行语言转换之后得到的已转换数据和对应的语言包,并将所述已转换数据和所述语言包发送至语言包管理设备;
    其中,所述待转换数据为按照预设的转换数据模板构成的数据,所述目标转换语言用于表征所述待转换数据中的文本内容转换的语言类别,所述语言包包括所述已转换数据采 用的目标转换语言;
    所述语言包管理设备,用于将接收到的所述已转换数据和所述语言包分发至各所述终端;
    所述终端,用于接收所述语言包管理设备发送的已转换数据和所述语言包,并根据选择指令,从所述语言包的至少一种目标转换语言中确定出待显示语言,以及显示所述待显示语言对应的已转换数据中的已转换文本。
  17. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至12中任一项所述的方法的步骤。
  18. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现权利要求1至12中任一项所述的方法的步骤。
PCT/CN2020/119739 2020-06-03 2020-09-30 终端的文本显示方法、装置、系统和存储介质 WO2021243916A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010493782.2A CN111857906B (zh) 2020-06-03 2020-06-03 终端的文本显示方法、装置、系统和存储介质
CN202010493782.2 2020-06-03

Publications (1)

Publication Number Publication Date
WO2021243916A1 true WO2021243916A1 (zh) 2021-12-09

Family

ID=72985495

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/119739 WO2021243916A1 (zh) 2020-06-03 2020-09-30 终端的文本显示方法、装置、系统和存储介质

Country Status (2)

Country Link
CN (1) CN111857906B (zh)
WO (1) WO2021243916A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114997118A (zh) * 2021-03-02 2022-09-02 北京字跳网络技术有限公司 一种文档处理方法、装置、设备和介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117304A1 (en) * 2004-11-23 2006-06-01 Microsoft Corporation Method and system for localizing a package
CN101216820A (zh) * 2008-01-17 2008-07-09 北京中星微电子有限公司 一种多国化翻译的方法和装置
CN101566946A (zh) * 2008-04-25 2009-10-28 北京闻言科技有限公司 一种灵活支持软件多语言版本的方法
CN109947512A (zh) * 2019-03-18 2019-06-28 北京字节跳动网络技术有限公司 一种文本适配显示方法、装置、服务器及存储介质

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7536293B2 (en) * 2003-02-24 2009-05-19 Microsoft Corporation Methods and systems for language translation
US8965751B2 (en) * 2010-11-01 2015-02-24 Microsoft Corporation Providing multi-lingual translation for third party content feed applications
CN102693322B (zh) * 2012-06-01 2014-10-22 杭州海康威视数字技术股份有限公司 支持多国语言的网页处理方法、网页加载方法及其系统
CN106155652A (zh) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 一种多语言数据文件的生成方法和系统
US9805030B2 (en) * 2016-01-21 2017-10-31 Language Line Services, Inc. Configuration for dynamically displaying language interpretation/translation modalities
CN107590110B (zh) * 2017-09-20 2021-09-28 广州酷狗计算机科技有限公司 文本显示方法及装置
CN108399166B (zh) * 2018-02-07 2021-03-30 深圳壹账通智能科技有限公司 文本翻译方法、装置、计算机设备和存储介质
CN109032717A (zh) * 2018-06-15 2018-12-18 福建天晴数码有限公司 一种更新界面显示语言的方法及系统
CN110362370B (zh) * 2019-06-14 2022-10-18 平安科技(深圳)有限公司 一种网页语言的切换方法、装置及终端设备
CN110597591B (zh) * 2019-09-17 2022-10-14 深圳融昕医疗科技有限公司 嵌入式设备的界面多语言实现方法、装置及存储介质
CN110673920A (zh) * 2019-09-29 2020-01-10 深圳前海环融联易信息科技服务有限公司 国际化处理方法、装置、计算机设备及存储介质
CN111061533A (zh) * 2019-12-18 2020-04-24 深圳前海环融联易信息科技服务有限公司 页面多语言展示方法、其装置、电子设备及计算机存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117304A1 (en) * 2004-11-23 2006-06-01 Microsoft Corporation Method and system for localizing a package
CN101216820A (zh) * 2008-01-17 2008-07-09 北京中星微电子有限公司 一种多国化翻译的方法和装置
CN101566946A (zh) * 2008-04-25 2009-10-28 北京闻言科技有限公司 一种灵活支持软件多语言版本的方法
CN109947512A (zh) * 2019-03-18 2019-06-28 北京字节跳动网络技术有限公司 一种文本适配显示方法、装置、服务器及存储介质

Also Published As

Publication number Publication date
CN111857906A (zh) 2020-10-30
CN111857906B (zh) 2022-02-01

Similar Documents

Publication Publication Date Title
US11314568B2 (en) Message processing method and apparatus, storage medium, and computer device
WO2018077085A1 (zh) 应用程序处理方法、装置及存储介质
WO2018072634A1 (zh) 应用程序处理方法和装置
US11403117B2 (en) Methods for processing mini program, and related devices
WO2018133663A1 (zh) 页面生成方法、终端和存储介质
US10002115B1 (en) Hybrid rendering of a web page
CN109814854B (zh) 项目框架生成方法、装置、计算机设备和存储介质
US20130007100A1 (en) Remote browsing session management
CN109901834A (zh) 文档页面生成方法、装置、计算机设备和存储介质
US20210334118A1 (en) Opening local files in remote applications
WO2020024989A1 (zh) 负一屏加载方法、装置、终端及计算机可读存储介质
JPH07105027A (ja) 複数のタスクを実行するためのコンピュータ・システムおよび方法
CN113010224A (zh) 前端微服务化方法、装置、计算机设备和存储介质
CN111596911A (zh) 生成控件的方法、装置、计算机设备和存储介质
WO2021243916A1 (zh) 终端的文本显示方法、装置、系统和存储介质
US20200053150A1 (en) Network topology templates for internal states of management and control planes
CN104461893A (zh) 数据处理方法与数据处理装置
US11782881B2 (en) Recommending remotely executed applications for opening files
CN114862470A (zh) 广告资源适配方法、装置、计算机设备及存储介质
CN111857782B (zh) 界面更新方法、装置、计算机设备和存储介质
JP2021120899A (ja) ユーザ識別方法、装置、記憶媒体及び電子機器
CN111078736A (zh) 一种数据聚合处理方法、装置、终端及存储介质
CN114125067A (zh) 前后端分离的灰度发布方法、前端服务器和配置服务器
CN112612531A (zh) 应用程序启动方法、装置、电子设备及存储介质
US11588654B2 (en) Method and apparatus for operating blockchain system, device and storage medium

Legal Events

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

Ref document number: 20939026

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20939026

Country of ref document: EP

Kind code of ref document: A1