CN114579235B - Language type-based icon display method, device, equipment and storage medium - Google Patents

Language type-based icon display method, device, equipment and storage medium Download PDF

Info

Publication number
CN114579235B
CN114579235B CN202210173988.6A CN202210173988A CN114579235B CN 114579235 B CN114579235 B CN 114579235B CN 202210173988 A CN202210173988 A CN 202210173988A CN 114579235 B CN114579235 B CN 114579235B
Authority
CN
China
Prior art keywords
icon
language
pictures
different
numbers
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.)
Active
Application number
CN202210173988.6A
Other languages
Chinese (zh)
Other versions
CN114579235A (en
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.)
Bigo Technology Singapore Pte Ltd
Original Assignee
Bigo Technology Singapore Pte 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 Bigo Technology Singapore Pte Ltd filed Critical Bigo Technology Singapore Pte Ltd
Priority to CN202210173988.6A priority Critical patent/CN114579235B/en
Publication of CN114579235A publication Critical patent/CN114579235A/en
Application granted granted Critical
Publication of CN114579235B publication Critical patent/CN114579235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Abstract

The embodiment of the application provides a language type-based icon display method, device, equipment and storage medium. According to the technical scheme provided by the embodiment of the application program, the icon numbers corresponding to the icon identifications in the font file are determined according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed from the font file according to the determined icon numbers, the icon numbers corresponding to the icon identifications and the icon pictures corresponding to different language types are mapped through the icon numbers, the icon numbers corresponding to the icon identifications can be automatically adapted according to the language types used by the application program, the icon pictures corresponding to the displayed icon numbers are loaded, a developer is not required to replace the icon pictures for various language types, replacement of different icon pictures of the same icon identification under different language types is achieved, program development efficiency is effectively improved, error probability of replacement of the icon pictures is reduced, and user experience is guaranteed.

Description

