CN106227522A - Resource unified management method - Google Patents
Resource unified management method Download PDFInfo
- Publication number
- CN106227522A CN106227522A CN201610562335.1A CN201610562335A CN106227522A CN 106227522 A CN106227522 A CN 106227522A CN 201610562335 A CN201610562335 A CN 201610562335A CN 106227522 A CN106227522 A CN 106227522A
- Authority
- CN
- China
- Prior art keywords
- resource
- metadata
- numbering
- file
- refers
- 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
- 238000007726 management method Methods 0.000 title claims abstract description 23
- 238000000034 method Methods 0.000 claims abstract description 9
- 230000008569 process Effects 0.000 claims abstract description 6
- 238000013519 translation Methods 0.000 claims description 3
- 238000013461 design Methods 0.000 description 7
- 230000004807 localization Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000008140 language development Effects 0.000 description 1
- 238000013515 script Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a resource unified management method, which comprises the following implementation processes: defining a resource type; setting resource metadata, wherein the resource metadata is used for completing the overall attribute description of the resource and the detailed list of the resource; converting the resource metadata into a required standard format, translating according to the requirement, and then converting back the resource metadata; generating a resource file of a corresponding language: when the resource metadata are issued to the running environment, a resource generator corresponding to the resource type is called to pack the resource detail list information contained in the resource metadata into a resource file; and accessing when the management system runs, wherein the accessing refers to the resource file generated in the step. Compared with the prior art, the resource unified management method solves the problem of non-uniform diversity of international resource processing under different languages in the software internationalization process, and has the advantages of strong practicability, wide application range and easy popularization.
Description
Technical field
The present invention relates to computer software technical field, specifically a kind of resource unified management method.
Background technology
Under international background, for adapting to internationalization business, enterprise application software also needs to internationalize, for differently
Branch of district or user provide multilingual user interface.A lot of development languages all provide international support, for software
Developing International provides the foundation, but, the internationalization mechanism that different development language uses also differs.The resource of such as Java
File is .Properties form, and .NET Framework uses .Resources.
First, multiple resources file format adds intractability.Localization Industry personage is in the face of the most numerous resources
File format is usually absorbed in vast and hazy quagmire.For a large software localization item, need the tray being localized
Formula up to ten is several, and wherein most belongs to common-format files, such as, and Java resource file (.Properties),
Windows resource file (.RC), html file, XML file etc..
Secondly, software data exchange becomes bottleneck.During software localization, internationalized resources often needs change into mark
Accurate data form is supplied to what the translator of specialty carried out translating.The mode that multiple resources coexists also can be for the data of software
Exchange brings puzzlement.
Summary of the invention
The technical assignment of the present invention is for above weak point, it is provided that a kind of resource unified management method.
A kind of resource unified management method, it implements process and is:
First defining resource type, all resource types that will relate in management system and the resource file of correspondence thereof are raw
Grow up to be a useful person and be defined;
Arranging resource metadata, this resource metadata has been used for the bulk properties to resource and has described and the detail of resource
List;
Resource metadata is converted into required reference format, according to going back to resource metadata after required translation again;
Generate the resource file of corresponding language: when resource metadata is published to running environment, call resource type corresponding
Asset generator the resource detail list information comprised in resource metadata is packaged into resource file;
Conducting interviews when management system is run, access here refers to the resource file generated in above-mentioned steps.
Resource type definitions refers to be arranged to include the content with properties by relating to resource in system: numbering, title, retouch
State, maker information, the type number of the most numbered resource file;The typonym of entitled resource file;Resource file
Maker is the resource file for internationalized resources during design is generated as corresponding language;Describe for describing resource file
Information.
Resource bulk properties in described resource metadata includes: numbering, title, description, resource type numbering, resource literary composition
Other attribute definition of part store path, resource file, wherein numbering refers to the numbering of resource metadata;Title refers to resource element number
According to title;The implication and purposes referring to describe resource metadata in detail is described;Other attribute definition of resource file refers to when this
When resource type needs other side information, it is defined at this.
The resource detail list of resource metadata includes: numbering, affiliated resource metadata numbering, languages numbering, resource value,
The numbering of the most numbered resource items;Affiliated resource metadata numbering refers to the numbering of resource metadata belonging to this resource items;Language
Planting numbering and refer to the numbering of current language, resource value refers to the numbering of resource type.
Compared to the prior art a kind of resource unified management method of the present invention, has the advantages that
A kind of resource unified management method of the present invention, to internationalization money under different language during solution International Software
Source processes and there is the skimble-scamble problem of multiformity, when design, defines unified description rule, different languages for internationalized resources
All internationalized resources of speech all carry out preset according to this rule;When resource is disposed in environment, generated by resource file
Instrument is automatically according to resource file during rule generating run;Business procedure, when accessing internationalized resources, directly accesses deployment
The resource file of Shi Shengcheng;Reduce the complexity to the conversion of localization data exchange standard form, practical, it is suitable for model
Enclose extensively, it is easy to promote.
Accompanying drawing explanation
What accompanying drawing 1 was the present invention realizes schematic diagram.
Detailed description of the invention
Below in conjunction with the accompanying drawings and specific embodiment the invention will be further described.
As shown in Figure 1, a kind of resource unified management method of the present invention, it implements process and is:
First defining resource type, all resource types that will relate in management system and the resource file of correspondence thereof are raw
Grow up to be a useful person and be defined;
Arranging resource metadata, this resource metadata has been used for the bulk properties to resource and has described and the detail of resource
List;
Resource metadata is converted into required reference format, according to going back to resource metadata after required translation again;
Generate the resource file of corresponding language: when resource metadata is published to running environment, call resource type corresponding
Asset generator the resource detail list information comprised in resource metadata is packaged into resource file, this generation action,
Not only should perform when resource metadata is issued for the first time, when the most again issuing, it is also necessary to perform;
Conducting interviews when management system is run, access here refers to the resource file generated in above-mentioned steps.
Resource type definitions refers to be arranged to include the content with properties by relating to resource in system: numbering, title, retouch
State, maker information, the type number of the most numbered resource file;The typonym of entitled resource file;Resource file
Maker is the resource file for internationalized resources during design is generated as corresponding language, such as: .NET asset generator meeting
When will design, resource generates .resources file, and resource during design can be generated .properties literary composition by Java asset generator
Part;Information for describing resource file is described.
Resource metadata is internationalized resources (text, the figure of the description rule to internationalized resources bulk properties and correspondence
Sheet) detailed list.Resource metadata bulk properties includes: numbering, title, description, resource type numbering, resource file storage road
Footpath, other attribute definition of resource file.List below is the detailed description to resource metadata attribute.
Resource metadata resource detail list attribute includes: numbering, affiliated resource metadata numbering, languages numbering, resource
Value, is listed as follows:
Example:
Scene:
Certain ERP management system provides two kinds of different user's landing approaches: desktop Smart Client and browsing
Device mode, wherein SmartClient is based on C#.NET language development, and browser is that pure Html+JS mode is developed.No matter
Which kind of landing approach, during Password Input mistake, system provides the prompting of " Password Input mistake ".
Step one, definition two spike-type cultivars type
It is expressed as follows with relational data (lower same):
Step 2, the newly-built resource metadata of developer
Built-in the Resources list:
Resource type is numbered | Resource metadata is numbered | Languages are numbered |
ErrorPassword | LoginResource | Zh-CN |
ErrorPassword | LoginResource | En |
Development language is generated to deserved resource file when step 3, deployment
Call Test.NETResourceGenerator, Test and can generate the resource file that .NET program is corresponding:
.\Resources\zh-CN\LoginResource.Resources
.\Resources\En\LoginResource.Resources
Call Test.JSResourceGenerator, Test and generate language scripts file corresponding to Javascript:
.\Resources\zh-CN\LoginResource.js
.\Resources\En\LoginResource.js
Step 4, run time call
.NET program is directly by ResourceManager class access LoginResource.Resources, and browser
Pattern have only to directly quote js file in the html page.
The implementation method of a kind of resource unified management of the present invention, when design, defines unified for internationalized resources
Description rule, all internationalized resources of different language all carry out preset according to this rule;For internationalization money under different language
The mechanism in source is different, takes out a kind of unified description rule;During exploitation internationalization program, first create description mentioned above
Rule, then specifies the setting (such as .NET resource, web resource etc.) of each attribute on description rule, thus may determine that
The rule of resource file is generated during resource deployment;In the rule created, can be with the literary composition of the different language belonging to preset this rule
Originally, picture resource list.
When resource is disposed in environment, by resource file Core Generator automatically according to resource during rule generating run
File;When internationalized resources being formally deployed in operation system, resource Core Generator resolves description rule automatically, and then setting
The resource file of the corresponding form of the Resources list generation that timing is preset.
Business procedure, when accessing internationalized resources, directly accesses the resource file generated when disposing;Ring during operation
In border, accessing of internationalized resources is the most relevant with the internationalization mechanism of current language, description rule when eliminating the reliance on design.
Reduce the complexity to the conversion of localization data exchange standard form;
By detailed description of the invention above, described those skilled in the art can readily realize the present invention.But should
Working as understanding, the present invention is not limited to above-mentioned detailed description of the invention.On the basis of disclosed embodiment, described technical field
Technical staff can the different technical characteristic of combination in any, thus realize different technical schemes.
In addition to the technical characteristic described in description, it is the known technology of those skilled in the art.
Claims (4)
1. a resource unified management method, it is characterised in that it implements process and is:
First resource type is defined, all resource types that will relate in management system and the resource file maker of correspondence thereof
It is defined;
Arranging resource metadata, this resource metadata has been used for the bulk properties to resource and has described and the detailed row of resource
Table;
Resource metadata is converted into required reference format, according to going back to resource metadata after required translation again;
Generate the resource file of corresponding language: when resource metadata is published to running environment, call the money that resource type is corresponding
The resource detail list information comprised in resource metadata is packaged into resource file by source maker;
Conducting interviews when management system is run, access here refers to the resource file generated in above-mentioned steps.
A kind of resource unified management method the most according to claim 1, it is characterised in that resource type definitions refer to will be
System relates to resource and is arranged to include the content with properties: numbering, title, description, maker information, the most numbered resource
The type number of file;The typonym of entitled resource file;Resource file maker is internationalization money during for designing
Source is generated as the resource file of corresponding language;Information for describing resource file is described.
A kind of resource unified management method the most according to claim 1, it is characterised in that the money in described resource metadata
Source bulk properties includes: numbering, title, description, resource type numbering, resource file store path, other attribute of resource file
Definition, wherein numbering refers to the numbering of resource metadata;Title refers to the title of resource metadata;Description refers to describe money in detail
The implication of source metadata and purposes;Other attribute definition of resource file refers to when this resource type needs other side information
Time, it is defined at this.
A kind of resource unified management method the most according to claim 1, it is characterised in that the resource of resource metadata is detailed
List includes: numbering, affiliated resource metadata numbering, languages numbering, resource value, the numbering of the most numbered resource items;Belonging to
Resource metadata numbering refers to the numbering of resource metadata belonging to this resource items;Languages numbering refers to the numbering of current language, money
Source value refers to the numbering of resource type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610562335.1A CN106227522A (en) | 2016-07-15 | 2016-07-15 | Resource unified management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610562335.1A CN106227522A (en) | 2016-07-15 | 2016-07-15 | Resource unified management method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106227522A true CN106227522A (en) | 2016-12-14 |
Family
ID=57519127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610562335.1A Pending CN106227522A (en) | 2016-07-15 | 2016-07-15 | Resource unified management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106227522A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060184826A1 (en) * | 2005-02-11 | 2006-08-17 | Microsoft Corporation | Using a description language to build a management system |
CN101382888A (en) * | 2008-09-10 | 2009-03-11 | 金蝶软件(中国)有限公司 | Method and system for treating internationalization resource |
CN101697127A (en) * | 2009-10-30 | 2010-04-21 | 南京中兴软创科技股份有限公司 | Method for internationalizing software system |
CN102103493A (en) * | 2009-12-16 | 2011-06-22 | 新奥特(北京)视频技术有限公司 | Method for internationalizing software language |
CN102103494A (en) * | 2009-12-16 | 2011-06-22 | 新奥特(北京)视频技术有限公司 | Method and device for changing software resource |
CN104714968A (en) * | 2013-12-16 | 2015-06-17 | 中国银联股份有限公司 | Method and device for internationalizing web page |
CN105701176A (en) * | 2016-01-04 | 2016-06-22 | 浪潮软件股份有限公司 | Data integration method and apparatus |
-
2016
- 2016-07-15 CN CN201610562335.1A patent/CN106227522A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060184826A1 (en) * | 2005-02-11 | 2006-08-17 | Microsoft Corporation | Using a description language to build a management system |
CN101382888A (en) * | 2008-09-10 | 2009-03-11 | 金蝶软件(中国)有限公司 | Method and system for treating internationalization resource |
CN101697127A (en) * | 2009-10-30 | 2010-04-21 | 南京中兴软创科技股份有限公司 | Method for internationalizing software system |
CN102103493A (en) * | 2009-12-16 | 2011-06-22 | 新奥特(北京)视频技术有限公司 | Method for internationalizing software language |
CN102103494A (en) * | 2009-12-16 | 2011-06-22 | 新奥特(北京)视频技术有限公司 | Method and device for changing software resource |
CN104714968A (en) * | 2013-12-16 | 2015-06-17 | 中国银联股份有限公司 | Method and device for internationalizing web page |
CN105701176A (en) * | 2016-01-04 | 2016-06-22 | 浪潮软件股份有限公司 | Data integration method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10452787B2 (en) | Techniques for automated document translation | |
US8799353B2 (en) | Scope-based extensibility for control surfaces | |
US20150066977A1 (en) | Method and system for managing digital resources | |
CN104020984B (en) | A kind of method and device for generating static page | |
US8930824B2 (en) | Facilitating propagation of user interface patterns or themes | |
CN103309806B (en) | The device and method of a kind of quick development and testing | |
US10127023B2 (en) | Computer-aided development of native mobile application code | |
CN102289376A (en) | Embedded multi-language WEB page realization method and system | |
CN101815093A (en) | Method for adapting webpage to mobile terminal and mobile terminal page adaptation device | |
US9817811B2 (en) | Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method | |
US10528688B1 (en) | System and method for schematic-driven generation of input/output models | |
CN109976840A (en) | The method and system of multilingual automatic adaptation are realized under a kind of separation platform based on front and back | |
CN103646023A (en) | Page and control increasing method based on WEB | |
CN106201562A (en) | A kind of page switching method and device | |
CN103678396B (en) | A kind of data back up method and device based on data model | |
CN109213480B (en) | Method, storage medium, equipment and system for developing background management page | |
CN106227522A (en) | Resource unified management method | |
CN107977198A (en) | Method and device based on crawler technology generation application programming interface API | |
JP7269244B2 (en) | Systems and methods for providing globalization capabilities in service management application interfaces | |
Rachovski et al. | Conceptual model of an application for automated generation of webpage mobile versions | |
Li et al. | Portal-based design for SaaS system presentation layer configurability | |
KR102453463B1 (en) | Apparatus for developing application based on JAVA and method thereof | |
Schmitz | Using international standards for terminology exchange | |
CN115857956B (en) | Multi-site deployment processing method and system | |
Koshijima et al. | Generating responsive web pages using SuperSQL |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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: 20161214 |
|
RJ01 | Rejection of invention patent application after publication |