Skip to content

Commit

Permalink
grunt i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhw12 committed Aug 18, 2020
1 parent 5bf55b2 commit fa27695
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
18 changes: 9 additions & 9 deletions admin/bsf-analytics/class-bsf-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ public function option_notice() {
}

/* translators: %s product name */
$notice_string = __( 'Want to help make <strong>%1s</strong> even more awesome? Allow us to collect non-sensitive diagnostic data and usage information. ' );
$notice_string = __( 'Want to help make <strong>%1s</strong> even more awesome? Allow us to collect non-sensitive diagnostic data and usage information. ', 'custom-fonts' );

if ( is_multisite() ) {
$notice_string .= __( 'This will be applicable for all sites from the network.' );
$notice_string .= __( 'This will be applicable for all sites from the network.', 'custom-fonts' );
}

$language_dir = is_rtl() ? 'rtl' : 'ltr';
Expand All @@ -240,15 +240,15 @@ public function option_notice() {
</div>
</div>',
/* translators: %s usage doc link */
sprintf( $notice_string . '<span dir="%2s"><a href="%3s" target="_blank" rel="noreferrer noopener">%4s</a><span>', esc_html( $data['product_name'] ), $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'astra' ) ),
sprintf( $notice_string . '<span dir="%2s"><a href="%3s" target="_blank" rel="noreferrer noopener">%4s</a><span>', esc_html( $data['product_name'] ), $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'custom-fonts' ) ),
add_query_arg(
array(
$key . '_analytics_optin' => 'yes',
$key . '_analytics_nonce' => wp_create_nonce( $key . '_analytics_optin' ),
'bsf_analytics_source' => $key,
)
),
__( 'Yes! Allow it' ),
__( 'Yes! Allow it', 'custom-fonts' ),
add_query_arg(
array(
$key . '_analytics_optin' => 'no',
Expand All @@ -257,7 +257,7 @@ public function option_notice() {
)
),
MONTH_IN_SECONDS,
__( 'No Thanks' )
__( 'No Thanks', 'custom-fonts' )
),
'show_if' => true,
'repeat-notice-after' => false,
Expand Down Expand Up @@ -361,7 +361,7 @@ public function register_usage_tracking_setting() {

add_settings_field(
$key . '-analytics-optin', // Field ID.
__( 'Usage Tracking' ), // Field title.
__( 'Usage Tracking', 'custom-fonts' ), // Field title.
array( $this, 'render_settings_field_html' ), // Field callback function.
'general',
'default', // Settings page slug.
Expand Down Expand Up @@ -405,15 +405,15 @@ public function render_settings_field_html( $args ) {
<input id="<?php echo esc_attr( $args['id'] ); ?>" type="checkbox" value="1" name="<?php echo esc_attr( $args['name'] ); ?>" <?php checked( get_site_option( $args['name'], 'no' ), 'yes' ); ?>>
<?php
/* translators: %s Product title */
echo esc_html( sprintf( __( 'Allow %s products to track non-sensitive usage tracking data.' ), $args['title'] ) );// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
echo esc_html( sprintf( __( 'Allow %s products to track non-sensitive usage tracking data.', 'custom-fonts' ), $args['title'] ) );// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText

if ( is_multisite() ) {
esc_html_e( ' This will be applicable for all sites from the network.' );
esc_html_e( ' This will be applicable for all sites from the network.', 'custom-fonts' );
}
?>
</label>
<?php
echo wp_kses_post( sprintf( '<a href="%1s" target="_blank" rel="noreferrer noopener">%2s</a>', esc_url( $args['usage_doc_link'] ), __( 'Learn More.' ) ) );
echo wp_kses_post( sprintf( '<a href="%1s" target="_blank" rel="noreferrer noopener">%2s</a>', esc_url( $args['usage_doc_link'] ), __( 'Learn More.', 'custom-fonts' ) ) );
?>
</fieldset>
<?php
Expand Down
29 changes: 13 additions & 16 deletions languages/custom-fonts.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the same license as the Custom Fonts package.
msgid ""
msgstr ""
"Project-Id-Version: Custom Fonts 1.2.2\n"
"Project-Id-Version: Custom Fonts 1.2.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-fonts\n"
"POT-Creation-Date: 2020-06-15 10:19:55+00:00\n"
"POT-Creation-Date: 2020-08-18 09:16:20+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -24,47 +24,44 @@ msgstr ""
"X-Textdomain-Support: yes\n"
"X-Generator: grunt-wp-i18n 1.0.3\n"

#: admin/bsf-analytics/class-bsf-analytics.php:183
#: admin/bsf-analytics/class-bsf-analytics.php:216
#. translators: %s product name
msgid ""
"Want to help make <strong>%1s</strong> even more awesome? Allow us to "
"collect non-sensitive diagnostic data and usage information. "
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:186
#: admin/bsf-analytics/class-bsf-analytics.php:219
msgid "This will be applicable for all sites from the network."
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:210
#: admin/bsf-analytics/class-bsf-analytics.php:243
#. translators: %s usage doc link
msgid " Know More."
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:217
#: admin/bsf-analytics/class-bsf-analytics.php:251
msgid "Yes! Allow it"
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:225
#: admin/bsf-analytics/class-bsf-analytics.php:260
msgid "No Thanks"
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:294
msgid "Every two days"
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:348
#: admin/bsf-analytics/class-bsf-analytics.php:364
msgid "Usage Tracking"
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:380
msgid "Allow Brainstorm Force products to track non-sensitive usage tracking data."
#: admin/bsf-analytics/class-bsf-analytics.php:408
#. translators: %s Product title
msgid "Allow %s products to track non-sensitive usage tracking data."
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:383
#: admin/bsf-analytics/class-bsf-analytics.php:411
msgid " This will be applicable for all sites from the network."
msgstr ""

#: admin/bsf-analytics/class-bsf-analytics.php:388
#: admin/bsf-analytics/class-bsf-analytics.php:416
msgid "Learn More."
msgstr ""

Expand Down

0 comments on commit fa27695

Please sign in to comment.