Jump to content

How to avoid output formatting with translated strings?


Recommended Posts

I am using the translation function (either $this->_() or __()) within a module that responds to AJAX API calls - there isn't really a page that is being served.

When I supply a string with an apostrophe, e.g.,

__('Book \'em danno')

It is formatted as

Book 'em danno

 

Is there some way to prevent output formatting when retrieving strings using the translation functions?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...