CN115220722A - Method, device, equipment and medium for back-end internationalization - Google Patents

Method, device, equipment and medium for back-end internationalization Download PDF

Info

Publication number
CN115220722A
CN115220722A CN202210937583.5A CN202210937583A CN115220722A CN 115220722 A CN115220722 A CN 115220722A CN 202210937583 A CN202210937583 A CN 202210937583A CN 115220722 A CN115220722 A CN 115220722A
Authority
CN
China
Prior art keywords
internationalized
content
target
field
language
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
Application number
CN202210937583.5A
Other languages
Chinese (zh)
Inventor
季赛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shuce Software Co ltd
Original Assignee
Shanghai Shuce Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Shuce Software Co ltd filed Critical Shanghai Shuce Software Co ltd
Priority to CN202210937583.5A priority Critical patent/CN115220722A/en
Publication of CN115220722A publication Critical patent/CN115220722A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for back-end internationalization. The method comprises the following steps: when a target request sent by a front-end system is received, determining to-be-internationalized content corresponding to the target request; determining an internationalized language based on a language field in the target request; based on the international language, determining target international content matched with the content to be internationalized from the international information table and returning the target international content to the front-end system; the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field. The technical scheme of the invention determines the contents to be internationalized based on the target request sent by the front end, and internationalizes the contents to be internationalized through the rear end so as to feed back the contents to be internationalized to the front end, so that the problem that the existing front end internationalization scheme is difficult to internationalize the rear end data is solved, the contents to be internationalized on the rear end are internationalized, and are displayed on the interface corresponding to the front end, and the experience of a front end user is improved.

Description

