Fork me on GitHub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support for Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Current releases are 2.1.4 (30 Oct 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

Locale translation for words like "don't"?

edited August 2011 in Vanilla 2.0 Help
Hi!

I'm working on a custom locale but run into problems when trying to translate phrases containing ' characters, like can't, don't, won't etc. Running the latest 2.0.18.b2

The below does not work because the ' character in "don't" will tell PHP that the string is ending, breaking the syntax:
$Definition['Don't have an account?'] = 'Har du inget konto?';

The below two versions are syntactically correct but has no effect:
$Definition["Don't have an account?"] = 'Har du inget konto?';
$Definition['Don\'t have an account?'] = 'Har du inget konto?';

Thankful for help!
Tagged:

Best Answer

Sign In or Register to comment.