Browse Prior Art Database

System to detect text truncation due to translation in web applications

IP.com Disclosure Number: IPCOM000220596D
Publication Date: 2012-Aug-08
Document File: 6 page(s) / 80K

Publishing Venue

The IP.com Prior Art Database

Abstract

A system and method to detect truncation problem before real translaiton is provided. The system produces pseudo translation in which restrictions are lifted using that expanded text and uses a predefined set of rules to remove constricting style sheet settings and parameters and then compares the space used by the unrestricted text to the previously restricted text. An agent is used to inspect DOM of every screen and apply the set of rules to get a second copy of each screen by modifying the settings. If the area used by the text in the modified copy uses more space than the original copy, then a problematic area has been found and the page element is identified and logged as a problem.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 38% of the total text.

Page 01 of 6

System to detect text truncation due to translation in web applications

When a software user interface (UI) is translated from one language to another, the translation is often longer than the original text. This can lead to truncation of the translated text due to insufficient space to display the longer text. For web based applications, text expansion may be constricted by style sheet settings that limit the display area and thus leads to translated text not being able to be fully displayed. Since truncated text leads to a poor UI and decreased customer satisfaction considerable effort is made to detect these problems through testing before the software is released.

The current best practice to detect these problems is to generate a pseudo translation (an automated process in which all strings are artificially expanded according to an expansion algorithm). Testers have to then view every screen of the UI manually looking for places where the expanded strings are not displaying properly. This is a labor intensive and therefore, expensive, process. The approach is also error prone, as testers sometimes fail to notice text that is not displaying properly.

Finding an automated solution to the problem of detecting truncation is therefore of great economic importance.

The invention uses a predefined set of rules to remove constricting layout settings and parameters and then compares the space used by the unrestricted text to the previously restricted text layout. If removing the restrictions results in a larger display area being required, then it is a very strong indication that truncation is occurring due to the restrictions.

Using a pseudo translation of the software, a software agent is used to inspect every element of the Document Object Model (DOM) of every screen. For each type of item found in the DOM, a set of rules is used to determine what settings should be modified in order to determine the maximal size required for text that is to be displayed as part of the item. A second copy of each page is created using the modified settings allowing the old sizes and new sizes to be compared. If the area used by the text in the modified copy uses more space than the original copy, then a problematic area has been found and the page element is identified and logged as a problem.

The advantage of this invention are:


1) Labor intensive manual inspection of the pseudo translation is not required to find instances where truncation will occur.


2) All instances of truncation can be found (none are inadvertently overlooked by a human tester)


3) The speed at which the testing is occomplished is much greater than with manual testing.

These result in a lower cost and more accurate testing, allowing a greater number of defects to be found.

Usually the truncation problems in web page are caused by using improper CSS styles or attribute values on the HTML elements, like "width", "height", "length", "nowrap" etc; Improper CSS styles and HTML attr...