CN106682242A - Formatting method for overseas project user-defined internationalized tags and date numbers - Google Patents
Formatting method for overseas project user-defined internationalized tags and date numbers Download PDFInfo
- Publication number
- CN106682242A CN106682242A CN201710089833.3A CN201710089833A CN106682242A CN 106682242 A CN106682242 A CN 106682242A CN 201710089833 A CN201710089833 A CN 201710089833A CN 106682242 A CN106682242 A CN 106682242A
- Authority
- CN
- China
- Prior art keywords
- internationalization
- formatting
- label
- self
- attribute
- 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/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a formatting method for overseas project user-defined internationalized tags and date numbers. The tags read corresponding values in an internationalized file according to an adopted language through configured key values and file paths for exhibition; user-defined notes are used for date number batched formatting, and the number dates are formatted into a designated format according to the adopted language by scanning the user-defined notes. The defects that spring has internationalization can be overcome, and languages and dates have high adaptability.
Description
Technical field
The present invention relates to art file management technology field, and in particular to a kind of run in early stage is self-defined to internationalize label and date
The formatting method of numeral.
Background technology
With the continuous extension of company overseas market, the international pro-ject that we are connected to increasingly increases.In each run in early stage
The internationalization of language and the formatting of alphanumeric data will be related to.Because the difference of language, internationalization becomes in project very
Part work that is crucial and must doing.Due to there are currently no in company's framework in view of internationalization, project team can only do-it-yourself;
Because company's framework uses spring MVC, simplest mode is exactly the internationalization for using spring.
But the international label of spring has to pass through spring containers and could use, if link is directly to specify
To the page, then the label for carrying cannot be used, according to the technology that company's framework is used, the internationalization increased income has its office
Sex-limited, the internationalization label increased income can not meet our all of demands.Such case we need according to own situation oneself
The suitable label of definition.
The date format and number format that in addition different regions uses is also variant, it is also desirable to when doing international
Wait according to national format.
The content of the invention
The technical problem to be solved in the present invention is:The present invention is directed to problem above, there is provided a kind of self-defined state of run in early stage
The formatting method of border label and date numeral.
The technical solution adopted in the present invention is:
A kind of formatting method of the self-defined internationalization label of run in early stage and date numeral, label by the key values that configure with
File path, according to the language for using the value in correspondence internationalization file is read, and is shown;Date numeral batch format makes
Self-defined note is used, alphanumeric data is formatted as according to the language for using for the form specified by scanning self-defined note.By
This can make up spring and carry international deficiency, and make language and date have higher adaptability.
Internationalization label mainly includes two parameters, the key values that internationalize file path and needs read, the self-defined world
The process for changing label is as follows:The internationalization file for needing to read is found on backstage according to internationalization file path, with this file as base
Standard reads corresponding key and is worth to content, by content feed to the page.
The groundwork flow process of the self-defined internationalization label of methods described is as follows:
1)Label used in the page;
2)Into backstage, get internationalization file path and need the key values for reading;
3)Read the content of corresponding key values in this file such as;
4)Reading of content is write into the page.
The note of internationalization date numeral mainly includes three parameters:Need the type for formatting, the form, the lattice that format
The attribute being stored in after formula, call internationalization the date numeral formatting method when, scanning to this note attribute it
Afterwards, the attribute being stored in by reflection acquisition property content, the form for needing the type for formatting, formatting, after formatting, root
This attribute is converted into the form specified according to attribute data type using different java methods, and is put into after the formatting specified
Attribute.
The formatting groundwork flow process of the internationalization date numeral is as follows:
1)Set call format method in code with entity bean or general type as bean;
2)Scan the attribute explained with this;
3)Obtain the parameters in explaining;
4)It is formatted using public method according to attribute data type;
5)Content after formatting is stored in the number attribute specified in parameter.
The internationalization label is added in loushang2016 common tags, direct use.
Methods described explains Format and necessary parameter, call method by adding on the attribute for needing to format
FormatList can automatically analyze and format date numeral.
Beneficial effects of the present invention are:
The present invention can make up spring and carry international deficiency, and make language and date have higher adaptability.
Description of the drawings
Fig. 1 is internationalization label schematic flow sheet;
Fig. 2 explains schematic flow sheet for internationalization alphanumeric data.
Specific embodiment
Below according to Figure of description, with reference to specific embodiment, the present invention is further described:
Embodiment 1:
A kind of formatting method of the self-defined internationalization label of run in early stage and date numeral, label by the key values that configure with
File path, according to the language for using the value in correspondence internationalization file is read, and is shown;Date numeral batch format makes
Self-defined note is used, alphanumeric data is formatted as according to the language for using for the form specified by scanning self-defined note.By
This can make up spring and carry international deficiency, and make language and date have higher adaptability.
Embodiment 2:
On the basis of embodiment 1, the present embodiment internationalization label mainly includes two parameters, internationalization file path and needs
The key values of reading, the process of self-defined internationalization label is as follows:The state for needing to read is found according to internationalization file path in backstage
Border file, corresponding key is read on the basis of this file and is worth to content, by content feed to the page.
Embodiment 3:
As shown in figure 1, on the basis of embodiment 2, the groundwork stream of the self-defined internationalization label of the present embodiment methods described
Journey is as follows:
1)Label used in the page;
2)Into backstage, get internationalization file path and need the key values for reading;
3)Read the content of corresponding key values in this file such as;
4)Reading of content is write into the page.
Embodiment 4:
On the basis of embodiment 1, the present embodiment internationalization date note of numeral mainly includes three parameters:Need to format
Type, format form, format after the attribute that is stored in, when calling the formatting method of internationalization date numeral, sweep
Retouch with this note attribute after, by reflection obtain property content, need format type, format form,
The attribute being stored in after formatting, this attribute is converted into the lattice specified according to attribute data type using different java methods
Formula, and the attribute being put into after the formatting specified.
Embodiment 5:
As shown in Fig. 2 on the basis of embodiment 4, the formatting groundwork stream of the date numeral that internationalizes described in the present embodiment
Journey is as follows:
1)Set call format method in code with entity bean or general type as bean;
2)Scan the attribute explained with this;
3)Obtain the parameters in explaining;
4)It is formatted using public method according to attribute data type;
5)Content after formatting is stored in the number attribute specified in parameter.
Embodiment 6:
On the basis of embodiment 1,2 or 3, the label that internationalizes described in the present embodiment is added to loushang2016 common tags
In, direct use.
Loushang2016, is a kind of Framework.
Embodiment 7:
On the basis of embodiment 1,4 or 5, the present embodiment methods described is explained by adding on the attribute for needing to format
Format and necessary parameter, call method formatList can automatically analyze and format date numeral.
Embodiment is merely to illustrate the present invention, and not limitation of the present invention, about the ordinary skill of technical field
Personnel, without departing from the spirit and scope of the present invention, can also make a variety of changes and modification, therefore all equivalents
Technical scheme fall within scope of the invention, the scope of patent protection of the present invention should be defined by the claims.
Claims (7)
1. a kind of run in early stage it is self-defined internationalization label and the date numeral formatting method, it is characterised in that label passes through
The key values of configuration and file path, according to the language for using the value in correspondence internationalization file is read, and is shown;Day issue
Word batch formatization uses self-defined note, is formatted as alphanumeric data according to the language for using by scanning self-defined note
The form specified.
2. a kind of run in early stage according to claim 1 it is self-defined internationalization label and the date numeral formatting method,
Characterized in that, internationalization label mainly includes two parameters, the key values that internationalize file path and needs read are self-defined
The process of internationalization label is as follows:The internationalization file for needing to read is found on backstage according to internationalization file path, with this file
On the basis of read corresponding key and be worth to content, by content feed to the page.
3. a kind of self-defined internationalization stamp methods of run in early stage according to claim 2, it is characterised in that methods described
The groundwork flow process of self-defined internationalization label is as follows:
1)Label used in the page;
2)Into backstage, get internationalization file path and need the key values for reading;
3)Read the content of corresponding key values in this file such as;
4)Reading of content is write into the page.
4. a kind of run in early stage according to claim 1 it is self-defined internationalization label and the date numeral formatting method,
Characterized in that, the note of internationalization date numeral mainly includes three parameters:Need the type for formatting, the lattice for formatting
The attribute being stored in after formula, formatting, when calling the formatting method of internationalization date numeral, scanning is to the category for carrying this note
Property after, by reflection obtain property content, need the type for formatting, the form for formatting, format after the category that is stored in
Property, this attribute is converted into the form specified according to attribute data type using different java methods, and it is put into the lattice specified
Attribute after formula.
5. a kind of run in early stage according to claim 4 it is self-defined internationalization label and the date numeral formatting method,
Characterized in that, the formatting groundwork flow process of the internationalization date numeral is as follows:
1)Set call format method in code with entity bean or general type as bean;
2)Scan the attribute explained with this;
3)Obtain the parameters in explaining;
4)It is formatted using public method according to attribute data type;
5)Content after formatting is stored in the number attribute specified in parameter.
6. the formatting of a kind of self-defined internationalization label of run in early stage and date numeral according to claim 1,2 or 3
Method, it is characterised in that the internationalization label is added in loushang2016 common tags, direct use.
7. the formatting of a kind of self-defined internationalization label of run in early stage and date numeral according to claim 1,4 or 5
Method, it is characterised in that methods described explains Format and necessary parameter by adding on the attribute for needing to format,
Call method formatList can automatically analyze and format date numeral.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710089833.3A CN106682242A (en) | 2017-02-20 | 2017-02-20 | Formatting method for overseas project user-defined internationalized tags and date numbers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710089833.3A CN106682242A (en) | 2017-02-20 | 2017-02-20 | Formatting method for overseas project user-defined internationalized tags and date numbers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106682242A true CN106682242A (en) | 2017-05-17 |
Family
ID=58861101
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710089833.3A Pending CN106682242A (en) | 2017-02-20 | 2017-02-20 | Formatting method for overseas project user-defined internationalized tags and date numbers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106682242A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228179A (en) * | 2017-12-22 | 2018-06-29 | 东软集团股份有限公司 | The international processing method of the page, device, computer and storage medium |
CN111651221A (en) * | 2020-07-14 | 2020-09-11 | 迈普通信技术股份有限公司 | Annotation internationalization method and device, storage medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101174214A (en) * | 2006-11-02 | 2008-05-07 | 国际商业机器公司 | Method for displaying and formatting messages in web applications using javaserver faces |
US20120159439A1 (en) * | 2009-12-14 | 2012-06-21 | International Business Machines Corporation | Using appropriate level of code to be executed in runtime environment using metadata describing versions of resources being used by code |
CN104199647A (en) * | 2014-08-18 | 2014-12-10 | 中国建设银行股份有限公司 | Visualization system and implementation method based on IBM host |
CN104536769A (en) * | 2015-01-16 | 2015-04-22 | 浪潮电子信息产业股份有限公司 | International file achieving method |
-
2017
- 2017-02-20 CN CN201710089833.3A patent/CN106682242A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101174214A (en) * | 2006-11-02 | 2008-05-07 | 国际商业机器公司 | Method for displaying and formatting messages in web applications using javaserver faces |
US20120159439A1 (en) * | 2009-12-14 | 2012-06-21 | International Business Machines Corporation | Using appropriate level of code to be executed in runtime environment using metadata describing versions of resources being used by code |
CN104199647A (en) * | 2014-08-18 | 2014-12-10 | 中国建设银行股份有限公司 | Visualization system and implementation method based on IBM host |
CN104536769A (en) * | 2015-01-16 | 2015-04-22 | 浪潮电子信息产业股份有限公司 | International file achieving method |
Non-Patent Citations (2)
Title |
---|
UU58869: "《https://www.doc88.com/p-9731361725284.html》", 9 February 2017 * |
宇明DAY: "《https://wenku.baidu.com/view/93c2c8310912a216147929b0.html?rec_flag=default》", 23 May 2013 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228179A (en) * | 2017-12-22 | 2018-06-29 | 东软集团股份有限公司 | The international processing method of the page, device, computer and storage medium |
CN111651221A (en) * | 2020-07-14 | 2020-09-11 | 迈普通信技术股份有限公司 | Annotation internationalization method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106325969B (en) | The reversely tracing system of demand change | |
CN102855232B (en) | A kind of tabular analysis adapts job operation | |
CN105138752B (en) | Intelligent substation SCD file land parcel change trace differentiation compares and methods of exhibiting | |
CN101025738A (en) | Template-free dynamic website generating method | |
CN103019684A (en) | Dynamic template-based business page configuring method | |
CN106844885B (en) | BIM technology-based drawing frame and drawing label design method | |
CN111767698B (en) | Electronic form system based on OFD format file technology | |
CN103279454A (en) | Document automatic generation method, device and system | |
CN106682242A (en) | Formatting method for overseas project user-defined internationalized tags and date numbers | |
CN106991196A (en) | A kind of general data traceability method and system | |
CN105931016A (en) | Automatic daily audit method and system | |
CN102385722A (en) | Method for automatically leading drilling data in Genesis 2000 system into ERP system | |
CN105278961A (en) | Method and system for generating database table structure document | |
CN105139056A (en) | Intelligent 2-dimensional bar code capable of being edited by user | |
CN109299074A (en) | A kind of data verification method and system based on templating data base view | |
CN105631080A (en) | Automatic generation device and method of vector power grid wiring diagram | |
CN104778440A (en) | Color two-dimension code recognition method and recognition device | |
CN105608119A (en) | Rapid thematic map drawing technology | |
CN103885999A (en) | Indexing template for defining XBRL (extensible business reporting language) and business correspondence | |
CN105630747A (en) | Inspection report specialization system and method applied to special device industry | |
CN101625712A (en) | Computer plotting system and computer plotting method for making signssigns | |
CN102662962B (en) | Dynamic display method based on webpage elements | |
CN107944685A (en) | A kind of method that packing list is automatically generated based on PLM system and SAP system | |
CN104317935B (en) | A kind of method and system of XML billing files Mass production html page | |
CN111382742A (en) | Method for integrating OCR recognition software on cloud financial platform |
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: 20170517 |
|
RJ01 | Rejection of invention patent application after publication |