Version Description
Download this release
Release Info
| Developer | derpixler |
| Plugin | |
| Version | 3.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 3.1.0 to 3.1.1
- assets/css/inpsyde-search-replace.css +0 -4
- inc/FileDownloader.php +15 -14
- inc/Load.php +72 -0
- inc/Page/Manager.php +2 -2
- inc/Page/SearchReplace.php +5 -0
- inc/Plugin.php +1 -5
- inc/templates/credits.php +1 -1
- inc/templates/db_backup.php +1 -1
- inc/templates/replace_domain.php +2 -2
- inc/templates/search_replace.php +1 -1
- inc/templates/sql_import.php +1 -1
- inspyde-search-replace.php → inpsyde-search-replace.php +40 -48
- l10n/search-and-replace-de_DE.mo +0 -0
- l10n/search-and-replace-de_DE.po +128 -109
- readme.txt +6 -2
assets/css/inpsyde-search-replace.css
CHANGED
|
@@ -11,12 +11,10 @@ input[name="search"], input[name="replace"], #select_tables {
|
|
| 11 |
.search-replace-replace-value {
|
| 12 |
color: #fff;
|
| 13 |
background-color: green;
|
| 14 |
-
|
| 15 |
}
|
| 16 |
|
| 17 |
.disabled, .form-table .disabled th {
|
| 18 |
color: grey;
|
| 19 |
-
|
| 20 |
}
|
| 21 |
|
| 22 |
|
|
@@ -64,7 +62,6 @@ input[name="search"], input[name="replace"], #select_tables {
|
|
| 64 |
width: 100%;
|
| 65 |
table-layout: fixed;
|
| 66 |
margin-bottom: 30px;
|
| 67 |
-
|
| 68 |
}
|
| 69 |
|
| 70 |
.search-replace-modal-table * {
|
|
@@ -119,7 +116,6 @@ input[name="search"], input[name="replace"], #select_tables {
|
|
| 119 |
-webkit-font-smoothing: antialiased;
|
| 120 |
-moz-osx-font-smoothing: grayscale;
|
| 121 |
color: #666;
|
| 122 |
-
|
| 123 |
}
|
| 124 |
|
| 125 |
#insr_submit{
|
| 11 |
.search-replace-replace-value {
|
| 12 |
color: #fff;
|
| 13 |
background-color: green;
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
.disabled, .form-table .disabled th {
|
| 17 |
color: grey;
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
|
| 62 |
width: 100%;
|
| 63 |
table-layout: fixed;
|
| 64 |
margin-bottom: 30px;
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
.search-replace-modal-table * {
|
| 116 |
-webkit-font-smoothing: antialiased;
|
| 117 |
-moz-osx-font-smoothing: grayscale;
|
| 118 |
color: #666;
|
|
|
|
| 119 |
}
|
| 120 |
|
| 121 |
#insr_submit{
|
inc/FileDownloader.php
CHANGED
|
@@ -42,16 +42,9 @@ class FileDownloader {
|
|
| 42 |
*/
|
| 43 |
public function show_modal( $report ) {
|
| 44 |
|
| 45 |
-
if ( !
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
return;
|
| 49 |
-
}
|
| 50 |
-
$compress = (bool) ( isset( $_POST[ 'compress' ] ) && 'on' === $_POST[ 'compress' ] );
|
| 51 |
-
|
| 52 |
-
?>
|
| 53 |
-
|
| 54 |
-
<div class="updated notice is-dismissible">
|
| 55 |
<?php
|
| 56 |
//show changes if there are any
|
| 57 |
if ( count( $report[ 'changes' ] ) > 0 ) {
|
|
@@ -63,7 +56,15 @@ class FileDownloader {
|
|
| 63 |
echo '<p>' . esc_html__( 'Search pattern not found.', 'search-and-replace' ) . '</p>';
|
| 64 |
}
|
| 65 |
?>
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
<div class="updated notice is-dismissible insr_sql_button_wrap">
|
| 69 |
<p><?php esc_html_e( 'Your SQL file was created!', 'search-and-replace' ); ?> </p>
|
|
@@ -108,8 +109,8 @@ class FileDownloader {
|
|
| 108 |
|
| 109 |
$msg = sprintf(
|
| 110 |
_n(
|
| 111 |
-
'%s table was processed.',
|
| 112 |
-
'%s tables were processed.',
|
| 113 |
$report[ 'tables' ],
|
| 114 |
'search-and-replace'
|
| 115 |
),
|
|
@@ -118,7 +119,7 @@ class FileDownloader {
|
|
| 118 |
|
| 119 |
$msg .= sprintf(
|
| 120 |
_n(
|
| 121 |
-
'%s cell needs to be updated.',
|
| 122 |
'%s cells need to be updated.',
|
| 123 |
$report[ 'changes_count' ],
|
| 124 |
'search-and-replace'
|
| 42 |
*/
|
| 43 |
public function show_modal( $report ) {
|
| 44 |
|
| 45 |
+
if ( array_key_exists( 'changes', $report ) && ! empty( $report[ 'changes' ] ) ) {
|
| 46 |
+
?>
|
| 47 |
+
<div class="updated notice is-dismissible">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
<?php
|
| 49 |
//show changes if there are any
|
| 50 |
if ( count( $report[ 'changes' ] ) > 0 ) {
|
| 56 |
echo '<p>' . esc_html__( 'Search pattern not found.', 'search-and-replace' ) . '</p>';
|
| 57 |
}
|
| 58 |
?>
|
| 59 |
+
</div>
|
| 60 |
+
<?php
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
$compress = (bool) ( isset( $_POST[ 'compress' ] ) && 'on' === $_POST[ 'compress' ] );
|
| 64 |
+
|
| 65 |
+
?>
|
| 66 |
+
|
| 67 |
+
|
| 68 |
|
| 69 |
<div class="updated notice is-dismissible insr_sql_button_wrap">
|
| 70 |
<p><?php esc_html_e( 'Your SQL file was created!', 'search-and-replace' ); ?> </p>
|
| 109 |
|
| 110 |
$msg = sprintf(
|
| 111 |
_n(
|
| 112 |
+
'%s table was processed. ',
|
| 113 |
+
'%s tables were processed. ',
|
| 114 |
$report[ 'tables' ],
|
| 115 |
'search-and-replace'
|
| 116 |
),
|
| 119 |
|
| 120 |
$msg .= sprintf(
|
| 121 |
_n(
|
| 122 |
+
'%s cell needs to be updated. ',
|
| 123 |
'%s cells need to be updated.',
|
| 124 |
$report[ 'changes_count' ],
|
| 125 |
'search-and-replace'
|
inc/Load.php
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
namespace Inpsyde\SearchReplace;
|
| 3 |
+
|
| 4 |
+
use Requisite\Requisite;
|
| 5 |
+
use Requisite\Rule\Psr4;
|
| 6 |
+
use Requisite\SPLAutoLoader;
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* Class Load handle plugin loading
|
| 10 |
+
*
|
| 11 |
+
* @since 3.1.1
|
| 12 |
+
*
|
| 13 |
+
* @package Inpsyde\SearchReplace
|
| 14 |
+
*/
|
| 15 |
+
class Load {
|
| 16 |
+
|
| 17 |
+
/**
|
| 18 |
+
* Initialize the plugin autoload files
|
| 19 |
+
*
|
| 20 |
+
* @since 3.1.1
|
| 21 |
+
*
|
| 22 |
+
* @return void
|
| 23 |
+
*/
|
| 24 |
+
public function init(){
|
| 25 |
+
|
| 26 |
+
search_replace_textdomain();
|
| 27 |
+
|
| 28 |
+
if( $this->user_can_access() === TRUE ) {
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Load the Requisite library. Alternatively you can use composer's
|
| 32 |
+
*/
|
| 33 |
+
require_once __DIR__ . '/requisite/src/Requisite/Requisite.php';
|
| 34 |
+
Requisite::init();
|
| 35 |
+
|
| 36 |
+
$autoloader = new SPLAutoLoader;
|
| 37 |
+
|
| 38 |
+
$autoloader->addRule(
|
| 39 |
+
new Psr4(
|
| 40 |
+
__DIR__, // base directory
|
| 41 |
+
'Inpsyde\SearchReplace' // base namespace
|
| 42 |
+
)
|
| 43 |
+
);
|
| 44 |
+
|
| 45 |
+
$plugin = new Plugin();
|
| 46 |
+
$plugin->run();
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
/**
|
| 52 |
+
* Validate user access
|
| 53 |
+
* To change the user access capability use the filter search_replace_access_capability
|
| 54 |
+
* @see https://codex.wordpress.org/Roles_and_Capabilities
|
| 55 |
+
*
|
| 56 |
+
* @since 3.1.1
|
| 57 |
+
*
|
| 58 |
+
* @return bool
|
| 59 |
+
*/
|
| 60 |
+
private function user_can_access(){
|
| 61 |
+
|
| 62 |
+
$user_cap = apply_filters( 'search_replace_access_capability', 'manage_options' );
|
| 63 |
+
|
| 64 |
+
if ( current_user_can( $user_cap ) ) {
|
| 65 |
+
return true;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
return false;
|
| 69 |
+
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
}
|
inc/Page/Manager.php
CHANGED
|
@@ -139,7 +139,7 @@ class Manager {
|
|
| 139 |
|
| 140 |
$suffix = $this->get_script_suffix();
|
| 141 |
|
| 142 |
-
$url = (
|
| 143 |
$handle = 'insr-styles';
|
| 144 |
wp_register_script( $handle, $url );
|
| 145 |
wp_enqueue_style( $handle, $url, array(), FALSE, FALSE );
|
|
@@ -159,7 +159,7 @@ class Manager {
|
|
| 159 |
|
| 160 |
$suffix = $this->get_script_suffix();
|
| 161 |
|
| 162 |
-
$url = (
|
| 163 |
$handle = 'insr-js';
|
| 164 |
wp_register_script( $handle, $url );
|
| 165 |
wp_enqueue_script( $handle, $url, array(), FALSE, FALSE );
|
| 139 |
|
| 140 |
$suffix = $this->get_script_suffix();
|
| 141 |
|
| 142 |
+
$url = ( SEARCH_REPLACE_BASEDIR . '/assets/css/inpsyde-search-replace' . $suffix . '.css' );
|
| 143 |
$handle = 'insr-styles';
|
| 144 |
wp_register_script( $handle, $url );
|
| 145 |
wp_enqueue_style( $handle, $url, array(), FALSE, FALSE );
|
| 159 |
|
| 160 |
$suffix = $this->get_script_suffix();
|
| 161 |
|
| 162 |
+
$url = ( SEARCH_REPLACE_BASEDIR . '/assets/js/inpsyde-search-replace' . $suffix . '.js' );
|
| 163 |
$handle = 'insr-js';
|
| 164 |
wp_register_script( $handle, $url );
|
| 165 |
wp_enqueue_script( $handle, $url, array(), FALSE, FALSE );
|
inc/Page/SearchReplace.php
CHANGED
|
@@ -121,6 +121,9 @@ class SearchReplace extends AbstractPage implements PageInterface {
|
|
| 121 |
|
| 122 |
//check for errors in form
|
| 123 |
if ( ! $this->is_request_valid() ) {
|
|
|
|
|
|
|
|
|
|
| 124 |
return FALSE;
|
| 125 |
}
|
| 126 |
|
|
@@ -253,6 +256,8 @@ class SearchReplace extends AbstractPage implements PageInterface {
|
|
| 253 |
|
| 254 |
}
|
| 255 |
|
|
|
|
|
|
|
| 256 |
return TRUE;
|
| 257 |
}
|
| 258 |
|
| 121 |
|
| 122 |
//check for errors in form
|
| 123 |
if ( ! $this->is_request_valid() ) {
|
| 124 |
+
|
| 125 |
+
$this->display_errors();
|
| 126 |
+
|
| 127 |
return FALSE;
|
| 128 |
}
|
| 129 |
|
| 256 |
|
| 257 |
}
|
| 258 |
|
| 259 |
+
|
| 260 |
+
|
| 261 |
return TRUE;
|
| 262 |
}
|
| 263 |
|
inc/Plugin.php
CHANGED
|
@@ -11,14 +11,10 @@ class Plugin {
|
|
| 11 |
/**
|
| 12 |
* @param string $file : The path to the Plugin main file
|
| 13 |
*/
|
| 14 |
-
public function run(
|
| 15 |
|
| 16 |
global $wpdb;
|
| 17 |
|
| 18 |
-
//Defines the path to the main plugin directory.
|
| 19 |
-
$plugin_dir_url = plugin_dir_url( $file );
|
| 20 |
-
define( 'INSR_DIR', $plugin_dir_url );
|
| 21 |
-
|
| 22 |
if ( is_admin() ) {
|
| 23 |
|
| 24 |
// set max_execution_time to 0
|
| 11 |
/**
|
| 12 |
* @param string $file : The path to the Plugin main file
|
| 13 |
*/
|
| 14 |
+
public function run() {
|
| 15 |
|
| 16 |
global $wpdb;
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
if ( is_admin() ) {
|
| 19 |
|
| 20 |
// set max_execution_time to 0
|
inc/templates/credits.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Template for displaying sql export page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
-
if ( ! defined( '
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
| 3 |
* Template for displaying sql export page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
+
if ( ! defined( 'SEARCH_REPLACE_BASEDIR' ) ) {
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
inc/templates/db_backup.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Template for displaying sql export page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
-
if ( ! defined( '
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
| 3 |
* Template for displaying sql export page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
+
if ( ! defined( 'SEARCH_REPLACE_BASEDIR' ) ) {
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
inc/templates/replace_domain.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Template for displaying replace domain page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
-
if ( ! defined( '
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
|
@@ -18,7 +18,7 @@ if ( ! defined( 'INSR_DIR' ) ) {
|
|
| 18 |
|
| 19 |
<tr>
|
| 20 |
<th><label for="search"><strong><?php esc_html_e( 'Search for: ', 'search-and-replace' ); ?></strong></label></th>
|
| 21 |
-
<td><input id="search" type="text" name="search" value="<?php echo get_site_url(); ?>" /></td>
|
| 22 |
</tr>
|
| 23 |
<tr>
|
| 24 |
<th><label for="replace"><strong><?php esc_html_e( 'Replace with: ', 'search-and-replace' ); ?></strong></label></th>
|
| 3 |
* Template for displaying replace domain page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
+
if ( ! defined( 'SEARCH_REPLACE_BASEDIR' ) ) {
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
| 18 |
|
| 19 |
<tr>
|
| 20 |
<th><label for="search"><strong><?php esc_html_e( 'Search for: ', 'search-and-replace' ); ?></strong></label></th>
|
| 21 |
+
<td><input id="search" type="text" disabled="disabled" name="search" value="<?php echo get_site_url(); ?>" /></td>
|
| 22 |
</tr>
|
| 23 |
<tr>
|
| 24 |
<th><label for="replace"><strong><?php esc_html_e( 'Replace with: ', 'search-and-replace' ); ?></strong></label></th>
|
inc/templates/search_replace.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Template for displaying search & replace page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
-
if ( ! defined( '
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
| 3 |
* Template for displaying search & replace page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
+
if ( ! defined( 'SEARCH_REPLACE_BASEDIR' ) ) {
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
inc/templates/sql_import.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Template for displaying sql import page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
-
if ( ! defined( '
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
| 3 |
* Template for displaying sql import page
|
| 4 |
*/
|
| 5 |
// Prevent direct access.
|
| 6 |
+
if ( ! defined( 'SEARCH_REPLACE_BASEDIR' ) ) {
|
| 7 |
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
|
| 8 |
exit;
|
| 9 |
}
|
inspyde-search-replace.php → inpsyde-search-replace.php
RENAMED
|
@@ -6,43 +6,35 @@
|
|
| 6 |
* Author: Inpsyde GmbH
|
| 7 |
* Author URI: http://inpsyde.com
|
| 8 |
* Contributors: s-hinse, derpixler, ChriCo, Bueltge, inpsyde
|
| 9 |
-
* Version: 3.1.
|
| 10 |
* Text Domain: search-and-replace
|
| 11 |
* Domain Path: /languages
|
| 12 |
* License: GPLv3+
|
| 13 |
* License URI: license.txt
|
| 14 |
*/
|
| 15 |
|
| 16 |
-
namespace Inpsyde\SearchReplace;
|
| 17 |
|
| 18 |
-
|
| 19 |
-
use Requisite\Rule\Psr4;
|
| 20 |
-
use Requisite\SPLAutoLoader;
|
| 21 |
-
|
| 22 |
-
register_activation_hook( __FILE__, __NAMESPACE__ . '\activate' );
|
| 23 |
-
|
| 24 |
-
add_action( 'plugins_loaded', __NAMESPACE__ . '\init' );
|
| 25 |
-
|
| 26 |
-
/**
|
| 27 |
-
* Register textdomain.
|
| 28 |
-
*/
|
| 29 |
-
function load_textdomain() {
|
| 30 |
-
|
| 31 |
-
$lang_dir = plugin_basename( __DIR__ ) . '/l10n/';
|
| 32 |
-
|
| 33 |
-
load_plugin_textdomain( 'search-and-replace', FALSE, $lang_dir );
|
| 34 |
-
}
|
| 35 |
|
| 36 |
/**
|
| 37 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
*/
|
| 39 |
-
function
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
$required_php_version = '5.4.0';
|
| 44 |
$correct_php_version = version_compare( phpversion(), $required_php_version, '>=' );
|
| 45 |
|
|
|
|
|
|
|
| 46 |
if ( ! $correct_php_version ) {
|
| 47 |
deactivate_plugins( basename( __FILE__ ) );
|
| 48 |
|
|
@@ -56,42 +48,42 @@ function activate() {
|
|
| 56 |
);
|
| 57 |
|
| 58 |
}
|
|
|
|
| 59 |
}
|
| 60 |
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
/**
|
| 64 |
-
* Load
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
*/
|
| 66 |
-
function
|
| 67 |
|
| 68 |
-
|
| 69 |
-
return;
|
| 70 |
-
}
|
| 71 |
-
// This sets the capability needed to run the plugin.
|
| 72 |
-
if ( ! current_user_can( 'manage_options' ) ) {
|
| 73 |
-
return;
|
| 74 |
-
}
|
| 75 |
|
| 76 |
-
|
|
|
|
| 77 |
|
| 78 |
-
|
| 79 |
-
* Load the Requisite library. Alternatively you can use composer's
|
| 80 |
-
*/
|
| 81 |
-
require_once __DIR__ . '/inc/requisite/src/Requisite/Requisite.php';
|
| 82 |
-
Requisite::init();
|
| 83 |
|
| 84 |
-
|
|
|
|
|
|
|
| 85 |
|
| 86 |
-
|
| 87 |
-
new Psr4(
|
| 88 |
-
__DIR__ . '/inc', // base directory
|
| 89 |
-
'Inpsyde\SearchReplace' // base namespace
|
| 90 |
-
)
|
| 91 |
-
);
|
| 92 |
|
|
|
|
| 93 |
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
* Author: Inpsyde GmbH
|
| 7 |
* Author URI: http://inpsyde.com
|
| 8 |
* Contributors: s-hinse, derpixler, ChriCo, Bueltge, inpsyde
|
| 9 |
+
* Version: 3.1.1
|
| 10 |
* Text Domain: search-and-replace
|
| 11 |
* Domain Path: /languages
|
| 12 |
* License: GPLv3+
|
| 13 |
* License URI: license.txt
|
| 14 |
*/
|
| 15 |
|
|
|
|
| 16 |
|
| 17 |
+
defined( 'ABSPATH' ) or die( 'No direct access!' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
/**
|
| 20 |
+
* Validate requirements on activation
|
| 21 |
+
*
|
| 22 |
+
* Runs on plugin activation.
|
| 23 |
+
* Check if php min 5.4.0 if not deactivate the plugin.
|
| 24 |
+
*
|
| 25 |
+
* @since 3.1.1
|
| 26 |
+
*
|
| 27 |
+
* @return void
|
| 28 |
*/
|
| 29 |
+
function search_replace_activate() {
|
| 30 |
|
| 31 |
+
global $l10n, $l10n_unloaded;
|
| 32 |
|
| 33 |
$required_php_version = '5.4.0';
|
| 34 |
$correct_php_version = version_compare( phpversion(), $required_php_version, '>=' );
|
| 35 |
|
| 36 |
+
search_replace_textdomain();
|
| 37 |
+
|
| 38 |
if ( ! $correct_php_version ) {
|
| 39 |
deactivate_plugins( basename( __FILE__ ) );
|
| 40 |
|
| 48 |
);
|
| 49 |
|
| 50 |
}
|
| 51 |
+
|
| 52 |
}
|
| 53 |
|
| 54 |
+
register_activation_hook( __FILE__, 'search_replace_activate' );
|
| 55 |
|
| 56 |
|
| 57 |
/**
|
| 58 |
+
* Load the plugin
|
| 59 |
+
*
|
| 60 |
+
* @since 3.1.1
|
| 61 |
+
*
|
| 62 |
+
* @return void
|
| 63 |
*/
|
| 64 |
+
function search_replace_load(){
|
| 65 |
|
| 66 |
+
$load = __DIR__ . '/inc/Load.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
+
if ( file_exists( $load ) ) {
|
| 69 |
+
require_once $load;
|
| 70 |
|
| 71 |
+
define( 'SEARCH_REPLACE_BASEDIR', plugin_dir_url( __FILE__ ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
+
$load = new \Inpsyde\SearchReplace\Load();
|
| 74 |
+
$load->init();
|
| 75 |
+
}
|
| 76 |
|
| 77 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
+
add_action( 'plugins_loaded', 'search_replace_load' );
|
| 80 |
|
| 81 |
+
/**
|
| 82 |
+
* Load plugins translations
|
| 83 |
+
*/
|
| 84 |
+
function search_replace_textdomain(){
|
| 85 |
+
|
| 86 |
+
$lang_dir = plugin_basename( __DIR__ ) . '/l10n/';
|
| 87 |
+
load_plugin_textdomain( 'search-and-replace', FALSE, $lang_dir );
|
| 88 |
+
|
| 89 |
+
}
|
l10n/search-and-replace-de_DE.mo
CHANGED
|
Binary file
|
l10n/search-and-replace-de_DE.po
CHANGED
|
@@ -6,9 +6,9 @@ msgstr ""
|
|
| 6 |
"Project-Id-Version: Inpsyde Search & Replace\n"
|
| 7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/inspyde-search-"
|
| 8 |
"replace\n"
|
| 9 |
-
"POT-Creation-Date: 2016-
|
| 10 |
"PO-Revision-Date: \n"
|
| 11 |
-
"Last-Translator:
|
| 12 |
"Language-Team: Inpsyde GmbH <hello@inpsyde.com>\n"
|
| 13 |
"Language: de_DE\n"
|
| 14 |
"MIME-Version: 1.0\n"
|
|
@@ -21,10 +21,65 @@ msgstr ""
|
|
| 21 |
"esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
|
| 22 |
"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 23 |
"X-Poedit-Basepath: ..\n"
|
| 24 |
-
"X-Generator: Poedit 1.
|
| 25 |
"X-Poedit-SearchPath-0: inc\n"
|
| 26 |
"X-Poedit-SearchPath-1: inspyde-search-replace.php\n"
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
#: inc/Database/Exporter.php:106
|
| 29 |
msgid "Could not open the backup file for writing!"
|
| 30 |
msgstr "Konnte die Backup Datei für Import nicht öffnen!"
|
|
@@ -38,22 +93,27 @@ msgid "WordPress MySQL database backup"
|
|
| 38 |
msgstr "Wordpress MySQL Datenbank-Backup"
|
| 39 |
|
| 40 |
#: inc/Database/Exporter.php:122
|
|
|
|
| 41 |
msgid "Generated: %s"
|
| 42 |
msgstr "Generiert: %s"
|
| 43 |
|
| 44 |
#: inc/Database/Exporter.php:123
|
|
|
|
| 45 |
msgid "Hostname: %s"
|
| 46 |
msgstr "Hostname: %s"
|
| 47 |
|
| 48 |
#: inc/Database/Exporter.php:124
|
|
|
|
| 49 |
msgid "Database: %s"
|
| 50 |
msgstr "Datenbank: %s"
|
| 51 |
|
| 52 |
#: inc/Database/Exporter.php:128
|
|
|
|
| 53 |
msgid "Changed table prefix: From %s to %s "
|
| 54 |
msgstr "Ändere Tabellen-Präfix: von %s zu %s"
|
| 55 |
|
| 56 |
#: inc/Database/Exporter.php:216
|
|
|
|
| 57 |
msgid "Table: %s"
|
| 58 |
msgstr "Tabelle: %s"
|
| 59 |
|
|
@@ -62,26 +122,32 @@ msgid "Error getting table details"
|
|
| 62 |
msgstr "Fehler: Keine Tabellendetails gefunden"
|
| 63 |
|
| 64 |
#: inc/Database/Exporter.php:229
|
|
|
|
| 65 |
msgid "Delete any existing table %s"
|
| 66 |
msgstr "Lösche existierende Tabelle %s"
|
| 67 |
|
| 68 |
#: inc/Database/Exporter.php:243
|
|
|
|
| 69 |
msgid "Table structure of table %s"
|
| 70 |
msgstr "Tabellenstruktur von Tabelle %s"
|
| 71 |
|
| 72 |
#: inc/Database/Exporter.php:253
|
|
|
|
| 73 |
msgid "Error with SHOW CREATE TABLE for %s."
|
| 74 |
msgstr "Fehler bei SHOW CREATE TABLE für %s."
|
| 75 |
|
| 76 |
#: inc/Database/Exporter.php:266
|
|
|
|
| 77 |
msgid "Error getting table structure of %s"
|
| 78 |
msgstr "Fehler beim Auslesen der Tabellenstruktur von %s"
|
| 79 |
|
| 80 |
#: inc/Database/Exporter.php:276
|
|
|
|
| 81 |
msgid "Data contents of table %s"
|
| 82 |
msgstr "Daten von Tabelle %s"
|
| 83 |
|
| 84 |
#: inc/Database/Exporter.php:378
|
|
|
|
| 85 |
msgid "End of data contents of table %s"
|
| 86 |
msgstr "Ende der Daten von Tabelle %s"
|
| 87 |
|
|
@@ -91,6 +157,7 @@ msgstr ""
|
|
| 91 |
"Es ist ein Fehler in einer Zeile beim Erstellen des Backups aufgetreten:"
|
| 92 |
|
| 93 |
#: inc/Database/Manager.php:71
|
|
|
|
| 94 |
msgid "(%s KB)"
|
| 95 |
msgstr "(%s KB)"
|
| 96 |
|
|
@@ -98,64 +165,13 @@ msgstr "(%s KB)"
|
|
| 98 |
msgid "Search and replace pattern can't be the same!"
|
| 99 |
msgstr "Das Such & Ersetzen Muster darf nicht gleich sein!"
|
| 100 |
|
| 101 |
-
#: inc/Database/Replace.php:
|
|
|
|
| 102 |
msgid "Error updating row: %d."
|
| 103 |
msgstr "Importieren für Zeile fehlgeschlagen: %d."
|
| 104 |
|
| 105 |
-
#: inc/
|
| 106 |
-
#: inc/Page/SearchReplace.php:
|
| 107 |
-
msgid "Search pattern not found."
|
| 108 |
-
msgstr "Suchmuster nicht gefunden."
|
| 109 |
-
|
| 110 |
-
#: inc/FileDownloader.php:62
|
| 111 |
-
msgid "Your SQL file was created!"
|
| 112 |
-
msgstr "Die SQL-Datei wurde erzeugt."
|
| 113 |
-
|
| 114 |
-
#: inc/FileDownloader.php:68
|
| 115 |
-
msgid "Download SQL File"
|
| 116 |
-
msgstr "SQL-Datei herunter laden"
|
| 117 |
-
|
| 118 |
-
#: inc/FileDownloader.php:102
|
| 119 |
-
msgid "%s table was processed."
|
| 120 |
-
msgid_plural "%s tables were processed."
|
| 121 |
-
msgstr[0] "%s Tabelle wurde verarbeitet."
|
| 122 |
-
msgstr[1] "%s Tabellen wurden verarbeitet."
|
| 123 |
-
|
| 124 |
-
#: inc/FileDownloader.php:112
|
| 125 |
-
msgid "%s cell needs to be updated."
|
| 126 |
-
msgid_plural "%s cells need to be updated."
|
| 127 |
-
msgstr[0] "%s Eintrag muss geändert werden."
|
| 128 |
-
msgstr[1] "%s Einträge müssen geändert werden."
|
| 129 |
-
|
| 130 |
-
#: inc/FileDownloader.php:124
|
| 131 |
-
msgid "View details"
|
| 132 |
-
msgstr "Details"
|
| 133 |
-
|
| 134 |
-
#: inc/FileDownloader.php:139
|
| 135 |
-
msgid "Table:"
|
| 136 |
-
msgstr "Tabelle"
|
| 137 |
-
|
| 138 |
-
#: inc/FileDownloader.php:140
|
| 139 |
-
msgid "Changes:"
|
| 140 |
-
msgstr "Änderungen"
|
| 141 |
-
|
| 142 |
-
#: inc/FileDownloader.php:148
|
| 143 |
-
msgid "row"
|
| 144 |
-
msgstr "Zeile"
|
| 145 |
-
|
| 146 |
-
#: inc/FileDownloader.php:150
|
| 147 |
-
msgid "column"
|
| 148 |
-
msgstr "Spalte"
|
| 149 |
-
|
| 150 |
-
#: inc/FileDownloader.php:162
|
| 151 |
-
msgid "Old value:"
|
| 152 |
-
msgstr "Vorher:"
|
| 153 |
-
|
| 154 |
-
#: inc/FileDownloader.php:164
|
| 155 |
-
msgid "New value:"
|
| 156 |
-
msgstr "Nachher:"
|
| 157 |
-
|
| 158 |
-
#. Plugin Name of the plugin/theme
|
| 159 |
msgid "Search & Replace"
|
| 160 |
msgstr "Suchen & Ersetzen"
|
| 161 |
|
|
@@ -171,7 +187,7 @@ msgstr "Absenden"
|
|
| 171 |
msgid "Backup Database"
|
| 172 |
msgstr "Datenbank-Backup"
|
| 173 |
|
| 174 |
-
#: inc/Page/BackupDatabase.php:
|
| 175 |
msgid "Create SQL File"
|
| 176 |
msgstr "SQL-Datei erzeugen"
|
| 177 |
|
|
@@ -191,11 +207,11 @@ msgstr "Jetzt Domain/URL ersetzen"
|
|
| 191 |
msgid "Replace Domain URL"
|
| 192 |
msgstr "Domain URL ersetzen"
|
| 193 |
|
| 194 |
-
#: inc/Page/SearchReplace.php:
|
| 195 |
msgid "Do Search & Replace"
|
| 196 |
msgstr "Suche und Ersetze"
|
| 197 |
|
| 198 |
-
#: inc/Page/SearchReplace.php:
|
| 199 |
msgid ""
|
| 200 |
"Dry run is selected. No changes were made to the database and no SQL file "
|
| 201 |
"was written ."
|
|
@@ -203,19 +219,19 @@ msgstr ""
|
|
| 203 |
"Testlauf ist ausgewählt. Es wurden keine Änderungen an der Datenbank "
|
| 204 |
"vorgenommen und keine SQL-Datei geschrieben."
|
| 205 |
|
| 206 |
-
#: inc/Page/SearchReplace.php:
|
| 207 |
msgid "The following changes were made to the database: "
|
| 208 |
msgstr "Folgende Änderungen wurden in die Datenbank geschrieben: "
|
| 209 |
|
| 210 |
-
#: inc/Page/SearchReplace.php:
|
| 211 |
msgid "No Tables were selected."
|
| 212 |
msgstr "Es wurden keine Tabellen ausgewählt."
|
| 213 |
|
| 214 |
-
#: inc/Page/SearchReplace.php:
|
| 215 |
msgid "Search field is empty."
|
| 216 |
msgstr "\"Suche nach\"-Feld ist leer."
|
| 217 |
|
| 218 |
-
#: inc/Page/SearchReplace.php:
|
| 219 |
msgid ""
|
| 220 |
"Your search contains your current site url. Replacing your site url will "
|
| 221 |
"most likely cause your site to break. If you want to change the URL (and you "
|
|
@@ -232,32 +248,33 @@ msgstr ""
|
|
| 232 |
msgid "SQL Import"
|
| 233 |
msgstr "SQL Import"
|
| 234 |
|
| 235 |
-
#: inc/Page/SqlImport.php:
|
| 236 |
msgid "Import SQL file"
|
| 237 |
msgstr "SQL-Datei importieren"
|
| 238 |
|
| 239 |
-
#: inc/Page/SqlImport.php:
|
| 240 |
msgid "The file has neither '.gz' nor '.sql' Extension. Import not possible."
|
| 241 |
msgstr ""
|
| 242 |
"Die Datei hat weder die Erweiterung '.gz' noch '.sql'. Import nicht möglich."
|
| 243 |
|
| 244 |
-
#: inc/Page/SqlImport.php:
|
| 245 |
msgid "The file does not seem to be a valid SQL file. Import not possible."
|
| 246 |
msgstr ""
|
| 247 |
"Diese Datei ist anscheinend keine gültige SQL-Datei. Import nicht möglich."
|
| 248 |
|
| 249 |
-
#: inc/Page/SqlImport.php:
|
|
|
|
| 250 |
msgid "The SQL file was successfully imported. %s SQL queries were performed."
|
| 251 |
msgstr ""
|
| 252 |
"Die SQL-Datei wurde erfolgreich importiert %s SQL-Abfragen wurden ausgeführt."
|
| 253 |
|
| 254 |
-
#: inc/Page/SqlImport.php:
|
| 255 |
msgid "The uploaded file exceeds the upload_max_filesize directive in php.ini"
|
| 256 |
msgstr ""
|
| 257 |
"Die Datei überschreitet die maximale Dateigröße (upload_max_filesize) in der "
|
| 258 |
"php.ini."
|
| 259 |
|
| 260 |
-
#: inc/Page/SqlImport.php:
|
| 261 |
msgid ""
|
| 262 |
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in "
|
| 263 |
"the HTML form"
|
|
@@ -265,31 +282,36 @@ msgstr ""
|
|
| 265 |
"Die hochgeladene Datei übersteigt die MAX_FILE_SIZE Vorgabe, welches im "
|
| 266 |
"Formular angegeben wurde."
|
| 267 |
|
| 268 |
-
#: inc/Page/SqlImport.php:
|
| 269 |
msgid "The uploaded file was only partially uploaded"
|
| 270 |
msgstr "Die Datei wurde leider nur teilweise hochgeladen."
|
| 271 |
|
| 272 |
-
#: inc/Page/SqlImport.php:
|
| 273 |
msgid "No file was uploaded."
|
| 274 |
msgstr "Es wurde keine Datei hochgeladen."
|
| 275 |
|
| 276 |
-
#: inc/Page/SqlImport.php:
|
| 277 |
msgid "Missing a temporary folder."
|
| 278 |
msgstr "Temporärer Ordner fehlt."
|
| 279 |
|
| 280 |
-
#: inc/Page/SqlImport.php:
|
| 281 |
msgid "Failed to write file to disk."
|
| 282 |
msgstr "Fehler beim Schreiben der Datei."
|
| 283 |
|
| 284 |
-
#: inc/Page/SqlImport.php:
|
| 285 |
msgid "A PHP extension stopped the file upload."
|
| 286 |
msgstr "Eine PHP Erweiterung hat den Dateiupload blockiert."
|
| 287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
#: inc/templates/credits.php:12
|
| 289 |
msgid "Hey nice to have you here!"
|
| 290 |
-
msgstr "Schön
|
| 291 |
|
| 292 |
#: inc/templates/credits.php:14
|
|
|
|
| 293 |
msgid ""
|
| 294 |
"Search and Replace is refactored in 2015 by <a href=\"%1$s\">Inpsyde GmbH</"
|
| 295 |
"a>, maintained since 2006 and based on the original from <a href=\"%2$s"
|
|
@@ -304,6 +326,7 @@ msgid "You rock! contribute the plugin."
|
|
| 304 |
msgstr "Du bist super! Unterstütze dieses Plugin."
|
| 305 |
|
| 306 |
#: inc/templates/credits.php:21
|
|
|
|
| 307 |
msgid ""
|
| 308 |
"You can contribute the Plugin go to the repository on <a href=\"%s\">github</"
|
| 309 |
"a> making changes, create issues or submitting changes."
|
|
@@ -325,6 +348,7 @@ msgstr ""
|
|
| 325 |
"source CMS seit es in den Kinderschuhen steckt. Unbelehrbar überzeugt."
|
| 326 |
|
| 327 |
#: inc/templates/credits.php:28
|
|
|
|
| 328 |
msgid ""
|
| 329 |
"Inpsyde is a WordPress <a href=\"%1$s\">VIP Service Partner</a> and <a href="
|
| 330 |
"\"%2$s\">WooCommerce Expert</a>."
|
|
@@ -333,9 +357,11 @@ msgstr ""
|
|
| 333 |
"href=\"%2$s\">WooCommerce Expert</a>."
|
| 334 |
|
| 335 |
#: inc/templates/credits.php:33
|
|
|
|
| 336 |
msgid "Look at our other <a href=\"%s\">free WordPress plugins</a>."
|
| 337 |
msgstr ""
|
| 338 |
-
"Schau dir auch unsere anderen <a href=\"%s\">
|
|
|
|
| 339 |
|
| 340 |
#: inc/templates/credits.php:38
|
| 341 |
msgid "Working at Inpsyde"
|
|
@@ -384,6 +410,7 @@ msgstr ""
|
|
| 384 |
"Freiräume für die persönliche Gestaltung und eigenverantwortliches Handeln"
|
| 385 |
|
| 386 |
#: inc/templates/credits.php:50
|
|
|
|
| 387 |
msgid ""
|
| 388 |
"If you love open source and especially WordPress, if you love to organize "
|
| 389 |
"your working days by yourself and want to use your pragmatic problem-solving "
|
|
@@ -394,7 +421,7 @@ msgstr ""
|
|
| 394 |
"zuverlässig bist, dann komm zu uns! Schau dir unsere aktuellen Job-Angebote "
|
| 395 |
"an und sende Deine Bewerbung über <a href=\"%s\">unsere Site</a>."
|
| 396 |
|
| 397 |
-
#: inc/templates/db_backup.php:
|
| 398 |
msgid "Create a backup of your database by clicking \"Create SQL File\"."
|
| 399 |
msgstr ""
|
| 400 |
"Erstelle ein Backup deiner Datenbank, indem du auf \"SQL-Datei erzeugen\" "
|
|
@@ -475,41 +502,33 @@ msgstr "SQL-Datei für den Upload auswählen. "
|
|
| 475 |
msgid "Maximum file size: "
|
| 476 |
msgstr "Maximale Dateigröße: "
|
| 477 |
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
"
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
"
|
| 484 |
-
"erfordert. "
|
| 485 |
-
|
| 486 |
-
#: inspyde-search-replace.php:55
|
| 487 |
-
msgid "back"
|
| 488 |
-
msgstr "zurück"
|
| 489 |
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
msgstr "https://wordpress.org/plugins/search-and-replace/"
|
| 493 |
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
"Search & Replace data in your whole WordPress setup, backup and import your "
|
| 497 |
-
"database, change table prefix or migrate your domain to another domain."
|
| 498 |
-
msgstr ""
|
| 499 |
-
"Suche & Ersetze Daten in deinem kompletten WordPress Umfeld, Backup und "
|
| 500 |
-
"Import deiner Datenbank, ändere den Tabellen-Prefix oder Migriere deine "
|
| 501 |
-
"Domain in eine andere Domain."
|
| 502 |
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 506 |
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
msgstr "http://inpsyde.com"
|
| 510 |
|
| 511 |
-
#~ msgid "
|
| 512 |
-
#~ msgstr "
|
| 513 |
|
| 514 |
#~ msgid "<b>Mysqli Error:</b> "
|
| 515 |
#~ msgstr "<b>Mysqli Fehler:</b> "
|
| 6 |
"Project-Id-Version: Inpsyde Search & Replace\n"
|
| 7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/inspyde-search-"
|
| 8 |
"replace\n"
|
| 9 |
+
"POT-Creation-Date: 2016-11-08 16:44+0100\n"
|
| 10 |
"PO-Revision-Date: \n"
|
| 11 |
+
"Last-Translator: \n"
|
| 12 |
"Language-Team: Inpsyde GmbH <hello@inpsyde.com>\n"
|
| 13 |
"Language: de_DE\n"
|
| 14 |
"MIME-Version: 1.0\n"
|
| 21 |
"esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
|
| 22 |
"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 23 |
"X-Poedit-Basepath: ..\n"
|
| 24 |
+
"X-Generator: Poedit 1.5.4\n"
|
| 25 |
"X-Poedit-SearchPath-0: inc\n"
|
| 26 |
"X-Poedit-SearchPath-1: inspyde-search-replace.php\n"
|
| 27 |
|
| 28 |
+
#: inc/FileDownloader.php:46 inc/FileDownloader.php:63
|
| 29 |
+
#: inc/Page/SearchReplace.php:210
|
| 30 |
+
msgid "Search pattern not found."
|
| 31 |
+
msgstr "Suchmuster nicht gefunden."
|
| 32 |
+
|
| 33 |
+
#: inc/FileDownloader.php:69
|
| 34 |
+
msgid "Your SQL file was created!"
|
| 35 |
+
msgstr "Die SQL-Datei wurde erzeugt."
|
| 36 |
+
|
| 37 |
+
#: inc/FileDownloader.php:76
|
| 38 |
+
msgid "Download SQL File"
|
| 39 |
+
msgstr "SQL-Datei herunterladen"
|
| 40 |
+
|
| 41 |
+
#: inc/FileDownloader.php:111
|
| 42 |
+
#, php-format
|
| 43 |
+
msgid "%s table was processed."
|
| 44 |
+
msgid_plural "%s tables were processed."
|
| 45 |
+
msgstr[0] "%s Tabelle wurde verarbeitet."
|
| 46 |
+
msgstr[1] "%s Tabellen wurden verarbeitet."
|
| 47 |
+
|
| 48 |
+
#: inc/FileDownloader.php:121
|
| 49 |
+
#, php-format
|
| 50 |
+
msgid "%s cell needs to be updated."
|
| 51 |
+
msgid_plural "%s cells need to be updated."
|
| 52 |
+
msgstr[0] "%s Eintrag muss geändert werden."
|
| 53 |
+
msgstr[1] "%s Einträge müssen geändert werden."
|
| 54 |
+
|
| 55 |
+
#: inc/FileDownloader.php:132
|
| 56 |
+
msgid "View details"
|
| 57 |
+
msgstr "Details"
|
| 58 |
+
|
| 59 |
+
#: inc/FileDownloader.php:151
|
| 60 |
+
msgid "Table:"
|
| 61 |
+
msgstr "Tabelle"
|
| 62 |
+
|
| 63 |
+
#: inc/FileDownloader.php:153
|
| 64 |
+
msgid "Changes:"
|
| 65 |
+
msgstr "Änderungen"
|
| 66 |
+
|
| 67 |
+
#: inc/FileDownloader.php:163
|
| 68 |
+
msgid "row"
|
| 69 |
+
msgstr "Zeile"
|
| 70 |
+
|
| 71 |
+
#: inc/FileDownloader.php:166
|
| 72 |
+
msgid "column"
|
| 73 |
+
msgstr "Spalte"
|
| 74 |
+
|
| 75 |
+
#: inc/FileDownloader.php:178
|
| 76 |
+
msgid "Old value:"
|
| 77 |
+
msgstr "Vorher:"
|
| 78 |
+
|
| 79 |
+
#: inc/FileDownloader.php:180
|
| 80 |
+
msgid "New value:"
|
| 81 |
+
msgstr "Nachher:"
|
| 82 |
+
|
| 83 |
#: inc/Database/Exporter.php:106
|
| 84 |
msgid "Could not open the backup file for writing!"
|
| 85 |
msgstr "Konnte die Backup Datei für Import nicht öffnen!"
|
| 93 |
msgstr "Wordpress MySQL Datenbank-Backup"
|
| 94 |
|
| 95 |
#: inc/Database/Exporter.php:122
|
| 96 |
+
#, php-format
|
| 97 |
msgid "Generated: %s"
|
| 98 |
msgstr "Generiert: %s"
|
| 99 |
|
| 100 |
#: inc/Database/Exporter.php:123
|
| 101 |
+
#, php-format
|
| 102 |
msgid "Hostname: %s"
|
| 103 |
msgstr "Hostname: %s"
|
| 104 |
|
| 105 |
#: inc/Database/Exporter.php:124
|
| 106 |
+
#, php-format
|
| 107 |
msgid "Database: %s"
|
| 108 |
msgstr "Datenbank: %s"
|
| 109 |
|
| 110 |
#: inc/Database/Exporter.php:128
|
| 111 |
+
#, php-format
|
| 112 |
msgid "Changed table prefix: From %s to %s "
|
| 113 |
msgstr "Ändere Tabellen-Präfix: von %s zu %s"
|
| 114 |
|
| 115 |
#: inc/Database/Exporter.php:216
|
| 116 |
+
#, php-format
|
| 117 |
msgid "Table: %s"
|
| 118 |
msgstr "Tabelle: %s"
|
| 119 |
|
| 122 |
msgstr "Fehler: Keine Tabellendetails gefunden"
|
| 123 |
|
| 124 |
#: inc/Database/Exporter.php:229
|
| 125 |
+
#, php-format
|
| 126 |
msgid "Delete any existing table %s"
|
| 127 |
msgstr "Lösche existierende Tabelle %s"
|
| 128 |
|
| 129 |
#: inc/Database/Exporter.php:243
|
| 130 |
+
#, php-format
|
| 131 |
msgid "Table structure of table %s"
|
| 132 |
msgstr "Tabellenstruktur von Tabelle %s"
|
| 133 |
|
| 134 |
#: inc/Database/Exporter.php:253
|
| 135 |
+
#, php-format
|
| 136 |
msgid "Error with SHOW CREATE TABLE for %s."
|
| 137 |
msgstr "Fehler bei SHOW CREATE TABLE für %s."
|
| 138 |
|
| 139 |
#: inc/Database/Exporter.php:266
|
| 140 |
+
#, php-format
|
| 141 |
msgid "Error getting table structure of %s"
|
| 142 |
msgstr "Fehler beim Auslesen der Tabellenstruktur von %s"
|
| 143 |
|
| 144 |
#: inc/Database/Exporter.php:276
|
| 145 |
+
#, php-format
|
| 146 |
msgid "Data contents of table %s"
|
| 147 |
msgstr "Daten von Tabelle %s"
|
| 148 |
|
| 149 |
#: inc/Database/Exporter.php:378
|
| 150 |
+
#, php-format
|
| 151 |
msgid "End of data contents of table %s"
|
| 152 |
msgstr "Ende der Daten von Tabelle %s"
|
| 153 |
|
| 157 |
"Es ist ein Fehler in einer Zeile beim Erstellen des Backups aufgetreten:"
|
| 158 |
|
| 159 |
#: inc/Database/Manager.php:71
|
| 160 |
+
#, php-format
|
| 161 |
msgid "(%s KB)"
|
| 162 |
msgstr "(%s KB)"
|
| 163 |
|
| 165 |
msgid "Search and replace pattern can't be the same!"
|
| 166 |
msgstr "Das Such & Ersetzen Muster darf nicht gleich sein!"
|
| 167 |
|
| 168 |
+
#: inc/Database/Replace.php:219
|
| 169 |
+
#, php-format
|
| 170 |
msgid "Error updating row: %d."
|
| 171 |
msgstr "Importieren für Zeile fehlgeschlagen: %d."
|
| 172 |
|
| 173 |
+
#: inc/Page/AbstractPage.php:26 inc/Page/Manager.php:104
|
| 174 |
+
#: inc/Page/SearchReplace.php:64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
msgid "Search & Replace"
|
| 176 |
msgstr "Suchen & Ersetzen"
|
| 177 |
|
| 187 |
msgid "Backup Database"
|
| 188 |
msgstr "Datenbank-Backup"
|
| 189 |
|
| 190 |
+
#: inc/Page/BackupDatabase.php:67
|
| 191 |
msgid "Create SQL File"
|
| 192 |
msgstr "SQL-Datei erzeugen"
|
| 193 |
|
| 207 |
msgid "Replace Domain URL"
|
| 208 |
msgstr "Domain URL ersetzen"
|
| 209 |
|
| 210 |
+
#: inc/Page/SearchReplace.php:163
|
| 211 |
msgid "Do Search & Replace"
|
| 212 |
msgstr "Suche und Ersetze"
|
| 213 |
|
| 214 |
+
#: inc/Page/SearchReplace.php:182
|
| 215 |
msgid ""
|
| 216 |
"Dry run is selected. No changes were made to the database and no SQL file "
|
| 217 |
"was written ."
|
| 219 |
"Testlauf ist ausgewählt. Es wurden keine Änderungen an der Datenbank "
|
| 220 |
"vorgenommen und keine SQL-Datei geschrieben."
|
| 221 |
|
| 222 |
+
#: inc/Page/SearchReplace.php:190
|
| 223 |
msgid "The following changes were made to the database: "
|
| 224 |
msgstr "Folgende Änderungen wurden in die Datenbank geschrieben: "
|
| 225 |
|
| 226 |
+
#: inc/Page/SearchReplace.php:227
|
| 227 |
msgid "No Tables were selected."
|
| 228 |
msgstr "Es wurden keine Tabellen ausgewählt."
|
| 229 |
|
| 230 |
+
#: inc/Page/SearchReplace.php:237
|
| 231 |
msgid "Search field is empty."
|
| 232 |
msgstr "\"Suche nach\"-Feld ist leer."
|
| 233 |
|
| 234 |
+
#: inc/Page/SearchReplace.php:249
|
| 235 |
msgid ""
|
| 236 |
"Your search contains your current site url. Replacing your site url will "
|
| 237 |
"most likely cause your site to break. If you want to change the URL (and you "
|
| 248 |
msgid "SQL Import"
|
| 249 |
msgstr "SQL Import"
|
| 250 |
|
| 251 |
+
#: inc/Page/SqlImport.php:60
|
| 252 |
msgid "Import SQL file"
|
| 253 |
msgstr "SQL-Datei importieren"
|
| 254 |
|
| 255 |
+
#: inc/Page/SqlImport.php:84
|
| 256 |
msgid "The file has neither '.gz' nor '.sql' Extension. Import not possible."
|
| 257 |
msgstr ""
|
| 258 |
"Die Datei hat weder die Erweiterung '.gz' noch '.sql'. Import nicht möglich."
|
| 259 |
|
| 260 |
+
#: inc/Page/SqlImport.php:97
|
| 261 |
msgid "The file does not seem to be a valid SQL file. Import not possible."
|
| 262 |
msgstr ""
|
| 263 |
"Diese Datei ist anscheinend keine gültige SQL-Datei. Import nicht möglich."
|
| 264 |
|
| 265 |
+
#: inc/Page/SqlImport.php:106
|
| 266 |
+
#, php-format
|
| 267 |
msgid "The SQL file was successfully imported. %s SQL queries were performed."
|
| 268 |
msgstr ""
|
| 269 |
"Die SQL-Datei wurde erfolgreich importiert %s SQL-Abfragen wurden ausgeführt."
|
| 270 |
|
| 271 |
+
#: inc/Page/SqlImport.php:118
|
| 272 |
msgid "The uploaded file exceeds the upload_max_filesize directive in php.ini"
|
| 273 |
msgstr ""
|
| 274 |
"Die Datei überschreitet die maximale Dateigröße (upload_max_filesize) in der "
|
| 275 |
"php.ini."
|
| 276 |
|
| 277 |
+
#: inc/Page/SqlImport.php:121
|
| 278 |
msgid ""
|
| 279 |
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in "
|
| 280 |
"the HTML form"
|
| 282 |
"Die hochgeladene Datei übersteigt die MAX_FILE_SIZE Vorgabe, welches im "
|
| 283 |
"Formular angegeben wurde."
|
| 284 |
|
| 285 |
+
#: inc/Page/SqlImport.php:124
|
| 286 |
msgid "The uploaded file was only partially uploaded"
|
| 287 |
msgstr "Die Datei wurde leider nur teilweise hochgeladen."
|
| 288 |
|
| 289 |
+
#: inc/Page/SqlImport.php:125
|
| 290 |
msgid "No file was uploaded."
|
| 291 |
msgstr "Es wurde keine Datei hochgeladen."
|
| 292 |
|
| 293 |
+
#: inc/Page/SqlImport.php:126
|
| 294 |
msgid "Missing a temporary folder."
|
| 295 |
msgstr "Temporärer Ordner fehlt."
|
| 296 |
|
| 297 |
+
#: inc/Page/SqlImport.php:127
|
| 298 |
msgid "Failed to write file to disk."
|
| 299 |
msgstr "Fehler beim Schreiben der Datei."
|
| 300 |
|
| 301 |
+
#: inc/Page/SqlImport.php:128
|
| 302 |
msgid "A PHP extension stopped the file upload."
|
| 303 |
msgstr "Eine PHP Erweiterung hat den Dateiupload blockiert."
|
| 304 |
|
| 305 |
+
#: inc/Page/SqlImport.php:132
|
| 306 |
+
msgid "Upload Error: "
|
| 307 |
+
msgstr "Fehler beim Upload: "
|
| 308 |
+
|
| 309 |
#: inc/templates/credits.php:12
|
| 310 |
msgid "Hey nice to have you here!"
|
| 311 |
+
msgstr "Schön, dass du hier bist!"
|
| 312 |
|
| 313 |
#: inc/templates/credits.php:14
|
| 314 |
+
#, php-format
|
| 315 |
msgid ""
|
| 316 |
"Search and Replace is refactored in 2015 by <a href=\"%1$s\">Inpsyde GmbH</"
|
| 317 |
"a>, maintained since 2006 and based on the original from <a href=\"%2$s"
|
| 326 |
msgstr "Du bist super! Unterstütze dieses Plugin."
|
| 327 |
|
| 328 |
#: inc/templates/credits.php:21
|
| 329 |
+
#, php-format
|
| 330 |
msgid ""
|
| 331 |
"You can contribute the Plugin go to the repository on <a href=\"%s\">github</"
|
| 332 |
"a> making changes, create issues or submitting changes."
|
| 348 |
"source CMS seit es in den Kinderschuhen steckt. Unbelehrbar überzeugt."
|
| 349 |
|
| 350 |
#: inc/templates/credits.php:28
|
| 351 |
+
#, php-format
|
| 352 |
msgid ""
|
| 353 |
"Inpsyde is a WordPress <a href=\"%1$s\">VIP Service Partner</a> and <a href="
|
| 354 |
"\"%2$s\">WooCommerce Expert</a>."
|
| 357 |
"href=\"%2$s\">WooCommerce Expert</a>."
|
| 358 |
|
| 359 |
#: inc/templates/credits.php:33
|
| 360 |
+
#, php-format
|
| 361 |
msgid "Look at our other <a href=\"%s\">free WordPress plugins</a>."
|
| 362 |
msgstr ""
|
| 363 |
+
"Schau dir auch unsere anderen <a href=\"%s\">kostenlosen WordPress plugins</"
|
| 364 |
+
"a> an."
|
| 365 |
|
| 366 |
#: inc/templates/credits.php:38
|
| 367 |
msgid "Working at Inpsyde"
|
| 410 |
"Freiräume für die persönliche Gestaltung und eigenverantwortliches Handeln"
|
| 411 |
|
| 412 |
#: inc/templates/credits.php:50
|
| 413 |
+
#, php-format
|
| 414 |
msgid ""
|
| 415 |
"If you love open source and especially WordPress, if you love to organize "
|
| 416 |
"your working days by yourself and want to use your pragmatic problem-solving "
|
| 421 |
"zuverlässig bist, dann komm zu uns! Schau dir unsere aktuellen Job-Angebote "
|
| 422 |
"an und sende Deine Bewerbung über <a href=\"%s\">unsere Site</a>."
|
| 423 |
|
| 424 |
+
#: inc/templates/db_backup.php:13
|
| 425 |
msgid "Create a backup of your database by clicking \"Create SQL File\"."
|
| 426 |
msgstr ""
|
| 427 |
"Erstelle ein Backup deiner Datenbank, indem du auf \"SQL-Datei erzeugen\" "
|
| 502 |
msgid "Maximum file size: "
|
| 503 |
msgstr "Maximale Dateigröße: "
|
| 504 |
|
| 505 |
+
#~ msgid ""
|
| 506 |
+
#~ "This plugin can not be activated because it requires at least PHP version "
|
| 507 |
+
#~ "%1$s. "
|
| 508 |
+
#~ msgstr ""
|
| 509 |
+
#~ "Das Plugin kann nicht aktiviert werden, da es mindestens PHP-Version %1$s "
|
| 510 |
+
#~ "erfordert. "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 511 |
|
| 512 |
+
#~ msgid "back"
|
| 513 |
+
#~ msgstr "zurück"
|
|
|
|
| 514 |
|
| 515 |
+
#~ msgid "https://wordpress.org/plugins/search-and-replace/"
|
| 516 |
+
#~ msgstr "https://wordpress.org/plugins/search-and-replace/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 517 |
|
| 518 |
+
#~ msgid ""
|
| 519 |
+
#~ "Search & Replace data in your whole WordPress setup, backup and import "
|
| 520 |
+
#~ "your database, change table prefix or migrate your domain to another "
|
| 521 |
+
#~ "domain."
|
| 522 |
+
#~ msgstr ""
|
| 523 |
+
#~ "Suche & Ersetze Daten in deinem kompletten WordPress Umfeld, Backup und "
|
| 524 |
+
#~ "Import deiner Datenbank, ändere den Tabellen-Prefix oder Migriere deine "
|
| 525 |
+
#~ "Domain in eine andere Domain."
|
| 526 |
|
| 527 |
+
#~ msgid "Inpsyde GmbH"
|
| 528 |
+
#~ msgstr "Inpsyde GmbH"
|
|
|
|
| 529 |
|
| 530 |
+
#~ msgid "http://inpsyde.com"
|
| 531 |
+
#~ msgstr "http://inpsyde.com"
|
| 532 |
|
| 533 |
#~ msgid "<b>Mysqli Error:</b> "
|
| 534 |
#~ msgstr "<b>Mysqli Fehler:</b> "
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: inpsyde, Bueltge, derpixler, ChriCo, s-hinse, Giede
|
| 3 |
Tags: search, replace, backup, import, sql, migrate, multisite
|
| 4 |
Requires at least: 4.0
|
| 5 |
-
Tested up to: 4.
|
| 6 |
-
Stable tag: 3.1.
|
| 7 |
|
| 8 |
Search & Replace data in your database with WordPress admin, replace domains/URLs of your WordPress installation.
|
| 9 |
|
|
@@ -49,6 +49,10 @@ You want to donate - we prefer a [positive review](https://wordpress.org/support
|
|
| 49 |
5. Result screen after search or search and replace
|
| 50 |
|
| 51 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
= v3.1.0 (2016-02-07) =
|
| 53 |
* Improve codquality
|
| 54 |
* Prepared for localization (GlotPress)
|
| 2 |
Contributors: inpsyde, Bueltge, derpixler, ChriCo, s-hinse, Giede
|
| 3 |
Tags: search, replace, backup, import, sql, migrate, multisite
|
| 4 |
Requires at least: 4.0
|
| 5 |
+
Tested up to: 4.7
|
| 6 |
+
Stable tag: 3.1.1
|
| 7 |
|
| 8 |
Search & Replace data in your database with WordPress admin, replace domains/URLs of your WordPress installation.
|
| 9 |
|
| 49 |
5. Result screen after search or search and replace
|
| 50 |
|
| 51 |
== Changelog ==
|
| 52 |
+
= v3.1.1 (2016-12-24) =
|
| 53 |
+
* Refactor Plugin loading [#67](https://github.com/inpsyde/search-and-replace/issues/67)
|
| 54 |
+
* Display error notice is the search value the current domain and save changes to Database selected
|
| 55 |
+
|
| 56 |
= v3.1.0 (2016-02-07) =
|
| 57 |
* Improve codquality
|
| 58 |
* Prepared for localization (GlotPress)
|
