-
Notifications
You must be signed in to change notification settings - Fork 824
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
Replace deprecated sprintf rules in core translations #6582
Comments
@chillu there's a few cases in the tests, especially i18nTest that still use either |
Correct, everything referring to |
@chillu I've removed I've also removed the "legacy" assertions which were explicitly testing a bunch of |
The issue was with legacy function OldTPart_QuotedString(&$res, $sub)
{
$entity = $sub['String']['text'];
if (strpos($entity, '.') === false) {
$res['php'] .= "\$scope->XML_val('I18NNamespace').'.$entity'";
} else {
$res['php'] .= "'$entity'";
}
} I suggest removing this, as it's been deprecated for quite some time. Templates should use |
@tractorcow do you want me to whip this out as part of the PR? |
It's up to you; It can be another PR or just a part of this if you like. |
@tractorcow @chillu are we ready for this PR now re: Transifex? If so I'll rebase #6598 tomorrow. |
yes please |
FYI @tractorcow I haven't removed the legacy template parser functions in #6598 - they're marked as deprecated against 5.0, didn't want to remove them in this PR. |
Thanks @robbieaverill that's good. :D I'll review your work next week. |
bump @tractorcow |
cms and versioned need rebasing, @robbieaverill |
We've deprecated the use of
sprintf()
style placeholders (e.g.%s
) in_t()
calls with #6558 - but core still uses it. There's around two dozen strings in core. Ideally we also replace this in the existing translations as well, so the translation strings don't get invalidated (we either have to fix them or remove them, otherwise will see stray%s
in the UI)The text was updated successfully, but these errors were encountered: