Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Locale translation for words like "don't"?
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!
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:
0
Best Answer
-
yu_tang NewSee applications/dashboard/views/entry/passwordform.php or password.php.
$Definition['Don\'t have an account? %s'] = 'Don\'t have an account? %s';
0
Answers