Skip to content
Snippets Groups Projects
Commit 0e1cb196 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'feature/text-domain' into 'master'

bugfix(translations): text domain

See merge request !14
parents 4fa7e2e9 0fc609a0
No related branches found
Tags 1.6.3
1 merge request!14bugfix(translations): text domain
Pipeline #498880 failed with stages
in 15 seconds
## [1.6.3] - 2025-04-22
### Fixed
- text domain
## [1.6.2] - 2023-04-05
### Fixed
- bottom margin
......
......@@ -30,7 +30,7 @@
"classmap": ["tests/"]
},
"extra": {
"text-domain": "wpdesk-rating-petition",
"text-domain": "wp-wpdesk-rating-petition",
"translations-folder": "lang",
"po-files": {
"pl_PL": "pl_PL.po",
......
......@@ -166,7 +166,7 @@ class RatingPetitionNotice implements Hookable {
*/
private function get_notice_content() {
// Translators: plugin name.
$content = sprintf( __( 'Awesome, you\'ve been using %s for more than 2 weeks. Could you please do me a BIG favor and give it a 5-star rating on WordPress? ~ Peter', 'wpdesk-rating-petition' ), $this->plugin_name );
$content = sprintf( __( 'Awesome, you\'ve been using %s for more than 2 weeks. Could you please do me a BIG favor and give it a 5-star rating on WordPress? ~ Peter', 'wp-wpdesk-rating-petition' ), $this->plugin_name );
$content .= '<br/>';
$content .= implode( ' | ', $this->action_links() );
......@@ -181,19 +181,19 @@ class RatingPetitionNotice implements Hookable {
protected function action_links() {
$actions[] = sprintf( // phpcs:ignore
// Translators: link.
__( '%1$sOk, you deserved it%2$s', 'wpdesk-rating-petition' ),
__( '%1$sOk, you deserved it%2$s', 'wp-wpdesk-rating-petition' ),
'<a class="fs-response-deserved" target="_blank" href="' . esc_url( $this->rate_url ) . '">',
'</a>'
);
$actions[] = sprintf(
// Translators: link.
__( '%1$sNope, maybe later%2$s', 'wpdesk-rating-petition' ),
__( '%1$sNope, maybe later%2$s', 'wp-wpdesk-rating-petition' ),
'<a class="fs-response-close-temporary-notice notice-dismiss-link" data-source="' . self::CLOSE_TEMPORARY_NOTICE . '" href="#">',
'</a>'
);
$actions[] = sprintf(
// Translators: link.
__( '%1$sI already did%2$s', 'wpdesk-rating-petition' ),
__( '%1$sI already did%2$s', 'wp-wpdesk-rating-petition' ),
'<a class="fs-response-already-did notice-dismiss-link" data-source="already-did" href="#">',
'</a>'
);
......
......@@ -48,7 +48,7 @@ class TextPetitionDisplayer implements Hookable {
*/
public function enqueue_css_if_should() {
if ( $this->display_decision->should_display() ) {
wp_enqueue_style( 'wpdesk-rating-petition', plugin_dir_url( __DIR__ . '/../assets/css/style.css' ) . 'style.css', array(), self::SCRIPTS_VERSION );
wp_enqueue_style( 'wp-wpdesk-rating-petition', plugin_dir_url( __DIR__ . '/../assets/css/style.css' ) . 'style.css', array(), self::SCRIPTS_VERSION );
}
}
......
......@@ -8,7 +8,7 @@
?><div class="wpdesk-rating-petition" style="text-align: <?php echo esc_attr( $text_align ); ?>;">
<?php echo wp_kses_post(
sprintf(
__( 'Created with %1$s by %2$s - If you like %3$s you can %4$srate us %5$s in plugins repository &rarr;%6$s', 'wpdesk-rating-petition' ),
__( 'Created with %1$s by %2$s - If you like %3$s you can %4$srate us %5$s in plugins repository &rarr;%6$s', 'wp-wpdesk-rating-petition' ),
'<span class="heart">&hearts;</span>',
$plugin_author,
'<span class="plugin-title">' . $plugin_title . '</span>',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment