class-premium-javascript-strings.php
2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* @package WPSEO\Premium\Classes
*/
/**
* Class WPSEO_Premium_Javascript_Strings
*/
class WPSEO_Premium_Javascript_Strings {
/**
* @var null
*/
private static $strings = null;
/**
* Fill the value of self::$strings with translated strings
*/
private static function fill() {
self::$strings = array(
'error_circular' => __( 'You can\'t redirect a URL to itself.', 'wordpress-seo-premium' ),
'error_old_url' => __( 'The old URL field can\'t be empty.', 'wordpress-seo-premium' ),
'error_regex' => __( 'The Regular Expression field can\'t be empty.', 'wordpress-seo-premium' ),
'error_new_url' => __( 'The new URL field can\'t be empty.', 'wordpress-seo-premium' ),
'error_saving_redirect' => __( 'Error while saving this redirect', 'wordpress-seo-premium' ),
'error_new_type' => __( 'New type can\'t be empty.', 'wordpress-seo-premium' ),
'unsaved_redirects' => __( 'You have unsaved redirects, are you sure you want to leave?', 'wordpress-seo-premium' ),
/* translator note: %s is replaced with the URL that will be deleted */
'enter_new_url' => __( 'Please enter the new URL for %s', 'wordpress-seo-premium' ),
/* translator note: variables will be replaced with from and to URLs */
'redirect_saved' => __( 'Redirect created from %1$s to %2$s!', 'wordpress-seo-premium' ),
'redirect_saved_no_target' => __( '410 Redirect created from %1$s!', 'wordpress-seo-premium' ),
'redirect_added' => array(
'title' => __( 'Redirect added.', 'wordpress-seo-premium' ),
'message' => __( 'The redirect was added successfully.', 'wordpress-seo-premium' ),
),
'redirect_updated' => array(
'title' => __( 'Redirect updated.', 'wordpress-seo-premium' ),
'message' => __( 'The redirect was updated successfully.', 'wordpress-seo-premium' ),
),
'redirect_deleted' => array(
'title' => __( 'Redirect deleted.', 'wordpress-seo-premium' ),
'message' => __( 'The redirect was deleted successfully.', 'wordpress-seo-premium' ),
),
'button_ok' => __( 'OK', 'wordpress-seo-premium' ),
'button_cancel' => __( 'Cancel', 'wordpress-seo-premium' ),
'button_save' => __( 'Save', 'wordpress-seo-premium' ),
'button_save_anyway' => __( 'Save anyway', 'wordpress-seo-premium' ),
'edit_redirect' => __( 'Edit redirect', 'wordpress-seo-premium' ),
'editing_redirect' => __( 'You are already editing a redirect, please finish this one first', 'wordpress-seo-premium' ),
'editAction' => __( 'Edit', 'wordpress-seo-premium' ),
'deleteAction' => __( 'Delete', 'wordpress-seo-premium' ),
);
}
/**
* Returns an array with all the translated strings
*
* @return array
*/
public static function strings() {
if ( self::$strings === null ) {
self::fill();
}
return self::$strings;
}
}