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

ENH Update translations #359

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

GuySartorelli
Copy link
Collaborator

@GuySartorelli GuySartorelli commented Mar 8, 2023

Also add to transifex: https://www.transifex.com/silverstripe/silverstripe-gridfieldextensions/

Note that the javascript/ and css/ files not being inside client/ is unusual, but it's not something we can change in this major release line.
I missed it in the CMS 5 lineup so I'll raise a new card to deal with it for that release line.

Issue

@@ -243,7 +243,11 @@
const classes = this.data('classes');
const liHtml = Object.keys(classes).map(className => {
const link = hrefTemplate.replace('{class}', className);
return `<li><a href="${link}">Add: <i>${classes[className]}</i></a></li>`;
const linkText = ss.i18n.inject(
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we're changing this then shouldn't there be an updated bundle.js too?

Copy link
Collaborator Author

@GuySartorelli GuySartorelli Mar 9, 2023

Choose a reason for hiding this comment

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

Why? This is just making strings translatable. It doesn't affect how (or even if) it's transpiled.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We'll if there was a bundle.js we'd need to update it so that translations were actually used :-)

It's a non issue though

Requirements::javascript('symbiote/silverstripe-gridfieldextensions:javascript/GridFieldExtensions.js');

@emteknetnz emteknetnz merged commit b0addcb into symbiote:3 Mar 9, 2023
@emteknetnz emteknetnz deleted the pulls/3/translatable branch March 9, 2023 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants