Skip to content

Commit

Permalink
Version bump v2.1.2 and name change
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedoubintchik committed Nov 18, 2019
1 parent b0b9f2d commit fc72bda
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
12 changes: 8 additions & 4 deletions README.md
@@ -1,15 +1,16 @@
# Visual Composer Multilanguage
# WP Bakery Multilanguage

Author URI: https://allurewebsolutions.com
Plugin URI: https://vc-multilanguage.allureprojects.com/
Tags: visual composer, multilanguage, multi-language, translate, translation
Donate link: https://allurewebsolutions.com/product/donation
Tested up to: 5.2.2
Stable tag: 2.1.1
Tested up to: 5.3
Stable tag: 2.1.2

This is an add-on plugin for WPBakery Visual Composer that adds multilanguage support and functionality. Version 2.0 now also has automatic translations that you can turn on.


## Description

This is an add-on plugin for WPBakery Visual Composer that adds functionality of a language switcher, making it very easy to create a multi-language site without an additional multi-language or translation plugin.

In version 2.0, we've added support for automatic translations using the Google Cloud Translate API.
Expand All @@ -19,18 +20,21 @@ In version 2.0, we've added support for automatic translations using the Google
[Demo](https://vc-multilanguage.allureprojects.com)

## Installation

1) Activate the plugin. Must have Visual Composer also activated.
2) Go to plugin settings and input the languages you would like to support.
3) Go to VC editor and add rows. Select language from the dropdown and add a class of "language" to the extra classes section.
4) For auto translation, you follow step 3, but leave the text-block inside the row empty.

## Screenshots

1. Settings screen
2. Edit VC row and select language from dropdown
3. Add "language class"
4. Full setup

## Changelog

2.1: Added default language setting
2.0: Add automatic translation functionality
1.0.1: Update readme and screenshots
Expand Down
6 changes: 3 additions & 3 deletions README.txt
@@ -1,11 +1,11 @@
=== Visual Composer Multilanguage ===
=== WP Bakery Multilanguage ===
Contributors: allurewebsolutions
Author URI: https://allurewebsolutions.com
Plugin URI: https://vc-multilanguage.allureprojects.com/
Tags: visual composer, multilanguage, multi-language, translate, translation
Donate link: https://allurewebsolutions.com/product/donation
Tested up to: 5.2.2
Stable tag: 2.1.1
Tested up to: 5.3
Stable tag: 2.1.2

This is an add-on plugin for WPBakery Visual Composer that adds multilanguage support and functionality. Version 2.0 now also has automatic translations that you can turn on.

Expand Down
26 changes: 14 additions & 12 deletions visual-composer-multilanguage.php
Expand Up @@ -13,10 +13,10 @@
* @package Visual_Composer_Multilanguage
*
* @wordpress-plugin
* Plugin Name: Visual Composer Multilanguage
* Plugin Name: WP Bakery Multilanguage
* Plugin URI: https://allurewebsolutions.com/projects/visual-composer-multilanguage
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
* Version: 2.1.1
* Version: 2.1.2
* Author: Allure Web Solutions
* Author URI: https://allurewebsolutions.com
* License: GPL-2.0+
Expand All @@ -26,36 +26,38 @@
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
if (!defined('WPINC')) {
die;
}

/**
* The code that runs during plugin activation.
* This action is documented in includes/class-visual-composer-multilanguage-activator.php
*/
function activate_visual_composer_multilanguage() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-visual-composer-multilanguage-activator.php';
function activate_visual_composer_multilanguage()
{
require_once plugin_dir_path(__FILE__) . 'includes/class-visual-composer-multilanguage-activator.php';
Visual_Composer_Multilanguage_Activator::activate();
}

/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-visual-composer-multilanguage-deactivator.php
*/
function deactivate_visual_composer_multilanguage() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-visual-composer-multilanguage-deactivator.php';
function deactivate_visual_composer_multilanguage()
{
require_once plugin_dir_path(__FILE__) . 'includes/class-visual-composer-multilanguage-deactivator.php';
Visual_Composer_Multilanguage_Deactivator::deactivate();
}

register_activation_hook( __FILE__, 'activate_visual_composer_multilanguage' );
register_deactivation_hook( __FILE__, 'deactivate_visual_composer_multilanguage' );
register_activation_hook(__FILE__, 'activate_visual_composer_multilanguage');
register_deactivation_hook(__FILE__, 'deactivate_visual_composer_multilanguage');

/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-visual-composer-multilanguage.php';
require plugin_dir_path(__FILE__) . 'includes/class-visual-composer-multilanguage.php';

/**
* Begins execution of the plugin.
Expand All @@ -66,10 +68,10 @@ function deactivate_visual_composer_multilanguage() {
*
* @since 1.0.0
*/
function run_visual_composer_multilanguage() {
function run_visual_composer_multilanguage()
{

$plugin = new Visual_Composer_Multilanguage();
$plugin->run();

}
run_visual_composer_multilanguage();

0 comments on commit fc72bda

Please sign in to comment.