| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Config; |
| 4 |
|
| 5 |
use WordProof\SDK\Translations\TranslationsInterface; |
| 6 |
|
| 7 |
/** |
| 8 |
* Class WordProof_Translations |
| 9 |
* |
| 10 |
* @package Yoast\WP\SEO\Config |
| 11 |
*/ |
| 12 |
class Wordproof_Translations implements TranslationsInterface { |
| 13 |
|
| 14 |
/** |
| 15 |
* Returns no balance notice translation. |
| 16 |
* |
| 17 |
* @return string The translation. |
| 18 |
*/ |
| 19 |
public function getNoBalanceNotice() { |
| 20 |
/* translators: %s expands to WordProof. */ |
| 21 |
return sprintf( __( 'You are out of timestamps. Please upgrade your account by opening the %s settings.', 'wordpress-seo' ), 'WordProof' ); |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* Returns no balance notice translation. |
| 26 |
* |
| 27 |
* @return string The translation. |
| 28 |
*/ |
| 29 |
public function getTimestampSuccessNotice() { |
| 30 |
/* translators: %s expands to WordProof. */ |
| 31 |
return sprintf( __( '%s has successfully timestamped this page.', 'wordpress-seo' ), 'WordProof' ); |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* Returns timestamp failed notice translation. |
| 36 |
* |
| 37 |
* @return string The translation. |
| 38 |
*/ |
| 39 |
public function getTimestampFailedNotice() { |
| 40 |
/* translators: %s expands to WordProof. */ |
| 41 |
return sprintf( __( '%1$s failed to timestamp this page. Please check if you\'re correctly authenticated with %1$s and try to save this page again.', 'wordpress-seo' ), 'WordProof' ); |
| 42 |
} |
| 43 |
|
| 44 |
/** |
| 45 |
* Returns webhook failed notice translation. |
| 46 |
* |
| 47 |
* @return string The translation. |
| 48 |
*/ |
| 49 |
public function getWebhookFailedNotice() { |
| 50 |
/* translators: %s expands to WordProof. */ |
| 51 |
return sprintf( __( 'The timestamp is not retrieved by your site. Please try again or contact %1$s support.', 'wordpress-seo' ), 'WordProof' ); |
| 52 |
} |
| 53 |
|
| 54 |
/** |
| 55 |
* Returns no authentication notice translation. |
| 56 |
* |
| 57 |
* @return string The translation. |
| 58 |
*/ |
| 59 |
public function getNotAuthenticatedNotice() { |
| 60 |
/* translators: %s expands to WordProof. */ |
| 61 |
return sprintf( __( 'The timestamp is not created because you need to authenticate with %s first.', 'wordpress-seo' ), 'WordProof' ); |
| 62 |
} |
| 63 |
|
| 64 |
/** |
| 65 |
* Returns authenticate button text. |
| 66 |
* |
| 67 |
* @return string The translation. |
| 68 |
*/ |
| 69 |
public function getOpenAuthenticationButtonText() { |
| 70 |
return __( 'Open authentication', 'wordpress-seo' ); |
| 71 |
} |
| 72 |
|
| 73 |
/** |
| 74 |
* Returns open settings button translation. |
| 75 |
* |
| 76 |
* @return string The translation. |
| 77 |
*/ |
| 78 |
public function getOpenSettingsButtonText() { |
| 79 |
return __( 'Open settings', 'wordpress-seo' ); |
| 80 |
} |
| 81 |
} |
| 82 |
|