Title :
Locating need-to-translate constant strings for software internationalization
Author :
Wang, Xiaoyin ; Zhang, Lu ; Xie, Tao ; Mei, Hong ; Sun, Jiasu
Author_Institution :
Inst. of Software, Peking Univ., Beijing
Abstract :
Modern software applications require internationalization to be distributed to different regions of the world. In various situations, many software applications are not internationalized at early stages of development. To internationalize such an existing application, developers need to externalize some hard-coded constant strings to resource files, so that translators can easily translate the application into a local language without modifying its source code. Since not all the constant strings require externalization, locating those need-to-translate constant strings is a necessary task that developers must complete for internationalization. In this paper, we present an approach to automatically locating need-to-translate constant strings. Our approach first collects a list of API methods related to the graphical user interface (GUI), and then searches for need-to-translate strings from the invocations of these API methods based on string-taint analysis. We evaluated our approach on four real-world open source applications: RText, Risk, ArtOfIllusion, and Megamek. The results show that our approach effectively locates most of the need-to-translate constant strings in all the four applications.
Keywords :
graphical user interfaces; public domain software; software engineering; API methods; ArtOfIllusion; Megamek; RText; Risk; graphical user interface; hard-coded constant strings; need-to-translate constant strings; open source applications; software applications; software internationalization; string-taint analysis; Application software; Computer science; Databases; Educational technology; Graphical user interfaces; Java; Laboratories; Open source software; Software prototyping; Software tools;
Conference_Titel :
Software Engineering, 2009. ICSE 2009. IEEE 31st International Conference on
Conference_Location :
Vancouver, BC
Print_ISBN :
978-1-4244-3453-4
DOI :
10.1109/ICSE.2009.5070535