Language type-based icon display method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a language type-based icon display method, a language type-based icon display device, language type-based icon display equipment and a language type-based icon display storage medium.
Background
In the interactive interface of the application program, the icon picture is often used for marking, so that a user can conveniently perform corresponding operation or know the working state of the application program based on the icon picture, for example, the icon picture corresponding to the return arrow is displayed in the interactive interface, and the user can return to the previous interactive interface after clicking the icon picture.
Since the arrangement of different languages is different, for example, chinese, english, etc. is arranged from left to right, arabic, etc. is arranged from right to left, it is generally necessary to use different icon pictures to represent the same semantics for the languages of different arrangements. At present, the icon pictures with different language types are generally replaced manually by a developer, the manual replacement workload is large, and the icon pictures are easy to replace into wrong icon pictures, so that the user experience is affected.
Disclosure of Invention
The embodiment of the application provides an icon display method, device, equipment and storage medium based on language types, which are used for solving the technical problems that in the prior art, the workload of manually replacing icon pictures is large, the icon pictures are easy to replace into wrong icon pictures, and user experience is influenced, effectively improving program development efficiency, reducing error probability of icon picture replacement and ensuring user experience.
In a first aspect, an embodiment of the present application provides a language type-based icon display method, including:
determining the type of language used by the application program;
determining corresponding icon numbers of the icon identifications in font files according to the language types, wherein the font files are recorded with a plurality of icon pictures and the icon numbers corresponding to the icon pictures, and different icon pictures are configured according to the corresponding language types;
and loading and displaying the icon picture from the font file according to the icon number.
In a second aspect, an embodiment of the present application provides an icon display device based on a language type, including a language determining module, a number determining module, and an icon display module, where:
the language determining module is used for determining the type of language used by the application program;
the number determining module is used for determining the corresponding icon numbers of the icon identifiers in the font file according to the language types, the font file records a plurality of icon pictures and the icon numbers corresponding to the icon pictures, and different icon pictures are configured according to the corresponding language types;
and the icon display module is used for loading and displaying icon pictures from the font file according to the icon numbers.
In a third aspect, an embodiment of the present application provides a language type-based icon display apparatus, including: a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the language type based icon display method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer-executable instructions that, when executed by a computer processor, are for performing the language-type based icon display method of the first aspect.
According to the embodiment of the application program, the icon numbers corresponding to the icon identifications in the font file are determined according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed from the font file according to the determined icon numbers, the icon numbers corresponding to the icon identifications and the icon pictures corresponding to different language types are mapped through the icon numbers, the icon numbers corresponding to the icon identifications can be automatically adapted according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed, a developer is not required to replace the icon pictures for various language types, the replacement of different icon pictures of the same icon identification under different language types is realized, the program development efficiency is effectively improved, the error probability of the replacement of the icon pictures is reduced, and the user experience is ensured.
Drawings
FIG. 1 is a flowchart of a language type based icon display method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of text display effects of different language types according to an embodiment of the present application;
fig. 3 is a schematic view of a display effect of a first icon image according to an embodiment of the present application;
fig. 4 is a schematic view of a display effect of a second icon picture according to an embodiment of the present application;
fig. 5 is a schematic view of a display effect of a third icon image according to an embodiment of the present application;
FIG. 6 is a flowchart of a second language type based icon display method provided by an embodiment of the present application;
FIG. 7 is a flowchart of a third language type based icon display method provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of an icon display device based on language type according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an icon display device based on language types according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The above-described process may be terminated when its operations are completed, but may have additional steps not included in the drawings. The processes described above may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a language type-based icon display method provided in an embodiment of the present application, where the language type-based icon display method provided in the embodiment of the present application may be implemented by a language type-based icon display device, and the language type-based icon display device may be implemented by hardware and/or software, and integrated in a language type-based icon display device (e.g., a mobile phone, a tablet, a web front end, etc.).
The following description will be made taking as an example a language type-based icon display apparatus executing a language type-based icon display method. Referring to fig. 1, the language type-based icon display method includes:
s101: the type of language used by the application is determined.
The language types can be Chinese, english, arabic and the like (which can be determined according to the requirements of the use region), and the arrangement modes of different language types (such as arrangement modes from left to right, from right to left, from top to bottom and the like) are different, when the displayed characters are loaded on the interactive interface, the characters of the corresponding types can be loaded according to the used language types and displayed on the corresponding positions of the interactive interface.
As shown in the schematic diagram of the text display effect of different language types provided in fig. 2, the "setting" in chinese is taken as an example, and in the three display frames A, B, C in the drawing, the display effects of the text corresponding to the "setting" in chinese, english and arabic are respectively shown, and the text of the three display frames all express the same semantics, but the arrangement modes of the text are different, wherein the arrangement modes of the chinese and english are all from left to right, and the arrangement modes of the text in the arabic are all from right to left.
It can be understood that, because of the language types of different arrangements, the display habits of the icon pictures are different, although the same semantics are expressed, the icon pictures in the language types of different arrangements need to be adaptively replaced, for example, for Chinese and English, the display habits of the return arrow point from right to left, and for Arabic, and the display habits of the return arrow point from left to right. When the application program is started, the corresponding icon pictures can be selected according to the language types used by the application program to be displayed, and the expression accuracy of the icon pictures with the same semantic meaning under different language types is improved. In one embodiment, when the used language types are switched among Chinese, english and Arabic, the corresponding icon pictures can be selected for replacement display according to the switched language types, so that the adaptive replacement of the icon pictures among different language types is realized.
The language type used by the application program is determined according to the language type used by the system and/or the language type set by the application program, namely the language type used by the application program can be determined based on the system language used by the icon display device and/or the language type set by the application program. For example, when an application is started for the first time, the system language may be determined as the language type used by the application, if the user executes the language type in the application during the use of the application, the specified language type may be determined as the language type used by the application, or the language type may be specified in the application, and the language type specified by the application may be determined as the language type used.
S102: and determining the corresponding icon numbers of the icon identifications in the font file according to the language types, wherein the font file records a plurality of icon pictures and the icon numbers corresponding to the icon pictures, and different icon pictures are configured according to the corresponding language types.
In this embodiment, corresponding icon pictures are preset according to display requirements or display habits of icons in different language types, where an icon with one semantic meaning may be configured with one icon picture or multiple icon pictures correspondingly. For example, when the display requirements or display habits of a semantic meaning are the same in various language types, the icon of the semantic meaning may be configured with only one icon picture, and when the display requirements or display habits of a semantic meaning are different in various language types, the icon of the semantic meaning may be configured with a plurality of icon pictures according to different display requirements or display habits, and a plurality of language types with consistent display requirements or display habits correspond to the same icon picture. The content displayed by the icon picture can be symbols, characters or a combination of the symbols and the characters.
Optionally, the icon pictures can be recorded in the form of vector diagrams, and the icon pictures can be obtained by performing vector diagram conversion on scalar pictures corresponding to the icon pictures, or can be obtained by performing vector diagram manufacturing according to the display requirements or display habits of the icons. And setting a corresponding icon number for each icon picture, wherein the icon pictures and the icon numbers corresponding to the icon pictures are recorded in a font file, and optionally, the icon pictures recorded in the font file are vector diagrams.
The icon identification is used for indicating the type of the icon picture required to be displayed by the application program at the designated position, and under different language types, different icon identifications and icon numbers in the font file have preset mapping relations, for example, when the icon picture corresponding to the return arrow is required to be displayed at the designated position, the type of the icon picture required to be displayed can be executed through the icon identification with the semantics being the return arrow, and when the selected icon picture is required to be determined, the corresponding icon picture can be obtained according to the icon number mapped by the icon identification under the corresponding language type. According to the scheme, one type of icon picture is expressed through one icon mark, namely, one icon mark is used for representing icon pictures of multiple language types, so that the code complexity of selecting the icon pictures according to different language types during program development is effectively reduced, the program development flow is simplified, the program robustness and development efficiency are improved, and the program maintenance cost is saved.
Illustratively, after determining the language type used by the application program, the icon number corresponding to the icon identification in the font file is further determined according to the language type. The icon pictures and the corresponding icon numbers corresponding to different language types can be recorded in the same font file, namely, only one font file is set, and the icon identification under one semantic meaning can correspond to the icon numbers of multiple language types in the font file. Or setting a corresponding font file according to the language type, recording the icon picture and the icon number under the same language type in the font file corresponding to the language type, namely setting a plurality of font files, and marking the icon under one semantic meaning in the font file corresponding to the icon number of one language type. For the case that only one font file is set, each icon picture corresponds to a different icon number (the icon pictures with the same semantic meaning also correspond to different icon numbers), the icon numbers under a plurality of language types associated with the current icon identification are searched, and the icon numbers are determined according to the used language types. For the case that a plurality of font files are arranged, the corresponding font files can be selected according to the type of the used language, and when the displayed icon picture needs to be determined later, the icon number associated with the current icon identification is directly determined in the determined font files.
S103: and loading and displaying the icon pictures from the font file according to the icon numbers.
For example, after determining the icon number, loading an icon picture corresponding to the icon number from the font file, and displaying the obtained icon picture at a designated position of the interactive interface. The designated position of the interactive interface can be a fixed position or a position dynamically determined according to the language type. For example, for Chinese and English, the display position is generally left in the interactive interface, while in Arabic the return arrow is generally right in the interactive interface.
Fig. 3 is a schematic display effect diagram of a first icon picture provided in the embodiment of the present application, as shown in fig. 3, assuming that a language type used by a current application program is chinese, a currently displayed interactive interface is a setting interface of the application program, where an arrangement manner of characters on an interface title is from left to right. After the application is opened, the type of language currently used is determined to be Chinese. The application needs to display a return arrow on the interactive interface to represent a return button icon, and the application refers to the icon picture by an icon identification semantically indicated as the return arrow icon. When an application program enters a setting interface, calling corresponding Chinese characters in a Chinese font file and displaying the Chinese characters on an interface title, determining the corresponding icon number of the icon mark in the font file according to the mapping relation between the icon mark and the icon number under the corresponding language type of Chinese, acquiring an icon picture according to the determined icon number, and displaying the icon picture to a position where a return button icon is required to be displayed, wherein the return button icon displayed in the figure 3 is an arrow pointing to the left side in the upper left corner of the interactive interface.
Fig. 4 is a schematic diagram of a display effect of a second icon picture provided in the embodiment of the present application, as shown in fig. 4, assuming that the language type used by the current application is english, the currently displayed interactive interface is a setting interface of the application, which is similar to chinese, and the arrangement manner of the characters on the interface title is left to right. After the application is opened, the type of language currently used is determined to be english. When an application program enters a setting interface, calling corresponding English characters in an English font file and displaying the English characters on an interface title, determining the corresponding icon numbers of the icon identifications in the font file according to the mapping relation between the icon identifications and the icon numbers under the language types corresponding to English, acquiring icon pictures according to the determined icon numbers, and displaying the icon pictures to positions where return button icons need to be displayed, wherein the return button icons are consistent with Chinese, and the return button icons displayed in FIG. 4 are arrows pointing to the left side in the upper left corner of an interactive interface. When the language types with the same arrangement sequence are switched, the expression forms of the icon pictures with the same semantics are kept consistent, and the language types are more consistent with the reading habit of the corresponding language types.
Fig. 5 is a schematic diagram of a display effect of a third icon picture provided in the embodiment of the present application, where, as shown in fig. 5, it is assumed that a language type used by a current application is arabic, and a currently displayed interactive interface is a setting interface of the application, where a text on an interface title is arranged from right to left. After the application program is opened, the type of language currently used is determined to be Arabic. When an application program enters a setting interface, calling corresponding Arabic characters in an Arabic font file and displaying the Arabic characters on an interface title, determining corresponding icon numbers of the icon identifications in the font file according to the mapping relation between the icon identifications and the icon numbers under the language types corresponding to the Arabic, acquiring icon pictures according to the determined icon numbers, and displaying the icon pictures at positions where return button icons are required to be displayed, wherein the return button icons displayed in FIG. 5 are arrows which are directed to the right side in the upper right corner of the interactive interface and are opposite to Chinese and English. When the language types with different arrangement sequences are switched, the expression forms of the icon pictures with the same semantic meaning are also changed adaptively, and the language types are more suitable for reading habits.
According to the method, the icon numbers corresponding to the icon identifications in the font file are determined according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed from the font file according to the determined icon numbers, the icon numbers corresponding to the icon identifications and the icon pictures corresponding to different language types are mapped through the icon numbers, the icon numbers corresponding to the icon identifications can be automatically adapted according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed, a developer is not required to replace the icon pictures for various language types, the replacement of different icon pictures of the same icon identification under different language types is realized, the program development efficiency is effectively improved, the error probability of the replacement of the icon pictures is reduced, and the user experience is ensured.
On the basis of the above embodiments, fig. 6 shows a flowchart of a second language type-based icon display method according to an embodiment of the present application, where the language type-based icon display method is a specific implementation of the language type-based icon display method. Referring to fig. 6, the language type-based icon display method includes:
s201: the type of language used by the application is determined.
S202: and selecting a font file according to the language type, and determining the corresponding icon number of the icon identification in the selected font file.
In this embodiment, different font files correspond to different language types, and the font files record a plurality of icon pictures corresponding to the language types and icon numbers corresponding to the icon pictures, where the different icon pictures are configured according to the corresponding language types. Namely, a font file is set for each language type, corresponding icon pictures are stored in each font file for the icon identification of each semantic meaning in each font file, the icon pictures corresponding to the same semantic meaning adopt the same icon number, and the icon pictures corresponding to the same semantic meaning in various language types can be represented by one icon number.
Optionally, the mapping relation between the icon identifiers and the icon numbers can be in one-to-one correspondence through enumeration statement containing icon meanings set in the application program, different icon pictures are loaded through the same icon identifier to achieve the effect of displaying different icons, and one enumeration statement corresponding to the icon identifier can be used for automatically selecting the icon picture to be displayed according to different language types.
For example, after determining the language type used by the application program, determining the font file corresponding to the language type, and then determining the icon number based on the font file, it is not necessary to determine the font file and the mapped icon number according to the language type. When the icon picture is required to be loaded and displayed, determining the icon number corresponding to the icon identification based on a preset mapping relation between the icon identification and the icon number.
In one possible embodiment, a font file of a default language type may be configured in the application program, and when the program is started or a language replacement operation is detected to determine that the font file is not saved, the font file corresponding to the replaced language type may be pulled from the server, so that automatic icon replacement of more language types is realized.
S203: and loading and displaying the icon pictures from the font file according to the icon numbers.
After determining the icon number, loading an icon picture corresponding to the icon number in the determined font file based on the determined icon number, and displaying the obtained icon picture at a designated position of the interactive interface.
It can be understood that in different font files, icon pictures with the same semantic meaning correspond to the same icon number, and the same icon number can represent the icon pictures with different language types, so that after determining the language types, the subsequent determination of the icon number and the loading process of the icon picture are performed based on the font file corresponding to the language type, thereby having smaller development amount requirement on application programs and higher execution efficiency.
Taking fig. 3 and 5 as an example, assume that 3 font files corresponding to chinese, english, and arabic are set in the language-type-based icon display apparatus, the language type used by the application program is chinese at the beginning, the language type is determined to be chinese when the application program is started, and the font file used is determined to be a font file corresponding to chinese. When the application program enters the setting interface, determining an icon number corresponding to the icon identification according to the mapping relation between the icon identification and the icon number, acquiring an icon picture in a font file corresponding to Chinese according to the determined icon number, and displaying the icon picture at a position where a return button icon is required to be displayed (see figure 3).
If the user switches the language type to arabic in the application program, the font file used at this time will be switched to the font file corresponding to arabic, when the application program enters the setting interface, the icon number corresponding to the icon identification is determined according to the mapping relationship between the icon identification and the icon number (the icon number is the same as the icon number determined when using chinese), and the icon picture is acquired from the font file corresponding to arabic according to the determined icon number, and displayed to the position where the return button icon needs to be displayed (see fig. 5). The icon pictures pointed to the left in fig. 3 and the icon pictures pointed to the right in fig. 5 both represent the corresponding semantics returned, and although the expression forms of the two icon pictures are different, they are stored in two different font files, the same icon number can be used, and the corresponding icon identification is mapped into the icon number, so that the icon pictures of different language types can be represented by one icon identification, and the workload of program development is reduced.
According to the method, the icon numbers corresponding to the icon identifications in the font file are determined according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed from the font file according to the determined icon numbers, the icon numbers corresponding to the icon identifications and the icon pictures corresponding to different language types are mapped through the icon numbers, the icon numbers corresponding to the icon identifications can be automatically adapted according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed, a developer is not required to replace the icon pictures for various language types, the replacement of different icon pictures of the same icon identification under different language types is realized, the program development efficiency is effectively improved, the error probability of the replacement of the icon pictures is reduced, and the user experience is ensured. Meanwhile, corresponding font files are set for each language type, icon pictures corresponding to icons of the same semantic in different language types are represented through the same icon numbers, development amount requirements of application programs are reduced, and determining efficiency of the icon pictures is effectively improved.
On the basis of the above embodiments, fig. 7 is a flowchart of a third language type-based icon display method according to an embodiment of the present application, where the language type-based icon display method is a specific implementation of the above language type-based icon display method. Referring to fig. 7, the language type-based icon display method includes:
s301: the type of language used by the application is determined.
S302: and determining the corresponding icon number of the icon identification in the font file based on the mapping relation between different icon identifications and icon numbers under the language type.
In this embodiment, the font file records a plurality of icon pictures corresponding to a plurality of language types and icon numbers corresponding to the icon pictures, that is, icon pictures corresponding to all the language types and icon numbers corresponding to each icon picture are recorded in a single font file, and different icon pictures are configured according to the corresponding language types. The icon pictures in different expression forms correspond to different icon numbers, and because the icon pictures are stored in one font file, even if the different icon pictures correspond to the same semantic meaning, the corresponding icon numbers are the same. Correspondingly, one icon identifier has a preset mapping relation with icon numbers corresponding to a plurality of different language types under the same semantic.
In one embodiment, for different language types, if the corresponding language arrangement directions are consistent, the icons with the same semantic meaning can be displayed through the same icon picture, i.e. the different language types with the same semantic meaning and the same language arrangement direction can point to the same icon picture, so that the data storage amount of repeated icon pictures can be reduced.
In one embodiment, the mapping relationship between the icon identifiers and the icon numbers can be set according to different language types (for example, mapping is performed by a function, a dictionary or an enumeration mode), and when the icon picture corresponding to the icon identifiers needs to be loaded and displayed, the corresponding icon numbers of the icon identifiers in the font file are determined according to the mapping relationship between the different icon identifiers and the icon numbers under the currently used language types.
S303: and loading and displaying the icon pictures from the font file according to the icon numbers.
After determining the icon number, loading an icon picture corresponding to the icon number in the determined font file based on the determined icon number, and displaying the obtained icon picture at a designated position of the interactive interface. It can be understood that the method and the device record the icon pictures and the icon numbers corresponding to the language types through the single font file, so that the occupation of the font file to the storage space is reduced.
Taking fig. 3 to 5 as an example, assume that different icon identifications and icon numbers corresponding to the icon identifications are recorded through a single font file in a language type-based icon display device, and mapping relations of the icon identifications and the icon numbers are respectively configured for chinese, english and arabic. When the application program enters the setting interface, the application program determines the icon number corresponding to the icon identification according to the mapping relation between the icon identification corresponding to the Chinese language and the icon number, acquires the icon picture in the font file according to the determined icon number, and displays the icon picture to the position where the return button icon is required to be displayed (see figure 3).
If the user switches the language type to arabic in the application program, when the application program enters the setting interface, determining the icon number corresponding to the icon identification (the icon number is different from the icon number determined when using chinese) according to the mapping relation between the icon identification corresponding to arabic and the icon number, acquiring the icon picture in the font file according to the determined icon number, and displaying the icon picture to the position where the return button icon needs to be displayed (see fig. 5).
If the user switches the language type to english in the application program, when the application program enters the setting interface, determining the icon number corresponding to the icon identification (the icon number is the same as the icon number determined when using chinese) according to the mapping relationship between the icon identification corresponding to english and the icon number, acquiring the icon picture in the font file according to the determined icon number, and displaying the icon picture at the position where the return button icon needs to be displayed (see fig. 4). When the expression forms of the icon pictures are the same, one icon picture and the corresponding icon number are stored in the font file, so that the occupation of the font file to the storage space is reduced.
According to the method, the icon numbers corresponding to the icon identifications in the font file are determined according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed from the font file according to the determined icon numbers, the icon numbers corresponding to the icon identifications and the icon pictures corresponding to different language types are mapped through the icon numbers, the icon numbers corresponding to the icon identifications can be automatically adapted according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed, a developer is not required to replace the icon pictures for various language types, the replacement of different icon pictures of the same icon identification under different language types is realized, the program development efficiency is effectively improved, the error probability of the replacement of the icon pictures is reduced, and the user experience is ensured. Meanwhile, the icon pictures and the icon numbers corresponding to the language types are recorded through a single font file, so that the occupation of the font file on the storage space is reduced.
Fig. 8 is a schematic structural diagram of an icon display device based on language type according to an embodiment of the present application. Referring to fig. 8, the language type-based icon display apparatus includes a language determination module 81, a number determination module 82, and an icon display module 83.
Wherein, the language determining module 81 is used for determining the type of language used by the application program; the number determining module 82 is configured to determine, according to a language type, an icon number corresponding to the icon identifier in a font file, where the font file records a plurality of icon pictures and icon numbers corresponding to the icon pictures, and different icon pictures are configured according to the corresponding language type; the icon display module 83 is configured to load and display an icon picture from the font file according to the icon number.
According to the method, the icon numbers corresponding to the icon identifications in the font file are determined according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed from the font file according to the determined icon numbers, the icon numbers corresponding to the icon identifications and the icon pictures corresponding to different language types are mapped through the icon numbers, the icon numbers corresponding to the icon identifications can be automatically adapted according to the language types used by the application program, the icon pictures corresponding to the icon numbers are loaded and displayed, a developer is not required to replace the icon pictures for various language types, the replacement of different icon pictures of the same icon identification under different language types is realized, the program development efficiency is effectively improved, the error probability of the replacement of the icon pictures is reduced, and the user experience is ensured.
The embodiment of the application also provides a language type-based icon display device, which can integrate the language type-based icon display device provided by the embodiment of the application. Fig. 9 is a schematic structural diagram of an icon display device based on language types according to an embodiment of the present application. Referring to fig. 9, the language type-based icon display apparatus includes: an input device 93, an output device 94, a memory 92, and one or more processors 91; a memory 92 for storing one or more programs; when the one or more programs are executed by the one or more processors 91, the one or more processors 91 implement the language type based icon display method as provided in the above-described embodiments. The language type-based icon display device, the device and the computer provided by the above can be used for executing the language type-based icon display method provided by any embodiment, and have corresponding functions and beneficial effects.
The present embodiments also provide a storage medium storing computer-executable instructions that, when executed by a computer processor, are configured to perform the language-type-based icon display method as provided by the above embodiments. Of course, the storage medium storing the computer executable instructions provided in the embodiments of the present application is not limited to the language-type-based icon display method provided above, and may also perform related operations in the language-type-based icon display method provided in any embodiment of the present application. The language-type-based icon display apparatus, device and storage medium provided in the above embodiments may perform the language-type-based icon display method provided in any embodiment of the present application, and technical details not described in detail in the above embodiments may be referred to the language-type-based icon display method provided in any embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments provided herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (8)

