Commit 6793cbe2 authored by Christian Wach's avatar Christian Wach

Complete transition to new plugin name and slug

parent c3a1a522
......@@ -16,7 +16,7 @@ There are two ways to install from GitLab:
If you have downloaded *CiviCRM Permissions Sync* as a ZIP file from the GitLab repository, do the following to install and activate the plugin:
1. Unzip the .zip file and, if needed, rename the enclosing folder so that the plugin's files are located directly inside `/wp-content/plugins/reset-wp-civicrm-roles-caps`
1. Unzip the .zip file and, if needed, rename the enclosing folder so that the plugin's files are located directly inside `/wp-content/plugins/civicrm-permissions-sync`
2. Activate (or network-activate) the plugin
3. You're done.
......
<?php /*
--------------------------------------------------------------------------------
Plugin Name: CiviCRM Permissions Sync
Plugin URI: https://develop.tadpole.cc/plugins/reset-wp-civicrm-roles-caps
Plugin URI: https://develop.tadpole.cc/plugins/civicrm-permissions-sync
Description: Keeps CiviCRM permissions in sync with WordPress capabilities so that they are exposed to other plugins.
Author: Tadpole Collective
Author URI: https://tadpole.cc
Version: 1.0
License: GPLv2
Text Domain: reset-wp-civicrm-roles-caps
Text Domain: civicrm-permissions-sync
Domain Path: /languages
--------------------------------------------------------------------------------
Based upon code in https://github.com/civicrm/civicrm-wordpress/blob/master/includes/civicrm.users.php
......@@ -213,7 +213,7 @@ class CiviCRM_Permissions_Sync {
public function translation() {
load_plugin_textdomain(
'reset-wp-civicrm-roles-caps', // Unique name.
'civicrm-permissions-sync', // Unique name.
false, // Deprecated argument.
dirname( plugin_basename( __FILE__ ) ) . '/languages/' // Relative path.
);
......@@ -514,7 +514,7 @@ class CiviCRM_Permissions_Sync {
// Add new role.
$custom_role = add_role(
$this->custom_role_name,
__( 'CiviCRM Administrator', 'reset-wp-civicrm-roles-caps' ),
__( 'CiviCRM Administrator', 'civicrm-permissions-sync' ),
$admin->capabilities
);
......@@ -525,7 +525,7 @@ class CiviCRM_Permissions_Sync {
// Construct a message.
$message = sprintf(
__( 'Could not find CiviCRM sync role: "%s"', 'reset-wp-civicrm-roles-caps' ),
__( 'Could not find CiviCRM sync role: "%s"', 'civicrm-permissions-sync' ),
$this->custom_role_name
);
......
......@@ -3,8 +3,8 @@
msgid ""
msgstr ""
"Project-Id-Version: CiviCRM Permissions Sync 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/reset-wp-civicrm-roles-caps\n"
"POT-Creation-Date: 2019-04-11 14:50:04+00:00\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/civicrm-permissions-sync\n"
"POT-Creation-Date: 2019-04-11 15:11:14+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment