Skip to content

Commit

Permalink
fix: add correct textdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Jun 21, 2022
1 parent 4b2c38b commit f2c4fa6
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion includes/admin/emails/class-email-setting-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static function get_notification_status_field( Give_Email_Notification $e
// Add global options.
if ( $form_id || give_is_add_new_form_page() ) {
$option = array(
'global' => __( 'Global Options' ),
'global' => __( 'Global Options', 'give' ),
'enabled' => __( 'Customize', 'give' ),
'disabled' => __( 'Disabled', 'give' ),
);
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/settings/class-settings-license.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class="give-activate-addon-btn button-primary"
<?php
else :
printf(
__( 'Because of security reasons you can not upload add-ons from here. Please <a href="%1$s" target="_blank">visit network plugin install page</a> to install add-ons.' ),
__( 'Because of security reasons you can not upload add-ons from here. Please <a href="%1$s" target="_blank">visit network plugin install page</a> to install add-ons.', 'give' ),
network_admin_url( 'plugin-install.php' )
);
?>
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/settings/class-settings-recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Give_Settings_Recurring_Donations_Core extends Give_Settings_Page
public function __construct()
{
$this->id = 'recurring';
$this->label = __('Recurring Donations', 'give-recurring');
$this->label = __('Recurring Donations', 'give');

parent::__construct();

Expand Down
4 changes: 2 additions & 2 deletions includes/admin/tools/import/class-give-import-donations.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,9 @@ public function render_dropdown() {
<th colspan="2">
<h2 id="give-import-title"><?php _e( 'Map CSV fields to donations', 'give' ); ?></h2>

<p class="give-import-donation-required-fields-title"><?php _e( 'Required Fields' ); ?></p>
<p class="give-import-donation-required-fields-title"><?php _e( 'Required Fields', 'give' ); ?></p>

<p class="give-field-description"><?php _e( 'These fields are required for the import to submitted' ); ?></p>
<p class="give-field-description"><?php _e( 'These fields are required for the import to submitted', 'give' ); ?></p>

<ul class="give-import-donation-required-fields">
<li class="give-import-donation-required-email"
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/upgrades/views/plugins-update-section.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
echo sprintf(
' &ndash; %s &ndash; %s',
sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ),
sprintf( __( '(Latest Version: %s)' ), $plugin_data['update']->new_version )
sprintf( __( '(Latest Version: %s)', 'give' ), $plugin_data['update']->new_version )
);
?>
</td>
Expand Down
6 changes: 3 additions & 3 deletions includes/admin/views/blank-slate.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
<?php endif; ?>

<?php if ( ! empty( $content['heading'] ) ) : ?>
<h2 class="give-blank-slate__heading"><?php esc_html_e( $content['heading'] ); ?></h2>
<h2 class="give-blank-slate__heading"><?php esc_html_e( $content['heading'], 'give' ); ?></h2>
<?php endif; ?>

<?php if ( ! empty( $content['message'] ) ) : ?>
<p class="give-blank-slate__message"><?php esc_html_e( $content['message'] ); ?></p>
<p class="give-blank-slate__message"><?php esc_html_e( $content['message'], 'give' ); ?></p>
<?php endif; ?>

<?php if ( ! empty( $content['cta_text'] ) && ! empty( $content['cta_link'] ) ) : ?>
<a class="give-blank-slate__cta button button-primary" href="<?php echo esc_url( $content['cta_link'] ); ?>"><?php esc_html_e( $content['cta_text'] ); ?></a>
<a class="give-blank-slate__cta button button-primary" href="<?php echo esc_url( $content['cta_link'] ); ?>"><?php esc_html_e( $content['cta_text'], 'give' ); ?></a>
<?php endif; ?>

<?php if ( ! empty( $content['help'] ) ) : ?>
Expand Down
4 changes: 2 additions & 2 deletions includes/class-give-cli-commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -1178,11 +1178,11 @@ public function addon_update( $pos, $assoc ) {
* current branch of the addon was updated or not.
*/
if ( 0 === $return_var ) {
WP_CLI::success( sprintf( __( "The GiveWP add-on '%s' is up-to-date with origin." ), $addon_name ) );
WP_CLI::success( sprintf( __( "The GiveWP add-on '%s' is up-to-date with origin.", 'give' ), $addon_name ) );

return;
} elseif ( 1 === $return_var ) {
WP_CLI::error( sprintf( __( "The GiveWP add-on '%s' was not updated." ), $addon_name ) );
WP_CLI::error( sprintf( __( "The GiveWP add-on '%s' was not updated.", 'give' ), $addon_name ) );
}
}

Expand Down
2 changes: 1 addition & 1 deletion includes/deprecated/deprecated-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function give_deprecated_action_mapping( $data, $arg_1 = '', $arg_2 = '', $arg_3

if ( ! defined( 'DOING_AJAX' ) ) {
// translators: %s: action name.
_give_deprecated_function( sprintf( __( 'The %s action' ), $give_map_deprecated_actions[ $action ] ), '1.7', $action );
_give_deprecated_function( sprintf( __( 'The %s action', 'give' ), $give_map_deprecated_actions[ $action ] ), '1.7', $action );
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion includes/deprecated/deprecated-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function give_deprecated_filter_mapping( $data, $arg_1 = '', $arg_2 = '', $arg_3
if ( ! defined( 'DOING_AJAX' ) ) {
_give_deprecated_function(
sprintf( /* translators: %s: filter name */
__( 'The %s filter' ),
__( 'The %s filter', 'give' ),
$give_map_deprecated_filters[ $filter ]
),
'1.7',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function give_stripe_deprecated_filter_mapping( $data, $arg_1 = '', $arg_2 = '',
if ( ! defined( 'DOING_AJAX' ) ) {
_give_deprecated_function(
sprintf( /* translators: %s: filter name */
__( 'The %s filter' ),
__( 'The %s filter', 'give' ),
$give_stripe_map_deprecated_filters[ $filter ]
),
'2.5.0',
Expand Down
2 changes: 1 addition & 1 deletion includes/libraries/wp-background-process.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public function schedule_cron_healthcheck( $schedules ) {
// Adds every 5 minutes to the existing schedules.
$schedules[ $this->identifier . '_cron_interval' ] = array(
'interval' => MINUTE_IN_SECONDS * $interval,
'display' => sprintf( __( 'Every %d Minutes' ), $interval ),
'display' => sprintf( __( 'Every %d Minutes', 'give' ), $interval ),
);

return $schedules;
Expand Down
10 changes: 5 additions & 5 deletions src/LegacySubscriptions/includes/give-subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function __get( $key ) {

} else {

return new WP_Error( 'give-subscription-invalid-property', sprintf( __( 'Can\'t get property %s', 'give-recurring' ), $key ) );
return new WP_Error( 'give-subscription-invalid-property', sprintf( __( 'Can\'t get property %s', 'give' ), $key ) );

}

Expand Down Expand Up @@ -293,7 +293,7 @@ public function create( $data = array() ) {
public function update( $args ) {

if ( isset( $args['status'] ) && strtolower( $this->status ) !== strtolower( $args['status'] ) ) {
$this->add_note( sprintf( __( 'Status changed from %s to %s', 'give-recurring' ), $this->status, $args['status'] ) );
$this->add_note( sprintf( __( 'Status changed from %s to %s', 'give' ), $this->status, $args['status'] ) );
}

$ret = $this->subs_db->update( $this->id, $args );
Expand Down Expand Up @@ -750,11 +750,11 @@ public function cancel() {

} else {

$user = __( 'gateway', 'give-recurring' );
$user = __( 'gateway', 'give' );

}

$note = sprintf( __( 'Subscription #%1$d cancelled by %2$s', 'give-recurring' ), $this->id, $user );
$note = sprintf( __( 'Subscription #%1$d cancelled by %2$s', 'give' ), $this->id, $user );
$this->donor->add_note( $note );
$this->status = 'cancelled';

Expand Down Expand Up @@ -951,7 +951,7 @@ public function get_subscription_progress() {
return sprintf(
'%1$s / %2$s',
$this->get_total_payments(),
0 === intval( $this->bill_times ) ? __( 'Ongoing', 'give-recurring' ) : $this->bill_times
0 === intval( $this->bill_times ) ? __( 'Ongoing', 'give' ) : $this->bill_times
);
}

Expand Down
8 changes: 4 additions & 4 deletions src/LegacySubscriptions/includes/give-subscriptions-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private function get_status_from_url() {
}

if ( null !== $input_status && '' === $status ) {
$error['error'] = sprintf( __( '\'%s\' is not a valid status.', 'give-recurring' ), $input_status );
$error['error'] = sprintf( __( '\'%s\' is not a valid status.', 'give' ), $input_status );

return $error;
} else {
Expand Down Expand Up @@ -149,7 +149,7 @@ public function add_give_subscription_endpoint( $data, $query_mode, $api_object
$donor = new Give_Donor( $queried_c );

if ( ! empty( $queried_c ) && ( ! $donor || ! $donor->id > 0 ) ) {
$error['error'] = sprintf( __( 'No donor found for %s!', 'give-recurring' ), $queried_c );
$error['error'] = sprintf( __( 'No donor found for %s!', 'give' ), $queried_c );

return $error;
}
Expand Down Expand Up @@ -255,13 +255,13 @@ public function add_give_subscription_endpoint( $data, $query_mode, $api_object
}
} elseif ( ! empty( $queried_c ) ) {

$error['error'] = sprintf( __( 'No subscriptions found for %s!', 'give-recurring' ), $queried_c );
$error['error'] = sprintf( __( 'No subscriptions found for %s!', 'give' ), $queried_c );

return $error;

} else {

$error['error'] = __( 'No subscriptions found!', 'give-recurring' );
$error['error'] = __( 'No subscriptions found!', 'give' );

return $error;

Expand Down
2 changes: 1 addition & 1 deletion src/MigrationLog/Migrations/MigrateCompletedMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function id()
*/
public static function title()
{
return esc_html__('Migrate completed migrations to give_migrations table');
return esc_html__('Migrate completed migrations to give_migrations table','give' );
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<?php if ('enabled' === $option('social_sharing') && ! $hasDonationFailed()) : ?>
<div class="social-sharing">
<p class="instruction">
<?= esc_html__($option('sharing_instructions')); ?>
<?= esc_html__($option('sharing_instructions'),'give' ); ?>
</p>
<div class="btn-row">
<button class="give-btn social-btn facebook-btn" onclick="GiveClassicTemplate.share(this);">
Expand Down

0 comments on commit f2c4fa6

Please sign in to comment.