Skip to content
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

FIX Remove legacy sprintf style translations in favour of placeholders #12

Conversation

robbieaverill
Copy link
Contributor

@robbieaverill robbieaverill commented May 18, 2017

@tractorcow
Copy link
Contributor

@robbieaverill can you please rebase.

@robbieaverill robbieaverill force-pushed the bugfix/remove-sprintf-in-translations branch from cb6d9f1 to 44b86e9 Compare July 30, 2017 11:13
@robbieaverill
Copy link
Contributor Author

@tractorcow rebased, thanks

@robbieaverill robbieaverill changed the base branch from master to 1 July 30, 2017 11:13
@robbieaverill robbieaverill force-pushed the bugfix/remove-sprintf-in-translations branch from 44b86e9 to ab9ec3c Compare July 30, 2017 11:14
@robbieaverill robbieaverill changed the base branch from 1 to master July 30, 2017 11:17
@robbieaverill robbieaverill force-pushed the bugfix/remove-sprintf-in-translations branch from ab9ec3c to aa93194 Compare July 30, 2017 11:18
@@ -172,7 +172,7 @@ public function doUnpublish($data, $form)
$record->doUnpublish();

$message = sprintf(
_t('SilverStripe\\Versioned\\VersionedGridFieldItemRequest.Unpublished', 'Unpublished %s %s'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to replace sprintf() with the parameterised form of _t() call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh. 2 secs

@robbieaverill robbieaverill force-pushed the bugfix/remove-sprintf-in-translations branch from aa93194 to 43be1a0 Compare July 30, 2017 22:18
@tractorcow tractorcow merged commit 533fb62 into silverstripe:master Jul 31, 2017
@flamerohr
Copy link
Contributor

@tractorcow this was merged into master instead of the preferred 1 branch

@robbieaverill
Copy link
Contributor Author

robbieaverill commented Aug 1, 2017

@flamerohr FYI the other PRs are all in master too

@robbieaverill robbieaverill deleted the bugfix/remove-sprintf-in-translations branch August 1, 2017 04:06
@tractorcow
Copy link
Contributor

I'll merge them back before tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants