CN114896018A - Method, device and medium for switching BMD application interface languages - Google Patents

Method, device and medium for switching BMD application interface languages Download PDF

Info

Publication number
CN114896018A
CN114896018A CN202210589904.7A CN202210589904A CN114896018A CN 114896018 A CN114896018 A CN 114896018A CN 202210589904 A CN202210589904 A CN 202210589904A CN 114896018 A CN114896018 A CN 114896018A
Authority
CN
China
Prior art keywords
language
bmc
application interface
package
positioning information
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.)
Granted
Application number
CN202210589904.7A
Other languages
Chinese (zh)
Other versions
CN114896018B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210589904.7A priority Critical patent/CN114896018B/en
Publication of CN114896018A publication Critical patent/CN114896018A/en
Application granted granted Critical
Publication of CN114896018B publication Critical patent/CN114896018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of servers, and discloses a method, a device and a medium for BMC application interface language switching, wherein the method comprises the following steps: acquiring current positioning information of the BMC, judging whether a preset language library has a language package corresponding to the current positioning information, if so, selecting the language package corresponding to the current positioning information to be applied to the BMC application interface, if not, connecting the Internet to generate a corresponding new language package according to translation of the current positioning information, and applying the new language package to the BMC application interface. Therefore, the geographic position of the BMC is determined by obtaining the current positioning information of the BMC, and then the language of the BMC application interface is switched according to the geographic position of the BMC, in addition, when the language package corresponding to the current positioning information does not exist in the language library, the language package corresponding to the current BMC geographic position is generated by connecting internet translation, and the newly added language package is applied to the BMC application interface, so that the user experience is improved.

Description

