Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "smartling/wordpress-connector",
"license": "GPL-2.0-or-later",
"version": "5.5.1",
"version": "5.5.2",
"description": "",
"type": "wordpress-plugin",
"repositories": [
Expand Down
18 changes: 17 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,22 @@ function JobWizard({ isBulkSubmitPage, contentType, contentId, locales, ajaxUrl,

relations.length > 0 && el('fieldset', { style: { marginTop: '16px', border: '1px solid #ddd', padding: '12px', borderRadius: '4px' } },
el('legend', { style: { fontWeight: 600, padding: '0 8px' } }, 'Related content to be uploaded'),
el('div', { style: { display: 'flex', gap: '8px', marginBottom: '8px' } },
el(Button, {
variant: 'secondary',
size: 'small',
onClick: () => {
const all = {};
relations.forEach(r => { all[`${r.contentType}-${r.id}`] = true; });
setSelectedRelations(all);
}
}, 'Check All'),
el(Button, {
variant: 'secondary',
size: 'small',
onClick: () => setSelectedRelations({})
}, 'Uncheck All')
),
el('div', { style: { maxHeight: '200px', overflowY: 'auto' } },
relations.map(rel => {
const key = `${rel.contentType}-${rel.id}`;
Expand All @@ -450,7 +466,7 @@ function JobWizard({ isBulkSubmitPage, contentType, contentId, locales, ajaxUrl,
style: { width: '30px', height: '30px', objectFit: 'cover', verticalAlign: 'middle', marginLeft: '5px' }
}) : null;

return el('label', { key, style: { display: 'flex', alignItems: 'center', marginBottom: '8px', cursor: 'pointer' } },
return el('label', { key, style: { display: 'flex', alignItems: 'center', margin: '8px 0', cursor: 'pointer' } },
el('input', {
type: 'checkbox',
checked: selectedRelations[key] || false,
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: translation, localization, multilingual, internationalization, smartling
Requires at least: 5.5
Tested up to: 6.9
Requires PHP: 8.0
Stable tag: 5.5.1
Stable tag: 5.5.2
License: GPLv2 or later

Translate content in WordPress quickly and seamlessly with Smartling, the industry-leading Translation Management System.
Expand Down Expand Up @@ -62,6 +62,9 @@ Additional information on the Smartling Connector for WordPress can be found [he
3. Track translation status within WordPress from the Submissions Board. View overall progress of submitted translation requests as well as resend updated content.

== Changelog ==
= 5.5.2 =
* Added "Check All" and "Uncheck All" buttons to the related assets list

= 5.5.1 =
* Fixed broken HTML in the content edit view that prevented WordPress postboxes below the Smartling box from opening after the Smartling box was collapsed

Expand Down
2 changes: 1 addition & 1 deletion smartling-connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: Smartling Connector
* Plugin URI: https://www.smartling.com/products/automate/integrations/wordpress/
* Description: Integrate your WordPress site with Smartling to upload your content and download translations.
* Version: 5.5.1
* Version: 5.5.2
* Author: Smartling
* Author URI: https://www.smartling.com
* License: GPL-2.0+
Expand Down