-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#155 Adapt Smarty upper/lower functions to be codesafe (e.g. for Turkish locale) #586
Conversation
…. for Turkish locale)
libs/sysplugins/smarty_internal_compile_private_special_variable.php
Outdated
Show resolved
Hide resolved
…le.php Fixed variable naming typo (thanks!) Co-Authored-By: Alexkurd <[email protected]>
Hello, I need also this fix for a Turkish translation of Wikindx users. Regards, |
I am also waiting for this fix. |
PHP RFC: Locale-independent case conversion corrects it for PHP 8.2. |
@lkppo cool! |
Isn't it! I have patched my code with this PR for several months and it is working fine. By the way, I factored with functions ucfirst_ascii(), strtolower_ascii() to minimize the modifications. |
…for translating user string to filenames etc. Fixes smarty-php#155
Hi @wisskid, Thanks for merging this PR. My hand patching can go now! Regards, |
This PR changes the
ucfirst
/lcfirst
/strtoupper
/strtolower
calls in the code that work with method, class, and variable names. These calls are replaced with equivalents (e.g. usingstrtr
) that do not change depending on the system locale. This resolves a problem in particular withtr_TR
, for whichstrtolower('I') != 'i'
.