Method, device, equipment and medium for back-end internationalization
Technical Field
The invention relates to the technical field of software development, in particular to a method, a device, equipment and a medium for back-end internationalization.
Background
In current software development, cross-border communication, business and cooperation are more and more. The situation that a user is directed to use the system and relates to a plurality of countries is more and more, and the requirement of applying international exhibition is more widely applied.
The existing internationalization scheme is mainly to internationalize the contents to be internationalized through a front end and display the internationalized contents on a display interface of the front end. However, some contents that need to be internationalized are not stored in the front end, and it is difficult for the front end to internationalize the contents generated by the back end.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for back-end internationalization, which are realized.
According to an aspect of the present invention, there is provided a method of backend internationalization, the method comprising:
when a target request sent by a front-end system is received, determining to-be-internationalized content corresponding to the target request;
determining an internationalized language based on a language field in the target request;
based on the international language, determining target international content matched with the content to be internationalized from an international information table and returning the target international content to a front-end system;
the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field.
According to another aspect of the present invention, there is provided a backend internationalized apparatus including:
the device comprises a to-be-internationalized content determining module, a to-be-internationalized content determining module and a content analyzing module, wherein the to-be-internationalized content determining module is used for determining to-be-internationalized content corresponding to a target request when the target request sent by a front-end system is received;
the international language type determining module is used for determining the international language type based on the language field in the target request;
the target international content determining module is used for determining target international content matched with the content to be internationalized from an international information table based on the international language and returning the target international content to the front-end system;
the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the back-end internationalized method of any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement a method of backend internationalization according to any of the embodiments of the present invention when executed.
According to the technical scheme of the embodiment of the invention, when a target request sent by a front-end system is received, the content to be internationalized corresponding to the target request is determined; determining an internationalized language based on a language field in the target request; determining target international content matched with the content to be internationalized from the international information table based on the international language and returning the target international content to the front-end system; the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field. The technical scheme of the invention determines the content to be internationalized based on the target request sent by the front end, and internationally processes the content to be internationalized through the rear end so as to feed back the content to be internationalized to the front end, thereby solving the problem that the existing front end internationalization scheme is difficult to internationalize the rear end data, realizing internationalizing processing on the content to be internationalized on the rear end, displaying the content on the interface corresponding to the front end, and improving the experience of the front end user.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a back-end internationalization method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for backend internationalization according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a back-end internationalization apparatus according to a third embodiment of the present invention;
FIG. 4 shows a schematic block diagram of an electronic device that may be used to implement an embodiment of the invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a backend internationalization method according to an embodiment of the present invention, where the method is applicable to a case where data stored in a backend needs to be internationalized, and the method may be performed by a backend internationalization apparatus, where the backend internationalization apparatus may be implemented in a form of hardware and/or software, and the backend internationalization apparatus may be configured in a mobile terminal or a PC. As shown in fig. 1, the method includes:
s110, when a target request sent by a front-end system is received, determining the content to be internationalized corresponding to the target request.
It should be noted that the internationalization processing refers to converting a text in a current language or a default language into a text in another language, for example, if the current language of the text is chinese and the other language is english, the text can be converted into an english expression through the internationalization processing.
The front-end system may be a browser, the back-end system may be a server providing services for the front-end system, the front-end system may send a request to the back-end system, the back-end may process the request, the request sent by the front-end to the back-end is a target request, for example, the target request is an HTTP request, the to-be-internationalized content refers to content that needs to be translated, and the to-be-internationalized content corresponds to the target request.
Specifically, when receiving a request sent by the front-end system, the back-end may analyze the request, determine a service logic to be executed by the request, and use information content related to the execution of the service logic as content to be internationalized corresponding to the target request. For example, the result of business logic processing may be taken as the content to be internationalized.
On the basis of the above technical solution, before determining the content to be internationalized corresponding to the target request when the target request sent by the front-end system is received, the method further includes: determining a target statement in a database of the backend system; establishing an internationalized information table to be processed based on the target statement, and filling field contents in the internationalized information table to be processed to obtain the internationalized information table; and importing the internationalized information table into a back-end system based on a data reconstruction tool.
The target statement refers to a statement used for creating a table in the database, a table may be created in the database based on the statement, the to-be-processed internationalized information table may be a table newly created in the database, corresponding fields, such as a placeholder field, a type field, a language field, and an internationalized content field, may be used in the table, and the data reconstruction tool may be liquidase, which is an open source database reconstruction tool used for tracking, managing, and applying changes to the database.
Specifically, a table, that is, a to-be-processed internationalized information table, may be created in the SQL database using the CREATE TABL statement, where the to-be-processed internationalized information table includes a plurality of fields, for example, a placeholder field, a type field, a language field, and an internationalized content field. It can be understood that the created to-be-processed internationalized information table is a null table, so that data can be written INTO the null table by using an INSERT INTOs statement, that is, field values corresponding to fields in the table are filled, the filled table is used as the internationalized information table, and the information table is imported or planned to a back-end system by using a reconstruction tool. The method has the advantages that after the to-be-internationalized content corresponding to the target request is determined, the to-be-internationalized content corresponding to the to-be-internationalized content can be searched in the created internationalized information table, and the internationalized processing efficiency of the to-be-internationalized content is improved.
On the basis of the technical scheme, when a target request sent by a front-end system is received, determining the content to be internationalized corresponding to the target request comprises the following steps: when a target request sent by a front-end system is received, calling a system interface corresponding to the target request; and executing logic processing based on the system interface, and determining a processing result as the content to be internationalized.
The system interface may be an interface of a back-end system, for example, the system interface is an inquiry interface, a log obtaining interface, and the like, different interfaces may execute different logics and implement corresponding functions, the inquiry interface corresponds to an inquiry function, and the log obtaining interface corresponds to a log obtaining function.
Specifically, the target request may be parsed after being received, for example, parsing out the request header and the request body, parsing out the specific request content, or what business logic needs to be executed. Further, an interface corresponding to the target request is called to implement a response to the target request, for example, the target request is a query request, and upon receiving the request, a query interface in the backend system may be called to execute logic corresponding to the query. It should be noted that, the processing result of the normal logic processing may be a successful processing or a failed processing, if the processing result is a successful processing, the successful content is usually fed back to the front end, and if the processing result is a failed processing, the reason of the failure may also be fed back to the front end, so that the user at the front end can know the error reporting information corresponding to the failure of the business logic processing. In this case, the result of the above processing may be regarded as the content to be internationalized.
And S120, determining the international language based on the language field in the target request.
The language field may be a field included in the target request, and the field may be used to indicate an internationalized language, for example, the field name of the language field is language, the field value of the language field is CN or EN, CN represents the language of chinese, and EN represents the language of english. The internationalized language refers to a language that a user desires to display on the interface of the front end.
Specifically, the target request may be analyzed to obtain a language field in the target request, and a language type desired by the user, that is, an internationalized language type, may be determined according to the language field.
On the basis of the technical scheme, the determining an internationalized language based on the language field in the target request includes: and acquiring a request header of the target request, and determining the international language according to a language field in the request header.
In practical application, the HTTP server object represents a request of a front end, when the front end accesses a server through an HTTP protocol, all information in an HTTP request header is encapsulated in the object, and the request header of a target request can be acquired by a method provided by the servettrequest object. Further, a field value corresponding to a language field in the request header is determined, an international language is determined according to the field value of the field, and different field values are used for representing different languages.
And S130, based on the international language, determining target international content matched with the content to be internationalized from the international information table and returning the target international content to the front-end system.
The target international content refers to content obtained after international processing is performed on the to-be-internationalized content according to international languages, the international information table comprises a placeholder field, a type field, a language field and an international content field, the placeholder field can be used for representing different texts, the type field can be used for representing types of the texts, the types of the texts can be abnormal information or a fixed table, the language fields correspond to different languages, and the international content field is used for representing the international content corresponding to different texts.
Specifically, the internationalized information table stores internationalized contents corresponding to different texts, for example, the text may be "command", and accordingly, the internationalized content corresponding to "command" in the internationalized information table is "command". After the internationalized information table is constructed and the content to be internationalized is determined, a text matched with the content to be internationalized can be searched in the internationalized information table, and the internationalized content corresponding to the text is used as the target internationalized content and fed back to the front end.
For example, if the content to be internationalized is "command and error", it may be determined whether there is a text "command and error" in the internationalized information table, and then find the corresponding internationalized content, that is, the internationalized content corresponding to the internationalized language, based on the text. If the international language is English, the corresponding international content is ' command and wrong ', and based on the command and the wrong ', the international content can be used as target international content of ' command and error ' of the content to be internationalized, and is fed back to the front-end system.
On the basis of the technical solution, the determining, based on the international language, target international content matched with the content to be internationalized from an international information table and returning the target international content to a front-end system includes: determining a target field matched with the content to be internationalized in an internationalized information table; and searching the internationalized content corresponding to the target field based on the target field and the internationalized language to determine the target internationalized content.
The target field may be a place-occupying field in the information table internationally, a field name of the field may be a place holder, and in order to distinguish different texts, the different texts may be used as field values of the place-occupying field.
Specifically, the placeholder field in the internationalized information table may be used as the target field, the text included in the content to be internationalized is directly compared and matched with each field value of the placeholder field, the field value identical to the text of the content to be internationalized is determined, and the internationalized content corresponding to the text is searched in the internationalized information table based on the text corresponding to the field value, that is, the target internationalized content.
On the basis of the technical scheme, the contents to be internationalized comprise: exception handling information and a fixed table;
the abnormal information refers to some error reporting, which may be caused by incomplete data or unavailable downstream service, when the back end executes the logic corresponding to the target request, and therefore, the corresponding error reporting information may be used as the abnormal processing information, the fixed table includes a menu authority and a value set, the menu authority refers to a menu tree in the front end display interface, and the value set refers to a text or an option commonly used by the front end system. For example, a value set may be "yes" or "no". The exception handling information and the text corresponding to the fixed table can be used as the content to be internationalized, and are fed back to the front end through the internationalization processing of the rear end.
In practical application, the content to be internationalized can be abnormal information or a fixed table, and after the abnormal information is internationalized, the internationalized abnormal information can be fed back to the front end and displayed to the user, that is, the internationalized content is displayed in a language expected by the user. When the fixed table is used, the text information corresponding to the fixed table can be internationally processed.
According to the technical scheme of the embodiment of the invention, when a target request sent by a front-end system is received, the content to be internationalized corresponding to the target request is determined; determining an internationalized language based on a language field in the target request; based on the international language, determining target international content matched with the content to be internationalized from the international information table and returning the target international content to the front-end system; the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field. The technical scheme of the invention determines the contents to be internationalized based on the target request sent by the front end, and internationalizes the contents to be internationalized through the rear end so as to feed back the contents to be internationalized to the front end, so that the problem that the existing front end internationalization scheme is difficult to internationalize the rear end data is solved, the contents to be internationalized on the rear end are internationalized, and are displayed on the interface corresponding to the front end, and the experience of a front end user is improved.
Example two
Fig. 2 is a flowchart of a method for backend internationalization according to a second embodiment of the present invention, which is a preferred embodiment of the foregoing embodiment, and reference may be made to the technical solution of this embodiment for a specific implementation manner of the embodiment. The technical terms that are the same as or corresponding to the above-mentioned embodiments are not described in detail herein.
As shown in fig. 2, the method includes:
after the HTTP request is received and the business logic is processed, before the data is returned, the language field in the request header is judged, the language of the data needing to be returned is judged, and then the data needing to be returned is inquired according to the language.
The method comprises the following steps:
(1) An internationalized information table is newly created for storing internationalized contents, and the table fields are as follows:
value, internationalized content, non-empty
Languang: language type, non-empty
Type: type, non-empty
Placeholder: placeholders, non-null
(2) When the project is started, the internationalized information is stored in the cache, and the cache is refreshed when the internationalized information is newly added or modified.
(3) Defining an AOP section of a Controller layer, acquiring a request header through HttpServletRequest, judging whether a Language field exists in the request header, if so, processing returned content, and inquiring corresponding Value, namely internationalized content according to Placeholder, type and Language.
Eg: when the following request header contains language = en _ US is received:
POST/gw/ideas-ap-service/api/ideas/core/plant HTTP/1.1
Accept:application/json,text/plain,*/*
Accept-Encoding:gzip,deflate
Accept-Language:zh-CN,zh;q=0.9
ApplicationCode:ideas
User-Agent:Mozilla/5.0(Macintosh;Intel Mac OS X 10_15_7)
AppleWebKit/537.36(KHTML,like Gecko)Chrome/103.0.0.0
Safari/537.36
language:en_US
when the back-end processing is abnormal, the following contents are returned:
Figure BDA0003784080880000101
according to the technical scheme of the embodiment of the invention, when a target request sent by a front-end system is received, the content to be internationalized corresponding to the target request is determined; determining an internationalized language based on a language field in the target request; based on the international language, determining target international content matched with the content to be internationalized from the international information table and returning the target international content to the front-end system; the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field. The technical scheme of the invention determines the contents to be internationalized based on the target request sent by the front end, and internationalizes the contents to be internationalized through the rear end so as to feed back the contents to be internationalized to the front end, so that the problem that the existing front end internationalization scheme is difficult to internationalize the rear end data is solved, the contents to be internationalized on the rear end are internationalized and displayed on the interface corresponding to the front end, and the experience of a front end user is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a backend internationalization apparatus according to a third embodiment of the present invention.
As shown in fig. 3, the apparatus includes:
a to-be-internationalized content determining module 310, configured to determine, when a target request sent by a front-end system is received, a to-be-internationalized content corresponding to the target request;
an internationalized language determination module 320 configured to determine an internationalized language based on the language field in the target request;
a target international content determining module 330, configured to determine, based on the international language, a target international content matched with the content to be internationalized from an international information table, and return the target international content to a front-end system;
the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field.
On the basis of the above devices, the to-be-internationalized content determining module 310 includes:
the interface calling module is used for calling a system interface corresponding to a target request when receiving the target request sent by a front-end system;
and the logic processing module is used for executing logic processing based on the system interface and determining a processing result as the content to be internationalized.
On the basis of the foregoing apparatus, the international language type determining module 320 includes:
and the language type acquisition module is used for acquiring a request header of the target request and determining the internationalized language type according to a language field in the request header.
On the basis of the above device, the target international content determining module 330 includes:
the target field determining module is used for determining a target field matched with the content to be internationalized in the internationalized information table;
and the international content searching module is used for searching the international content corresponding to the target field based on the target field and the international language so as to determine the international content as the target international content.
On the basis of the device, the device further comprises:
the target statement determining module is used for determining a target statement in a database of the back-end system;
the international information table building module is used for building a to-be-processed international information table by the target statement and filling field contents in the to-be-processed international information table to obtain the international information table;
and the import module is used for importing the internationalized information table into a back-end system based on a data reconstruction tool.
On the basis of the device, the content to be internationalized comprises:
exception handling information and/or fixed tables; wherein the fixed table includes menu permissions and a set of values.
According to the technical scheme of the embodiment of the invention, when a target request sent by a front-end system is received, the content to be internationalized corresponding to the target request is determined; determining an internationalized language based on a language field in the target request; determining target international content matched with the content to be internationalized from the international information table based on the international language and returning the target international content to the front-end system; the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field. The technical scheme of the invention determines the contents to be internationalized based on the target request sent by the front end, and internationalizes the contents to be internationalized through the rear end so as to feed back the contents to be internationalized to the front end, so that the problem that the existing front end internationalization scheme is difficult to internationalize the rear end data is solved, the contents to be internationalized on the rear end are internationalized and displayed on the interface corresponding to the front end, and the experience of a front end user is improved.
The back-end internationalization device provided by the embodiment of the invention can execute the back-end internationalization method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
FIG. 4 shows a schematic block diagram of an electronic device 40 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM) 42, a Random Access Memory (RAM) 43, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 42 or the computer program loaded from a storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data necessary for the operation of the electronic apparatus 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to the bus 44.
A number of components in the electronic device 40 are connected to the I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, etc.; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 41 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. Processor 41 performs the various methods and processes described above, such as the back-end internationalized method.
In some embodiments, the method of backend internationalization may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 40 via the ROM 42 and/or the communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the back-end internationalization method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the backend internationalized method by any other suitable means (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of backend internationalization, comprising:
when a target request sent by a front-end system is received, determining to-be-internationalized content corresponding to the target request;
determining an internationalized language based on a language field in the target request;
based on the international language, determining target international content matched with the content to be internationalized from an international information table and returning the target international content to a front-end system;
the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field.
2. The method according to claim 1, wherein the determining, when receiving a target request sent by a front-end system, content to be internationalized corresponding to the target request comprises:
when a target request sent by a front-end system is received, calling a system interface corresponding to the target request;
and executing logic processing based on the system interface, and determining a processing result as the content to be internationalized.
3. The method of claim 1, wherein determining an internationalized language based on the language field in the target request comprises:
and acquiring a request header of the target request, and determining an internationalized language according to a language field in the request header.
4. The method according to claim 1, wherein the determining and returning the target international content matching the content to be internationalized to a head-end system from an international information table based on the international language comprises:
determining a target field matched with the content to be internationalized in an internationalized information table;
and searching the internationalized content corresponding to the target field based on the target field and the internationalized language to determine the target internationalized content.
5. The method according to claim 1, wherein before determining the content to be internationalized corresponding to the target request when the target request sent by the front-end system is received, the method further comprises:
determining a target statement in a database of the backend system;
establishing an internationalized information table to be processed based on the target statement, and filling field contents in the internationalized information table to be processed to obtain the internationalized information table;
and importing the internationalized information table into a back-end system based on a data reconstruction tool.
6. The method of claim 1, wherein the content to be internationalized comprises:
exception handling information and/or fixed tables; wherein the fixed table includes menu permissions and a set of values.
7. A backend internationalized apparatus, comprising:
the device comprises a to-be-internationalized content determining module, a to-be-internationalized content determining module and a content analyzing module, wherein the to-be-internationalized content determining module is used for determining to-be-internationalized content corresponding to a target request when the target request sent by a front-end system is received;
the international language type determining module is used for determining the international language type based on the language field in the target request;
the target international content determining module is used for determining target international content matched with the content to be internationalized from an international information table based on the international language and returning the target international content to the front-end system;
the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field.
8. The apparatus of claim 7, wherein the to-be-internationalized content determining module comprises:
the interface calling module is used for calling a system interface corresponding to a target request when the target request sent by a front-end system is received;
the logic processing module is used for executing logic processing based on the system interface and determining a processing result as content to be internationalized;
the internationalized information table comprises a placeholder field, a type field, a language field and an internationalized content field.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the back-end internationalized method of any one of claims 1-6.
10. A computer-readable storage medium having stored thereon computer instructions for causing a processor, when executed, to implement the back-end internationalization method of any of claims 1 to 6.
CN202210937583.5A 2022-08-05 2022-08-05 Method, device, equipment and medium for back-end internationalization Pending CN115220722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210937583.5A CN115220722A (en) 2022-08-05 2022-08-05 Method, device, equipment and medium for back-end internationalization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210937583.5A CN115220722A (en) 2022-08-05 2022-08-05 Method, device, equipment and medium for back-end internationalization

Publications (1)

Publication Number Publication Date
CN115220722A true CN115220722A (en) 2022-10-21

Family

ID=83616610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210937583.5A Pending CN115220722A (en) 2022-08-05 2022-08-05 Method, device, equipment and medium for back-end internationalization

Country Status (1)

Country Link
CN (1) CN115220722A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958711A (en) * 2017-05-22 2018-12-07 北京京东尚科信息技术有限公司 A kind of implementation method and device of interface platform
US20190056961A1 (en) * 2017-08-15 2019-02-21 Sap Se Server-side internationalization framework for web applications
CN109471802A (en) * 2018-11-01 2019-03-15 郑州云海信息技术有限公司 A kind of method and device of abnormality processing in Python webpage
CN109683998A (en) * 2017-10-19 2019-04-26 北京京东尚科信息技术有限公司 Internationalize implementation method, device and system
CN110673920A (en) * 2019-09-29 2020-01-10 深圳前海环融联易信息科技服务有限公司 Internationalization processing method and device, computer equipment and storage medium
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN112579235A (en) * 2020-12-16 2021-03-30 平安银行股份有限公司 Method, transcoding center, client, device and medium for internationalizing response data
CN112965770A (en) * 2021-03-02 2021-06-15 杭州和利时自动化有限公司 Multi-language resource management method, module, device, system and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958711A (en) * 2017-05-22 2018-12-07 北京京东尚科信息技术有限公司 A kind of implementation method and device of interface platform
US20190056961A1 (en) * 2017-08-15 2019-02-21 Sap Se Server-side internationalization framework for web applications
CN109683998A (en) * 2017-10-19 2019-04-26 北京京东尚科信息技术有限公司 Internationalize implementation method, device and system
CN109471802A (en) * 2018-11-01 2019-03-15 郑州云海信息技术有限公司 A kind of method and device of abnormality processing in Python webpage
CN110673920A (en) * 2019-09-29 2020-01-10 深圳前海环融联易信息科技服务有限公司 Internationalization processing method and device, computer equipment and storage medium
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN112579235A (en) * 2020-12-16 2021-03-30 平安银行股份有限公司 Method, transcoding center, client, device and medium for internationalizing response data
CN112965770A (en) * 2021-03-02 2021-06-15 杭州和利时自动化有限公司 Multi-language resource management method, module, device, system and readable storage medium

Similar Documents

Publication Publication Date Title
CN113836314B (en) Knowledge graph construction method, device, equipment and storage medium
CN110689268A (en) Method and device for extracting indexes
CN114428674A (en) Task scheduling method, device, equipment and storage medium
CN114816578A (en) Method, device and equipment for generating program configuration file based on configuration table
CN116611411A (en) Business system report generation method, device, equipment and storage medium
CN115220722A (en) Method, device, equipment and medium for back-end internationalization
CN115168358A (en) Database access method and device, electronic equipment and storage medium
CN113760274A (en) Front-end component logic injection method and device
CN112214497A (en) Label processing method and device and computer system
CN116301869B (en) Front-end page configuration management and control system, method, equipment and medium
CN115118787A (en) Service control method, system, storage medium and electronic equipment
CN113297087A (en) Test method and device
CN115599823A (en) Data acquisition method, device, equipment and storage medium in micro-service scene
CN115129673A (en) Log processing method and device, electronic equipment and storage medium
CN117093274A (en) Application running stack analysis method, device, equipment and storage medium
CN114416881A (en) Real-time synchronization method, device, equipment and medium for multi-source data
CN113535857A (en) Data synchronization method and device
CN118012936A (en) Data extraction method, device, equipment and storage medium
CN115562874A (en) Cache processing method, device, equipment and medium
CN116340342A (en) Data filtering method and device, electronic equipment and storage medium
CN114860312A (en) Mobile terminal adaptation method, device, equipment and medium based on credit business
CN115658698A (en) Data query method and device, electronic equipment and storage medium
CN115529271A (en) Service request distribution method, device, equipment and medium
CN114416040A (en) Page construction method, device, equipment and storage medium
CN116562242A (en) Data report construction method and 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: 20221021