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 translation usage in datatable footer #9675

Merged
merged 1 commit into from Feb 2, 2016
Merged

Fix translation usage in datatable footer #9675

merged 1 commit into from Feb 2, 2016

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Feb 1, 2016

fixes #9670

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Feb 1, 2016
@sgiehl sgiehl added this to the 2.16.0 milestone Feb 1, 2016
if (/(%(.\$)?s+)/g.test(_pk_translate(text))) {
var values = ['<br /><span class="action">&raquo; '];
if(replacement) {
values.push(replacement);
Copy link
Member

Choose a reason for hiding this comment

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

I haven't tested it yet but does it actually do the same? I think before it was maybe replacing the first %s with self.props.pivot_dimension_name and now it's maybe the second %s (replacement)

mattab pushed a commit that referenced this pull request Feb 2, 2016
Fix translation usage in datatable footer
@mattab mattab merged commit ff8f602 into master Feb 2, 2016
@mattab mattab deleted the 9670 branch February 2, 2016 02:45
@mattab
Copy link
Member

mattab commented Feb 2, 2016

Works for me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants