Skip to content

Commit cdb8626

Browse files
fix: translation domain
1 parent 4b0ee89 commit cdb8626

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

includes/admin/class-rop-admin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ public function menu_pages() {
680680
)
681681
);
682682
if ( ! defined( 'REVIVE_NETWORK_VERSION' ) ) {
683-
$rss_to_social = __( 'RSS to Social', 'wpcf7-redirect' ) . '<span id="rop-rn-menu" class="dashicons dashicons-external" style="font-size:initial;"></span>';
683+
$rss_to_social = __( 'RSS to Social', 'tweet-old-post' ) . '<span id="rop-rn-menu" class="dashicons dashicons-external" style="font-size:initial;"></span>';
684684
add_action(
685685
'admin_footer',
686686
function () {
@@ -1855,17 +1855,17 @@ public static function add_black_friday_data( $configs ) {
18551855
$config = $configs['default'];
18561856

18571857
// translators: %1$s - HTML tag, %2$s - discount, %3$s - HTML tag, %4$s - product name.
1858-
$message_template = __( 'Our biggest sale of the year: %1$sup to %2$s OFF%3$s on %4$s. Don\'t miss this limited-time offer.', 'neve' );
1859-
$product_label = __( 'Revive Social', 'neve' );
1858+
$message_template = __( 'Our biggest sale of the year: %1$sup to %2$s OFF%3$s on %4$s. Don\'t miss this limited-time offer.', 'tweet-old-post' );
1859+
$product_label = __( 'Revive Social', 'tweet-old-post' );
18601860
$discount = '50%';
18611861

18621862
$plan = apply_filters( 'product_rop_license_plan', 0 );
18631863
$is_pro = 0 < $plan;
18641864

18651865
if ( $is_pro ) {
18661866
// translators: %1$s - HTML tag, %2$s - discount, %3$s - HTML tag, %4$s - product name.
1867-
$message_template = __( 'Get %1$sup to %2$s off%3$s when you upgrade your %4$s plan or renew early.', 'neve' );
1868-
$product_label = __( 'Revive Social Pro', 'neve' );
1867+
$message_template = __( 'Get %1$sup to %2$s off%3$s when you upgrade your %4$s plan or renew early.', 'tweet-old-post' );
1868+
$product_label = __( 'Revive Social Pro', 'tweet-old-post' );
18691869
$discount = '20%';
18701870
}
18711871

phpcs.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<exclude-pattern>vue/*</exclude-pattern>
1313
<exclude-pattern>dist/*</exclude-pattern>
1414

15-
<arg name="extensions" value="php"/>
15+
<arg name="extensions" value="php" />
1616

1717
<rule ref="WordPress-Core">
1818
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
@@ -51,9 +51,16 @@
5151
<rule ref="WordPress-Docs">
5252

5353
</rule>
54+
<rule ref="WordPress.WP.I18n">
55+
<properties>
56+
<property name="text_domain" type="array">
57+
<element value="tweet-old-post" />
58+
</property>
59+
</properties>
60+
</rule>
5461

5562
<rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing">
5663
<severity>0</severity>
5764
</rule>
5865

59-
</ruleset>
66+
</ruleset>

0 commit comments

Comments
 (0)