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
No related tags found
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 ## [1.6.2] - 2023-04-05
### Fixed ### Fixed
- bottom margin - bottom margin
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"classmap": ["tests/"] "classmap": ["tests/"]
}, },
"extra": { "extra": {
"text-domain": "wpdesk-rating-petition", "text-domain": "wp-wpdesk-rating-petition",
"translations-folder": "lang", "translations-folder": "lang",
"po-files": { "po-files": {
"pl_PL": "pl_PL.po", "pl_PL": "pl_PL.po",
......
...@@ -166,7 +166,7 @@ class RatingPetitionNotice implements Hookable { ...@@ -166,7 +166,7 @@ class RatingPetitionNotice implements Hookable {
*/ */
private function get_notice_content() { private function get_notice_content() {
// Translators: plugin name. // 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 .= '<br/>';
$content .= implode( ' | ', $this->action_links() ); $content .= implode( ' | ', $this->action_links() );
...@@ -181,19 +181,19 @@ class RatingPetitionNotice implements Hookable { ...@@ -181,19 +181,19 @@ class RatingPetitionNotice implements Hookable {
protected function action_links() { protected function action_links() {
$actions[] = sprintf( // phpcs:ignore $actions[] = sprintf( // phpcs:ignore
// Translators: link. // 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 class="fs-response-deserved" target="_blank" href="' . esc_url( $this->rate_url ) . '">',
'</a>' '</a>'
); );
$actions[] = sprintf( $actions[] = sprintf(
// Translators: link. // 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 class="fs-response-close-temporary-notice notice-dismiss-link" data-source="' . self::CLOSE_TEMPORARY_NOTICE . '" href="#">',
'</a>' '</a>'
); );
$actions[] = sprintf( $actions[] = sprintf(
// Translators: link. // 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 class="fs-response-already-did notice-dismiss-link" data-source="already-did" href="#">',
'</a>' '</a>'
); );
......
...@@ -48,7 +48,7 @@ class TextPetitionDisplayer implements Hookable { ...@@ -48,7 +48,7 @@ class TextPetitionDisplayer implements Hookable {
*/ */
public function enqueue_css_if_should() { public function enqueue_css_if_should() {
if ( $this->display_decision->should_display() ) { 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 @@ ...@@ -8,7 +8,7 @@
?><div class="wpdesk-rating-petition" style="text-align: <?php echo esc_attr( $text_align ); ?>;"> ?><div class="wpdesk-rating-petition" style="text-align: <?php echo esc_attr( $text_align ); ?>;">
<?php echo wp_kses_post( <?php echo wp_kses_post(
sprintf( 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>', '<span class="heart">&hearts;</span>',
$plugin_author, $plugin_author,
'<span class="plugin-title">' . $plugin_title . '</span>', '<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