Multi-language adaptation method and device of application, client and storage medium

A multi-language, client-side technology, applied in the field of Internet multi-language page display, can solve the multi-language conversion function that the multi-language configuration scheme does not support special character naming, cannot clarify the multi-language conversion function, cannot realize the dynamic call of the initial string, etc. problem, to achieve the effect of improving accuracy

CN111240790AActive Publication Date: 2020-06-05GUANGZHOU BAIGUOYUAN INFORMATION TECH CO LTD
4 Cites 3 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2020-06-05

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention discloses a multi-language adaptation method and device of an application, a client and a storage medium. The method comprises the steps: when a target sub-applicationis accessed in a native application, determining that a character string with a multi-language adaptation requirement exists in the target sub-application; and determining adaptive language translation of the character string in a key value pair set corresponding to an adaptive language code of the target sub-application by taking the character string as a key name. According to the multi-languageadaptation method and device of the application, the client and the storage medium provided by the embodiment of the invention, multi-language adaptation of the sub-application in the native application is realized, the multi-language conversion function corresponding to each character string does not need to be defined, and the character string is directly used as the key name of the key value pair, so that the problem that the multi-language conversion function does not support the naming of special characters in the character string is solved, the dynamic calling of each character string in the target sub-application under multi-language adaptation is ensured, and the accuracy of multi-language adaptation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The embodiment of the present invention relates to the field of Internet multilingual page display, and in particular to an application multilingual adaptation method, device, client and storage medium. Background technique

[0002] At present, in response to the design requirements of different pages contained in various native applications under the Internet, Flutter technology can be used to pre-develop sub-applications corresponding to different pages in the native application, and then embed the sub-applications into the native application to achieve Different page design under native application.

[0003] Since the native application is allowed to be configured on terminals in different regions, the native application also supports the optional configuration in multiple languages. At this time, it is required that each sub-application embedded in the native application can also support multilingual configuration, so as to display the content of t...

Examples

Embodiment 1

[0032] Figure 1A It is a flow chart of an application multilingual adaptation method provided by Embodiment 1 of the present invention, and this embodiment is applicable to any situation of performing multilingual adaptation on a sub-application in a native application. An application multilingual adaptation method provided in this embodiment can be executed by an application multilingual adaptation device provided in an embodiment of the present invention. The device can be realized by software and / or hardware, and integrated in the implementation In the client of the method, the client may be a terminal configured with a native application.

[0033] Specifically, refer to Figure 1A , the method may include the following steps:

[0034] S110. When accessing the target sub-application in the native application, determine a character string that requires multi-language adaptation in the target sub-application.

[0035] Specifically, the native application in this embodiment ...

Embodiment 2

[0044] Figure 2A It is a flow chart of an application multilingual adaptation method provided by Embodiment 2 of the present invention, Figure 2B It is a schematic diagram of the principle of multilingual adaptation for each character string in the target sub-application in the method provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments. Specifically, such as Figure 2A As shown, in this embodiment, a detailed explanation will be given for the process of determining the character strings requiring multi-language adaptation in the target sub-application and the process of multi-language adaptation for each character string.

[0045] optional, such as Figure 2A As shown, the following steps may be included in this embodiment:

[0046] S210. When accessing the target sub-application in the native application, determine a character string that requires multi-language adaptation in the code file of the targ...

Embodiment 3

[0059] Figure 3A It is a flow chart of the multilingual adaptation method for an application provided in Embodiment 3 of the present invention, Figure 3B It is a schematic diagram of the principle of constructing the key-value pair sets of each sub-application under different language codes in the method provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments. Specifically, this embodiment explains in detail the specific process of determining the adapted language code of the target sub-application and constructing a set of key-value pairs under different language codes.

[0060] optional, such as Figure 3A As shown, the following steps may be included in this embodiment:

[0061] S310. Pre-configure key-value pair sets of the target sub-application under different language codes according to the code file of the target sub-application.

[0062] Optionally, in order to ensure multilingual adaptation when ...