CN107122190A - A kind of multilingual static page generation method, server and storage medium - Google Patents
A kind of multilingual static page generation method, server and storage medium Download PDFInfo
- Publication number
- CN107122190A CN107122190A CN201710287717.2A CN201710287717A CN107122190A CN 107122190 A CN107122190 A CN 107122190A CN 201710287717 A CN201710287717 A CN 201710287717A CN 107122190 A CN107122190 A CN 107122190A
- Authority
- CN
- China
- Prior art keywords
- language
- page
- template
- static page
- server
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Machine Translation (AREA)
Abstract
The invention discloses a kind of multilingual static page generation method, server and storage medium, comprising:Design static page template and standard language bag;By the static page template upload server, server is according to the static page template generation template page of upload;Various countries' language pack upload server that content according to standard language bag and form are generated simultaneously imports template page, and server background generates the static page of various countries' language.The present invention makes the page product process of Multi-language site simplify, improve page access speed.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of multilingual static page generation method, server and
Storage medium.
Background technology
Developed rapidly with internet and internationalization trade, many enterprises need in face of Global Subscriber and carried for it
For more perfect E-business service, in the construction of increasing national sites in full preparation.The wound of the multilingual page
Build and be modified as in order to which one cumbersome and the problem of labor intensive.When a new product is issued, it is necessary to quickly all
Country all adds these product pages.
Way is at present:
1st, Normal practice:Using the english language version page as template, the translation of the page of each country is carried out, and translated
The page is taken backstage and issued.Specifically, English edition template page is made by developer, then English template page handed over
To translation company, the template page of every country is translated according to English template page by translation company, then by operation personnel one
Each and every one is issued the page, and workload is big and takes very much.
2nd, there is a kind of improvement way based on Normal practice at present:Using the English edition page as template, each country's page
Translation is carried out in face, generates static file, equally file progress translation generation is multi-lingual one by one according to this template by operation personnel
The static template of speech, is doing unified issue to multi-lingual static page, shortcoming page translation amount is big by developer,
If the page needs modification, developer needs frequently to repair static page, causes huge workload, and exist larger
Malfunction chance.
Both the above way can not all avoid when the translation and modification to template page what the page one by one modified from asking
Topic.With further increasing for national sites, when the quantity of national sites reaches certain amount, such as 50,60 states
Family's website, such page published method causes the translation of early stage cumbersome, takes, and mistake easily occurs, is unfavorable for production
Quick replacement of the product on website.
The content of the invention
It is a primary object of the present invention to propose that a kind of method, server and the storage of multilingual static page generation are situated between
Matter, it is intended to solve in the case where possessing the e-commerce system of huge national sites, the page generating mode of prior art,
Make the problem of generating process of the page of many national languages is complicated, time-consuming, modification takes and changes difficult, error-prone.
To achieve the above object, a kind of multilingual static page generation method that the present invention is provided, is comprised the steps of:
Design static page template and standard language bag;
By the static page template upload server, server is according to the static page template generation page template of upload
Face;
Various countries' language pack upload server that content according to standard language bag and form are generated simultaneously imports template page,
Server background generates the static page of various countries' language.
Further, " the various countries' language pack for generating the content according to standard language bag and form is uploaded to be taken the step
Business device simultaneously imports template page, and server background generates the static page of various countries' language " it is further arranged to:
All labels of each template page are read, the label translation in the language pack imported in each template page are obtained, more
Change each label to translate for corresponding label, server background code generates the static state of various countries' language according to template label and language pack
The page.
Further, step " the various countries' language pack upload server for generating the content according to standard language bag and form
And template page is imported, and server background generates the static page of various countries' language " step is also included afterwards:
Language pack is changed, by amended language pack upload server and template page is imported, server background generation is new
The static page of language pack.
Further, the standard language bag is English language bag.
Further, the static page template is one or more.
In addition, to achieve the above object, the present invention also proposes a kind of multilingual static page generation server, comprising:
Formwork module, for receiving the static page template uploaded;
Language pack module, for receiving the various countries' language pack uploaded, various countries' language pack is according in standard language bag
Hold and form generation;
Generation module, for various countries' language pack to be imported into template page, generates the static page of various countries' language.
Further, the generation module is further arranged to, and reads all labels of each static page, recognizes each static state
The language that the page is imported, changes all labels of each static page to import the correspondence translation in language pack, according to template label
And language pack generation static page.
Further, also comprising update module, for detecting whether there is old correspondence after renewal language pack is received
Language pack, if it is present covering old corresponding language pack to update language pack.
Further, the standard language bag is English language bag;The static page template is one or more.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable
Be stored with multilingual static page generation program on storage medium, and the multilingual static page generation program is executed by processor
The step of Shi Shixian any of the above-described multilingual static page generation methods.
Method, server and the storage medium of multilingual static page generation proposed by the present invention, design fixed static state
Page Template, and translation is placed on the language pack stage, the static page of various countries' language is generated according to each language bag, is kept away
Exempt from the efficiency that are cumbersome, improving multiple national pages generations of later stage page translation, adjustment one by one, when needing to change product information
When, it is only necessary to language pack is updated, carry out the page with the language pack of renewal generates again, you can complete the product page more
Newly, operation developer's workload is effectively reduced.
Brief description of the drawings
A kind of multilingual static page generation method schematic flow sheet that Fig. 1 provides for first embodiment of the invention;
A kind of multilingual static page generation method schematic flow sheet that Fig. 2 provides for second embodiment of the invention;
A kind of server architecture schematic diagram for the multilingual static page of generation that Fig. 3 provides for third embodiment of the invention.
A kind of server architecture schematic diagram for the multilingual static page of generation that Fig. 4 provides for fourth embodiment of the invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Each embodiment of the invention is realized referring now to accompanying drawing description.In follow-up description, using for representing member
The suffix of such as " module ", " part " or " unit " of part is only for being conducive to the explanation of the present invention, and itself is not specific
Meaning.Therefore, " module " can be used mixedly with " part ".
Embodiment one
As shown in figure 1, first embodiment of the invention proposes a kind of multilingual static page generation method, following step is included
Suddenly:
S101, design static page template and standard language bag;
In general, static page template is that front end developer exports according to design original text design, contains the figure of design
Shape interface and word content, wherein word content can first select a kind of language as template instruction, such as English or Chinese, typically
In order to change the convenience of other language, English can be selected as template instruction.Being used wherein in static page template
Language can be output as template instruction bag, and the template instruction bag is transmitted to body translation as standard language coating and translates into various countries
The language pack of language.The form of standard language bag such as following table (table 1):
Z11-TITLE | nubia Z11 Dream without Boundaries |
Table 1
As shown in table 1, first label substance is classified as, second is classified as template instruction content.Translator is every according to the form of table 1
Row each column translates corresponding language, form format and the identical various countries language pack of table 1.
A kind of static page template of language can be multiple as needed, or one, such as one product
The page is issued, is a static page template, the issue page of multiple products is multiple static page templates, or each product
The page multiple static page templates can be set as needed.By taking international electronic commerce platform as an example, a usual electronics business
Business platform is included can show each product under multiple national sites, each national sites with this national language.Each country
Included under website the product showed under the page of multiple products, every country website can all identical or part it is identical.
S102, by the static page template upload server, server is according to the static page template generation mould of upload
The plate page;
Wherein, in order to realize that the page is issued, by the static page template upload server of designed determination, server can be by
The static page template of all uploads imports backstage and generates the corresponding template page of each static page template, waits further supplement
Information.
S103, various countries' language pack upload server that the content according to standard language bag and form are generated simultaneously imports template
The page, the static page of server background code building various countries language.
Various countries' language pack forms various countries' language pack for the content translation based on standard language bag, and form and standard language bag are complete
Full correspondence, to meet the call format for importing template page.It is general that standard language bag translation output various countries are based on by translation company
Language pack, then uploaded onto the server by operation management personnel.
Server is received after various countries' language pack, operation management personnel's login service device backstage, the static page on backstage
In generation module, select template and import various countries' language pack file, click on the generation page, you can the static page of generation various countries' language
Face.
It is described generation the page detailed process be:
Operation personnel logs in background program, selects a static template page, by taking template page Z11_TPL.html as an example,
Then language pack file Z11_DE.Xlsx, the language pack file such as following table (table of importing are imported in the static page template of selection
2), the language pack file is the German language bag generated according to standard language bag;
Z11-TITLE | nubia Z11 Grenzenlos Traumen |
Table 2
Server background program reads all template labels in the static template page, and confirms that the language pack is moral
The language pack of state (de) website, then obtains the corresponding Germanization of the template label in language pack, with the Germanization of reading
The English label in template is replaced, the static page Z11_DE.html of German is then regenerated, that is, corresponds to ecommerce and puts down
The static page at Germany station under platform.If the page is existing, the page is updated, the page is generated if the page is not present.
So far, when user accesses the Z11 pages of Germany site, the page can jump directly to Z11_DE.html, without after
Amoyese is overstated newly compiled.Several ways for the prior art that compares, for example:
Normal multilingual static page, as some ways are to import language file by backstage, generates js files, user
Opened by browser, browser need to perform the parsing of js language files and text is replaced, therefore browser generation static page
Time it is longer, user needed in face of browser wait longer time.Also a kind of existing way, the page is quiet by puppet
The mode of state actually does parsing come what is realized with backstage dynamic language, and the speed of access is slower.So the present invention
For a user, the time that the page is presented greatly shortens scheme, thus Consumer's Experience gets a promotion.
The multilingual static page generation method of implementation above, various countries' language pack correspondence fixed form is made with unified form
The mode of the page, each language static page is directly generated in server background, realizes the once generation of the product different language page,
It is simplified in flow, accelerates speed to introduce of the product in the different language page, and during user's opening related pages, beat
What is opened is directly the static page for having generated completion, and the prior art that compares carries out standard language to turning over during opening
The processing mode of the conversion of language is translated, user eliminates the stand-by period, and usage experience is more preferable.
Embodiment two
As shown in Fig. 2 second embodiment of the invention proposes a kind of multilingual static page generation method, following step is included
Suddenly:
S201, design static page template and standard language bag;
Static page template, by front end developer according to design original text design export, contain design graphical interfaces and
Word content, wherein word content can first select a kind of language as template instruction, such as English or Chinese, typically in order to change
The convenience of other language, can select English as template instruction.The language used wherein in static page template can quilt
Output is as template instruction bag, and the template instruction bag is transmitted to the language that body translation translates into various countries' language as standard language coating
Speech bag.
The form of standard language bag such as following table (table 1):
Z11-TITLE | nubia Z11 Dream without Boundaries |
Table 1
As shown in table 1, first label substance is classified as, second is classified as template instruction content.Translator is every according to the form of table 1
Row each column translates corresponding language, form format and the identical various countries language pack of table 1.
Static page template can be multiple as needed, or one, and the issue page of such as one product is
One static page template, the issue pages of multiple products is multiple static page templates, or each product the page according to
Need that multiple static page templates can be set.By taking international electronic commerce platform as an example, a usual e-commerce platform is included
Each product can be showed with this national language under multiple national sites, each national sites.Included under each national sites
Product under the page of multiple products, every country website can all identical or part it is identical, the page of each product according to
Need to could be arranged to a static page template or multiple static page templates.
S202, by the static page template upload server, server is according to the static page template generation mould of upload
The plate page;
Wherein, in order to realize that the page is issued, by the static page template upload server of designed determination, server can be by
The static page template of all uploads imports backstage and generates the corresponding template page of each static page template, waits further supplement
Information.
S203, various countries' language pack upload server that the content according to standard language bag and form are generated simultaneously imports template
The page, the static page of server background code building various countries language.
Various countries' language pack forms various countries' language pack for the content translation based on standard language bag, and form and standard language bag are complete
Full correspondence, to meet the call format for importing template page.It is general that standard language bag translation output various countries are based on by translation company
Language pack, then uploaded onto the server by operation management personnel.
Server is received after various countries' language pack, operation management personnel's login service device backstage, the static page on backstage
In generation module, select a static page template and import various countries' language pack file, click on the generation page, you can generation various countries
The static page of language.
It is described generation the page detailed process be:
Operation personnel logs in background program, selects a static template page, by taking template page Z11_TPL.html as an example,
Import German language APMB package Z11_DE.Xlsx;According to the language pack file of importing such as following table (table 2), the language pack file
The German language bag of standard language bag generation;
Z11-TITLE | nubia Z11 Grenzenlos Traumen |
Table 2
Background program reads all template labels in the template page, and confirms that the language pack is German (de) website
Language pack, then obtain the corresponding Germanization of the template label in language pack, replaced with the Germanization of reading in template
English label, then regenerate the static page Z11_DE.html of German, that is, correspond to e-commerce platform under Germany station
Static page.If the page is existing, the page is updated, the page is generated if the page is not present.
So far, when user accesses the Z11 pages of Germany site, the page can jump directly to Z11_DE.html, without after
Amoyese is overstated newly compiled.Several ways for the prior art that compares, for example:
Normal multilingual static page, as some ways are to import language file by backstage, generates js files, user
Opened by browser, browser need to perform the parsing of js language files and text is replaced, therefore browser generation static page
Time it is longer, user needed in face of browser wait longer time.Also a kind of existing way, the page is quiet by puppet
The mode of state actually does parsing come what is realized with backstage dynamic language, and the speed of access is slower.So the present invention
For a user, the time that the page is presented greatly shortens scheme, thus Consumer's Experience gets a promotion.
S204, changes language pack, by amended language pack upload server and imports template page, server background generation
Code generation updates the static page of language pack.
When needing to carry out information updating to Related product, it is only necessary to which the corresponding information of language pack is modified and turned over
Translate, output updates language pack, then will update language pack upload server, and import the corresponding templates page, clicking on generation can be complete
The unified renewal of product information under into each language website.
The multilingual static page generation method of implementation above, by way of updating language pack, by amended language
Bag import template page again, you can reach modification the page effect, compare in the prior art to associated stations information one by one
The mode updated is changed, is simplified in program, is updated more efficient.
Embodiment three
The embodiment of the present invention three further provides for a kind of multilingual static page generation server.
Server, also referred to as servomechanism, are to provide the equipment of the service of calculating.Because server needs to respond service request, and
Handled, therefore in general server should possess the ability for undertaking and servicing and ensure service.The composition of server includes
Processor, memory, internal memory, system bus etc., it is similar with general computer architecture, but be due to need to provide highly reliable
Service, therefore require higher in terms of disposal ability, stability, reliability, security, scalability, manageability.In net
It is different according to the service type that server is provided under network environment, it is divided into file server, database server, application program clothes
Business device, WEB server etc..
Processor generally controls the overall operation of server, is the core of server.For example, computing device and language
Sound call, data communication, video calling etc. related control and processing.Processor can be with execution pattern identifying processing, will
The handwriting input performed on the touchscreen or picture draw input and are identified as character or image.
Except processor, hard disk, internal memory, system bus etc., as needed, server can also include display unit or aobvious
Show device and power subsystem.
Display unit, for showing the information handled in the server.Display unit can include liquid crystal display
(LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) show
Show at least one of device etc..Some in these displays may be constructed such that transparence to allow user to see from outside
See, this is properly termed as transparent display, typical transparent display can be, for example, that TOLED (transparent organic light emitting diode) shows
Show device etc..According to specific desired embodiment, server can include two or more display units (or other display dresses
Put), for example, server can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can use
In detection touch input pressure and touch input position and touch input area.
Memory includes the storage medium of at least one type, the storage medium include flash memory, hard disk, multimedia card,
Card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access memory
(SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, server can be with the storage by network connection execution memory
The network storage device cooperation of function.
Power subsystem receives external power or internal power and provides each element of operation and group under the control of a processor
Appropriate electric power needed for part.
The server that the present embodiment is related to, in addition to including above-mentioned basic function, reference picture 3 is also included:Formwork module
10th, language pack module 20, generation module 30.
Formwork module 10, for receiving the static page template uploaded.
Static page template is front end developer according to design original text design output and upload server.Static page template
Graphical interfaces and word content that design is determined are contained, wherein word content can first select a kind of language as template instruction,
Such as English or Chinese, typically for the convenience for changing other language, can select English as template instruction.Wherein static page
The language used in face die plate can be output as template instruction bag, and template instruction coating is transmitted to body translation and translated into
The language pack of various countries' language.Static page template can be multiple as needed, or one, the hair of such as one product
The cloth page, is a static page template, the issue page of multiple products is multiple static page templates.With international electronic commerce
Exemplified by platform, a usual e-commerce platform is included can be with this national language under multiple national sites, each national sites
Speech shows each product.The product included under each national sites under the page of multiple products, every country website can be whole
Identical or part is identical.
Language pack module 20, for receiving the various countries' language pack uploaded, various countries' language pack is according to unified standard language
Content and the form generation of bag;
Generation module 30, for various countries' language pack to be imported into template page, the static page of backstage code building various countries language
Face.
Various countries' language pack that various countries' language pack is formed for the content translation based on standard language bag, form and standard language bag
It is completely corresponding, to meet the call format for importing template page.It is general that standard language bag translation output is based on respectively by translation company
State's language pack, then the language pack module 20 uploaded onto the server by operation management personnel.
Server language pack module 20 is received after various countries' language pack, operation management personnel's login service device backstage, rear
Platform selects template and imports various countries' language pack file, clicks on the generation page, and generation module 30 can generate the static state of various countries' language
The page.
The detailed process of the generation module 30 generation page is:
Operation personnel logs in background program, and the static template page of selection by taking template page Z11_TPL.html as an example, is led
Enter language pack file Z11_DE.Xlsx;Server generation module 30 reads all template labels in the template page, and really
Recognize the language pack that the language pack is German (de) website, then obtain the corresponding Germanization of the template label in language pack, with
The Germanization of reading replaces the English label in template, then regenerates the static page Z11_DE.html of German, i.e.,
The static page at Germany station under correspondence e-commerce platform.If the page is existing, the page is updated, is given birth to if the page is not present
Into the page.
So far, when user accesses the Z11 pages of Germany site, the page can jump directly to static page Z11_
DE.html, is recompilated without backstage language.Several ways for the prior art that compares, for example:
Normal multilingual static page, as some ways are to import language file by backstage, generates js files, user
Opened by browser, browser need to perform the parsing of js language files and text is replaced, therefore browser generation static page
Time it is longer, user needed in face of browser wait longer time.Also a kind of existing way, the page is quiet by puppet
The mode of state actually does parsing come what is realized with backstage dynamic language, and the speed of access is slower.So the present invention
For a user, the time that the page is presented greatly shortens scheme, thus Consumer's Experience gets a promotion.
The multilingual static page generation server of implementation above, each national language for making unified form in server background
Speech bag and the fixed form page directly generate each language static page, realize the once generation of the product different language page, flow
Simplify, accelerate speed to introduce of the product in the different language page, and during user's opening related pages, opening is directly
The static page completed through generation, the prior art that compares carries out conversion of the standard language to interpreter language during opening
Processing mode, user eliminates the stand-by period, and usage experience is more preferable.
Example IV
Fourth embodiment of the invention further provides for a kind of multilingual static page generation server, reference picture 4, comprising:
Formwork module 10, language pack module 20, generation module 30, update module 40.
Wherein formwork module 10, for receiving the static page template uploaded.
In general, static page template is front end developer according to design original text design output and upload server.It is quiet
State Page Template contains the graphical interfaces and word content that design is determined, wherein word content can first select a kind of language conduct
Template instruction, such as English or Chinese, typically for the convenience for changing other language, can select English as template instruction.
The language used wherein in static page template can be output as template instruction bag, and template instruction coating is transmitted to translation
Mechanism translates into the language pack of various countries' language.Static page template can be multiple as needed, or one, such as one
The issue page of individual product, is a static page template, the issue page of multiple products is multiple static page templates.With state
Exemplified by the e-commerce platform of border, a usual e-commerce platform is included can be with this under multiple national sites, each national sites
Individual national language shows each product.The production under the page of multiple products, every country website is included under each national sites
Product can all identical or part it is identical.
Language pack module 20, for receiving the various countries' language pack uploaded, various countries' language pack is according to unified standard language
Content and the form generation of bag;
Generation module 30, for various countries' language pack to be imported into template page, the static page of backstage code building various countries language
Face.
Various countries' language pack that various countries' language pack is formed for the content translation based on standard language bag, form and standard language bag
It is completely corresponding, to meet the call format for importing template page.It is general that standard language bag translation output is based on respectively by translation company
State's language pack, then the language pack module 20 uploaded onto the server by operation management personnel.
Server language pack module 20 is received after various countries' language pack, operation management personnel's login service device backstage, rear
Platform selects template and imports various countries' language pack file, clicks on the generation page, and generation module 30 can generate the static state of various countries' language
The page.
The detailed process of the generation module 30 generation page is:
Operation personnel logs in background program, and the static template page of selection by taking template page Z11_TPL.html as an example, is led
Enter language pack file Z11_DE.Xlsx;Server generation module 30 reads all template labels in the template page, and really
Recognize the language pack that the language pack is German (de) website, then obtain the corresponding Germanization of the template label in language pack, with
The Germanization of reading replaces the English label in template, then regenerates the static page Z11_DE.html of German, i.e.,
The static page at Germany station under correspondence e-commerce platform.If the page is existing, the page is updated, is given birth to if the page is not present
Into the page.
So far, when user accesses the Z11 pages of Germany site, the page can jump directly to static page Z11_
DE.html, is recompilated without backstage language.Several ways for the prior art that compares, for example:
Normal multilingual static page, as some ways are to import language file by backstage, generates js files, user
Opened by browser, browser need to perform the parsing of js language files and text is replaced, therefore browser generation static page
Time it is longer, user needed in face of browser wait longer time.Also a kind of existing way, the page is quiet by puppet
The mode of state actually does parsing come what is realized with backstage dynamic language, and the speed of access is slower.So the present invention
For a user, the time that the page is presented greatly shortens scheme, thus Consumer's Experience gets a promotion.
Update module 40, for detecting whether there is old corresponding language pack after renewal language pack is received, if deposited
Then the old language pack of correspondence is being covered to update language pack.
When needing to carry out information updating to Related product, it is only necessary to which the corresponding information of language pack is modified and turned over
Translate, output updates language pack, then will update language pack upload server, the detection service device of update module 40 is with the presence or absence of old
Correspondence language pack, if it is present to update the language pack that language pack covering correspondence is old.Then language pack will be updated and import correspondence
Template page, clicks on generation, and generation module 30 can complete the unified renewal of product information under each language website.
The multilingual static page generation server of implementation above, by way of updating language pack, by amended language
Speech bag imports template page again, you can reach the effect of the modification page, compares and the associated stations page is believed in the prior art
Breath changes the mode of renewal one by one, is simplified in program, updates more efficient.
Embodiment five
It is stored with a kind of calculation machine computer-readable recording medium of fifth embodiment of the invention offer, the computer-readable recording medium many
Language static page generates program, and the multilingual static page generation program is executed by processor following operation:
Receive the upload of static page template and standard language bag;According to the static page template generation page template of upload
Face;
Various countries' language pack upload server that content according to standard language bag and form are generated simultaneously imports template page,
The static page of server background code building various countries language.
The static page template is that front end developer exports according to design original text design, contains the graphical interfaces of design
And word content, wherein word content can first select a kind of language as template instruction, such as English or Chinese, typically in order to turn
The convenience of other language is changed, English can be selected as template instruction.The language used wherein in static page template can
Template instruction bag is output as, the template instruction bag is transmitted to body translation as standard language coating and translates into various countries' language
Language pack.Static page template can be multiple as needed, or one, and the issue page of such as one product is
One static page template, the issue page of multiple products is multiple static page templates.By taking international electronic commerce platform as an example,
A usual e-commerce platform is included can show each under multiple national sites, each national sites with this national language
Product.The product included under each national sites under the page of multiple products, every country website can all identical or part
Identical, the page of each product could be arranged to a static page template or multiple static page templates as needed.
Wherein, in order to realize that the page is issued, by the static page template upload server of designed determination, server can be by
The static page template of all uploads imports backstage and generates the corresponding template page of each static page template, waits further supplement
Information.
Various countries' language pack forms various countries' language pack for the content translation based on standard language bag, and form and standard language bag are complete
Full correspondence, to meet the call format for importing template page.It is general that standard language bag translation output various countries are based on by translation company
Language pack, then uploaded onto the server by operation management personnel.
Server is received after various countries' language pack, operation management personnel's login service device backstage, the static page on backstage
In generation module, select template and import various countries' language pack file, click on the generation page, you can the static page of generation various countries' language
Face.
It is described generation the page detailed process be:
Operation personnel logs in background program, and the static template page of selection by taking template page Z11_TPL.html as an example, is led
Enter language pack file Z11_DE.Xlsx;Background program reads all template labels in the template page, and confirms the language
Wrap as the language pack of German (de) website, the corresponding Germanization of the template label in language pack is then obtained, with the moral of reading
The English label in template is replaced in language translation, then regenerates the static page Z11_DE.html of German, that is, corresponds to electronics
The static page at Germany station under business platform.If the page is existing, the page is updated, the page is generated if the page is not present.
So far, when user accesses the Z11 pages of Germany site, the page can jump directly to Z11_DE.html, without after
Amoyese is overstated newly compiled.For a user, the time that the page is presented greatly shortens, thus Consumer's Experience gets a promotion.
Optionally further perform operation:Language pack is changed, by amended language pack upload server and template is imported
The page, server background code building updates the static page of language pack.
When needing to carry out information updating to Related product, it is only necessary to which the corresponding information of language pack is modified and turned over
Translate, output updates language pack, then will update language pack upload server, and import the corresponding templates page, clicking on generation can be complete
The unified renewal of product information under into each language website.
The processor can be arranged on a kind of server, form a kind of server.
Server, also referred to as servomechanism, are to provide the equipment of the service of calculating.Because server needs to respond service request, and
Handled, therefore in general server should possess the ability for undertaking and servicing and ensure service.The composition of server includes
Processor, memory, internal memory, system bus etc., it is similar with general computer architecture, but be due to need to provide highly reliable
Service, therefore require higher in terms of disposal ability, stability, reliability, security, scalability, manageability.In net
It is different according to the service type that server is provided under network environment, it is divided into file server, database server, application program clothes
Business device, WEB server etc..
Processor generally controls the overall operation of server, is the core component of server.For example, computing device
The control and processing related to voice call, data communication, video calling etc..Processor can with execution pattern identifying processing,
Character or image are identified as so that the handwriting input performed on the touchscreen or picture are drawn into input.
Memory can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, multimedia
Card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access memory
(SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, server can be with the storage by network connection execution memory
The network storage device cooperation of function.
Except processor, memory, internal memory, system bus etc., display unit or display can also be included as needed
And power subsystem.
Display unit, for showing the information handled in the server.Display unit can include liquid crystal display
(LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) show
Show at least one of device etc..Some in these displays may be constructed such that transparence to allow user to see from outside
See, this is properly termed as transparent display, typical transparent display can be, for example, that TOLED (transparent organic light emitting diode) shows
Show device etc..According to specific desired embodiment, server can include two or more display units (or other display dresses
Put), for example, server can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can use
In detection touch input pressure and touch input position and touch input area.
Power subsystem receives external power or internal power and provides each element of operation and group under the control of a processor
Appropriate electric power needed for part.
Program on medium stored above realizes following technique effect after computing device:
The static page of each language is generated according to the Page Template of the fixation of design and each language bag, due to that will translate
Work be placed on the language pack stage, it is to avoid the later stage one by one the page translation adjustment it is cumbersome, effectively reduce operation developer work
Amount, when needing modification product information, it is only necessary to which language pack is updated, carries out the page secondary again with the language pack of renewal
Into, you can complete product renewal of the page.
On the whole, innovative point of the invention is:
1st, the language pack template that translation company exports according to front end developer, translates the language pack of every country, operation
Personnel reduce translation amount without repeating the translation page, improve operating efficiency.
2nd, server can just generate static page on backstage according to Page Template and language pack, and user directly accesses static state
The page improves access speed.Exist in static page generation with the different place of language pack used in traditional multi-language website
Backstage language (such as php) is needed not move through when when user to access pages and carries out page translation, so as to improve the visit of the page
Ask speed.
3rd, language pack is updated by backstage if necessary to modification page word, without developer's deployment,
Workload is reduced, operating efficiency is improved.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Program gate array (FPGA), processor, microprocessor, microprocessor, the electronics list for being designed to perform function described herein
At least one of member is implemented, and in some cases, such embodiment can be implemented within a processor.It is real for software
Apply, the embodiment of such as process or function can be come with the single software module for allowing to perform at least one function or operation
Implement.Software code can be implemented by the software application (or program) write with any appropriate programming language, software
Code can be stored in memory and by computing device.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes
It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of multilingual static page generation method, it is characterised in that comprise the steps of:
Design static page template and standard language bag;
By the static page template upload server, server is according to the static page template generation template page of upload;
Various countries' language pack upload server that content according to standard language bag and form are generated simultaneously imports template page, services
Device backstage generates the static page of various countries' language.
2. multilingual static page generation method according to claim 1, it is characterised in that:The step " will be according to mark
Various countries' language pack upload server of content and the form generation of quasi-language bag simultaneously imports template page, and server background generation is each
The static page of state's language " is further arranged to:
All labels of each template page are read, the label translation in the language pack imported in each template page is obtained, changes each
Label is translated for corresponding label, and server background code generates the static page of various countries' language according to template label and language pack
Face.
3. multilingual static page generation method according to claim 1, it is characterised in that:Step " will be according to standard speech
Say the content of bag and various countries' language pack upload server of form generation and import template page, server background generates each national language
Step is also included after the static page of speech ":
Language pack is changed, by amended language pack upload server and template page is imported, server background generation newspeak
The static page of bag.
4. multilingual static page generation method according to claim 1, it is characterised in that:The standard language bag is English
Language language pack.
5. multilingual static page generation method according to claim 1, it is characterised in that:The static page template is
It is one or more.
6. a kind of multilingual static page generation server, it is characterised in that include:
Formwork module, for receiving the static page template uploaded;
Language pack module, for receiving the various countries' language pack uploaded, various countries' language pack according to the content of standard language bag and
Form is generated;
Generation module, for various countries' language pack to be imported into template page, generates the static page of various countries' language.
7. multilingual static page generation server according to claim 6, it is characterised in that:The generation module enters one
Step is set to, and reads all labels of each static page, recognizes the language that each static page is imported, and changes the institute of each static page
There is label to import the correspondence translation in language pack, static page is generated according to template label and language pack.
8. multilingual static page generation server according to claim 6, it is characterised in that:Update module is also included,
For detecting whether there is old corresponding language pack after renewal language pack is received, if it is present to update language cladding
The old corresponding language pack of lid.
9. multilingual static page generation server according to claim 6, it is characterised in that:The standard language bag is
English language bag;The static page template is one or more.
10. a kind of computer-readable recording medium, it is characterised in that be stored with the computer-readable recording medium multilingual
Static page generates program, and the multilingual static page generation program is realized as in claim 1 to 5 when being executed by processor
The step of multilingual static page generation method described in any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710287717.2A CN107122190A (en) | 2017-04-27 | 2017-04-27 | A kind of multilingual static page generation method, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710287717.2A CN107122190A (en) | 2017-04-27 | 2017-04-27 | A kind of multilingual static page generation method, server and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107122190A true CN107122190A (en) | 2017-09-01 |
Family
ID=59726409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710287717.2A Pending CN107122190A (en) | 2017-04-27 | 2017-04-27 | A kind of multilingual static page generation method, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107122190A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108021423A (en) * | 2017-12-15 | 2018-05-11 | 语联网(武汉)信息技术有限公司 | A kind of Multilingual website generating method, system and computer-readable recording medium |
CN108287880A (en) * | 2018-01-05 | 2018-07-17 | 广东睿江云计算股份有限公司 | A kind of international method and device of homepages language |
CN109936764A (en) * | 2019-03-20 | 2019-06-25 | 四川九州电子科技股份有限公司 | The multi-language switching method and system realized based on set top box operations system |
CN109947512A (en) * | 2019-03-18 | 2019-06-28 | 北京字节跳动网络技术有限公司 | A kind of text adaptation display methods, device, server and storage medium |
CN111124406A (en) * | 2019-12-10 | 2020-05-08 | 东软集团股份有限公司 | Static page language switching method and device, storage medium and electronic equipment |
CN111159616A (en) * | 2019-12-31 | 2020-05-15 | 深圳市丰润达科技有限公司 | Multi-language-based switch management method and device and storage medium |
CN111857700A (en) * | 2020-07-22 | 2020-10-30 | 南京欣网互联网络科技有限公司 | Template marketing activity publishing method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140244236A1 (en) * | 2013-02-28 | 2014-08-28 | Open Text S.A. | System, method and computer program product for multilingual content management |
CN104182425A (en) * | 2013-05-28 | 2014-12-03 | 北京信威通信技术股份有限公司 | Static page generation method for multi-language website |
CN104978394A (en) * | 2015-05-08 | 2015-10-14 | 安徽机电职业技术学院 | Webpage tag data organization and update method for multi-language display |
CN106406887A (en) * | 2016-09-21 | 2017-02-15 | 郑州云海信息技术有限公司 | A web software development method and system |
-
2017
- 2017-04-27 CN CN201710287717.2A patent/CN107122190A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140244236A1 (en) * | 2013-02-28 | 2014-08-28 | Open Text S.A. | System, method and computer program product for multilingual content management |
CN104182425A (en) * | 2013-05-28 | 2014-12-03 | 北京信威通信技术股份有限公司 | Static page generation method for multi-language website |
CN104978394A (en) * | 2015-05-08 | 2015-10-14 | 安徽机电职业技术学院 | Webpage tag data organization and update method for multi-language display |
CN106406887A (en) * | 2016-09-21 | 2017-02-15 | 郑州云海信息技术有限公司 | A web software development method and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108021423A (en) * | 2017-12-15 | 2018-05-11 | 语联网(武汉)信息技术有限公司 | A kind of Multilingual website generating method, system and computer-readable recording medium |
CN108287880A (en) * | 2018-01-05 | 2018-07-17 | 广东睿江云计算股份有限公司 | A kind of international method and device of homepages language |
CN109947512A (en) * | 2019-03-18 | 2019-06-28 | 北京字节跳动网络技术有限公司 | A kind of text adaptation display methods, device, server and storage medium |
CN109936764A (en) * | 2019-03-20 | 2019-06-25 | 四川九州电子科技股份有限公司 | The multi-language switching method and system realized based on set top box operations system |
CN111124406A (en) * | 2019-12-10 | 2020-05-08 | 东软集团股份有限公司 | Static page language switching method and device, storage medium and electronic equipment |
CN111159616A (en) * | 2019-12-31 | 2020-05-15 | 深圳市丰润达科技有限公司 | Multi-language-based switch management method and device and storage medium |
CN111159616B (en) * | 2019-12-31 | 2023-04-14 | 深圳市丰润达科技有限公司 | Multi-language-based switch management method and device and storage medium |
CN111857700A (en) * | 2020-07-22 | 2020-10-30 | 南京欣网互联网络科技有限公司 | Template marketing activity publishing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107122190A (en) | A kind of multilingual static page generation method, server and storage medium | |
Sin-Wai | Routledge encyclopedia of translation technology | |
US11080493B2 (en) | Translation review workflow systems and methods | |
CN109918607B (en) | Page construction method and device, medium and computing equipment | |
CN102779164B (en) | The rendering intent of a kind of operation system and dynamic page thereof | |
CN105824787B (en) | A kind of control method and system of html template dynamic configuration | |
US9442924B2 (en) | Localization framework for dynamic text | |
US20150324336A1 (en) | Content localization | |
CN102737128B (en) | Dynamic webpage processing device based on browser | |
US8745581B2 (en) | Method and system for selectively copying portions of a document contents in a computing system (smart copy and paste | |
CN102929867A (en) | Technology used for automatically translating a document | |
CN105787001A (en) | Cross-language information retrieval | |
US20140052434A1 (en) | Translation of text into multiple languages | |
JP2019128943A (en) | Multi-language typesetting display method, display device, browser, terminal and computer readable storage medium | |
CN109299288A (en) | Read method, device, server and the storage medium of dictionary data | |
CN102467497A (en) | Method and system for text translation in verification program | |
CN102364437A (en) | Multi-language site development system and implementation method thereof | |
Sin-Wai | Approaching localization | |
WO2021212636A1 (en) | Form page generation method and device, terminal, and storage medium | |
Moorkens | Measuring consistency in translation memories: a mixed-methods case study | |
CN110717134A (en) | Product description issuing method and device, storage medium and electronic equipment | |
US11604849B2 (en) | Rendering method, electronic device and storage medium | |
CN106855810A (en) | The integrated approach and device of language character resource | |
US20090187547A1 (en) | Comprehension of Digitally Encoded Texts | |
US20240193161A1 (en) | Reverse engineered retokenization for translation of machine interpretable languages |
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: 20170901 |
|
RJ01 | Rejection of invention patent application after publication |