Locating need-to-externalize constant strings for software internationalization with generalized string-taint analysis

Xiaoyin Wang, Lu Zhang, Tao Xie, Hong Mei, Jiasu Sun

Research output: Contribution to journalArticlepeer-review

Abstract

Nowadays, a software product usually faces a global market. To meet the requirements of different local users, the software product must be internationalized. In an internationalized software product, user-visible hard-coded constant strings are externalized to resource files so that local versions can be generated by translating the resource files. In many cases, a software product is not internationalized at the beginning of the software development process. To internationalize an existing product, the developers must locate the user-visible constant strings that should be externalized. This locating process is tedious and error-prone due to 1) the large number of both user-visible and non-user-visible constant strings and 2) the complex data flows from constant strings to the Graphical User Interface (GUI). In this paper, we propose an automatic approach to locating need-to-externalize constant strings in the source code of a software product. Given a list of precollected API methods that output values of their string argument variables to the GUI and the source code of the software product under analysis, our approach traces from the invocation sites (within the source code) of these methods back to the need-to-externalize constant strings using generalized string-taint analysis. In our empirical evaluation, we used our approach to locate need-to-externalize constant strings in the uninternationalized versions of seven real-world open source software products. The results of our evaluation demonstrate that our approach is able to effectively locate need-to-externalize constant strings in uninternationalized software products. Furthermore, to help developers understand why a constant string requires translation and properly translate the need-to-externalize strings, we provide visual representation of the string dependencies related to the need-to-externalize strings.

Original languageEnglish (US)
Article number6216383
Pages (from-to)516-536
Number of pages21
JournalIEEE Transactions on Software Engineering
Volume39
Issue number4
DOIs
StatePublished - 2013
Externally publishedYes

Keywords

  • Software internationalization
  • need-to-externalize constant strings
  • string-taint analysis

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Locating need-to-externalize constant strings for software internationalization with generalized string-taint analysis'. Together they form a unique fingerprint.

Cite this