CN110673915A - Web management page language switching method for ONU - Google Patents

Web management page language switching method for ONU Download PDF

Info

Publication number
CN110673915A
CN110673915A CN201910906205.9A CN201910906205A CN110673915A CN 110673915 A CN110673915 A CN 110673915A CN 201910906205 A CN201910906205 A CN 201910906205A CN 110673915 A CN110673915 A CN 110673915A
Authority
CN
China
Prior art keywords
language
onu
script file
production test
test command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910906205.9A
Other languages
Chinese (zh)
Inventor
徐怀坤
刘财根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Tianyi Comheart Telecom Co Ltd
Original Assignee
Sichuan Tianyi Comheart Telecom 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 Sichuan Tianyi Comheart Telecom Co Ltd filed Critical Sichuan Tianyi Comheart Telecom Co Ltd
Priority to CN201910906205.9A priority Critical patent/CN110673915A/en
Publication of CN110673915A publication Critical patent/CN110673915A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

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

Abstract

The invention discloses a web management page language switching method for an ONU (optical network unit), which comprises the following steps of: s1: setting characters of all labels of a web page in a source program to be corresponding variables; s2: editing a language script file set, and numbering each language script file; s3: compiling the language script file set and the source program together; s4: burning the compiled firmware into a storage unit of ONU hardware; s5: detecting a production test command stored in a production test area; s6: and reading the language tags under different scripts according to the production test command. According to the method and the device, all the labels of the web page are translated into the corresponding languages and stored as the language script files, and the script files of the corresponding languages are selected according to the requirements of operators, so that the same software of the ONU with the same model can meet the customization requirements of the operators in different languages of different countries.

Description

