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

Add support for WPML (plugin / add-ons) #42

Closed
wants to merge 3 commits into from
Closed
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: 2 additions & 0 deletions Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ protected function getDownloadUrl( PackageInterface $package ) {
$plugin = new Plugins\GravityForms( $package->getPrettyVersion(), str_replace( 'junaidbhura/', '', $package_name ) );
} elseif ( 0 === strpos( $package_name, 'junaidbhura/wpai-' ) || 0 === strpos( $package_name, 'junaidbhura/wpae-' ) ) {
$plugin = new Plugins\WpAiPro( $package->getPrettyVersion(), str_replace( 'junaidbhura/', '', $package_name ) );
} elseif ( 0 === strpos( $package_name, 'junaidbhura/wpml-' ) ) {
$plugin = new Plugins\WPML( $package->getPrettyVersion(), str_replace( 'junaidbhura/', '', $package_name ) );
}
}

Expand Down
320 changes: 319 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Sensitive credentials (license keys, tokens) are read from environment variables
2. Gravity Forms / Add-Ons
3. Polylang Pro
4. WP All Import / Export Pro / Add-Ons
5. WPML

## Overview

Expand Down Expand Up @@ -42,6 +43,8 @@ WP_ALL_IMPORT_PRO_KEY="<wp_all_import_license_key>"
WP_ALL_IMPORT_PRO_URL="<registered_url_for_wpai_pro>"
WP_ALL_EXPORT_PRO_KEY="<wp_all_export_license_key>"
WP_ALL_EXPORT_PRO_URL="<registered_url_for_wpae_pro>"
WPML_USER_ID="<wpml_user_id>"
WPML_KEY="<wpml_key>"
```

Add the following to your composer.json file:
Expand Down Expand Up @@ -183,6 +186,262 @@ Add the following to your composer.json file:
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-sitepress-multilingual-cms",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-string-translation",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-media-translation",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-woocommerce-multilingual",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-gravityforms-multilingual",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-contact-form-7-multilingual",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-ninja-forms",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-wpforms",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-buddypress-multilingual",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-acfml",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-all-import",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-mailchimp-for-wp",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-wp-seo-multilingual",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-types",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-sticky-links",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-cms-nav",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpml-translation-management",
"version": "<version_number>",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://wpml.org/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},

],
Comment on lines +443 to 445
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix JSON syntax.

Suggested change
},
],
}
],

"require": {
"junaidbhura/advanced-custom-fields-pro": "*",
Expand All @@ -193,7 +452,24 @@ Add the following to your composer.json file:
"junaidbhura/wp-all-export-pro": "*",
"junaidbhura/wpai-acf-add-on": "*",
"junaidbhura/wpae-acf-add-on": "*",
"junaidbhura/wpae-user-add-on-pro": "*"
"junaidbhura/wpae-user-add-on-pro": "*",
"junaidbhura/wpml-sitepress-multilingual-cms": "*",
"junaidbhura/wpml-string-translation": "*",
"junaidbhura/wpml-media-translation": "*",
"junaidbhura/wpml-woocommerce-multilingual": "*",
"junaidbhura/wpml-gravityforms-multilingual": "*",
"junaidbhura/wpml-contact-form-7-multilingual": "*",
"junaidbhura/wpml-ninja-forms": "*",
"junaidbhura/wpml-wpforms": "*",
"junaidbhura/wpml-buddypress-multilingual": "*",
"junaidbhura/wpml-acfml": "*",
"junaidbhura/wpml-all-import": "*",
"junaidbhura/wpml-mailchimp-for-wp": "*",
"junaidbhura/wpml-wp-seo-multilingual": "*",
"junaidbhura/wpml-types": "*",
"junaidbhura/wpml-sticky-links": "*",
"junaidbhura/wpml-cms-nav": "*",
"junaidbhura/wpml-translation-management": "*"
},
```

Expand Down Expand Up @@ -228,3 +504,45 @@ You can use any WP All Export Pro add-on by simply adding it's slug like so:
For example:

`junaidbhura/wpae-acf-add-on`

### WPML Add-Ons

You can use any WPML add-on by simply adding it's slug like so:

`junaidbhura/<plugin-slug>`

For example:

`junaidbhura/wpml-sitepress-multilingual-cms`

`junaidbhura/wpml-string-translation`

`junaidbhura/wpml-media-translation`

`junaidbhura/wpml-woocommerce-multilingual`

`junaidbhura/wpml-gravityforms-multilingual`

`junaidbhura/wpml-contact-form-7-multilingual`

`junaidbhura/wpml-ninja-forms`

`junaidbhura/wpml-wpforms`

`junaidbhura/wpml-buddypress-multilingual`

`junaidbhura/wpml-acfml`

`junaidbhura/wpml-all-import`

`junaidbhura/wpml-mailchimp-for-wp`

`junaidbhura/wpml-wp-seo-multilingual`

`junaidbhura/wpml-types`

`junaidbhura/wpml-sticky-links`

`junaidbhura/wpml-cms-nav`

`junaidbhura/wpml-translation-management`
Comment on lines +508 to +548
Copy link
Contributor

Choose a reason for hiding this comment

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

This section is derived from from WP All Import/Export Pro and both should be rephrased to highlight the fact that only specific add-ons of each plugin are supported. The section should be phrase as so:

Suggested change
### WPML Add-Ons
You can use any WPML add-on by simply adding it's slug like so:
`junaidbhura/<plugin-slug>`
For example:
`junaidbhura/wpml-sitepress-multilingual-cms`
`junaidbhura/wpml-string-translation`
`junaidbhura/wpml-media-translation`
`junaidbhura/wpml-woocommerce-multilingual`
`junaidbhura/wpml-gravityforms-multilingual`
`junaidbhura/wpml-contact-form-7-multilingual`
`junaidbhura/wpml-ninja-forms`
`junaidbhura/wpml-wpforms`
`junaidbhura/wpml-buddypress-multilingual`
`junaidbhura/wpml-acfml`
`junaidbhura/wpml-all-import`
`junaidbhura/wpml-mailchimp-for-wp`
`junaidbhura/wpml-wp-seo-multilingual`
`junaidbhura/wpml-types`
`junaidbhura/wpml-sticky-links`
`junaidbhura/wpml-cms-nav`
`junaidbhura/wpml-translation-management`
### WPML Add-Ons
The following WPML plugins and add-ons are supported:
* `junaidbhura/wpml-acfml`
* `junaidbhura/wpml-all-import`
* `junaidbhura/wpml-buddypress-multilingual`
* `junaidbhura/wpml-cms-nav`
* `junaidbhura/wpml-contact-form-7-multilingual`
* `junaidbhura/wpml-gravityforms-multilingual`
* `junaidbhura/wpml-mailchimp-for-wp`
* `junaidbhura/wpml-media-translation`
* `junaidbhura/wpml-ninja-forms`
* `junaidbhura/wpml-sitepress-multilingual-cms`
* `junaidbhura/wpml-sticky-links`
* `junaidbhura/wpml-string-translation`
* `junaidbhura/wpml-translation-management`
* `junaidbhura/wpml-types`
* `junaidbhura/wpml-woocommerce-multilingual`
* `junaidbhura/wpml-wp-seo-multilingual`
* `junaidbhura/wpml-wpforms`

Loading