摘要:
Verifying text translation in a program including obtaining a first program integrated information (PII) file and a second PII file of text in the program. An original page is generated by using the first PII file. Document object model (DOM) tree information of the original page is obtained. For each text unit in the original page: identification information corresponding to a first text unit in the first PII file is extracted; a second text unit is identified in the second PII file using the extracted identification information and a relationship between the identification information and the second text unit; and the first text unit is replaced in the DOM tree with the second text unit. A new page is generated using the text units from the second PII file.
摘要:
Verifying text translation in a program including obtaining a first program integrated information (PII) file and a second PII file of text in the program. An original page is generated by using the first PII file. Document object model (DOM) tree information of the original page is obtained. For each text unit in the original page: identification information corresponding to a first text unit in the first PII file is extracted; a second text unit is identified in the second PII file using the extracted identification information and a relationship between the identification information and the second text unit; and the first text unit is replaced in the DOM tree with the second text unit. A new page is generated using the text units from the second PII file.
摘要:
Processing and/or rendering a web page can include acquiring a DOM content of a main window of the web page; generating, according to at least one predetermined rendered style and the DOM content of the main window, a DOM content corresponding to the at least one predetermined rendered style; and rendering the DOM content corresponding to the at least one predetermined rendered style in at least one window other than the main window.
摘要:
The present invention provides a method and apparatus for capturing graphic user interface resource of an application, which method comprises: loading resource files in which visible text data in graphic user interfaces of the application are stored; duplicating the resource files; adding identification information to each visible text data unit in the resource files, the identification information being used to uniquely identify each visible text data unit in each of the resource files; capturing at least one panel of graphic user interface according to the graphic user interfaces of the application; and saving the duplicated resource files and the at least one captured panel as the graphic user interface resource of the application into an intermediate file. By using the present invention, a linkage can be built up between the visible text data and the resource bundles by adding the unique identification information to each visible text data unit, and the application environment of the visible text data can be obtained by capturing the panels of graphic user interface of the application when the application is executed, so as to provide a basis for precise translation of the visible text data. The present invention also provides a method and apparatus for editing graphic user interfaces of an application.
摘要:
A method and apparatus for capturing graphic user interface resource of an application, which method comprises: loading resource files in which visible text data in graphic user interfaces of the application are stored; duplicating the resource files; adding identification information to each visible text data unit in the resource files, the identification information being used to uniquely identify each visible text data unit in each of the resource files; capturing at least one panel of graphic user interface according to the graphic user interfaces of the application; and saving the duplicated resource files and the at least one captured panel as the graphic user interface resource of the application into an intermediate file. Advantageously, a linkage can be built up between the visible text data and the resource bundles by adding the unique identification information to each visible text data unit, and the application environment of the visible text data can be obtained by capturing the panels of graphic user interface of the application when the application is executed, so as to provide a basis for precise translation of the visible text data. There is also provided a method and apparatus for editing graphic user interfaces of an application.