Method, device and medium for switching BMD application interface languages
Technical Field
The present application relates to the field of server technologies, and in particular, to a method, an apparatus, and a medium for BMC application interface language switching.
Background
With the continuous development of technologies such as cloud computing, big data and artificial intelligence, the number and the demand of servers are increasing. In the server, a Baseboard Management Controller (BMC) provides functions such as console support, configuration Management, hardware Management, fault analysis, and application interface for server Management.
At present, the BMC application interface language can be selected according to a language package stored in the BMC, language switching cannot be performed according to the geographical position where a user is located, and in addition, when the national language applied by the server is not in the stored language package, an interface of a corresponding language cannot be provided for the user, so that the management function of the server used by the user is not facilitated, and the user experience is reduced.
Therefore, how to switch the BMC application interface language according to the geographic position of the BMC used by the user to improve the user experience is a problem to be solved urgently by technical personnel in the field.
Disclosure of Invention
The application aims to provide a method, a device and a medium for switching BMC application interface languages, which are used for switching the languages of the BMC application interface according to the geographic position of a user using BMC, so that the user experience is improved.
In order to solve the above technical problem, the present application provides a BMC application interface language switching method, including:
after the BMC is started, acquiring current positioning information;
judging whether a preset language library has a language packet corresponding to the current positioning information;
if the current positioning information exists, selecting a language package corresponding to the current positioning information to be applied to a BMC application interface;
and if not, connecting the Internet to generate a corresponding newly added language package according to the translation of the current positioning information, and applying the newly added language package to the BMC application interface.
Preferably, after connecting to the internet, the method further comprises:
determining whether the internet connection is successful;
if the connection is successful, generating a corresponding newly added language package according to the translation of the current positioning information;
if the connection fails, sending a request instruction for acquiring the target language package to the adjacent BMC to acquire the target language package; and the adjacent BMC is the BMC in the same local area network.
Preferably, before the sending the get target language package request instruction to the neighboring BMC to get the target language package, the method further includes:
judging whether the adjacent BMC exists or not;
if the target language package exists, the step of sending a request instruction for acquiring the target language package to the adjacent BMC to acquire the target language package is carried out;
and if not, selecting a default language package to be applied to the BMC application interface.
Preferably, after the acquiring the current positioning information, the method further includes:
judging whether the current positioning information is successfully acquired;
if the current positioning information is successful, determining whether the current positioning information is consistent with a default language, if so, selecting a default language package to be applied to the BMC application interface, and if not, entering the step of judging whether a language package corresponding to the current positioning information exists in a preset language library;
and if not, selecting the default language package to be applied to the BMC application interface.
Preferably, before the acquiring the current positioning information, the method further includes:
determining whether an instruction for the user to autonomously select a language pack is acquired;
and if so, selecting a corresponding language package from the language library according to the instruction to be applied to the BMC application interface.
Preferably, after determining that the instruction for the user to autonomously select the language pack is not acquired, the method further comprises:
judging whether the current interface is a browser application interface or not;
if yes, determining whether the browser language is consistent with the default language, if so, selecting the default language package to be applied to the browser application interface, and if not, selecting the language package from the language library to be applied to the browser application interface;
if not, judging whether the operating system language is consistent with the default language, if so, selecting the default language package to be applied to the operating system application interface, and if not, selecting the language package from the language library to be applied to the operating system application interface.
Preferably, the method for switching BMC application interface languages further includes:
and after the new language package is generated, storing the new language package in the language library.
In order to solve the above technical problem, the present application further provides a BMC application interface language switching device, including:
the acquisition module is used for acquiring the current positioning information after the BMC is started;
the judging module is used for judging whether a preset language library has a language packet corresponding to the current positioning information, if so, the selecting module is called, and if not, the processing module is called;
the selection module is used for selecting the language package corresponding to the current positioning information to be applied to a BMC application interface;
the first processing module is used for connecting the internet to generate a corresponding newly added language package according to the translation of the current positioning information, and applying the newly added language package to the BMC application interface.
The device for switching the BMC application interface language further comprises:
the first determining module is used for determining whether the internet is successfully connected, if so, calling the translation module, and if not, calling the sending module;
the translation module is used for generating a corresponding newly added language package according to the translation of the current positioning information;
the sending module is used for sending a request instruction for acquiring the target language package to the adjacent BMC to acquire the target language package; and the adjacent BMC is the BMC in the same local area network.
The second processing module is used for judging whether the adjacent BMC exists or not;
if the target language package exists, the step of sending a request instruction for acquiring the target language package to the adjacent BMC to acquire the target language package is carried out;
and if not, selecting a default language package to be applied to the BMC application interface.
The third processing module is used for judging whether the current positioning information is successfully acquired;
if the current positioning information is successful, determining whether the current positioning information is consistent with a default language, if so, selecting a default language package to be applied to the BMC application interface, and if not, entering the step of judging whether a language package corresponding to the current positioning information exists in a preset language library;
and if not, selecting the default language package to be applied to the BMC application interface.
The second determining module is used for determining whether an instruction for the user to independently select the language pack is acquired;
and if so, selecting a corresponding language package from the language library according to the instruction to be applied to the BMC application interface.
The fourth processing module is used for judging whether the current interface is a browser application interface or not;
if yes, determining whether the browser language is consistent with the default language, if so, selecting the default language package to be applied to the browser application interface, and if not, selecting the language package from the language library to be applied to the browser application interface;
if not, judging whether the operating system language is consistent with the default language, if so, selecting the default language package to be applied to the operating system application interface, and if not, selecting the language package from the language library to be applied to the operating system application interface.
And the storage module is used for storing the newly added language package in the language library after the newly added language package is generated.
In order to solve the above technical problem, the present application further provides a BMC application interface language switching device, including a memory for storing a computer program;
and the processor is used for realizing the steps of the method for switching the BMC application interface language when the computer program is executed.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for switching BMC application interface languages are implemented.
The invention provides a BMC application interface language switching method, which comprises the following steps: after the BMC is started, obtaining current positioning information of the BMC, judging whether a language package corresponding to the current positioning information exists in a preset language library or not according to the current positioning information, if so, selecting the language package corresponding to the current positioning information to be applied to a BMC application interface, if not, connecting the Internet to translate and generate a corresponding new language package according to the current positioning information, and applying the new language package to the BMC application interface. Therefore, according to the technical scheme provided by the application, the geographic position of the BMC is determined by obtaining the current positioning information of the BMC, the purpose of switching the BMC application interface language according to the geographic position of the BMC is achieved, in addition, when the language package corresponding to the current positioning information does not exist in the language library, the language package corresponding to the current BMC geographic position is generated through internet translation, the newly added language package is applied to the BMC application interface, and the user experience is further improved.
In addition, the application also provides a device and a medium for BMC application interface language switching, which correspond to the method for BMC application interface language switching, and the effect is the same as the effect.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for switching BMC application interface languages according to an embodiment of the present disclosure;
fig. 2 is a structural diagram of a BMC application interface language switching apparatus according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a device for switching BMC application interface languages according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a method, a device and a medium for switching BMC application interface languages, wherein the purpose of switching application interface languages according to the geographic position of BMC is achieved by acquiring current positioning information after the BMC is started, determining whether a preset language library has a corresponding language package according to the current positioning information, if the preset language library does not have the corresponding language package, connecting the Internet for translation to generate the language package corresponding to the current positioning information, and applying the language package to the BMC application interface.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
With the continuous development of technologies such as cloud computing, big data and artificial intelligence, the number and the demand of servers are increasing. In the server, a Baseboard Management Controller (BMC) provides functions such as console support, configuration Management, hardware Management, fault analysis, and application interface for server Management.
At present, the BMC application interface language can be selected according to a language package stored in the BMC, language switching cannot be performed according to the geographical position where a user is located, and in addition, when the national language applied by the server is not in the stored language package, an interface of a corresponding language cannot be provided for the user, so that the management function of the server used by the user is not facilitated, and the user experience is reduced.
In order to realize the purpose of switching the languages of the BMC application interface according to the geographic position of the BMC used by a user and improve the user experience, the embodiment of the application provides a method for switching the languages of the BMC application interface.
Fig. 1 is a flowchart of a method for switching BMC application interface languages according to an embodiment of the present application, where as shown in fig. 1, the method includes:
s10: and after the BMC is started, acquiring current positioning information.
S11: and judging whether a language pack corresponding to the current positioning information exists in a preset language library, if so, entering the step S12, and if not, entering the step S13.
S12: and selecting the language package corresponding to the current positioning information to be applied to the BMC application interface.
S13: and connecting the Internet to generate a corresponding newly added language package according to the translation of the current positioning information, and applying the newly added language package to the BMC application interface.
In a specific embodiment, after the BMC is started, the current Positioning information of the BMC is obtained to determine the geographic position of the BMC, and it should be noted that the current Positioning information may be based on Positioning information obtained by a Global Positioning System (GPS for short) or based on Positioning information obtained by Beidou satellite Positioning, which is not limited in this application.
And after the current positioning information of the BMC is obtained, judging whether a language package corresponding to the BMC positioning information exists in a preset language library, if so, selecting the language package to be applied to the BMC application interface, otherwise, entering a step S13 to connect the Internet, translating according to the positioning information to generate a new language package, and applying the new language package to the BMC application interface. It should be noted that each new language package is obtained and stored in the language library.
In implementation, when the internet connection is successful, the newly-added language package generated by translation is applied to the BMC application interface, and if the internet connection fails, request information may be sent to the adjacent BMC to obtain the language package corresponding to the positioning information, where the adjacent BMC refers to other BMCs in the same local area network. It is to be appreciated that if the required language package is not present in the neighboring BMC, the default language package is automatically selected for application to the BMC application interface. Of course, before the adjacent BMC sends the request, if it is determined that no other BMCs exist in the same local area network, the default language package is automatically selected to be applied to the BMC application interface.
In addition, after the BMC positioning information is obtained, if the current positioning information is determined to be consistent with the default language package, the default language package is selected to be applied to the BMC application interface. Of course, if the BMC location information is not obtained, the default language package is automatically selected and applied to the BMC application interface.
If the user wants to autonomously switch the language of the BMC application interface, firstly, an instruction of autonomously selecting the language package by the user is obtained, and after the instruction is obtained, the corresponding language package in the language library is applied to the BMC application interface. Because the language display of the BMC application interface depends on the language selected by the user, the browser language or the operating system language, if the instruction of the language package selected by the user is not obtained, whether the current interface is the browser interface or not is judged, if the current interface is the browser interface, the default language package is selected to be applied to the browser interface when the browser language is determined to be consistent with the default language, and if the browser language is not consistent with the default language package, the required language package is selected from the language library.
It should be noted that, if the current interface is not the browser interface, it may be determined that the current interface is the operating system application interface, and it is determined whether the operating system language is consistent with the default language, and if so, the default language package is selected to be applied to the operating system application interface, and if not, the desired language package is also selected from the language library.
The method for switching the BMC application interface language provided by the embodiment of the application comprises the following steps: after the BMC is started, obtaining current positioning information of the BMC, judging whether a language package corresponding to the current positioning information exists in a preset language library or not according to the current positioning information, if so, selecting the language package corresponding to the current positioning information to be applied to a BMC application interface, if not, connecting the Internet to translate and generate a corresponding new language package according to the current positioning information, and applying the new language package to the BMC application interface. Therefore, according to the technical scheme provided by the application, the geographic position of the BMC is determined by obtaining the current positioning information of the BMC, the purpose of switching the BMC application interface language according to the geographic position of the BMC is achieved, in addition, when the language package corresponding to the current positioning information does not exist in the language library, the language package corresponding to the current BMC geographic position is generated through internet translation, the newly added language package is applied to the BMC application interface, and the user experience is further improved.
In a specific embodiment, if a language package corresponding to the BMC current positioning information does not exist in the language library, the internet needs to be connected to translate the language package corresponding to the positioning information. And after the connection of the Internet is successful, judging whether the connection of the Internet is successful, if so, translating and generating a newly added language package according to the current positioning information, and applying the newly added language package to the BMC application interface.
And if the internet connection fails, sending a request instruction for acquiring the target language package to an adjacent BMC to acquire the target language package, wherein the adjacent BMC is other BMCs in the same local area network. And when the target language package required by the current BMC exists in the adjacent BMC, receiving the target language package in any one BMC in the adjacent BMC to be applied to the current BMC application interface.
According to the method for switching the BMC application interface languages, when internet connection fails, a request instruction for acquiring the target language package is sent to other BMCs in the same local area network, so that the required language package can be acquired from the other BMCs, and the accuracy and reliability of switching the application interface languages according to BMC positioning information are improved.
On the basis of the embodiment, in order to further improve the reliability of language switching of the BMC application interface, after the internet connection fails, it is first determined whether other BMCs exist in the same local area network, that is, whether adjacent BMCs exist, and if not, a default language package is selected to be applied to the BMC application interface.
Certainly, when the adjacent BMC is determined to exist, a request instruction for acquiring the target language package is sent to the adjacent BMC, and after the preset time length is up, if the target language package sent by the adjacent BMC is not received, the default language package is selected to be applied to the current BMC application interface.
According to the method for switching the BMC application interface languages, before the target language package acquisition request instruction is sent to the adjacent BMC to acquire the target language package, whether the adjacent BMC exists is judged, if yes, the step of sending the target language package acquisition request instruction to the adjacent BMC to acquire the target language package is started, and if not, the default language package is selected to be applied to the BMC application interface, so that the reliability of language switching of the BMC application interface is improved.
In specific implementation, after the BMC is started and the current BMC positioning information is acquired, in order to improve reliability of language switching of the BMC application interface, it is first determined whether the acquisition of the current positioning information is successful, if the acquisition is successful, when it is determined that the current positioning information is consistent with a default language, a default language package reference is selected as the BMC application interface, and if not, it is determined whether a language package corresponding to the current positioning information exists in a language library to switch the language of the BMC application interface. Of course, if obtaining the current location information of the BMC fails, the default language package is selected to be applied to the BMC application interface.
The method for switching the BMC application interface language provided by the embodiment of the application judges whether the current positioning information of the BMC is successfully acquired or not after the current positioning information of the BMC is acquired, and selects the default language package to be applied to the BMC application interface when the current positioning information of the BMC is successfully acquired and is consistent with the default language. When the positioning information is failed to be acquired, the default language package is selected to be applied to the BMC application interface, so that the switching reliability of the BMC application interface language is improved.
In fact, after the BMC is started, the application interface language may be automatically switched according to the current location information of the BMC, or the user may select the switching by himself. After the instruction of the language package selected by the user is determined to be obtained, the language package selected by the user is selected from the language library according to the instruction and is applied to the BMC application interface.
The method for switching the BMC application interface language provided by the embodiment of the application can receive the instruction of the user for selecting the language package independently, so that the BMC application interface language can be set according to the user requirement, and the diversity of the BMC application interface language setting is improved.
On the basis of the above embodiment, because the BMC application interface language display depends on the user's own selection, the browser language, or the operating system language, if it is determined that the instruction of the user's own selection of the language package is not obtained, it is determined whether the current interface is the browser application interface, if so, when it is determined that the browser language is consistent with the default language, the default language package is selected to be applied to the browser application interface, and if not, the language package is selected from the language library to be applied to the browser application interface.
If the current interface is not the browser application interface, determining the current interface to be the operating system application interface, judging whether the operating system language is consistent with the default language, if so, selecting the default language package to be applied to the operating system application interface, otherwise, selecting the language package from the language library to be applied to the operating system application interface.
According to the method for switching the BMC application interface languages, when the instruction of the user for independently selecting the language package is not obtained, whether the current interface is the browser application interface or not is judged, if the current interface is the browser application interface, when the browser language is consistent with the default language, the default language package is selected to be applied to the browser application interface, and otherwise, the language package is selected from the language library to be applied to the browser application interface. If the current application interface is not the browser application interface, the current application interface can be determined to be the operating system application interface, when the operating system language is consistent with the default language, the default language package is selected to be applied to the operating system application interface, otherwise, the language package is selected from the language library to be applied to the operating system application interface, the setting of the language interface is completed, and the reliability of the setting of the language interface is improved.
In specific implementation, when a voice packet corresponding to the current information of the BMC does not exist in the language library, after a newly added language packet is generated by translation every time the Internet is connected, the newly added language packet is stored in the language library, so that the problem that when the same geographical position of the BMC appears again, translation needs to be carried out again, and resource waste is caused is avoided.
In addition, the user can update the language packages in the language library regularly, so that the accuracy of language switching of the BMC application interface is improved.
According to the method for switching the BMC application interface languages, the newly added language package for translation connected with the Internet is stored in the language library, and resource waste caused by translation of the language package when the BMC appears at the same geographical position again is avoided.
In the above embodiments, the method for switching the BMC application interface language is described in detail, and the present application also provides an embodiment corresponding to the BMC application interface language switching apparatus. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one is based on the functional module, and the other is based on the hardware structure.
Fig. 2 is a structural diagram of a BMC application interface language switching device according to an embodiment of the present application, and as shown in fig. 2, the device includes:
and the obtaining module 10 is configured to obtain the current positioning information after the BMC is started.
The judging module 11 is configured to judge whether a language package corresponding to the current positioning information exists in a preset language library, if so, invoke the selecting module, and if not, invoke the processing module.
And the selection module 12 is configured to select the language package corresponding to the current positioning information to be applied to the BMC application interface.
And the first processing module 13 is used for connecting the internet to generate a corresponding newly added language package according to the translation of the current positioning information, and applying the newly added language package to the BMC application interface.
Preferably, the device for switching BMC application interface languages provided in the embodiment of the present application further includes a first determining module, a translating module, a sending module, a second processing module, a third processing module, a second determining module, a fourth processing module, and a storage module.
The first determining module is used for determining whether the connection of the internet is successful, if so, calling the translation module, and if not, calling the sending module.
And the translation module is used for translating and generating a corresponding newly added language package according to the current positioning information.
The sending module is used for sending a request instruction for obtaining the target language package to the adjacent BMC to obtain the target language package; and the adjacent BMC is the BMC in the same local area network.
And the second processing module is used for judging whether the adjacent BMC exists, if so, entering a step of sending a request instruction for acquiring the target language package to the adjacent BMC to acquire the target language package, and if not, selecting a default language package to be applied to the BMC application interface.
And the third processing module is used for judging whether the current positioning information is successfully acquired, determining whether the current positioning information is consistent with the default language if the current positioning information is successfully acquired, selecting the default language package to be applied to the BMC application interface if the current positioning information is consistent with the default language package, judging whether the language package corresponding to the current positioning information exists in a preset language library if the current positioning information is inconsistent with the default language package, and selecting the default language package to be applied to the BMC application interface if the current positioning information is unsuccessful.
And the second determining module is used for determining whether an instruction for the user to independently select the language package is acquired, and if so, selecting the corresponding language package from the language library according to the instruction and applying the language package to the BMC application interface.
And the fourth processing module is used for judging whether the current interface is a browser application interface, determining whether the browser language is consistent with the default language if the current interface is the browser application interface, selecting the default language package to be applied to the browser application interface if the current interface is the browser application interface, selecting the language package from the language library to be applied to the browser application interface if the current interface is not the browser application interface, judging whether the operating system language is consistent with the default language if the operating system language is consistent with the default language, selecting the default language package to be applied to the operating system application interface if the operating system language is consistent with the default language, and selecting the language package from the language library to be applied to the operating system application interface if the operating system language is inconsistent with the default language.
And the storage module is used for storing the newly added language package in the language library after the newly added language package is generated.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The device that BMC application interface language switches that this application embodiment provided includes: after the BMC is started, obtaining current positioning information of the BMC, judging whether a language package corresponding to the current positioning information exists in a preset language library or not according to the current positioning information, if so, selecting the language package corresponding to the current positioning information to be applied to a BMC application interface, if not, connecting the Internet to translate and generate a corresponding new language package according to the current positioning information, and applying the new language package to the BMC application interface. Therefore, according to the technical scheme provided by the application, the geographic position of the BMC is determined by obtaining the current positioning information of the BMC, the purpose of switching the BMC application interface language according to the geographic position of the BMC is achieved, in addition, when the language package corresponding to the current positioning information does not exist in the language library, the language package corresponding to the current BMC geographic position is generated through internet translation, the newly added language package is applied to the BMC application interface, and the user experience is further improved.
Fig. 3 is a block diagram of a BMC application interface language switching device according to another embodiment of the present application, where as shown in fig. 3, the BMC application interface language switching device includes: a memory 20 for storing a computer program;
the processor 21 is configured to implement the steps of the method for BMC application interface language switching as mentioned in the above embodiments when executing the computer program.
The BMC application interface language switching device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The Processor 21 may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (GPU), and the GPU is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computing operations related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the relevant steps of the method for switching the BMC application interface language disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. Data 203 may include, but is not limited to, relevant data involved in methods of BMC application interface language switching.
In some embodiments, the BMC application interface language switching device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the architecture shown in FIG. 3 does not constitute a limitation of the means for BMC application interface language switching and may include more or fewer components than those shown.
The device for switching the BMC application interface language provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the following method can be realized: BMC application interface language switching method.
The device for BMC application interface language switching provided by the embodiment of the application determines the geographic position of BMC by acquiring the current positioning information of BMC, and further realizes the purpose of switching the BMC application interface language according to the geographic position of BMC.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer-readable storage medium provided by the embodiment of the application determines the geographic position of the BMC based on the current positioning information of the BMC, and further obtains a language package corresponding to the current positioning information from a language library according to the geographic position of the BMC to switch the language of the BMC application interface, and when the language package does not exist in the language library, the Internet is connected to translate and generate a new language package to be applied to the BMC application interface, so that the reliability and diversity of language switching of the BMC application interface are improved.
The method, the device and the medium for BMC application interface language switching provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A BMC application interface language switching method is characterized by comprising the following steps:
after the BMC is started, acquiring current positioning information;
judging whether a preset language library has a language packet corresponding to the current positioning information;
if the current positioning information exists, selecting a language package corresponding to the current positioning information to be applied to a BMC application interface;
and if not, connecting the Internet to generate a corresponding newly added language package according to the translation of the current positioning information, and applying the newly added language package to the BMC application interface.
2. The method for BMC application interface language switching according to claim 1, further comprising after connecting to the internet:
determining whether the internet connection is successful;
if the connection is successful, generating a corresponding newly added language package according to the translation of the current positioning information;
if the connection fails, sending a request instruction for acquiring the target language package to the adjacent BMC to acquire the target language package; and the adjacent BMC is the BMC in the same local area network.
3. The method for BMC application interface language switching according to claim 2, wherein before the sending the get target language package request instruction to the neighboring BMC to get the target language package, further comprises:
judging whether the adjacent BMC exists or not;
if the target language package exists, the step of sending a request instruction for acquiring the target language package to the adjacent BMC to acquire the target language package is carried out;
and if not, selecting a default language package to be applied to the BMC application interface.
4. The method for BMC application interface language switching according to claim 1, further comprising, after the obtaining the current positioning information:
judging whether the current positioning information is successfully acquired;
if the current positioning information is successful, determining whether the current positioning information is consistent with a default language, if so, selecting a default language package to be applied to the BMC application interface, and if not, entering the step of judging whether a language package corresponding to the current positioning information exists in a preset language library;
and if not, selecting the default language package to be applied to the BMC application interface.
5. The method for BMC application interface language switching according to claim 1, further comprising, before the obtaining current location information:
determining whether an instruction for the user to autonomously select a language pack is acquired;
and if so, selecting a corresponding language package from the language library according to the instruction to be applied to the BMC application interface.
6. The method for switching BMC application interface languages of claim 5, further comprising, after determining that the instruction for the user to autonomously select the language pack is not obtained:
judging whether the current interface is a browser application interface or not;
if yes, determining whether the browser language is consistent with the default language, if so, selecting the default language package to be applied to the browser application interface, and if not, selecting the language package from the language library to be applied to the browser application interface;
if not, judging whether the operating system language is consistent with the default language, if so, selecting the default language package to be applied to the operating system application interface, and if not, selecting the language package from the language library to be applied to the operating system application interface.
7. The method for BMC application interface language switching according to claim 1, further comprising:
and after the new language package is generated, storing the new language package in the language library.
8. A BMC application interface language switching device is characterized by comprising:
the acquisition module is used for acquiring the current positioning information after the BMC is started;
the judging module is used for judging whether a preset language library has a language packet corresponding to the current positioning information, if so, the selecting module is called, and if not, the processing module is called;
the selection module is used for selecting the language package corresponding to the current positioning information to be applied to a BMC application interface;
the first processing module is used for connecting the internet to generate a corresponding newly added language package according to the translation of the current positioning information, and applying the newly added language package to the BMC application interface.
9. The device for switching the BMC application interface language is characterized by comprising a memory, a memory and a memory, wherein the memory is used for storing a computer program;
a processor for implementing the steps of the method for BMC application interface language switching of any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for BMC application interface language switching according to any of the claims 1 to 7.
CN202210589904.7A 2022-05-27 2022-05-27 BMC application interface language switching method, device and medium Active CN114896018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210589904.7A CN114896018B (en) 2022-05-27 2022-05-27 BMC application interface language switching method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210589904.7A CN114896018B (en) 2022-05-27 2022-05-27 BMC application interface language switching method, device and medium

Publications (2)

Publication Number Publication Date
CN114896018A true CN114896018A (en) 2022-08-12
CN114896018B CN114896018B (en) 2023-08-11

Family

ID=82725075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210589904.7A Active CN114896018B (en) 2022-05-27 2022-05-27 BMC application interface language switching method, device and medium

Country Status (1)

Country Link
CN (1) CN114896018B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6559861B1 (en) * 1999-03-09 2003-05-06 Nortel Networks Limited Displaying computer interfaces in multiple languages
CN104516781A (en) * 2014-12-26 2015-04-15 北京元心科技有限公司 Operating system language switching method and device
CN106648575A (en) * 2015-12-29 2017-05-10 北京小米移动软件有限公司 Language setting method and apparatus
CN112068912A (en) * 2020-08-18 2020-12-11 深圳传音控股股份有限公司 System language type switching method, terminal and computer storage medium
CN113360061A (en) * 2021-05-25 2021-09-07 苏州众言网络科技股份有限公司 Language switching method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6559861B1 (en) * 1999-03-09 2003-05-06 Nortel Networks Limited Displaying computer interfaces in multiple languages
CN104516781A (en) * 2014-12-26 2015-04-15 北京元心科技有限公司 Operating system language switching method and device
CN106648575A (en) * 2015-12-29 2017-05-10 北京小米移动软件有限公司 Language setting method and apparatus
CN112068912A (en) * 2020-08-18 2020-12-11 深圳传音控股股份有限公司 System language type switching method, terminal and computer storage medium
CN113360061A (en) * 2021-05-25 2021-09-07 苏州众言网络科技股份有限公司 Language switching method and device