1. An icon display method based on language type, comprising:
determining the type of language used by the application program;
determining corresponding icon numbers of icon identifications in font files according to the language types, wherein the font files are recorded with a plurality of icon pictures and the icon numbers corresponding to the icon pictures, different icon pictures are configured according to the corresponding language types, wherein the icon identifications are used for indicating types of the icon pictures required to be displayed by an application program at a designated position, under the different language types, a preset mapping relation exists between the different icon identifications and the icon numbers in the font files, and under the condition that the display requirements or display habits of a semantic meaning under the different language types are different, the icon of the semantic meaning comprises a plurality of icon pictures configured according to the different display requirements or display habits; different font files correspond to different language types, the font files record a plurality of icon pictures corresponding to the language types and icon numbers corresponding to the icon pictures, and the mapping relation between the icon identifications and the icon numbers is in one-to-one correspondence through enumeration statement containing icon meanings; or the font file records a plurality of icon pictures corresponding to a plurality of language types and icon numbers corresponding to the icon pictures, and different language types in the same semantic and same language arrangement direction point to the same icon picture;
and loading and displaying the icon picture from the font file according to the icon number.
2. The method for displaying icons based on language types according to claim 1, wherein in the case that different font files correspond to different language types, the determining the icon number corresponding to the icon identification in the font file according to the language type includes:
and selecting a font file according to the language type, and determining the corresponding icon number of the icon identification in the selected font file.
3. The language type-based icon display method according to claim 1, wherein, in a case where a plurality of icon pictures corresponding to a plurality of language types and icon numbers corresponding to the respective icon pictures are recorded in the font file, the determining the icon number corresponding to the icon identification in the font file according to the language type includes:
and determining the corresponding icon numbers of the icon identifications in the font file based on the mapping relation between the different icon identifications and the icon numbers under the language type.
4. The language type-based icon display method of claim 1, wherein the language type used by the application program is determined according to the language type used by the system and/or the language type set by the application program.
5. The language type-based icon display method of claim 1, wherein the icon picture is a vector diagram.
6. An icon display device based on language type is characterized by comprising a language determining module, a number determining module and an icon display module, wherein:
the language determining module is used for determining the type of language used by the application program;
the number determining module is used for determining corresponding icon numbers of the icon identifiers in font files according to the language types, the font files are recorded with a plurality of icon pictures and the icon numbers corresponding to the icon pictures, different icon pictures are configured according to the corresponding language types, the icon identifiers are used for indicating the types of the icon pictures required to be displayed by the application program at the designated positions, under the different language types, the different icon identifiers have preset mapping relations with the icon numbers in the font files, and under the condition that the display requirements or display habits of a semantic meaning under the different language types are different, the icon of the semantic meaning comprises a plurality of icon pictures configured according to the different display requirements or display habits; different font files correspond to different language types, the font files record a plurality of icon pictures corresponding to the language types and icon numbers corresponding to the icon pictures, and the mapping relation between the icon identifications and the icon numbers is in one-to-one correspondence through enumeration statement containing icon meanings; or the font file records a plurality of icon pictures corresponding to a plurality of language types and icon numbers corresponding to the icon pictures, and different language types in the same semantic and same language arrangement direction point to the same icon picture;
and the icon display module is used for loading and displaying icon pictures from the font file according to the icon numbers.
7. An icon display apparatus based on a language type, comprising: a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the language-type based icon display method of any one of claims 1-5.
8. A storage medium storing computer executable instructions which, when executed by a computer processor, are for performing the language type based icon display method of any one of claims 1 to 5.
CN202210173988.6A 2022-02-24 2022-02-24 Language type-based icon display method, device, equipment and storage medium Active CN114579235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210173988.6A CN114579235B (en) 2022-02-24 2022-02-24 Language type-based icon display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210173988.6A CN114579235B (en) 2022-02-24 2022-02-24 Language type-based icon display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114579235A CN114579235A (en) 2022-06-03
CN114579235B true CN114579235B (en) 2024-04-09

