Update tranlation text domain

This commit is contained in:
David Stone
2025-02-15 23:19:24 -07:00
parent 217009caab
commit f05ab77418
424 changed files with 6368 additions and 6368 deletions

View File

@ -182,7 +182,7 @@ abstract class Base_Model implements \JsonSerializable {
$value = call_user_func([$this, "get_{$field}"]);
if ( ! is_numeric($value)) {
_doing_it_wrong(__METHOD__, __('You can only use numeric fields to generate hashes.', 'wp-ultimo'), '2.0.0');
_doing_it_wrong(__METHOD__, __('You can only use numeric fields to generate hashes.', 'wp-multisite-waas'), '2.0.0');
return false;
}
@ -607,7 +607,7 @@ abstract class Base_Model implements \JsonSerializable {
public function delete() {
if ( ! $this->get_id()) {
return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'wp-ultimo'));
return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'wp-multisite-waas'));
}
/**
@ -681,12 +681,12 @@ abstract class Base_Model implements \JsonSerializable {
if ( ! $this->get_meta_table_name()) {
// _doing_it_wrong(__METHOD__, __('This model does not support metadata.', 'wp-ultimo'), '2.0.0');
// _doing_it_wrong(__METHOD__, __('This model does not support metadata.', 'wp-multisite-waas'), '2.0.0');
return false;
}
// _doing_it_wrong(__METHOD__, __('Model metadata only works for already saved models.', 'wp-ultimo'), '2.0.0');
// _doing_it_wrong(__METHOD__, __('Model metadata only works for already saved models.', 'wp-multisite-waas'), '2.0.0');
return !(! $this->get_id() && ! $this->_mocked);
}
@ -730,7 +730,7 @@ abstract class Base_Model implements \JsonSerializable {
}
if ( ! is_array($meta)) {
_doing_it_wrong(__METHOD__, __('This method expects an array as argument.', 'wp-ultimo'), '2.0.0');
_doing_it_wrong(__METHOD__, __('This method expects an array as argument.', 'wp-multisite-waas'), '2.0.0');
return false;
}

View File

@ -537,12 +537,12 @@ class Checkout_Form extends Base_Model {
$steps = [
[
'id' => 'checkout',
'name' => __('Checkout', 'wp-ultimo'),
'name' => __('Checkout', 'wp-multisite-waas'),
'desc' => '',
'fields' => [
[
'step' => 'checkout',
'name' => __('Plans', 'wp-ultimo'),
'name' => __('Plans', 'wp-multisite-waas'),
'type' => 'pricing_table',
'id' => 'pricing_table',
'required' => true,
@ -551,7 +551,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Email', 'wp-ultimo'),
'name' => __('Email', 'wp-multisite-waas'),
'type' => 'email',
'id' => 'email_address',
'required' => true,
@ -560,7 +560,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Username', 'wp-ultimo'),
'name' => __('Username', 'wp-multisite-waas'),
'type' => 'username',
'id' => 'username',
'required' => true,
@ -570,7 +570,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Password', 'wp-ultimo'),
'name' => __('Password', 'wp-multisite-waas'),
'type' => 'password',
'id' => 'password',
'required' => true,
@ -581,7 +581,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Site Title', 'wp-ultimo'),
'name' => __('Site Title', 'wp-multisite-waas'),
'type' => 'site_title',
'id' => 'site_title',
'required' => true,
@ -591,7 +591,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Site URL', 'wp-ultimo'),
'name' => __('Site URL', 'wp-multisite-waas'),
'type' => 'site_url',
'id' => 'site_url',
'placeholder' => '',
@ -602,7 +602,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Your Order', 'wp-ultimo'),
'name' => __('Your Order', 'wp-multisite-waas'),
'type' => 'order_summary',
'id' => 'order_summary',
'order_summary_template' => 'clean',
@ -610,13 +610,13 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Payment Method', 'wp-ultimo'),
'name' => __('Payment Method', 'wp-multisite-waas'),
'type' => 'payment',
'id' => 'payment',
],
[
'step' => 'checkout',
'name' => __('Billing Address', 'wp-ultimo'),
'name' => __('Billing Address', 'wp-multisite-waas'),
'type' => 'billing_address',
'id' => 'billing_address',
'required' => true,
@ -624,7 +624,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Checkout', 'wp-ultimo'),
'name' => __('Checkout', 'wp-multisite-waas'),
'type' => 'submit_button',
'id' => 'checkout',
],
@ -646,7 +646,7 @@ class Checkout_Form extends Base_Model {
$steps = [
[
'id' => 'checkout',
'name' => __('Checkout', 'wp-ultimo'),
'name' => __('Checkout', 'wp-multisite-waas'),
'desc' => '',
'fields' => [
[
@ -660,7 +660,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Next Step', 'wp-ultimo'),
'name' => __('Next Step', 'wp-multisite-waas'),
'type' => 'submit_button',
'id' => 'next_step',
],
@ -668,12 +668,12 @@ class Checkout_Form extends Base_Model {
],
[
'id' => 'site',
'name' => __('Site Info', 'wp-ultimo'),
'name' => __('Site Info', 'wp-multisite-waas'),
'desc' => '',
'fields' => [
[
'step' => 'checkout',
'name' => __('Site Title', 'wp-ultimo'),
'name' => __('Site Title', 'wp-multisite-waas'),
'type' => 'site_title',
'id' => 'site_title',
'required' => true,
@ -683,7 +683,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Site URL', 'wp-ultimo'),
'name' => __('Site URL', 'wp-multisite-waas'),
'type' => 'site_url',
'id' => 'site_url',
'required' => true,
@ -694,7 +694,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'site',
'name' => __('Next Step', 'wp-ultimo'),
'name' => __('Next Step', 'wp-multisite-waas'),
'type' => 'submit_button',
'id' => 'next_step_site',
],
@ -702,13 +702,13 @@ class Checkout_Form extends Base_Model {
],
[
'id' => 'user',
'name' => __('User Info', 'wp-ultimo'),
'name' => __('User Info', 'wp-multisite-waas'),
'logged' => 'guests_only',
'desc' => '',
'fields' => [
[
'step' => 'checkout',
'name' => __('Email', 'wp-ultimo'),
'name' => __('Email', 'wp-multisite-waas'),
'type' => 'email',
'id' => 'email_address',
'required' => true,
@ -717,7 +717,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Username', 'wp-ultimo'),
'name' => __('Username', 'wp-multisite-waas'),
'type' => 'username',
'id' => 'username',
'required' => true,
@ -727,7 +727,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Password', 'wp-ultimo'),
'name' => __('Password', 'wp-multisite-waas'),
'type' => 'password',
'id' => 'password',
'required' => true,
@ -738,7 +738,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'user',
'name' => __('Next Step', 'wp-ultimo'),
'name' => __('Next Step', 'wp-multisite-waas'),
'type' => 'submit_button',
'id' => 'next_step_user',
],
@ -746,12 +746,12 @@ class Checkout_Form extends Base_Model {
],
[
'id' => 'payment',
'name' => __('Payment', 'wp-ultimo'),
'name' => __('Payment', 'wp-multisite-waas'),
'desc' => '',
'fields' => [
[
'step' => 'checkout',
'name' => __('Your Order', 'wp-ultimo'),
'name' => __('Your Order', 'wp-multisite-waas'),
'type' => 'order_summary',
'id' => 'order_summary',
'order_summary_template' => 'clean',
@ -759,13 +759,13 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Payment Method', 'wp-ultimo'),
'name' => __('Payment Method', 'wp-multisite-waas'),
'type' => 'payment',
'id' => 'payment',
],
[
'step' => 'checkout',
'name' => __('Billing Address', 'wp-ultimo'),
'name' => __('Billing Address', 'wp-multisite-waas'),
'type' => 'billing_address',
'id' => 'billing_address',
'required' => true,
@ -773,7 +773,7 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Checkout', 'wp-ultimo'),
'name' => __('Checkout', 'wp-multisite-waas'),
'type' => 'submit_button',
'id' => 'checkout',
],
@ -832,17 +832,17 @@ class Checkout_Form extends Base_Model {
'enable_price_1' => [
'duration' => '1',
'duration_unit' => 'month',
'label' => __('Monthly', 'wp-ultimo'),
'label' => __('Monthly', 'wp-multisite-waas'),
],
'enable_price_3' => [
'duration' => '3',
'duration_unit' => 'month',
'label' => __('Quarterly', 'wp-ultimo'),
'label' => __('Quarterly', 'wp-multisite-waas'),
],
'enable_price_12' => [
'duration' => '1',
'duration_unit' => 'year',
'label' => __('Yearly', 'wp-ultimo'),
'label' => __('Yearly', 'wp-multisite-waas'),
],
];
@ -867,7 +867,7 @@ class Checkout_Form extends Base_Model {
}
$step['fields']['pricing_table'] = [
'name' => __('Pricing Tables', 'wp-ultimo'),
'name' => __('Pricing Tables', 'wp-multisite-waas'),
'id' => 'pricing_table',
'type' => 'pricing_table',
'pricing_table_template' => 'legacy',
@ -893,7 +893,7 @@ class Checkout_Form extends Base_Model {
$step['fields'] = [
'template_selection' => [
'name' => __('Template Selection', 'wp-ultimo'),
'name' => __('Template Selection', 'wp-multisite-waas'),
'id' => 'template_selection',
'type' => 'template_selection',
'template_selection_template' => 'legacy',
@ -940,7 +940,7 @@ class Checkout_Form extends Base_Model {
$field['id'] = 'password';
$field['password_strength_meter'] = false;
$field['password_confirm_field'] = true;
$field['password_confirm_label'] = wu_get_isset($step['fields']['user_pass_conf'], 'name', __('Confirm Password', 'wp-ultimo'));
$field['password_confirm_label'] = wu_get_isset($step['fields']['user_pass_conf'], 'name', __('Confirm Password', 'wp-multisite-waas'));
break;
case 'user_email':
@ -971,7 +971,7 @@ class Checkout_Form extends Base_Model {
$field['id'] = 'submit_button';
if ('account' === $step_id) {
$field['name'] = __('Continue to the Next Step', 'wp-ultimo');
$field['name'] = __('Continue to the Next Step', 'wp-multisite-waas');
}
break;
@ -992,17 +992,17 @@ class Checkout_Form extends Base_Model {
*/
$new_format[] = [
'id' => 'payment',
'name' => __('Checkout', 'wp-ultimo'),
'name' => __('Checkout', 'wp-multisite-waas'),
'fields' => [
[
'name' => __('Order Summary', 'wp-ultimo'),
'name' => __('Order Summary', 'wp-multisite-waas'),
'type' => 'order_summary',
'id' => 'order_summary',
'order_summary_template' => 'clean',
'table_columns' => 'simple',
],
[
'name' => __('Billing Address', 'wp-ultimo'),
'name' => __('Billing Address', 'wp-multisite-waas'),
'type' => 'billing_address',
'id' => 'billing_address',
'zip_and_country' => true,
@ -1010,19 +1010,19 @@ class Checkout_Form extends Base_Model {
[
'type' => 'discount_code',
'id' => 'discount_code',
'name' => __('Coupon Code', 'wp-ultimo'),
'tooltip' => __('Coupon Code', 'wp-ultimo'),
'name' => __('Coupon Code', 'wp-multisite-waas'),
'tooltip' => __('Coupon Code', 'wp-multisite-waas'),
'display_checkbox' => true,
],
[
'name' => __('Payment Methods', 'wp-ultimo'),
'name' => __('Payment Methods', 'wp-multisite-waas'),
'type' => 'payment',
'id' => 'payment',
],
[
'type' => 'submit_button',
'id' => 'submit_button',
'name' => __('Pay & Create Account', 'wp-ultimo'),
'name' => __('Pay & Create Account', 'wp-multisite-waas'),
],
],
];
@ -1212,7 +1212,7 @@ class Checkout_Form extends Base_Model {
$fields = [
[
'step' => 'checkout',
'name' => __('Your Order', 'wp-ultimo'),
'name' => __('Your Order', 'wp-multisite-waas'),
'type' => 'order_summary',
'id' => 'order_summary',
'order_summary_template' => 'clean',
@ -1220,13 +1220,13 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Payment Method', 'wp-ultimo'),
'name' => __('Payment Method', 'wp-multisite-waas'),
'type' => 'payment',
'id' => 'payment',
],
[
'step' => 'checkout',
'name' => __('Finish Payment', 'wp-ultimo'),
'name' => __('Finish Payment', 'wp-multisite-waas'),
'type' => 'submit_button',
'id' => 'checkout',
'order' => 0,
@ -1236,7 +1236,7 @@ class Checkout_Form extends Base_Model {
$steps = [
[
'id' => 'checkout',
'name' => __('Checkout', 'wp-ultimo'),
'name' => __('Checkout', 'wp-multisite-waas'),
'desc' => '',
'fields' => $fields,
],
@ -1312,7 +1312,7 @@ class Checkout_Form extends Base_Model {
$label = sprintf(
// translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc)
_n('%2$s', '%1$s %2$s', $product->get_duration(), 'wp-ultimo'), // phpcs:ignore
_n('%2$s', '%1$s %2$s', $product->get_duration(), 'wp-multisite-waas'), // phpcs:ignore
$product->get_duration(),
wu_get_translatable_string($product->get_duration() <= 1 ? $product->get_duration_unit() : $product->get_duration_unit() . 's')
);
@ -1343,7 +1343,7 @@ class Checkout_Form extends Base_Model {
$label = sprintf(
// translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc)
_n('%2$s', '%1$s %2$s', $variation['duration'], 'wp-ultimo'), // phpcs:ignore
_n('%2$s', '%1$s %2$s', $variation['duration'], 'wp-multisite-waas'), // phpcs:ignore
$variation['duration'],
wu_get_translatable_string($variation['duration'] <= 1 ? $variation['duration_unit'] : $variation['duration_unit'] . 's')
);
@ -1371,7 +1371,7 @@ class Checkout_Form extends Base_Model {
$fields[] = [
'step' => 'checkout',
'name' => __('Plans', 'wp-ultimo'),
'name' => __('Plans', 'wp-multisite-waas'),
'type' => 'pricing_table',
'id' => 'pricing_table',
'required' => true,
@ -1406,7 +1406,7 @@ class Checkout_Form extends Base_Model {
$end_fields = [
[
'step' => 'checkout',
'name' => __('Your Order', 'wp-ultimo'),
'name' => __('Your Order', 'wp-multisite-waas'),
'type' => 'order_summary',
'id' => 'order_summary',
'order_summary_template' => 'clean',
@ -1414,13 +1414,13 @@ class Checkout_Form extends Base_Model {
],
[
'step' => 'checkout',
'name' => __('Payment Method', 'wp-ultimo'),
'name' => __('Payment Method', 'wp-multisite-waas'),
'type' => 'payment',
'id' => 'payment',
],
[
'step' => 'checkout',
'name' => __('Complete Checkout', 'wp-ultimo'),
'name' => __('Complete Checkout', 'wp-multisite-waas'),
'type' => 'submit_button',
'id' => 'checkout',
'order' => 0,
@ -1432,7 +1432,7 @@ class Checkout_Form extends Base_Model {
$steps = [
[
'id' => 'checkout',
'name' => __('Checkout', 'wp-ultimo'),
'name' => __('Checkout', 'wp-multisite-waas'),
'desc' => '',
'fields' => $fields,
],
@ -1468,7 +1468,7 @@ class Checkout_Form extends Base_Model {
$template_selection_fields = [
[
'step' => 'template',
'name' => __('Template Selection', 'wp-ultimo'),
'name' => __('Template Selection', 'wp-multisite-waas'),
'type' => 'template_selection',
'id' => 'template_selection',
'cols' => 4,
@ -1485,7 +1485,7 @@ class Checkout_Form extends Base_Model {
$steps[] = [
'id' => 'template',
'name' => __('Template Selection', 'wp-ultimo'),
'name' => __('Template Selection', 'wp-multisite-waas'),
'desc' => '',
'fields' => $template_selection_fields,
];
@ -1521,7 +1521,7 @@ class Checkout_Form extends Base_Model {
$final_fields[] = [
'step' => 'create',
'id' => 'site_title',
'name' => __('Site Title', 'wp-ultimo'),
'name' => __('Site Title', 'wp-multisite-waas'),
'tooltip' => '',
'placeholder' => '',
'type' => 'site_title',
@ -1532,7 +1532,7 @@ class Checkout_Form extends Base_Model {
$final_fields[] = [
'step' => 'create',
'id' => 'site_url',
'name' => __('Site URL', 'wp-ultimo'),
'name' => __('Site URL', 'wp-multisite-waas'),
'tooltip' => '',
'placeholder' => '',
'display_field_attachments' => false,
@ -1543,7 +1543,7 @@ class Checkout_Form extends Base_Model {
$final_fields[] = [
'step' => 'create',
'name' => __('Create Site', 'wp-ultimo'),
'name' => __('Create Site', 'wp-multisite-waas'),
'type' => 'submit_button',
'id' => 'checkout',
'order' => 0,
@ -1551,7 +1551,7 @@ class Checkout_Form extends Base_Model {
$steps[] = [
'id' => 'create',
'name' => __('Create Site', 'wp-ultimo'),
'name' => __('Create Site', 'wp-multisite-waas'),
'desc' => '',
'classes' => 'wu-max-w-sm',
'fields' => $final_fields,

View File

@ -211,7 +211,7 @@ class Customer extends Base_Model {
$user = $this->get_user();
if (empty($user)) {
return __('User Deleted', 'wp-ultimo');
return __('User Deleted', 'wp-multisite-waas');
}
return $user->display_name;
@ -267,7 +267,7 @@ class Customer extends Base_Model {
$user = $this->get_user();
if (empty($user)) {
return __('none', 'wp-ultimo');
return __('none', 'wp-multisite-waas');
}
return $user->user_login;
@ -284,7 +284,7 @@ class Customer extends Base_Model {
$user = $this->get_user();
if (empty($user)) {
return __('none', 'wp-ultimo');
return __('none', 'wp-multisite-waas');
}
return $user->user_email;

View File

@ -465,14 +465,14 @@ class Discount_Code extends Base_Model {
public function is_valid($product = false) {
if ($this->is_active() === false) {
return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-ultimo'));
return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-multisite-waas'));
}
/*
* Check for uses
*/
if ($this->has_max_uses() && $this->get_uses() >= $this->get_max_uses()) {
return new \WP_Error('discount_code', __('This discount code was already redeemed the maximum amount of times allowed.', 'wp-ultimo'));
return new \WP_Error('discount_code', __('This discount code was already redeemed the maximum amount of times allowed.', 'wp-multisite-waas'));
}
/*
@ -487,9 +487,9 @@ class Discount_Code extends Base_Model {
$start_date_instance = wu_date($start_date);
if ($now < $start_date_instance) {
return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-ultimo'));
return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-multisite-waas'));
return new \WP_Error('discount_code', __('The coupon code is not valid yet.', 'wp-ultimo'));
return new \WP_Error('discount_code', __('The coupon code is not valid yet.', 'wp-multisite-waas'));
}
}
@ -497,7 +497,7 @@ class Discount_Code extends Base_Model {
$expiration_date_instance = wu_date($expiration_date);
if ($now > $expiration_date_instance) {
return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-ultimo'));
return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-multisite-waas'));
}
}
@ -515,7 +515,7 @@ class Discount_Code extends Base_Model {
$allowed = $this->get_limit_products() && in_array($product_id, $this->get_allowed_products()); // phpcs:ignore
if (false === $allowed) {
return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-ultimo'));
return new \WP_Error('discount_code', __('This coupon code is not valid.', 'wp-multisite-waas'));
}
}
@ -640,7 +640,7 @@ class Discount_Code extends Base_Model {
$description[] = sprintf(
// translators: placeholder is the value off. Can be wither $X.XX or X%
__('%1$s OFF on Subscriptions', 'wp-ultimo'),
__('%1$s OFF on Subscriptions', 'wp-multisite-waas'),
$value
);
}
@ -654,12 +654,12 @@ class Discount_Code extends Base_Model {
$description[] = sprintf(
// translators: placeholder is the value off. Can be wither $X.XX or X%
__('%1$s OFF on Setup Fees', 'wp-ultimo'),
__('%1$s OFF on Setup Fees', 'wp-multisite-waas'),
$setup_fee_value
);
}
return implode(' ' . __('and', 'wp-ultimo') . ' ', $description);
return implode(' ' . __('and', 'wp-multisite-waas') . ' ', $description);
}
/**

View File

@ -532,7 +532,7 @@ class Domain extends Base_Model {
*/
wu_log_clear("domain-{$this->get_domain()}");
wu_log_add("domain-{$this->get_domain()}", __('Domain deleted and logs cleared...', 'wp-ultimo'));
wu_log_add("domain-{$this->get_domain()}", __('Domain deleted and logs cleared...', 'wp-multisite-waas'));
return $results;
}

View File

@ -156,14 +156,14 @@ class Event extends Base_Model {
public function get_severity_label() {
$labels = [
self::SEVERITY_SUCCESS => __('Success', 'wp-ultimo'),
self::SEVERITY_NEUTRAL => __('Neutral', 'wp-ultimo'),
self::SEVERITY_INFO => __('Info', 'wp-ultimo'),
self::SEVERITY_WARNING => __('Warning', 'wp-ultimo'),
self::SEVERITY_FATAL => __('Fatal', 'wp-ultimo'),
self::SEVERITY_SUCCESS => __('Success', 'wp-multisite-waas'),
self::SEVERITY_NEUTRAL => __('Neutral', 'wp-multisite-waas'),
self::SEVERITY_INFO => __('Info', 'wp-multisite-waas'),
self::SEVERITY_WARNING => __('Warning', 'wp-multisite-waas'),
self::SEVERITY_FATAL => __('Fatal', 'wp-multisite-waas'),
];
return $labels[ $this->get_severity() ] ?? __('Note', 'wp-ultimo');
return $labels[ $this->get_severity() ] ?? __('Note', 'wp-multisite-waas');
}
/**
@ -303,12 +303,12 @@ class Event extends Base_Model {
$default_messages = [];
$default_messages['changed'] = __('The <strong>{{model}}</strong> #{{object_id}} was changed: {{payload}}', 'wp-ultimo');
$default_messages['created'] = __('The <strong>{{model}}</strong> #{{object_id}} was created.', 'wp-ultimo');
$default_messages['changed'] = __('The <strong>{{model}}</strong> #{{object_id}} was changed: {{payload}}', 'wp-multisite-waas');
$default_messages['created'] = __('The <strong>{{model}}</strong> #{{object_id}} was created.', 'wp-multisite-waas');
$default_messages = apply_filters('wu_get_default_system_messages', $default_messages);
return wu_get_isset($default_messages, $slug, __('No Message', 'wp-ultimo'));
return wu_get_isset($default_messages, $slug, __('No Message', 'wp-multisite-waas'));
}

View File

@ -670,7 +670,7 @@ class Membership extends Base_Model {
public function swap($order) {
if ( ! is_a($order, Cart::class)) {
return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'wp-ultimo'));
return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'wp-multisite-waas'));
}
// clear the current addons.
@ -743,11 +743,11 @@ class Membership extends Base_Model {
}
if ( ! wu_validate_date($schedule_date)) {
return new \WP_Error('invalid-date', __('Schedule date is invalid.', 'wp-ultimo'));
return new \WP_Error('invalid-date', __('Schedule date is invalid.', 'wp-multisite-waas'));
}
if ( ! is_a($order, Cart::class)) {
return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'wp-ultimo'));
return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'wp-multisite-waas'));
}
$date_instance = wu_date($schedule_date);
@ -831,7 +831,7 @@ class Membership extends Base_Model {
$description = sprintf(
// translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc)
_n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-ultimo'), // phpcs:ignore
_n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-multisite-waas'), // phpcs:ignore
$this->get_duration(),
wu_get_translatable_string(($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's'))
);
@ -847,12 +847,12 @@ class Membership extends Base_Model {
public function get_times_billed_description(): string {
// translators: times billed / subscription duration in cycles. e.g. 1/12 cycles
$description = __('%1$s / %2$s cycles', 'wp-ultimo');
$description = __('%1$s / %2$s cycles', 'wp-multisite-waas');
if ($this->is_forever_recurring()) {
// translators: the place holder is the number of times the membership was billed.
$description = __('%1$s / until cancelled', 'wp-ultimo');
$description = __('%1$s / until cancelled', 'wp-multisite-waas');
}
return sprintf($description, $this->get_times_billed(), $this->get_billing_cycles());
@ -872,7 +872,7 @@ class Membership extends Base_Model {
$message = sprintf(
// translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc)
_n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'wp-ultimo'), // phpcs:ignore
_n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'wp-multisite-waas'), // phpcs:ignore
wu_format_currency($this->get_amount(), $this->get_currency()),
$duration,
wu_get_translatable_string($duration <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's')
@ -883,7 +883,7 @@ class Membership extends Base_Model {
if ( ! $this->is_forever_recurring()) {
$billing_cycles_message = sprintf(
// translators: %s is the number of billing cycles.
_n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'wp-ultimo'),
_n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'wp-multisite-waas'),
$this->get_billing_cycles()
);
@ -892,13 +892,13 @@ class Membership extends Base_Model {
} else {
$pricing['subscription'] = sprintf(
// translators: %1$s is the formatted price of the product
__('%1$s one time payment', 'wp-ultimo'),
__('%1$s one time payment', 'wp-multisite-waas'),
wu_format_currency($this->get_initial_amount(), $this->get_currency())
);
}
if ($this->is_free()) {
$pricing['subscription'] = __('Free!', 'wp-ultimo');
$pricing['subscription'] = __('Free!', 'wp-multisite-waas');
}
return implode(' + ', $pricing);

View File

@ -548,13 +548,13 @@ class Payment extends Base_Model {
$gateway = $this->get_gateway();
if ( ! $gateway) {
return __('None', 'wp-ultimo');
return __('None', 'wp-multisite-waas');
}
$gateway_class = wu_get_gateway($gateway);
if ( ! $gateway_class) {
return __('None', 'wp-ultimo');
return __('None', 'wp-multisite-waas');
}
$title = $gateway_class->get_public_title();
@ -930,7 +930,7 @@ class Payment extends Base_Model {
$prefix = str_replace($search, $replace, (string) $prefix);
return sprintf('%s%s %s', $prefix, $this->invoice_number, $provisional ? __('(provisional)', 'wp-ultimo') : '');
return sprintf('%s%s %s', $prefix, $this->invoice_number, $provisional ? __('(provisional)', 'wp-multisite-waas') : '');
}
/**
@ -1050,11 +1050,11 @@ class Payment extends Base_Model {
* it is a partial refund.
*/
if ($amount >= $this->get_total()) {
$title = __('Full Refund', 'wp-ultimo');
$title = __('Full Refund', 'wp-multisite-waas');
$new_status = Payment_Status::REFUND;
} else {
$title = __('Partial Refund', 'wp-ultimo');
$title = __('Partial Refund', 'wp-multisite-waas');
$new_status = Payment_Status::PARTIAL_REFUND;
}
@ -1064,7 +1064,7 @@ class Payment extends Base_Model {
$formatted_value = date_i18n(get_option('date_format'), $time);
// translators: %s is the date of processing.
$description = sprintf(__('Processed on %s', 'wp-ultimo'), $formatted_value);
$description = sprintf(__('Processed on %s', 'wp-multisite-waas'), $formatted_value);
$line_item_data = [
'type' => 'refund',

View File

@ -620,11 +620,11 @@ class Product extends Base_Model {
public function get_formatted_amount($key = 'amount') {
if ($this->is_free()) {
return __('Free!', 'wp-ultimo');
return __('Free!', 'wp-multisite-waas');
}
if ($this->get_pricing_type() === 'contact_us') {
return $this->get_contact_us_label() ?: __('Contact Us', 'wp-ultimo');
return $this->get_contact_us_label() ?: __('Contact Us', 'wp-multisite-waas');
}
return wu_format_currency($this->get_amount(), $this->get_currency());
@ -697,11 +697,11 @@ class Product extends Base_Model {
$pricing = [];
if ($this->get_pricing_type() === 'contact_us') {
return __('Contact us', 'wp-ultimo');
return __('Contact us', 'wp-multisite-waas');
}
if ($this->is_free()) {
return __('Free!', 'wp-ultimo');
return __('Free!', 'wp-multisite-waas');
}
if ($this->is_recurring()) {
@ -709,7 +709,7 @@ class Product extends Base_Model {
$message = sprintf(
// translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc)
_n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'wp-ultimo'), // phpcs:ignore
_n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'wp-multisite-waas'), // phpcs:ignore
wu_format_currency($this->get_amount(), $this->get_currency()),
$duration,
wu_get_translatable_string($duration <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's')
@ -720,7 +720,7 @@ class Product extends Base_Model {
if ( ! $this->is_forever_recurring()) {
$billing_cycles_message = sprintf(
// translators: %s is the number of billing cycles.
_n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'wp-ultimo'),
_n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'wp-multisite-waas'),
$this->get_billing_cycles()
);
@ -729,7 +729,7 @@ class Product extends Base_Model {
} else {
$pricing['subscription'] = sprintf(
// translators: %1$s is the formatted price of the product
__('%1$s one time payment', 'wp-ultimo'),
__('%1$s one time payment', 'wp-multisite-waas'),
wu_format_currency($this->get_amount(), $this->get_currency())
);
}
@ -737,7 +737,7 @@ class Product extends Base_Model {
if ($this->has_setup_fee() && $include_fees) {
$pricing['fee'] = sprintf(
// translators: %1$s is the formatted price of the setup fee
__('Setup Fee of %1$s', 'wp-ultimo'),
__('Setup Fee of %1$s', 'wp-multisite-waas'),
wu_format_currency($this->get_setup_fee(), $this->get_currency())
);
}
@ -758,12 +758,12 @@ class Product extends Base_Model {
}
if ( ! $this->is_recurring()) {
return __('one-time payment', 'wp-ultimo');
return __('one-time payment', 'wp-multisite-waas');
}
$description = sprintf(
// translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc)
_n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-ultimo'), // phpcs:ignore
_n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-multisite-waas'), // phpcs:ignore
$this->get_duration(),
wu_get_translatable_string($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's')
);

View File

@ -1437,7 +1437,7 @@ class Site extends Base_Model {
public function delete() {
if ( ! $this->get_id()) {
return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'wp-ultimo'));
return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'wp-multisite-waas'));
}
/**