TranStrL: An automatic need-to-translate string locator for software internationalization

TranStrL: An automatic need-to-translate string locator for software internationalization
复制标题

TranStrL:用于软件国际化的自动需要翻译字符串定位器

DOI:
10.1109/icse.2009.5070554
复制
发表时间:
2009
期刊:
2009 IEEE 31st International Conference on Software Engineering
影响因子:
--
通讯作者:
Jiasu Sun
Jiasu Sun
中科院分区:
--
文献类型:
--
作者:
Xiaoyin Wang;Lu Zhang;Tao Xie;Hong Mei;Jiasu Sun

文献摘要

被引文献

相似文献

将软件应用程序分发到世界各地的不同地区时,软件国际化通常是必要的。在许多情况下,开发人员通常不会在开发阶段开始时将软件应用程序国际化。为了国际化这样一个现有的应用程序,开发人员需要将一些硬编码的常量字符串外部化到资源文件中,以便翻译人员可以轻松地将应用程序翻译为本地语言,而无需修改其源代码。由于并非所有的常量字符串都需要外部化,因此定位那些需要翻译的常量字符串是开发人员必须执行的基本任务。在本文中,我们介绍了 TranStrL,这是一个 Eclipse 插件工具,可以自动定位 Java 代码中需要翻译的常量字符串。我们的工具维护预先收集的与图形用户界面 (GUI) 相关的 API 方法列表,然后使用字符串污点分析从这些 API 方法的调用开始在源代码中搜索需要翻译的字符串。
Software internationalization is often necessary when distributing software applications to different regions around the world. In many cases, developers often do not internationalize a software application at the beginning of the development stage. 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 to be in 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 basic task that the developers must conduct. In this paper, we present TranStrL, an Eclipse plug-in tool that automatically locates need-to-translate constant strings in Java code. Our tool maintains a pre-collected list of API methods related to the Graphical User Interface (GUI), and then searches for need-to-translate strings in the source code starting from the invocations of these API methods using string-taint analysis.