Family

ID=81774621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210173988.6A Active CN114579235B (en) 2022-02-24 2022-02-24 Language type-based icon display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114579235B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05197685A (en) * 1991-08-19 1993-08-06 Internatl Business Mach Corp <Ibm> System and method for supporting translation of windowed user interface with plurality of languages
EP1423780A2 (en) * 2001-03-27 2004-06-02 Lego A/S Method, system and storage medium for an iconic language communication tool
KR20060078498A (en) * 2004-12-31 2006-07-05 엘지전자 주식회사 Multilingual management method using xml and resource package
CN103309647A (en) * 2012-03-08 2013-09-18 鸿富锦精密工业(深圳)有限公司 Application program multi-language support system and method
CN103838848A (en) * 2014-03-08 2014-06-04 广东欧珀移动通信有限公司 Method and device for dynamically displaying share icons according to system languages
CN104899319A (en) * 2015-06-18 2015-09-09 深圳市茁壮网络股份有限公司 Webpage icon uploading method and device
CN105808246A (en) * 2016-03-01 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Method and device for switching names of desktop icon folders and electronic apparatus
CN107368309A (en) * 2017-07-07 2017-11-21 惠州Tcl移动通信有限公司 Realize that application program supports multilingual method, storage device and mobile terminal
CN109920032A (en) * 2019-01-22 2019-06-21 深圳壹账通智能科技有限公司 Method, apparatus, equipment and the storage medium of icon are generated based on font
CN110928588A (en) * 2019-11-19 2020-03-27 珠海格力电器股份有限公司 Method and device for adjusting terminal configuration, mobile terminal and storage medium
CN110990105A (en) * 2019-12-10 2020-04-10 北京小米移动软件有限公司 Interface display method and device, electronic equipment and storage medium
CN111651113A (en) * 2020-07-16 2020-09-11 广州朱雀信息科技有限公司 Page display method, device, equipment and storage medium
CN112328348A (en) * 2020-11-05 2021-02-05 深圳壹账通智能科技有限公司 Application program multi-language support method and device, computer equipment and storage medium
CN112988297A (en) * 2021-03-10 2021-06-18 深圳市创想三维科技有限公司 Language switching method and device based on touch screen, electronic equipment and storage medium
CN114003241A (en) * 2020-07-28 2022-02-01 华为技术有限公司 Interface adaptation display method and system of application program, electronic device and medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05197685A (en) * 1991-08-19 1993-08-06 Internatl Business Mach Corp <Ibm> System and method for supporting translation of windowed user interface with plurality of languages
EP1423780A2 (en) * 2001-03-27 2004-06-02 Lego A/S Method, system and storage medium for an iconic language communication tool
KR20060078498A (en) * 2004-12-31 2006-07-05 엘지전자 주식회사 Multilingual management method using xml and resource package
CN103309647A (en) * 2012-03-08 2013-09-18 鸿富锦精密工业(深圳)有限公司 Application program multi-language support system and method
CN103838848A (en) * 2014-03-08 2014-06-04 广东欧珀移动通信有限公司 Method and device for dynamically displaying share icons according to system languages
CN104899319A (en) * 2015-06-18 2015-09-09 深圳市茁壮网络股份有限公司 Webpage icon uploading method and device
CN105808246A (en) * 2016-03-01 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Method and device for switching names of desktop icon folders and electronic apparatus
CN107368309A (en) * 2017-07-07 2017-11-21 惠州Tcl移动通信有限公司 Realize that application program supports multilingual method, storage device and mobile terminal
CN109920032A (en) * 2019-01-22 2019-06-21 深圳壹账通智能科技有限公司 Method, apparatus, equipment and the storage medium of icon are generated based on font
CN110928588A (en) * 2019-11-19 2020-03-27 珠海格力电器股份有限公司 Method and device for adjusting terminal configuration, mobile terminal and storage medium
CN110990105A (en) * 2019-12-10 2020-04-10 北京小米移动软件有限公司 Interface display method and device, electronic equipment and storage medium
CN111651113A (en) * 2020-07-16 2020-09-11 广州朱雀信息科技有限公司 Page display method, device, equipment and storage medium
CN114003241A (en) * 2020-07-28 2022-02-01 华为技术有限公司 Interface adaptation display method and system of application program, electronic device and medium
CN112328348A (en) * 2020-11-05 2021-02-05 深圳壹账通智能科技有限公司 Application program multi-language support method and device, computer equipment and storage medium
CN112988297A (en) * 2021-03-10 2021-06-18 深圳市创想三维科技有限公司 Language switching method and device based on touch screen, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
多语言用户界面的研究;白鹤;赵正旭;;河北省科学院学报;20130615(第02期);44-48 *
电子文献检索图标表示方法与内涵研究;王丽娜 等;《现代情报》;20130815;第33卷(第8期);147-151 *

Also Published As

Publication number Publication date
CN114579235A (en) 2022-06-03

Similar Documents

Publication Publication Date Title
US20110197165A1 (en) Methods and apparatus for organizing a collection of widgets on a mobile device display
US20130283195A1 (en) Methods and apparatus for dynamically adapting a virtual keyboard
KR102249054B1 (en) Quick tasks for on-screen keyboards
US20050273466A1 (en) Display apparatus and management method for virtual workspace thereof
US11734028B2 (en) Modifying readable and focusable elements on a page during execution of automated scripts
CN108553894B (en) Display control method and device, electronic equipment and storage medium
EP2706456A1 (en) Widget processing method, device and mobile terminal
CN106844181B (en) Method, system and mobile terminal for recording user behavior
US20150169519A1 (en) Electronic reading device and method for extracting and saving text information thereof, and storage medium
US10713220B2 (en) Intelligent electronic data capture for medical patient records
KR101394874B1 (en) Device and method implementing for particular function based on writing
CN103440127A (en) Software graphical interface drawing method and system
CN112579187A (en) Optimization method and device for cold start of application program
CN107908679B (en) Script statement conversion method and device and computer readable storage medium
CN109460175B (en) Method and device for moving application icon, electronic terminal and medium
CN114579235B (en) Language type-based icon display method, device, equipment and storage medium
CN113407075A (en) Icon sorting method and device and electronic equipment
CN113282213A (en) Interface display method and device
JP5889325B2 (en) Application file system access
US20070011621A1 (en) Methods and systems of graphical user interface presentation
CN114840198B (en) Function execution method, building block function rewriting method and related equipment
US20100042921A1 (en) System and method for viewing software help documentation
EP4283453A1 (en) Content extraction method and apparatus
CN115081423A (en) Document editing method and device, electronic equipment and storage medium
CN113626017A (en) Heterogeneous program analysis method and device, computer 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
GR01 Patent grant