CN102467376B - Modification method and device for character information - Google Patents

Modification method and device for character information Download PDF

Info

Publication number
CN102467376B
CN102467376B CN201010538675.3A CN201010538675A CN102467376B CN 102467376 B CN102467376 B CN 102467376B CN 201010538675 A CN201010538675 A CN 201010538675A CN 102467376 B CN102467376 B CN 102467376B
Authority
CN
China
Prior art keywords
term
resource file
marked
software
replacing
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.)
Active
Application number
CN201010538675.3A
Other languages
Chinese (zh)
Other versions
CN102467376A (en
Inventor
李国坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201010538675.3A priority Critical patent/CN102467376B/en
Publication of CN102467376A publication Critical patent/CN102467376A/en
Application granted granted Critical
Publication of CN102467376B publication Critical patent/CN102467376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a modification method and device for character information, which are applied to modification of character information in software. The software provides a user interface and a resource file. The method comprises the following steps of: setting a wording replacing table, wherein the wording replacing table comprises the correspondence relationship between the current wording and replacing wording; marking the current wording to be replaced during the resource file definition; and filtering out the marked wording when the software is started, removing the mark, modifying the marked wording into the replacing wording according to the wording replacing table and operating the software according to the replaced wording. After the embodiment of the invention is applied, the replacement can be realized only through changing the content in the wording replacing table, the operation is simple, and in addition, the modification on the character information in the software can be efficiently and accurately realized.

Description

A kind of amending method of Word message and device
Technical field
The present invention relates to computer software technical field, particularly a kind of amending method of Word message and device in application software.
Background technology
Existing enterprise's resource planning (ERP, Enterprise Resource Planning) management software accept by increasing enterprise and apply.Without in enterprise, Word message (as help, title, menu, button etc.) in the ERP management software applied is not identical yet, when multiple enterprises family uses same version software, the appellation that enterprises can be used usual by the mode revising Word message.Namely business management software is customized implement time, accelerate client and process be familiar with to user interface (UI) information, reduce the training cost of client, the versatility of software is strengthened.At present, the most frequently used is revise Word message by resource file, specific as follows:
See Fig. 1, it is the schematic flow sheet of existing amendment Word message.This flow process is applicable to multilingual word, as Chinese, Japanese, English, Korean etc.Be described for Chinese below.
User selects the word of certain language form by client, and enters respective interface, such as, after selection language is Chinese, enters Chinese interface.In current application, user wishes " formula " this word to be revised as " key element table ", then need by interface in current Chinese resource file, input resource key 1, as somple_resource_key1, now, current interface can feed back Word message 1, as " this formula be cited unsuppressible-suppression ", afterwards, user again by manual operations by key assignments " this formula has been cited unsuppressible-suppression! " in term " formula " be revised as " key element table ", now, this key assignments changes to, and " this key element table has been cited unsuppressible-suppression! ", so far, achieve the amendment to the Word message in resource key 1.
If also have other resource key to relate to " formula " to recall respectively and revise successively, if also other Word message will be revised, then above-mentioned similar approach is adopted to revise successively.
Visible, existing amending method is revised one by one because needs are manual, and thus alter mode is very loaded down with trivial details, efficiency is low, easily make mistakes, and this alter mode general user is difficult to operation, needs very professional personage to revise, applies very inconvenient.
Summary of the invention
The object of the present invention is to provide a kind of amending method and device of Word message, to realize the amendment to Word message in software simply, efficiently.
Embodiments provide a kind of amending method of Word message, be applicable to revise the Word message in software, described software provides user interface, resource file, and the method comprises:
Arrange term substitution table, described term substitution table comprises current use term and the corresponding relation replacing term;
When defining resource file, the current use term that need replace is marked;
When described software startup, described in filtering out, be marked term, remove described mark, according to described term substitution table, the described term be marked is revised as replacement term, run described software according to the term after replacing.
Wherein, the statement of described filter operation in resource file needs to perform when running again.
Wherein, after described software startup, resource file is loaded in buffer memory, described in filter out described in be marked term, remove described mark, according to described term substitution table, the described term be marked is revised as replace term be in buffer memory statement perform.
Wherein, the term in described resource file is Chinese, Japanese, Korean, English, German or French.
Wherein, the symbol defined as required is labeled as described in.
The embodiment of the present invention additionally provides a kind of modifier of Word message, is applicable to revise the Word message in software, and described software provides user interface, resource file, and this device comprises:
Setting unit, for arranging term substitution table, described term substitution table comprises current use term and the corresponding relation replacing term;
Mark unit, for when defining resource file, marks the current use term that need replace;
Amendment replacement unit, for when described software startup, is marked term described in filtering out, removes described mark, according to described term substitution table, the described term be marked is revised as replacement term, runs described software according to the term after replacing.
Wherein, the statement of described filter operation in resource file needs to perform when running again.
Wherein, described device also comprises:
Buffer unit, for after described software startup, is loaded into resource file in buffer memory;
Be marked term described in filtering out performed by described amendment replacement unit, remove described mark, according to described term substitution table, the described term be marked being revised as the operation of replacing term is to the statement executable operations in buffer memory.
Wherein, the term in described resource file is Chinese, Japanese, Korean, English, German or French.
Wherein, the symbol defined as required is labeled as described in.
The application embodiment of the present invention, only need change content in term substitution table, just can realize replacing, not only simple to operate, and can modify to the Word message in software efficiently and accurately.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention and technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment and description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of existing amendment Word message;
Fig. 2 is the amending method process flow diagram of a kind of Word message according to the embodiment of the present invention;
Fig. 3 is schematic flow sheet according to an embodiment of the present;
Fig. 4 is the schematic flow sheet according to another kind of embodiment of the present invention;
Fig. 5 is the modifier logical schematic of a kind of Word message according to the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
" term " is herein specific appellation, special-purpose word or wording in a certain scope.Be exactly a kind of specific names briefly.
See Fig. 2, it is the amending method process flow diagram of a kind of Word message according to the embodiment of the present invention, and the method is applicable to revise the Word message in software, and described software provides user interface, resource file, and the method comprises:
Step 201, arranges term substitution table, and described term substitution table comprises current use term and the corresponding relation replacing term;
Such as, term substitution table as described in Table 1 is set:
Current use term Replace appellation
1 Formula Key element table
2 ... ...
Table 1
Step 202, when defining resource file, marks the current use term that need replace;
Here, mark is the symbol defined as required, such as, can mark with " [[[]]] " to current use term; Do not limit the symbol of mark herein, any symbol that can realize marking can be applied to the embodiment of the present invention;
It should be noted that in resource file, to there is the corresponding relation of resource key and Word message.Such as, resource key 1 is " somple_resource_key1 ", and be cited unsuppressible-suppression for " this [[[formula]]] " for the Word message of this resource key 1 correspondence and key assignments! "
Step 203, when described software startup, is marked term described in filtering out, and removes described mark, according to described term substitution table, the described term be marked is revised as replacement term, runs described software according to the term after replacing.
It should be noted that, the filter operation in above-mentioned steps 203 can need to perform when running by the statement in resource file again.That is, filtration replacement operation is carried out again in use.
It should be noted that, after described software startup, resource file first can also be loaded in buffer memory, now, described filter out described in be marked term, remove described mark, according to described term substitution table, the described term be marked being revised as the operation of replacing term is perform the statement in buffer memory.
It should be noted that, the term in above-mentioned resource file can be the Word message of any type, such as, can be Chinese, Japanese, Korean, English, German or French etc., herein, does not limit the Word message kind in resource file.
The method that the application embodiment of the present invention provides, only need change content in term substitution table, just can realize replacing, not only simple to operate, and can modify to the Word message in software efficiently and accurately.
Below in conjunction with specific embodiment, the present invention is elaborated again.
See Fig. 3, it is schematic flow sheet according to an embodiment of the present, in the present embodiment, is first be loaded into buffer unit, then processes the data in buffer unit.In the present embodiment still for the literal type in resource file be Chinese, suppose to need " formula " to be revised as " key element table ", and, setting corresponding relation in term substitution table; And, in the definition procedure of resource file, mark is added to current use term such as " formula ", as " this [[[formula]]] be cited unsuppressible-suppression! ".
User selects the word of certain language form by client, and enters respective interface, such as, after selection language is Chinese, enters Chinese interface.
When software startup, all resource key in each resource file be loaded into successively in buffer memory, also, by the key assignments corresponding to resource key 1 and Word message 1, the key assignments corresponding to resource key 2 and Word message 2 etc., be loaded in buffer memory respectively.
Afterwards, described in filtering out in the buffer, be marked term, remove described mark, according to described term substitution table, the described term be marked is revised as replacement term, run described software according to the term after replacing.
Such as, in the buffer, to filter out all " [[[formula]]] " that be marked, remove the mark to " formula ", and according to term substitution table, " formula " is replaced with " key element table ", now, the key assignments of resource key 1 corresponding to somple_resource_key1 for " this key element table has been cited unsuppressible-suppression! ".
Like this, user only need change content in term substitution table, just can realize replacing, not only simple to operate, and achieves the amendment to Word message in software efficiently and accurately.
See Fig. 4, it is the schematic flow sheet according to another kind of embodiment of the present invention, in the present embodiment, just processes the data in resource file when being and running.In the present embodiment still for the literal type in resource file be Chinese, suppose to need " formula " to be revised as " key element table ", and, setting corresponding relation in term substitution table; And, in the definition procedure of resource file, mark is added to current use term such as " formula ", as " this [[[formula]]] be cited unsuppressible-suppression! ".
User selects the word of certain language form by client, and enters respective interface, such as, after selection language is Chinese, enters Chinese interface.
After software startup, in use, described in filtering out, be marked term, remove described mark, according to described term substitution table, the described term be marked is revised as replacement term, run described software according to the term after replacing.
Such as, when using certain statement, filter out " [[[formula]]] " that mark in this statement, remove the mark to " formula ", and according to term substitution table, " formula " is replaced with " key element table ", now, the key assignments of resource key 1 corresponding to somple_resource_key1 for " this key element table has been cited unsuppressible-suppression! ".
Like this, user only need change content in term substitution table, just can realize replacing, not only simple to operate, and achieves the amendment to Word message in software efficiently and accurately.
The embodiment of the present invention additionally provides a kind of modifier of Word message, and see Fig. 5, be applicable to revise the Word message in software, described software provides user interface, resource file, and this device comprises:
Setting unit 501, for arranging term substitution table, described term substitution table comprises current use term and the corresponding relation replacing term;
Mark unit 502, for when defining resource file, marks the current use term that need replace;
Amendment replacement unit 503, for when described software startup, is marked term described in filtering out, removes described mark, according to described term substitution table, the described term be marked is revised as replacement term, runs described software according to the term after replacing.
The statement of above-mentioned filter operation in resource file needs to perform when running again.
Said apparatus can also comprise:
Buffer unit (not shown), for after described software startup, is loaded into resource file in buffer memory;
Be marked term described in filtering out performed by described amendment replacement unit, remove described mark, according to described term substitution table, the described term be marked being revised as the operation of replacing term is to the statement executable operations in buffer memory.
Term in above-mentioned resource file is Chinese, Japanese, Korean, English, German or French etc.
Above-mentionedly be labeled as the symbol defined as required.
The device that the application embodiment of the present invention provides, only need change content in term substitution table, just can realize replacing, not only simple to operate, and can modify to the Word message in software efficiently and accurately.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. an amending method for Word message, is characterized in that, is applicable to revise the Word message in software, and described software provides user interface, resource file, and the method comprises:
Arrange term substitution table, described term substitution table comprises current use term and the corresponding relation replacing term;
When defining described resource file, the current use term that need replace is marked;
When described software startup, described in filtering out, be marked term, remove described mark, according to described term substitution table, the described term be marked is revised as replacement term, run described software according to the term after replacing.
2. method according to claim 1, is characterized in that, the statement of described filter operation in resource file needs to perform when running again.
3. method according to claim 1, it is characterized in that, after described software startup, resource file is loaded in buffer memory, described filter out described in be marked term, remove described mark, according to described term substitution table, the described term be marked being revised as replacement term is perform the statement in buffer memory.
4. method according to claim 1, is characterized in that, the term in described resource file is Chinese, Japanese, Korean, English, German or French.
5. method according to claim 1, is characterized in that, described in be labeled as the symbol defined as required.
6. a modifier for Word message, is characterized in that, is applicable to revise the Word message in software, and described software provides user interface, resource file, and this device comprises:
Setting unit, for arranging term substitution table, described term substitution table comprises current use term and the corresponding relation replacing term;
Mark unit, for when defining resource file, marks the current use term that need replace;
Amendment replacement unit, for when described software startup, is marked term described in filtering out, removes described mark, according to described term substitution table, the described term be marked is revised as replacement term, runs described software according to the term after replacing.
7. device according to claim 6, is characterized in that, the statement of described filter operation in resource file needs to perform when running again.
8. device according to claim 6, is characterized in that, described device also comprises:
Buffer unit, for after described software startup, is loaded into resource file in buffer memory;
Be marked term described in filtering out performed by described amendment replacement unit, remove described mark, according to described term substitution table, the described term be marked being revised as the operation of replacing term is to the statement executable operations in buffer memory.
9. device according to claim 6, is characterized in that, the term in described resource file is Chinese, Japanese, Korean, English, German or French.
10. device according to claim 6, is characterized in that, described in be labeled as the symbol defined as required.
CN201010538675.3A 2010-11-10 2010-11-10 Modification method and device for character information Active CN102467376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010538675.3A CN102467376B (en) 2010-11-10 2010-11-10 Modification method and device for character information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010538675.3A CN102467376B (en) 2010-11-10 2010-11-10 Modification method and device for character information

Publications (2)

Publication Number Publication Date
CN102467376A CN102467376A (en) 2012-05-23
CN102467376B true CN102467376B (en) 2015-07-15

Family

ID=46071052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010538675.3A Active CN102467376B (en) 2010-11-10 2010-11-10 Modification method and device for character information

Country Status (1)

Country Link
CN (1) CN102467376B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942037A (en) * 2013-01-17 2014-07-23 阿里巴巴集团控股有限公司 Method and device for theme replacement of mobile device
CN105608064A (en) * 2015-11-24 2016-05-25 小米科技有限责任公司 Character replacement method and apparatus
CN107071553B (en) * 2017-06-05 2020-02-07 广东小天才科技有限公司 Method, device and computer readable storage medium for modifying video and voice
CN108491398B (en) * 2018-03-26 2021-09-07 深圳市元征科技股份有限公司 Method for translating updated software text and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547116A (en) * 2003-12-16 2004-11-17 艾默生网络能源有限公司 Method for implementing language resource localization of software
US7610297B2 (en) * 2005-01-25 2009-10-27 Honeywell International Inc. Method to automate resource management in computer applications
CN101667118A (en) * 2008-09-02 2010-03-10 华为技术有限公司 Method and device for multi-language version development and replacement

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547116A (en) * 2003-12-16 2004-11-17 艾默生网络能源有限公司 Method for implementing language resource localization of software
US7610297B2 (en) * 2005-01-25 2009-10-27 Honeywell International Inc. Method to automate resource management in computer applications
CN101667118A (en) * 2008-09-02 2010-03-10 华为技术有限公司 Method and device for multi-language version development and replacement

Also Published As

Publication number Publication date
CN102467376A (en) 2012-05-23

Similar Documents

Publication Publication Date Title
CN109948134B (en) Report automatic generation method, system, electronic equipment and storage medium
CN107644286B (en) Workflow processing method and device
RU2536390C2 (en) Automated report generation method
CN110058856A (en) Page configuration method and device
CN101504672B (en) Method and system for dynamically configuring physical data table
US20070162324A1 (en) Workflow management system
CN104331285A (en) Automatic code generation method and system
CN103593456B (en) Worksheet self-defining method for designing and device
CN104360990A (en) Content editing method
CN103761218A (en) Method for annotating and commenting electronic document on computer
CN102467376B (en) Modification method and device for character information
CN105528332A (en) A presentation file processing method and device
US20160063423A1 (en) Systems and methods for creating and evaluating experiments
CN102279749A (en) Method and equipment for merging codes
CN105786578A (en) Parameter configuration system and method
CN106446019A (en) Software function processing method and device
CN104462036A (en) Method and system for synchronously editing format information of document
CN108228846A (en) Resource file management method and device
CN111026756A (en) Method for dynamically generating form and associated query
CN106021359A (en) CAD file modification method and device
JP5747698B2 (en) Requirements management support device
CN106970758A (en) Electronic document operation processing method, device and electronic equipment
CN103677852A (en) Design method of extensible class natural language formula editor
CN105159673A (en) Method and device for setting control style
CN102171696B (en) The generation method and apparatus of customization data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant