摘要 |
A method, computer program product, and data processing system for allowing real-time natural-language translation of web pages with embedded server-side code, such as is provided by JAVA SERVER PAGES (JSP) is disclosed. A pre-processor is utilized to identify portions of a web page that contain references to resource bundles used to store the text used in the web page. Where references to resource bundles are provided in a web page, additional input controls are added by the pre-processor to the web page to enable a translator to enter translated text. The translated text is then submitted back to the server that served the web page for inclusion in the resource bundle being used. In this way, a translator may translate a web-based application in real time without having to explicitly refer to the actual resource bundles being used.
|