Also Published As

Publication number Publication date
CN114896018B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
CN107526659B (en) Method and apparatus for failover
US10601680B2 (en) Application resiliency using APIs
US20210224099A1 (en) Virtual Machine Management Method and Apparatus for Cloud Platform
CN111669284B (en) OpenStack automatic deployment method, electronic device, storage medium and system
CN112269694B (en) Management node determining method and device, electronic equipment and readable storage medium
CN110138577B (en) Cluster creation method, first server and readable storage medium
CN110968331A (en) Method and device for running application program
CN108234551B (en) Data processing method and device
CN111181787A (en) BMC parameter configuration method, device, equipment and medium
CN110716777A (en) Application program language dynamic switching method and device, storage medium and electronic equipment
CN111475175B (en) Method, device and medium for installing and guiding operation system based on ARM server
CN111176790A (en) Active maintenance method and device of cloud platform physical host and readable storage medium
CN115729673A (en) Cluster management method, management module, electronic device and medium
CN107273178B (en) Method and device for configuring virtualization system
US11071151B2 (en) Methods and apparatuses for connecting a wireless access point through an application in a user equipment
US20220038444A1 (en) Cloud device, application processing method, electronic device and storage medium
CN113449031A (en) Data synchronization management method and device and server
CN109491762B (en) Container state control method and device, storage medium and electronic equipment
CN114896018A (en) Method, device and medium for switching BMD application interface languages
CN114610446B (en) Method, device and system for automatically injecting probe
CN116069447A (en) Virtual machine NUMA topology generation method, device, equipment and medium
CN113746673B (en) Method, device, equipment and medium for deploying bare metal server ipxe
CN113687908A (en) PMEM virtual machine creation method, device, equipment and readable storage medium
CN109871226B (en) Configuration method, device and medium of downloader and electronic equipment
CN113672225A (en) User interface processing method, device, 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
GR01 Patent grant