Web management page language switching method for ONU
Technical Field
The invention relates to the field of communication, in particular to a web management page language switching method for an ONU (optical network unit).
Background
With the continuous development of optical network technology, various communication products have higher and higher requirements on network transmission rate. In the Optical communication technology, an ONU (Optical Network unit) product for a Gigabit Passive Optical Network (GPON) can achieve transmission rates of 1.25Gbit/s for uplink and 2.5Gbit/s for downlink, and thus the ONU product is increasingly applied to various communication products.
Nowadays, an ONU equipment provider designs and develops an ONU, which is often sold to operators in different countries around the world, and the language of each country is often different. If an operator compiles a software version, great troubles are brought to the workload of software development, factory production, post maintenance, software version management and the like, and the problems of confusion of various versions and the like easily occur.
Disclosure of Invention
The invention aims to provide a web management page language switching method for an ONU (optical network unit) aiming at the problems.
A web management page language switching method for an ONU comprises the following steps:
s1: setting characters of all labels of a web page in a source program to be corresponding variables;
s2: editing a language script file set, and numbering each language script file;
s3: compiling the language script file set and the source program together;
s4: burning the compiled firmware into a storage unit of ONU hardware;
s5: detecting a production test command stored in a production test area;
s6: and reading the language tags under different scripts according to the production test command.
Further, the language switching method for the web management page of the ONU is characterized in that the language script file set is a script file written by a plurality of different languages, and each script file contains corresponding tag characters of all tag variables of the web page in the language.
Further, a web management page language switching method for an ONU, wherein the step S3 includes the following sub-steps:
s31: numbering each script file in the language script file set to generate a corresponding table of the script file numbers and the languages, wherein the corresponding table is used for providing a basis for an operator to perform web page language switching;
s32: compiling the language script file set and the source program provided with the variables.
Further, a web management page language switching method for an ONU, wherein the step S6 includes the following sub-steps:
s61: judging whether the production test command comprises a language production test command or not;
s62: if the language production and measurement command is included, the ONU reads a language number from a production and measurement area when the ONU is started;
s63: and if the language production test command is not included, the ONU reads a default number from the default configuration file when the ONU is started.
Further, the language generation and test command is a language number set by an operator.
Further, the default number is a number corresponding to an English character.
Further, a web management page language switching method for an ONU, further comprising a step S7 of displaying a web page tag: each tag variable on the web page reads corresponding tag characters from the language script file with the corresponding number and displays the tag characters on the web page.
The invention has the beneficial effects that: according to the method and the device, all the labels of the web page are translated into the corresponding languages and stored as the language script files, and the script files of the corresponding languages are selected according to the requirements of operators, so that the same software of the ONU with the same model can meet the customization requirements of the operators in different languages of different countries.
Drawings
FIG. 1 is a schematic flow diagram of the present invention.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will now be described with reference to the accompanying drawings.
In this embodiment, as shown in fig. 1, a web management page language switching method for an ONU includes the following steps: s1: setting characters of all labels of a web page in a source program to be corresponding variables; s2: editing a language script file set, and numbering each language script file; s3: compiling the language script file set and the source program together; s4: burning the compiled firmware into a storage unit of ONU hardware; s5: detecting a production test command stored in a production test area; s6: and reading the language tags under different scripts according to the production test command. The language script file set is a script file written by a plurality of different languages, and each script file contains corresponding label characters of all label variables of the web page under the language.
In this embodiment, a web management page language switching method for an ONU, where the step S3 includes the following sub-steps: s31: numbering each script file in the language script file set to generate a corresponding table of the script file numbers and the languages, wherein the corresponding table is used for providing a basis for an operator to perform web page language switching; s32: compiling the language script file set and the source program provided with the variables.
In this embodiment, a web management page language switching method for an ONU, where the step S6 includes the following sub-steps: s61: judging whether the production test command comprises a language production test command or not; s62: if the language production and measurement command is included, the ONU reads a language number from a production and measurement area when the ONU is started; s63: and if the language production test command is not included, the ONU reads a default number from the default configuration file when the ONU is started.
Preferably, the language test command is a language number set by an operator.
Preferably, the default number is a number corresponding to an english character.
Preferably, the web management page language switching method for the ONU further includes the step S7 of displaying a web page tag: each tag variable on the web page reads corresponding tag characters from the language script file with the corresponding number and displays the tag characters on the web page.
In this embodiment, the name of each tag on the web page is set to a corresponding variable. The name of each tag is translated into a different language. The translations of the same language are only stored in the same language script file and assigned to the variables of the corresponding labels. And numbering the translated language script files and compiling the language script files into software. The language is loaded depending on whether the ONU writes the number of the desired language.
a. And when the ONU is started, the ONU reads the language number from the production testing area and selects and loads the content in the language script file with the corresponding number.
b. And no language production test is written, and the ONU reads the number from the default configuration file and loads the default language (English) when the ONU is started.
And each label variable on the web reads the corresponding assigned translation words and sentences from the language script file and then displays the translation words and sentences.
According to the method and the device, all the labels of the web page are translated into the corresponding languages and stored as the language script files, and the script files of the corresponding languages are selected according to the requirements of operators, so that the same software of the ONU with the same model can meet the customization requirements of the operators in different languages of different countries.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (7)

1. A web management page language switching method for an ONU is characterized by comprising the following steps:
s1: setting characters of all labels of a web page in a source program to be corresponding variables;
s2: editing a language script file set, and numbering each language script file;
s3: compiling the language script file set and the source program together;
s4: burning the compiled firmware into a storage unit of ONU hardware;
s5: detecting a production test command stored in a production test area;
s6: and reading the language tags under different scripts according to the production test command.
2. The method according to claim 1, wherein the language script file set is a script file written in a plurality of different languages, and each script file contains tag characters corresponding to all tag variables of the web page in the language.
3. The method for switching web management page language of ONU of claim 1, wherein said step S3 comprises the following sub-steps:
s31: numbering each script file in the language script file set to generate a corresponding table of the script file numbers and the languages, wherein the corresponding table is used for providing a basis for an operator to perform web page language switching;
s32: compiling the language script file set and the source program provided with the variables.
4. The method for switching web management page language of ONU of claim 1, wherein said step S6 comprises the following sub-steps:
s61: judging whether the production test command comprises a language production test command or not;
s62: if the language production and measurement command is included, the ONU reads a language number from a production and measurement area when the ONU is started;
s63: and if the language production test command is not included, the ONU reads a default number from the default configuration file when the ONU is started.
5. The ONU web management page language switching method of claim 4, wherein the language production test command is a language number set by an operator.
6. The method according to claim 4, wherein the default number is a number corresponding to an English character.
7. The method for switching web management page language of ONU according to claim 1, further comprising the step of displaying web page label S7: each tag variable on the web page reads corresponding tag characters from the language script file with the corresponding number and displays the tag characters on the web page.
CN201910906205.9A 2019-09-24 2019-09-24 Web management page language switching method for ONU Pending CN110673915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910906205.9A CN110673915A (en) 2019-09-24 2019-09-24 Web management page language switching method for ONU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910906205.9A CN110673915A (en) 2019-09-24 2019-09-24 Web management page language switching method for ONU

