Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/1882291.1882306acmconferencesArticle/Chapter ViewAbstractPublication PagesfseConference Proceedingsconference-collections
research-article

Locating need-to-translate constant strings in web applications

Published: 07 November 2010 Publication History

Abstract

Software internationalization aims to make software accessible and usable by users all over the world. For a Java application that does not consider internationalization at the beginning of its develop- ment stage, our previous work proposed an approach to locating need-to-translate constant strings in the Java code. However, when being applied on web applications, it can identify only constant strings that may go to the generated HTML texts, but cannot further distinguish constant strings visible at the browser side (need-to-translate) from other constant strings (not need-to-translate). In this paper, to address significant challenges in internationalizing web applications, we propose a novel approach to locating need-to-translate constant strings in web applications. Among those constant strings that may go to the generated HTML texts, our approach further distinguishes strings visible at the browser side from non-visible strings via a novel technique called flag propagation. We evaluated our approach on three real-world open source PHP-based web applications (in total near 17 KLOC): Squirrel Mail, Lime Survey, and Mrbs. The empirical results demonstrate that our approach accurately distinguishes visible strings from non-visible strings among all the constant strings that may go to the generated HTML texts, and is effective for locating need-to-translate constant strings in web applications.

References

[1]
C.-P. Bezemer, A. Mesbah, and A. van Deursen. Automated security testing of web widget interactions. In ESEC/FSE, pages 81--90, 2009.
[2]
A. Christensen, A. Møller, and M. Schwartzbach. Precise analysis of string expressions. In SAS, pages 1--18, 2003.
[3]
R. Cytron, J. Ferrante, B. Rosen, M. Wegman, and K. Zadeck. Efficiently computing static single assignment form and the control dependence graph. ACM Trans. on Prog. Lang. and Sys., 13(4):451--490, October 1991.
[4]
V. Dagiene and R. Laucius. Internationalization of open source software: framework and some issues. In Intl. Conf. on Info. Tech.: Research and Edu., pages 204--207, 2004.
[5]
B. Esselink. A Practical Guide to Software Localization: For Translators, Engineers and Project Managers. John Benjamins, 2000.
[6]
C. Gould, Z. Su, and P. T. Devanbu. Static checking of dynamically generated queries in database applications. In ICSE, pages 645--654, 2004.
[7]
W. Halfond and A. Orso. Automated identification of parameter mismatches in web applications. In FSE, pages 181--191, 2008.
[8]
W. G. J. Halfond and A. Orso. AMNESIA: Analysis and monitoring for neutralizing SQL-injection attacks. In ASE, pages 174--183, 2005.
[9]
P. A. V. Hall. Decision Support Systems for Sustainable Development. Springer US, 2002.
[10]
J. Hogan, C. Ho-Stuart, and B. Pham. Key challenges in software internationalisation. In Australian Computer Science Workshops Frontiers, pages 187--194, 2004.
[11]
J. Kam and J. Ullman. Global data flow analysis and iterative algorithms. Journal of the ACM (JACM), 23(1):158--171, January 1976.
[12]
A. Kieyzun, P. J. Guo, K. Jayaraman, and M. D. Ernst. Automatic creation of SQL injection and cross-site scripting attacks. In ICSE, pages 199--209, 2009.
[13]
A. Koesnandar, S. G. Elbaum, G. Rothermel, L. Hochstein, C. Scaffidi, and K. T. Stolee. Using assertions to help end-user programmers create dependable web macros. In FSE, pages 124--134, 2008.
[14]
A. Lopez. Statistical machine translation. ACM Comput. Surv., 40(3):1--49, 2008.
[15]
Y. Minamide. Static approximation of dynamically generated web pages. In WWW, pages 432--441, 2005.
[16]
E. Uren, R. Howard, and T. Perinotti. Software Internationalization and Localization: An Introduction. Van Nostrand Reinhold, 1993.
[17]
X. Wang, L. Zhang, T. Xie, H. Mei, and J. Sun. Locating need-to-translate constant strings for software internationalization. In ICSE, pages 353--363, 2009.
[18]
G. Wassermann and Z. Su. Sound and precise analysis of web applications for injection vulnerabilities. In PLDI, pages 32--41, 2007.
[19]
G. Wassermann and Z. Su. Static detection of cross-site scripting vulnerabilities. In ICSE, pages 171--180, 2008.
[20]
G. Wassermann, D. Yu, A. Chander, D. Dhurjati, H. Inamura, and Z. Su. Dynamic test input generation for web applications. In ISSTA, pages 249--260, 2008.
[21]
Y. Xie and A. Aiken. Static detection of security vulnerabilities in scripting languages. In USENIX Security Symposium, pages 179--192, 2006.

