CN111142965A - Language configuration method and device, electronic equipment and storage medium - Google Patents
Language configuration method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111142965A CN111142965A CN201911293935.2A CN201911293935A CN111142965A CN 111142965 A CN111142965 A CN 111142965A CN 201911293935 A CN201911293935 A CN 201911293935A CN 111142965 A CN111142965 A CN 111142965A
- Authority
- CN
- China
- Prior art keywords
- language
- text
- file
- list
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000004590 computer program Methods 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 12
- 238000011161 development Methods 0.000 abstract description 7
- 230000008569 process Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/454—Multi-language systems; Localisation; Internationalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44536—Selecting among different versions
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a language configuration method, a language configuration device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring language configuration information, wherein the language configuration information comprises language file format information; acquiring a language file list to be configured from a preset language text database according to the language file format information; and loading a language text file according to the language file list to be configured so as to complete the language configuration operation. The method is based on the language text database, the same language text file is multiplexed by setting a plurality of different file formats for the same language text file, the language text file does not need to be repeatedly created for each operating system environment, a large amount of repeated labor is avoided, and the development efficiency is improved. Moreover, as the text contents used by the software programs or the equipment in different operating system environments are uniform, the risk of inconsistent text display in different operating system environments is avoided.
Description
Technical Field
The present application relates to the field of multi-language processing technologies, and in particular, to a language configuration method and apparatus, an electronic device, and a storage medium.
Background
With the development of the times, various intelligent devices become essential tools in work and life of people, and more convenient experience is brought to people. For some software or devices that can be used in multiple countries or regions, it is common to have a function of switching languages in order to meet the needs of users with different languages. At present, some existing methods for switching languages of devices establish a corresponding language text file for each language in software, and when a text in a certain language needs to be displayed, a corresponding text is searched from the language text file through a key value and displayed. However, in the development process of software programs or devices, based on different platform systems, a lot of repeated labor is generated and there is a risk that the text display of different platform systems is inconsistent. Moreover, one language corresponds to one language text file, the updating and the modification of the language text file are required to be carried out on the original language text file, once the language text file is loaded, the text content cannot be modified, and the text modification process is lack of flexibility.
Disclosure of Invention
In view of this, embodiments of the present application provide a language configuration method, an apparatus, an electronic device, and a storage medium, which are intended to solve at least one of the technical defects in the prior art that a large amount of labor is repeatedly generated in a software program or device development process and a risk of inconsistent text display of different platform systems exists based on different platform systems, and that a language corresponds to a language text file, and both updating and modifying must be performed on the original language text file, and once the language text file is loaded, text content cannot be modified, so that a text modification process lacks flexibility.
A first aspect of an embodiment of the present application provides a language configuration method, where the language configuration method includes:
acquiring language configuration information, wherein the language configuration information comprises language file format information;
acquiring a language file list to be configured from a preset language text database according to the language file format information;
and loading a language text file according to the language file list to be configured so as to complete the language configuration operation.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the preset language text database stores language text files according to language type classifications, and multiple file formats are correspondingly set for each stored language text file.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the step of loading a language text file according to the list of language files to be configured to complete a language configuration operation includes:
detecting whether the language text files in the language file list to be configured are not loaded;
and if so, loading the language text file which is not loaded in the language file list to be configured so as to complete the language configuration operation.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the step of detecting whether the language text file in the language file list to be configured is not loaded includes:
detecting whether the language text file in the language file list to be configured exists in a text dictionary, and if not, determining that the language text file is not loaded; or
And when detecting that the language text file in the language file list to be configured exists in the text dictionary, detecting whether the version of the language text file in the language file list to be configured is consistent with the version of the language text file in the text dictionary, and if not, determining that the language text file is not loaded.
With reference to the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, each language text file in the language file list to be configured corresponds to one text key value, and the step of performing a loading operation on a language text file that is not loaded in the language file list to be configured to complete a language configuration operation includes:
identifying whether text key values corresponding to language text files which are not loaded in the language file list to be configured exist in a text dictionary or not;
when a text key value is identified to exist in a text dictionary, loading a language text file in the language file list to be configured and covering an original language text file corresponding to the text key value in the text dictionary; otherwise, a storage record belonging to the text key value is newly built in the text dictionary, and the language text file in the language file list to be configured is loaded into the storage record.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, after the step of loading a language text file according to the list of language files to be configured to complete a language configuration operation, the method further includes:
and updating the text dictionary.
With reference to the first aspect or any one of the first to fifth possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, the step of loading a language text file according to the list of language files to be configured to complete a language configuration operation further includes:
acquiring a language configuration framework of an operating system to be configured;
and fusing the loaded language text file with the language configuration framework of the operating system to be configured.
A second aspect of an embodiment of the present application provides a language configuration apparatus, including:
the acquisition module is used for acquiring language configuration information, and the language configuration information comprises language file format information;
the processing module is used for acquiring a language file list to be configured from a preset language text database according to the language file format information;
and the execution module is used for loading the language text file according to the language file list to be configured so as to complete the language configuration operation.
A third aspect of embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the language configuration method according to any one of the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the language configuration method according to any one of the first aspects.
Compared with the prior art, the embodiment of the application has the advantages that:
the method comprises the steps of obtaining language configuration information including language file format information, obtaining a language file to be configured from a preset language text database according to the language file format information, and loading the language text file according to a language file list to be configured so as to complete language configuration operation. And generating a plurality of corresponding language text files with different file formats and the same file text content for each language text file in the preset language file database. Therefore, when the language configuration is carried out on the software programs or equipment in different operating system environments, the language files in different file formats can be selected as the language text files to be configured, so that the language text files can be reused, the language text files do not need to be repeatedly created for each operating system environment, a large amount of repeated labor is avoided, and the development efficiency is improved. Moreover, as the text contents used by the software programs or the equipment in different operating system environments are uniform, the risk of inconsistent text display in different operating system environments is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a basic method of a language configuration method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a language text database in the language configuration method according to the embodiment of the present application;
fig. 3 is a schematic flowchart of a method for performing language configuration operation in the language configuration method according to the embodiment of the present application;
fig. 4 is a schematic diagram of a storage list when a text dictionary stores all language files of a language type in the language configuration method according to the embodiment of the present application;
fig. 5 is a flowchart of a method for loading a language text file in a language configuration method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another method for performing language configuration operation in the language configuration method according to the embodiment of the present application;
FIG. 7 is a schematic structural diagram of a language configuration apparatus according to an embodiment of the present application;
fig. 8 is a schematic view of an electronic device implementing a language configuration method according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
The language configuration method and the language configuration device aim to realize multiplexing of various language text files in different operating system environments without repeatedly creating the language text files aiming at each operating system environment, so that a large amount of repeated labor is avoided, and the development efficiency is improved; and the text content of the software program or the equipment used in different operating system environments is ensured to be uniform, and the risk of inconsistent text display in different operating system environments is avoided. In addition, the language configuration method provided by the application also aims to support dynamic expansion of language text files used in an operating system environment, so that the flexibility of a text change process is high.
In some embodiments of the present application, please refer to fig. 1, and fig. 1 is a basic method flowchart of a language configuration method provided in the embodiments of the present application, which is detailed as follows:
in step S101, language configuration information is acquired, which includes language file format information.
For some software programs or devices that need to be used in multiple countries or regions, it is generally necessary to have a function of switching between multiple languages in order to meet the needs of users with different languages. In this embodiment, when performing a language configuration operation process for a software program or device, language configuration information may be obtained by receiving a language configuration instruction sent by the software program or device, and then language configuration processing is performed for the software program or device according to the language configuration information, so that the software program or device realizes a function of displaying in a corresponding language according to a requirement of the software program or device. For different software programs or devices, the requirements on the format of the used language file are different when the language is configured according to different operating system environments. Therefore, when the language configuration operation is carried out on the software program or the equipment, the language configuration information can be obtained, so that the language file format information suitable for the operating system environment of the software program or the equipment can be obtained. In some embodiments, the language file format information may be obtained based on a mapping relationship between a pre-established operating system environment of the software program or device and the file format information.
In step S102, a language file list to be configured is obtained from a preset language text database according to the language file format information.
In this embodiment, please refer to fig. 2, and fig. 2 is a schematic diagram of a language text database in a language configuration method according to an embodiment of the present application. As shown in fig. 2, the preset language text database includes a plurality of language text files of different language types, and the language text files are classified and stored according to the language types. And for each language text file stored in the preset language text database, a plurality of file formats are correspondingly set, that is, the same language text content can correspond to language text files with a plurality of different file formats, wherein the plurality of different file formats include, but are not limited to, an xml format, a string format, a plist format, and the like. Therefore, after the language file format information is obtained, all the language text files matched with the language file format information can be found out by traversing the language text database according to the language file format information, and a language file list is generated according to all the found language text files, wherein the language file list is a language file list to be configured required when the software program or equipment is subjected to language configuration operation at this time. It is understood that the language file list to be configured may include one language text file of one language type, may also include a plurality of language text files of one language type, and may also include a plurality of language text files of a plurality of language types.
In step S103, a language text file is loaded according to the list of language files to be configured to complete a language configuration operation.
In this embodiment, according to the language file list to be configured, the language text files in the language file list to be configured are loaded into the platform operating system corresponding to the software program or device one by one, so as to complete the language configuration operation of the software program or device, and generate the text dictionary suitable for the software program or device.
The language configuration method provided in the above embodiment completes the language configuration operation by acquiring language configuration information including language file format information, then acquiring a language file to be configured from a preset language text database according to the language file format information, and further loading the language text file according to the language file list to be configured. And the preset language file database is provided with a plurality of corresponding language text files with different file formats and the same file text content for each language text file. Therefore, when the software programs or equipment in different operating system environments are subjected to language configuration, the language files in different file formats can be selected as the language text files to be configured, so that the language text files can be reused, the language text files in multiple file formats are compatible, the language text files do not need to be repeatedly created for each operating system environment, a large amount of repeated labor is avoided, and the development efficiency is improved. Moreover, as the text contents used by the software programs or the equipment in different operating system environments are uniform, the risk of inconsistent text display in different operating system environments is avoided.
In some embodiments of the present application, please refer to fig. 3, and fig. 3 is a schematic flowchart of a method for performing a language configuration operation in a language configuration method according to an embodiment of the present application. The details are as follows:
in step S301, detecting whether a language text file in the language file list to be configured is not loaded;
in step S302, if yes, a loading operation is performed on the language text file that is not loaded in the language file list to be configured, so as to complete the language configuration operation.
The language configuration operation may be to create a new text dictionary for a software program or device that is not configured with a text dictionary, or to update a text dictionary in a software program or device that is configured with a text dictionary. Referring to fig. 4, fig. 4 is a schematic diagram of a storage list when the text dictionary stores all language files of a language type in the language configuration method according to the embodiment of the present application. In this embodiment, after obtaining the language file list to be configured from the preset language text database, the language text files in the language file list to be configured may be loaded into the platform operating system corresponding to the software program or the device one by one according to the list order according to the language file list to be configured. Detecting a platform operating system corresponding to a software program or equipment, detecting whether a language text file which is located in the language file list to be configured and is not loaded into the platform operating system corresponding to the software program or the equipment exists, and if the language text file which is not loaded into the platform operating system corresponding to the software program or the equipment exists, loading the language text file which is not loaded so as to create or update a text dictionary and complete language configuration operation.
It is understood that the detecting and loading operations may also be performed one by one according to the order of the language text files in the language file list to be configured. For example, detecting whether a language text file 1 in the language file list to be configured is loaded, if not, performing a loading operation on the language text file 1, and after the loading is completed, further detecting whether a language text file 2 in the language file list to be configured is loaded; if the language text file 1 in the language file list to be configured is detected to be loaded, detecting whether the language text file 2 in the language file list to be configured is loaded according to the sequence of the language file list to be configured, and so on until the detection and loading operation of all the language text files in the language file list to be configured is completed.
In some embodiments of the present application, when detecting whether the language text file in the language file list to be configured is loaded, the detecting may include detecting whether the language text file in the language file list to be configured exists in a text dictionary, and when the detection result indicates that the language text file exists, determining that the language text file in the language file list to be configured is not loaded. And when the detection result is that the language text file exists, whether the language text file is not loaded can be further judged by detecting whether the version of the language text file in the text dictionary is consistent with the version of the language text file in the language file list to be configured. And if the detection result at this moment is that the versions are not consistent, determining that the language text files in the language file list to be configured are not loaded.
In some embodiments of the present application, a corresponding text key (key) value may also be set for each language text file in the list of language files to be configured. Referring to fig. 5, fig. 5 is a flowchart of a method for loading a language text file in a language configuration method according to an embodiment of the present application. The details are as follows:
in step S501, identifying whether a text key corresponding to a language text file that is not loaded in the language file list to be configured already exists in a text dictionary;
in step S502, when it is recognized that a text key exists in a text dictionary, loading a language text file in the language file list to be configured and covering an original language text file corresponding to the text key in the text dictionary; otherwise, a storage record belonging to the text key value is newly built in the text dictionary, and the language text file in the language file list to be configured is loaded into the storage record.
The text dictionary created or updated for the software program or device stores language text files using a key-value storage model. Specifically, as shown in fig. 4, in the key-value storage model, a one-to-one mapping relationship is established between a text key (key) value and a value, and the value is the content of a language text file stored in correspondence with the text key value.
The language text file which is not loaded into the text dictionary comprises two cases, wherein one case is that the language text file does not appear in the text dictionary, namely does not exist in the text dictionary; and the other language text file is that the language text file already exists in the text dictionary, but the version of the language text file has content update and has content difference with the language text file originally existing in the text dictionary. In this embodiment, when the language text file is loaded, the text key value corresponding to the language text file that is not loaded in the language file list to be configured may be identified, and the text key value may be compared with a text key value already existing in the text dictionary, so as to determine whether the text key value already exists in the text dictionary. Furthermore, when it is recognized that the text key exists in the text dictionary, it is indicated that the language text file has already appeared in the text dictionary, but the version of the language text file has content update, at this time, the language text file in the language file list to be configured may be loaded and the original language text file corresponding to the text key in the text dictionary may be overwritten, that is, the newly loaded language text file may replace the original language text file in the text dictionary. When it is recognized that the text key does not exist in the text dictionary, it is indicated that the language text file does not appear in the text dictionary, at this time, a storage record belonging to the text key may be newly created in the text dictionary, and the language text file in the language file list to be configured may be loaded into the storage record.
In this embodiment, after all the language text files that are not loaded in the language file list to be configured complete the loading operation, the language configuration operation of the software program or the device is completed. When the software program or the device is used, a user can trigger different text key value events by carrying out different operations on the software program or the device, when a certain text key value event is triggered, an operating system of the software program or the device can search the text key value from a text dictionary to obtain a language text file corresponding to the text key value, and then the content in the language text file is analyzed and displayed.
In some embodiments of the present application, for a software program or device that has completed a language configuration operation, a text dictionary suitable for a platform operating system is generated in a corresponding platform operating system, and a plurality of language text files may be stored in the text dictionary for one language type. Therefore, after the software program or the device completes the language configuration operation, the text dictionary can be subjected to hot updating processing in the running process of the software program or the device. Specifically, a hot update request may be sent by the software program or the device to a server that performs a language configuration operation, the server returns a hot update file, where the hot update file includes a latest language text file resource, and the hot update process on the text dictionary may be implemented by loading the latest language text file in the hot update file. Therefore, when a software program or equipment needs to update the text dictionary after being started, the dynamic updating and the expansion of the text dictionary are supported by acquiring the updated text from the server and loading the updated text into the text dictionary, the flexibility is strong, and the technical defects that in the existing language configuration method, one language corresponds to one language text file, the updating and the modification are required to be carried out on the original language text file, once the language text file is loaded, the text content cannot be modified, and the text modification process is lack of flexibility are overcome.
In some embodiments of the present application, please refer to fig. 6, and fig. 6 is a schematic flowchart of another method for performing a language configuration operation in a language configuration method according to an embodiment of the present application. The details are as follows:
in step S601, a language configuration framework of the operating system to be configured is obtained;
in step S602, the loaded language text file and the language configuration architecture of the operating system to be configured are fused.
In this embodiment, when the same software program or device is developed in different operating systems, the different operating systems have different language configuration architectures. For example, when the language text file is embodied in the same language text file and respectively configured in two different operating systems, the positions of the two operating systems for opening the language text file may be different. In this embodiment, when performing a language configuration operation on an operating system to be configured, the language configuration architecture of the operating system to be configured may be obtained first, and the language configuration architecture may be a configuration file set in the operating system to be configured. And then, acquiring a language text file according to the language text file list to be configured, and fusing the acquired language text file and the configuration file arranged in the operating system to be configured, so as to generate a text dictionary suitable for the operating system to be configured. The merging process includes, but is not limited to, replacing the language text file with the same content in the language text file list with the language text file existing in the configuration file.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In some embodiments of the present application, please refer to fig. 7, and fig. 7 is a schematic structural diagram of a language configuration apparatus provided in the embodiments of the present application, which is detailed as follows:
the language configuration device comprises: an obtaining module 701, a processing module 702, and an executing module 703. The obtaining module 701 is configured to obtain language configuration information, where the language configuration information includes language file format information. The processing module 702 is configured to obtain a language file list to be configured from a preset language text database according to the language file format information. The execution module 703 is configured to load a language text file according to the list of language files to be configured, so as to complete a language configuration operation.
The language configuration device corresponds to the language configuration method one by one.
In some embodiments of the present application, please refer to fig. 8, and fig. 8 is a schematic diagram of an electronic device implementing a language configuration method according to an embodiment of the present application. As shown in fig. 8, the electronic apparatus 8 of this embodiment includes: a processor 81, a memory 82 and a computer program 83, such as a language configuration program, stored in said memory 82 and operable on said processor 81. The processor 81 implements the steps in the various language configuration method embodiments described above when executing the computer program 82. Alternatively, the processor 81 implements the functions of the modules/units in the above-described device embodiments when executing the computer program 83.
Illustratively, the computer program 83 may be partitioned into one or more modules/units that are stored in the memory 82 and executed by the processor 81 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 83 in the electronic device 8. For example, the computer program 83 may be divided into:
the acquisition module is used for acquiring language configuration information, and the language configuration information comprises language file format information;
the processing module is used for acquiring a language file list to be configured from a preset language text database according to the language file format information;
and the execution module is used for loading the language text file according to the language file list to be configured so as to complete the language configuration operation.
The electronic device may include, but is not limited to, a processor 81, a memory 82. Those skilled in the art will appreciate that fig. 8 is merely an example of an electronic device 8 and does not constitute a limitation of the electronic device 8 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 81 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 82 may be an internal storage unit of the electronic device 8, such as a hard disk or a memory of the electronic device 8. The memory 82 may also be an external storage device of the electronic device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 8. Further, the memory 82 may also include both an internal storage unit and an external storage device of the electronic device 8. The memory 82 is used for storing the computer program and other programs and data required by the electronic device. The memory 82 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A language configuration method, the language configuration method comprising:
acquiring language configuration information, wherein the language configuration information comprises language file format information;
acquiring a language file list to be configured from a preset language text database according to the language file format information;
and loading a language text file according to the language file list to be configured so as to complete the language configuration operation.
2. A language configuration method according to claim 1, wherein said predetermined language text database stores language text files according to language type classification, and a plurality of file formats are provided for each stored language text file.
3. The method according to claim 1, wherein the step of loading a language text file according to the list of language files to be configured to complete a language configuration operation comprises:
detecting whether the language text files in the language file list to be configured are not loaded;
and if so, loading the language text file which is not loaded in the language file list to be configured so as to complete the language configuration operation.
4. The method according to claim 3, wherein the step of detecting whether the language text file in the list of language files to be configured is not loaded comprises:
detecting whether the language text file in the language file list to be configured exists in a text dictionary, and if not, determining that the language text file is not loaded; or
And when detecting that the language text file in the language file list to be configured exists in the text dictionary, detecting whether the version of the language text file in the language file list to be configured is consistent with the version of the language text file in the text dictionary, and if not, determining that the language text file is not loaded.
5. The language configuration method according to claim 3, wherein each language text file in the language file list to be configured has a text key value, and the step of performing a loading operation on a language text file that is not loaded in the language file list to be configured to complete a language configuration operation comprises:
identifying whether text key values corresponding to language text files which are not loaded in the language file list to be configured exist in a text dictionary or not;
when a text key value is identified to exist in a text dictionary, loading a language text file in the language file list to be configured and covering an original language text file corresponding to the text key value in the text dictionary; otherwise, a storage record belonging to the text key value is newly built in the text dictionary, and the language text file in the language file list to be configured is loaded into the storage record.
6. The method according to claim 5, wherein after the step of loading the language text file according to the list of the language files to be configured to complete the language configuration operation, the method further comprises:
and carrying out hot updating processing on the text dictionary.
7. The method according to any one of claims 1 to 6, wherein the step of loading a language text file according to the list of language files to be configured to complete a language configuration operation further comprises:
acquiring a language configuration framework of an operating system to be configured;
and fusing the loaded language text file with the language configuration framework of the operating system to be configured.
8. A language configuration apparatus, characterized in that the language configuration apparatus comprises:
the acquisition module is used for acquiring language configuration information, and the language configuration information comprises language file format information;
the processing module is used for acquiring a language file list to be configured from a preset language text database according to the language file format information;
and the execution module is used for loading the language text file according to the language file list to be configured so as to complete the language configuration operation.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the language configuration method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the language configuration method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911293935.2A CN111142965A (en) | 2019-12-16 | 2019-12-16 | Language configuration method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911293935.2A CN111142965A (en) | 2019-12-16 | 2019-12-16 | Language configuration method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111142965A true CN111142965A (en) | 2020-05-12 |
Family
ID=70518370
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911293935.2A Pending CN111142965A (en) | 2019-12-16 | 2019-12-16 | Language configuration method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111142965A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112560477A (en) * | 2020-12-09 | 2021-03-26 | 中科讯飞互联(北京)信息科技有限公司 | Text completion method, electronic device and storage device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5903859A (en) * | 1996-03-27 | 1999-05-11 | Dell Usa, L.P. | Dynamic multi-lingual software module system |
US20130226555A1 (en) * | 2012-02-23 | 2013-08-29 | Microsoft Corporation | Multilingual Build Integration for Compiled Applications |
US20140129543A1 (en) * | 2012-11-02 | 2014-05-08 | Microsoft Corporation | Search service including indexing text containing numbers in part using one or more number index structures |
CN103902275A (en) * | 2012-12-28 | 2014-07-02 | 北京新媒传信科技有限公司 | Method and system for achieving conversion of language versions of applications |
CN104317787A (en) * | 2014-10-23 | 2015-01-28 | 迎新科技有限公司 | Instant communication terminal and information translation method and device thereof |
CN105893337A (en) * | 2015-01-04 | 2016-08-24 | 伊姆西公司 | Method and equipment for text compression and decompression |
CN106843842A (en) * | 2016-12-23 | 2017-06-13 | 光锐恒宇(北京)科技有限公司 | The update method and device of a kind of application profiles |
CN106997364A (en) * | 2016-01-26 | 2017-08-01 | 阿里巴巴集团控股有限公司 | A kind of application resource detection method and device of terminal |
CN109344412A (en) * | 2018-09-20 | 2019-02-15 | 五八有限公司 | A kind of language transfer method, device, equipment and storage medium |
CN109508211A (en) * | 2017-09-13 | 2019-03-22 | 阿里巴巴集团控股有限公司 | A kind of multilingual configuration method, device, system and electronic equipment |
-
2019
- 2019-12-16 CN CN201911293935.2A patent/CN111142965A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5903859A (en) * | 1996-03-27 | 1999-05-11 | Dell Usa, L.P. | Dynamic multi-lingual software module system |
US20130226555A1 (en) * | 2012-02-23 | 2013-08-29 | Microsoft Corporation | Multilingual Build Integration for Compiled Applications |
US20140129543A1 (en) * | 2012-11-02 | 2014-05-08 | Microsoft Corporation | Search service including indexing text containing numbers in part using one or more number index structures |
CN103902275A (en) * | 2012-12-28 | 2014-07-02 | 北京新媒传信科技有限公司 | Method and system for achieving conversion of language versions of applications |
CN104317787A (en) * | 2014-10-23 | 2015-01-28 | 迎新科技有限公司 | Instant communication terminal and information translation method and device thereof |
CN105893337A (en) * | 2015-01-04 | 2016-08-24 | 伊姆西公司 | Method and equipment for text compression and decompression |
CN106997364A (en) * | 2016-01-26 | 2017-08-01 | 阿里巴巴集团控股有限公司 | A kind of application resource detection method and device of terminal |
CN106843842A (en) * | 2016-12-23 | 2017-06-13 | 光锐恒宇(北京)科技有限公司 | The update method and device of a kind of application profiles |
CN109508211A (en) * | 2017-09-13 | 2019-03-22 | 阿里巴巴集团控股有限公司 | A kind of multilingual configuration method, device, system and electronic equipment |
CN109344412A (en) * | 2018-09-20 | 2019-02-15 | 五八有限公司 | A kind of language transfer method, device, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112560477A (en) * | 2020-12-09 | 2021-03-26 | 中科讯飞互联(北京)信息科技有限公司 | Text completion method, electronic device and storage device |
CN112560477B (en) * | 2020-12-09 | 2024-04-16 | 科大讯飞(北京)有限公司 | Text completion method, electronic equipment and storage device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107122368B (en) | Data verification method and device and electronic equipment | |
CN109814524B (en) | Vehicle diagnosis method, device and system | |
US20220179642A1 (en) | Software code change method and apparatus | |
CN110851539A (en) | Metadata verification method and device, readable storage medium and electronic equipment | |
CN109376142B (en) | Data migration method and terminal equipment | |
CN112699151B (en) | Data processing method, device, equipment and medium | |
CN109284126B (en) | Automatic class library updating method and device, electronic equipment and storage medium | |
CN111258990B (en) | Index database data migration method, device, equipment and storage medium | |
CN110990051B (en) | Maintenance method, device, medium and equipment for software package dependency relationship | |
CN110716804A (en) | Method and device for automatically deleting useless resources, storage medium and electronic equipment | |
CN114153473A (en) | Module integration method, device, storage medium and electronic equipment | |
CN112068874B (en) | Continuous integration method and device for software items, terminal equipment and storage medium | |
CN107256167B (en) | Upgrade control method and upgrade control equipment applied to application system migration | |
CN111142965A (en) | Language configuration method and device, electronic equipment and storage medium | |
CN110019040B (en) | Folder processing method, mobile terminal and storage medium | |
CN111694586A (en) | Program initialization method, program initialization device, terminal device, and storage medium | |
CN111290961A (en) | Interface test management method and device and terminal equipment | |
CN110765196A (en) | Method and equipment for generating and executing ETL task | |
CN115981718A (en) | Code publishing method and device, computer equipment and storage medium | |
CN113792026B (en) | Method and device for deploying database script and computer-readable storage medium | |
CN113760237A (en) | Compiling address updating method and device, terminal equipment and readable storage medium | |
US11347533B2 (en) | Enhanced virtual machine image management system | |
CN112527276A (en) | Data updating method and device in visual programming tool and terminal equipment | |
CN107229746B (en) | Terminal, data processing method of multiple derived items and storage medium | |
CN112711435A (en) | Version updating method, version updating device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200512 |