CN112764868A - Automatic switching method for multi-service language runtime based on metadata - Google Patents
Automatic switching method for multi-service language runtime based on metadata Download PDFInfo
- Publication number
- CN112764868A CN112764868A CN202110112236.4A CN202110112236A CN112764868A CN 112764868 A CN112764868 A CN 112764868A CN 202110112236 A CN202110112236 A CN 202110112236A CN 112764868 A CN112764868 A CN 112764868A
- Authority
- CN
- China
- Prior art keywords
- language
- service
- standard
- name
- metadata
- 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
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
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/58—Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Artificial Intelligence (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a metadata-based automatic switching method for multi-service language runtime, which relates to the technical field of software interface display and comprises the following steps: step S1, interface design is carried out according to a plurality of pre-generated metadata to obtain a software interface and a standard language library associated with the software interface, a plurality of standard label names are stored in the standard language library, and each standard label name corresponds to one metadata; step S2, establishing at least one service language library according to the standard language library, and binding the service language library with a pre-configured user organization; and step S3, calling the bound service language library according to an external language switching instruction containing user organization so as to display a software interface according to the service label name in the service language library. The method has the advantages that a set of software interfaces can be provided to meet software naming requirements of user organizations in different industries and different languages, so that the software naming requirements are more suitable for naming habits of users, and customized software development is not needed.
Description
Technical Field
The invention relates to the technical field of software interface display, in particular to a multi-service language runtime automatic switching method based on metadata.
Background
In designing and displaying a software interface, a client company generally makes various requirements for names of menus, buttons, and the like on the software interface due to various reasons such as the scale, management mode, whether to operate across countries, and requirement for different properties of different client companies. Taking a group company as an example, particularly a group company operating in a diversified manner, under the condition that the operation range or the industry of each sub-group managed by a parent group is different, a client has different name requirements for the same function item, such as a project module in project management software, which is commonly called a project in the engineering industry, but is commonly called a case in the lawyer industry, and when the sub-group companies belong to different regions, the client has further requirements for the display language of a software interface. In order to meet the requirements of the client company, the description language of the software interface needs to be modified into the business language required by the client company when the software interface is developed.
In the prior art, corresponding entries are usually retrieved according to keywords, and then all entries are replaced according to a target business language so as to achieve the purpose of changing a software display language.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a multi-service language runtime automatic switching method based on metadata, which comprises the following steps:
step S1, interface design is carried out according to a plurality of pre-generated metadata to obtain a software interface and a standard language library associated with the software interface, a plurality of standard label names are stored in the standard language library, and each standard label name corresponds to one metadata;
step S2, establishing at least one service language library according to the standard language library, and binding the service language library with a pre-configured user organization;
a plurality of service label names are stored in the service language library, and each service label name corresponds to the standard label name one by one and corresponds to one metadata respectively;
step S3, according to the external language switching instruction containing the user organization, calling the service language library bound by the user organization to display the software interface according to the service label name in the service language library.
Preferably, in step S2, a management interface is provided for at least one administrator associated with the user organization to establish the business language library according to the standard language library and bind the business language library to the user organization.
Preferably, in step S2, the administrator obtains the corresponding standard tag name through the management interface and according to the metadata matching of the name to be modified, modifies the standard tag name to obtain a tag modified name, and stores the rest of the standard tag names and the tag modified names in the standard language library as the service tag names in the service language library.
Preferably, the metadata includes a plurality of menu unit data and a plurality of control metadata associated with each menu metadata;
the service language database includes a plurality of storage areas, and each storage area correspondingly stores one menu metadata and the standard label name corresponding to each control metadata associated with the menu metadata.
Preferably, in step S2, the storage area where the menu metadata belongs to is obtained according to the metadata matching of the name to be modified, and the corresponding standard tag name is obtained through matching in the storage area.
Preferably, the standard tag name and the tag modification name belong to the same language.
Preferably, in step S2, an authority allocation unit is provided for a super administrator to allocate authority for business language management, so that the administrator allocated with the authority for business language management manages the standard language library and the business language library.
Preferably, before executing step S3, the method further includes:
respectively translating each service tag name in the service language library to obtain a tag translation name of a preset language, storing each tag translation name into a pre-established language library associated with the preset language, and binding the language library with the user organization;
in step S3, the language switching instruction further includes the preset language, so as to call the corresponding language library according to the preset language, and further display the software interface according to the label translation name in the language library.
Preferably, in the step S3, the corresponding service language library is obtained according to the user organization matching, and the corresponding service label names are obtained according to the respective metadata corresponding to the software interface by matching, so as to respectively call the respective service label names to display the software interface.
The technical scheme has the following advantages or beneficial effects:
1) the software naming requirements of user organizations in different industries and different languages can be met by providing a set of software interfaces, so that customized software development is not needed under the condition of facing the requirements of different industry language names and different language names of customers;
2) the user organization can automatically adjust the standard label name according to the self requirement, so that the standard label name is more suitable for the naming habit of the user, the communication cost is reduced, and the user satisfaction is effectively improved;
3) the display of the software interface is realized by actively calling the service language library, so that the adjustment of the standard label name can be conveniently carried out in the running process of the software without influencing the normal use of a user, and the software system does not need to be restarted or reinstalled.
Drawings
FIG. 1 is a flow chart illustrating a method for automatically switching between multiple service languages based on metadata according to a preferred embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present invention is not limited to the embodiment, and other embodiments may be included in the scope of the present invention as long as the gist of the present invention is satisfied.
In a preferred embodiment of the present invention, based on the above problems in the prior art, there is provided a method for automatically switching between multiple service languages when running based on metadata, as shown in fig. 1, including:
step S1, interface design is carried out according to a plurality of pre-generated metadata to obtain a software interface and a standard language library associated with the software interface, a plurality of standard label names are stored in the standard language library, and each standard label name corresponds to one metadata;
step S2, establishing at least one service language library according to the standard language library, and binding the service language library with a pre-configured user organization;
a plurality of business label names are stored in the business language library, and each business label name corresponds to a standard label name one by one and corresponds to a metadata respectively;
and step S3, calling a service language library bound by the user organization according to an external language switching instruction containing the user organization so as to display a software interface according to the service label name in the service language library.
Specifically, in this embodiment, the technical solution aims to realize multi-service language display of a software interface, so as to meet the requirement that customers in different industries or customers have different names for the same software function name when the customers have multiple sub-groups or sub-companies. Firstly, interface design is carried out based on metadata, the endogenous metadata of the system can be reused to the maximum extent in the design process, the consistency of data and service is ensured, and the minimum redundant data can be realized. The standard label name in the standard language library associated with the software interface, which is obtained by designing the interface based on the metadata, can be a relatively universal name so as to meet different customer requirements to the greatest extent.
In this embodiment, the software for initially delivering the client includes the software interface and the standard language library associated therewith, and the client may modify part or all of the standard tag names in the standard language library into service tag names adapted to the industry requirements according to the industry requirements of the client, and store the service tag names in the corresponding service language library. Preferably, the customer may not modify the software, and the software interface is displayed according to each standard label name in the standard language library when the software is used.
Preferably, the service language libraries may be multiple, and may be applicable to a group company across industries, and industries related to the group company may include at least an industry a and an industry B, where the industry a and the industry B both have respective industry languages, and then a first service language library corresponding to the industry a and a second service language library corresponding to the industry B may be respectively generated according to the standard language libraries, and the first service language library is bound to a user organization corresponding to the industry a, and the second service language library is bound to a user organization corresponding to the industry B. And then, when the user organization of the industry A logs in the software interface, the bound first business language library can be called to display the software interface according to each business label name in the first business language library, and when the user organization of the industry B logs in the software interface, the bound second business language library can be called to switch to display the software interface according to each business label name in the second business language library.
Furthermore, each metadata corresponding to the software interface is associated with a standard tag name, so that a client can modify the standard tag name corresponding to a single metadata conveniently without affecting the standard tag names corresponding to other metadata.
Furthermore, because the technical scheme is that the software interface is displayed in an active calling mode according to the external language switching instruction, the modification of the standard label name can be realized in the software running process without influencing the normal use of other users, the software interface used by other users is the software interface before modification, and the display and the refresh of the software interface can be carried out only when the interface is refreshed or is logged in again and the calling of the service language library is carried out again, namely, the software interface after the standard label name is modified is refreshed.
In a preferred embodiment of the present invention, in step S2, a management interface is provided for at least one administrator associated with the user organization to establish a business language library according to the standard language library and bind the business language library to the user organization.
Specifically, in this embodiment, by providing the management interface, after the software is delivered and used, an administrator of the software system of the client can manage the standard language library and the business language library according to the requirements of the administrator through the management interface. When the administrator does not set the standard language library at all, the software interface is displayed according to the standard language library by default, after the administrator sets the standard language library, namely after at least one business language library is established, the corresponding user organization can switch among the business language libraries or between the business language library and the standard language library according to the requirements so as to switch the display content of the software interface and meet the business requirements of different industries or different subsidiaries of the user organization.
In a preferred embodiment of the present invention, in step S2, the administrator obtains a corresponding standard tag name through the management interface and according to the metadata matching of the name to be modified, modifies the standard tag name to obtain a tag modified name, and stores the rest of the standard tag names and the tag modified names in the standard language library as the service tag names in the service language library.
In a preferred embodiment of the present invention, the metadata includes a plurality of menu cell data and a plurality of control metadata associated with each menu metadata;
the service language database includes a plurality of storage areas, and each storage area correspondingly stores a menu metadata and a standard label name corresponding to each control metadata associated with the menu metadata.
In the preferred embodiment of the present invention, in step S2, the storage area where the menu metadata belongs to is obtained according to the metadata matching of the name to be modified, and the corresponding standard tag name is obtained by matching in the storage area.
Specifically, in this embodiment, standard tag names associated with each spatial metadata belonging to the same menu unit data are stored in a centralized manner, so that the standard tag names associated with other metadata are not affected, and the standard tag names can be matched quickly when modification is needed.
In the preferred embodiment of the present invention, the standard tag name and the tag modification name belong to the same language.
In the preferred embodiment of the present invention, in step S2, an authority allocation unit is provided for a super administrator to perform business language management authority allocation, so that the administrator allocated with the business language management authority can manage the standard language library and the business language library.
Specifically, in this embodiment, when the user organization is a group company including a plurality of sub-groups, the super administrator may assign the service language management authority to the administrator of each sub-group, and the administrator of each sub-group manages the standard language library and the service language library corresponding thereto.
In a preferred embodiment of the present invention, before the step S3 is executed, the method further includes:
respectively translating each service label name in a service language library to obtain a label translation name of a preset language, storing each label translation name into a language library which is established in advance and associated with the preset language, and binding the language library with a user organization;
in step S3, the language switching instruction further includes a preset language, so as to call the corresponding language library according to the preset language, and further display the software interface according to the label translation name in the language library.
Specifically, in this embodiment, for each service language library, a corresponding language library may be configured, the label translation names stored in the language library are obtained by translation according to the label names of the services, and according to requirements, one service language library may be associated with multiple language libraries and respectively correspond to different preset languages, so as to meet the service requirements of different regions of the cross-country company. Each standard tag name in the standard language library may be a chinese description, and the corresponding service tag name in the service language library may be a chinese description obtained by modifying part or all of the standard tag names, and further, the tag translation name in the corresponding language library may be english, for example, the standard tag name may be a name, the corresponding service tag name may be a name, and the corresponding tag translation name may be a name. The user A logs in by using Chinese language, the name is displayed at the position corresponding to the displayed name by default after logging in, the user B logs in by using English language, and the name is displayed at the position corresponding to the displayed name by default after logging in. When the user organization does not set the business language, that is, the business language library is not bound, the user logs in and displays the default name, that is, the name is displayed.
In a preferred embodiment of the present invention, in step S3, the corresponding service language library is obtained according to the user organization matching, and the corresponding service label names are obtained according to the metadata corresponding to the software interface, so as to respectively call the service label names to display the software interface.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.
Claims (9)
1. A multi-service language runtime automatic switching method based on metadata is characterized by comprising the following steps:
step S1, interface design is carried out according to a plurality of pre-generated metadata to obtain a software interface and a standard language library associated with the software interface, a plurality of standard label names are stored in the standard language library, and each standard label name corresponds to one metadata;
step S2, establishing at least one service language library according to the standard language library, and binding the service language library with a pre-configured user organization;
a plurality of service label names are stored in the service language library, and each service label name corresponds to the standard label name one by one and corresponds to one metadata respectively;
step S3, according to the external language switching instruction containing the user organization, calling the service language library bound by the user organization to display the software interface according to the service label name in the service language library.
2. The method for automatically switching between multiple service language runtimes according to claim 1, wherein in step S2, a management interface is provided for at least one administrator associated with the user organization to create the service language library according to the standard language library and bind the service language library to the user organization.
3. The method for automatically switching between multiple service languages when running according to claim 2, wherein in step S2, the administrator obtains the corresponding standard tag name through the management interface and according to the metadata matching of the name to be modified, modifies the standard tag name to obtain a tag modified name, and stores the rest of the standard tag names and the tag modified names in the standard language library as the service tag names.
4. The multi-service language runtime automatic switching method of claim 3, wherein said metadata comprises a plurality of menu element data and a plurality of control element metadata associated with each of said menu element data;
the standard language database includes a plurality of storage areas, and each storage area correspondingly stores one menu metadata and the standard label name corresponding to each control metadata associated with the menu metadata.
5. The method for automatically switching between multiple service languages when running according to claim 4, wherein in step S2, the storage area where the menu metadata belongs is obtained according to the metadata matching of the name to be modified, and the corresponding standard tag name is obtained by matching in the storage area.
6. The method of claim 3, wherein the standard tag name and the tag modification name are in the same language.
7. The method for automatic switching during multiple service language runtimes according to claim 2, wherein in step S2, an authority allocation unit is provided for a super administrator to perform service language management authority allocation, so that the administrator allocated with the service language management authority can manage the standard language library and the service language library.
8. The multi-service language runtime automatic switching method according to claim 1, further comprising, before performing the step S3:
respectively translating each service tag name in the service language library to obtain a tag translation name of a preset language, storing each tag translation name into a pre-established language library associated with the preset language, and binding the language library with the user organization;
in step S3, the language switching instruction further includes the preset language, so as to call the corresponding language library according to the preset language, and further display the software interface according to the label translation name in the language library.
9. The method for automatically switching between multiple service language runtimes according to claim 1, wherein in step S3, the corresponding service language libraries are obtained according to the user organization matching, and the corresponding service label names are obtained according to the respective metadata corresponding to the software interface by matching, so as to respectively call the respective service label names to display the software interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110112236.4A CN112764868A (en) | 2021-01-27 | 2021-01-27 | Automatic switching method for multi-service language runtime based on metadata |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110112236.4A CN112764868A (en) | 2021-01-27 | 2021-01-27 | Automatic switching method for multi-service language runtime based on metadata |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112764868A true CN112764868A (en) | 2021-05-07 |
Family
ID=75706167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110112236.4A Pending CN112764868A (en) | 2021-01-27 | 2021-01-27 | Automatic switching method for multi-service language runtime based on metadata |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112764868A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6396515B1 (en) * | 1998-12-15 | 2002-05-28 | International Business Machines Corporation | Method, system and computer program product for dynamic language switching in user interface menus, help text, and dialogs |
CN1577263A (en) * | 2003-06-26 | 2005-02-09 | 华为技术有限公司 | Multilanguage-supporting user interface realizing method and apparatus thereof |
CN101714086A (en) * | 2009-12-22 | 2010-05-26 | 中兴通讯股份有限公司 | Method and device for choosing software interface languages |
CN107329739A (en) * | 2017-06-08 | 2017-11-07 | 石化盈科信息技术有限责任公司 | Page menus method for customizing and device |
CN111061525A (en) * | 2018-10-16 | 2020-04-24 | 福建天泉教育科技有限公司 | Internationalized interface switching method and storage medium |
-
2021
- 2021-01-27 CN CN202110112236.4A patent/CN112764868A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6396515B1 (en) * | 1998-12-15 | 2002-05-28 | International Business Machines Corporation | Method, system and computer program product for dynamic language switching in user interface menus, help text, and dialogs |
CN1577263A (en) * | 2003-06-26 | 2005-02-09 | 华为技术有限公司 | Multilanguage-supporting user interface realizing method and apparatus thereof |
CN101714086A (en) * | 2009-12-22 | 2010-05-26 | 中兴通讯股份有限公司 | Method and device for choosing software interface languages |
CN107329739A (en) * | 2017-06-08 | 2017-11-07 | 石化盈科信息技术有限责任公司 | Page menus method for customizing and device |
CN111061525A (en) * | 2018-10-16 | 2020-04-24 | 福建天泉教育科技有限公司 | Internationalized interface switching method and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7926030B1 (en) | Configurable software application | |
US5990907A (en) | Automatic font management within an operating system environment | |
US8200705B2 (en) | Method and apparatus for applying database partitioning in a multi-tenancy scenario | |
US5835768A (en) | Computer operating system providing means for formatting information in accordance with specified cultural preferences | |
AU679637B2 (en) | Interface device and method | |
US20110010420A1 (en) | Client environment creation system, client environment creation method, client environment creation program and storage medium | |
CN112417051A (en) | Container arrangement engine resource management method and device, readable medium and electronic equipment | |
US5799149A (en) | System partitioning for massively parallel processors | |
US11182406B2 (en) | Increased data availability during replication | |
CN101697127A (en) | Method for internationalizing software system | |
CN104750555A (en) | Management method and device for progresses in Android program | |
CN101582071A (en) | System and method for updating data | |
CN114546563B (en) | Multi-tenant page access control method and system | |
WO2005052791A2 (en) | Mapping of dynamic link libraries in computing devices | |
CN113626095A (en) | Switching method and switching system of configuration center, electronic equipment and storage medium | |
CN112764868A (en) | Automatic switching method for multi-service language runtime based on metadata | |
CN112434037A (en) | Data processing method, processing device, data processing apparatus, and storage medium | |
CN101373464B (en) | Method, apparatus and system for automatically adopting form setting | |
US5881227A (en) | Use of daemons in a partitioned massively parallel processing system environment | |
CN100428151C (en) | C/C++ module hot plug-in and pull-off method of base version in large scale concurrent on-line trade | |
CN108804236B (en) | AIDL file sharing method and system | |
CN111459907B (en) | Method, system and storage medium for configuring main data through model | |
US20110154374A1 (en) | Apparatus and method for managing customized application | |
EP4154129A1 (en) | Database management methods and associated apparatus | |
US20190012187A1 (en) | Web-application-launch application programming interfaces |
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: 20210507 |