摘要 |
A method, system, and/or computer program product translates a phrase in a first language to an equivalent phrase in a second language. Electronic data includes image data, which describes one or more graphical user interface (GUI) elements on a GUI. The GUI includes a delineated area that is used by a GUI element. The GUI element is matched to one of a plurality of predefined GUI elements, where each of the plurality of predefined GUI elements is predefined by a set of data that comprises a conditional expression, which describes a structure of a particular GUI element, as well as a type of text data that is associated with that particular GUI element. Text data from the delineated area in the GUI is then translated from the first language into the second language according to the type of text data that is associated with a particular type of GUI element. |