Publications (1)

Publication Number Publication Date
CN110673915A true CN110673915A (en) 2020-01-10

Family

ID=69077432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910906205.9A Pending CN110673915A (en) 2019-09-24 2019-09-24 Web management page language switching method for ONU

Country Status (1)

Country Link
CN (1) CN110673915A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117055999A (en) * 2023-08-11 2023-11-14 重庆蓝鲸智联科技有限公司 Method for realizing default language configuration of Android vehicle-mounted system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289376A (en) * 2011-09-16 2011-12-21 烽火通信科技股份有限公司 Embedded multi-language WEB page realization method and system
CN102981851A (en) * 2012-11-15 2013-03-20 深圳市共进电子股份有限公司 Rapid development and maintenance system and method for embedded type network device interface language
CN106569793A (en) * 2016-09-19 2017-04-19 济南浪潮高新科技投资发展有限公司 Node.js-based internationalization realization method
CN107451128A (en) * 2017-08-04 2017-12-08 深圳Tcl新技术有限公司 Multilingual code adaptation method, equipment and storage medium
CN108228179A (en) * 2017-12-22 2018-06-29 东软集团股份有限公司 The international processing method of the page, device, computer and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289376A (en) * 2011-09-16 2011-12-21 烽火通信科技股份有限公司 Embedded multi-language WEB page realization method and system
CN102981851A (en) * 2012-11-15 2013-03-20 深圳市共进电子股份有限公司 Rapid development and maintenance system and method for embedded type network device interface language
CN106569793A (en) * 2016-09-19 2017-04-19 济南浪潮高新科技投资发展有限公司 Node.js-based internationalization realization method
CN107451128A (en) * 2017-08-04 2017-12-08 深圳Tcl新技术有限公司 Multilingual code adaptation method, equipment and storage medium
CN108228179A (en) * 2017-12-22 2018-06-29 东软集团股份有限公司 The international processing method of the page, device, computer and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117055999A (en) * 2023-08-11 2023-11-14 重庆蓝鲸智联科技有限公司 Method for realizing default language configuration of Android vehicle-mounted system

Similar Documents

Publication Publication Date Title
CN108664239B (en) Cross-technology-stack web front-end development system and method based on micro-service
CN106528129B (en) A kind of Web application interface generation system and method
CN101916192B (en) Multi-language switching method and device for user interface
CN106569824B (en) Method and apparatus, the method and apparatus of page rendering of page data compiling
CN106293664A (en) Code generating method and device
CN108920250A (en) The method and device of Application Container
CN104407863A (en) Abstract control model programming device and method
US7325229B2 (en) Method for graphically visualizing an automatism application and computer terminal for carrying out said method
CN110333863A (en) A kind of method and device for generating, showing the small routine page
CN103176778B (en) Web development methods and device
CN106933568B (en) Configuration software system and industrial control method
CN106294493A (en) Realize the method and device of document format conversion
CN104298725A (en) Method for one-time editing input and multi-version output of on-line courseware development system
CN103532756A (en) Command line system and command line operation method based on webmaster system
CN110297637B (en) Resource file hot-reloading development tool and method applicable to full-platform client software
CN110297636A (en) A kind of automatic production of HTML page and parameter management method based on page configuration file, system and device
CN101246420A (en) Method and system for multi-language system implementing unified development
CN103412742A (en) Method and device for application program to be configured with UI
US10282174B2 (en) Software layout processing localization
CN109116828A (en) Model code configuration method and device in a kind of controller
CN108984544A (en) A kind of method and apparatus of distributed system modification configuration information
CN100449484C (en) Method and system for generating artificial equipment panel
CN106557454A (en) Conversion method and converting system of the document to form
CN110673915A (en) Web management page language switching method for ONU
CN106775914B (en) A kind of code method for internationalizing and device for automatically generating key assignments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200110

RJ01 Rejection of invention patent application after publication