CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Translations, Javascript and Apostrophes

Print topic Send  topic

Author Message
Posted: 02/22/2011, 11:36 AM

When working with translations, normally an apostrophe will work for
server-side translations. However, if you're going to use an apostrophe
in a translation that will be used via javascript (such as a
confirmation message for a button), you MUST escape the apostrophe in
your translation. If you do not, then all javascript on the page will
cease to function.


Are you sure you want to delete this record's content?

must be escaped via:

Are you sure you want to delete this record\'s content?

This can be easily overlooked when working in your project and using the
same translation for both a server-side event and a client-side event.

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.