Cited By

View all
  • (2023)Towards automated Android app internationalisation: An exploratory studyJournal of Systems and Software10.1016/j.jss.2022.111559197(111559)Online publication date: Mar-2023
  • (2021)ITDroid: A Tool for Automated Detection of i18n Issues on Android Apps2021 IEEE/ACM 8th International Conference on Mobile Software Engineering and Systems (MobileSoft)10.1109/MobileSoft52590.2021.00012(52-55)Online publication date: May-2021
  • (2021)Understanding Execution Environment of File-Manipulation Scripts by Extracting Pre-Conditions2021 IEEE/ACM 29th International Conference on Program Comprehension (ICPC)10.1109/ICPC52881.2021.00048(406-410)Online publication date: May-2021
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
FSE '10: Proceedings of the eighteenth ACM SIGSOFT international symposium on Foundations of software engineering
November 2010
302 pages
ISBN:9781605587912
DOI:10.1145/1882291
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 07 November 2010

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. flag propagation
  2. software internationalization
  3. web application

Qualifiers

  • Research-article

Conference

SIGSOFT/FSE'10
Sponsor:

Acceptance Rates

Overall Acceptance Rate 17 of 128 submissions, 13%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)5
  • Downloads (Last 6 weeks)0
Reflects downloads up to 22 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2023)Towards automated Android app internationalisation: An exploratory studyJournal of Systems and Software10.1016/j.jss.2022.111559197(111559)Online publication date: Mar-2023
  • (2021)ITDroid: A Tool for Automated Detection of i18n Issues on Android Apps2021 IEEE/ACM 8th International Conference on Mobile Software Engineering and Systems (MobileSoft)10.1109/MobileSoft52590.2021.00012(52-55)Online publication date: May-2021
  • (2021)Understanding Execution Environment of File-Manipulation Scripts by Extracting Pre-Conditions2021 IEEE/ACM 29th International Conference on Program Comprehension (ICPC)10.1109/ICPC52881.2021.00048(406-410)Online publication date: May-2021
  • (2020)An Empirical Study of i18n Collateral Changes and Bugs in GUIs of Android apps2020 IEEE International Conference on Software Maintenance and Evolution (ICSME)10.1109/ICSME46990.2020.00061(581-592)Online publication date: Sep-2020
  • (2020)Effective automated repair of internationalization presentation failures in web applications using style similarity clustering and search‐based techniquesSoftware Testing, Verification and Reliability10.1002/stvr.174631:1-2Online publication date: 6-Sep-2020
  • (2019)Efficiently Repairing Internationalization Presentation Failures by Solving Layout Constraints2019 12th IEEE Conference on Software Testing, Validation and Verification (ICST)10.1109/ICST.2019.00026(172-182)Online publication date: Apr-2019
  • (2019)Domain-specific machine translation with recurrent neural network for software localizationEmpirical Software Engineering10.1007/s10664-019-09702-z24:6(3514-3545)Online publication date: 30-Apr-2019
  • (2018)Protecting remote controlling apps of smart-home-oriented IOT devicesProceedings of the 40th International Conference on Software Engineering: Companion Proceeedings10.1145/3183440.3195101(212-213)Online publication date: 27-May-2018
  • (2018)Automated repair of mobile friendly problems in web pagesProceedings of the 40th International Conference on Software Engineering10.1145/3180155.3180262(140-150)Online publication date: 27-May-2018
  • (2018)Automated Repair of Internationalization Presentation Failures in Web Pages Using Style Similarity Clustering and Search-Based Techniques2018 IEEE 11th International Conference on Software Testing, Verification and Validation (ICST)10.1109/ICST.2018.00030(215-226)Online publication date: Apr-2018
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media