Skip to content

Commit

Permalink
Make text changes specified in PRESS0-685, PRESS0-980, PRESS0-981, Co…
Browse files Browse the repository at this point in the history
…rrect translations texts formats in all files, Updated .pot, .po and .mo files for all languages
  • Loading branch information
Arati Bhandare committed Mar 29, 2024
1 parent fefe1aa commit def3543
Show file tree
Hide file tree
Showing 13 changed files with 2,104 additions and 1,395 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'e067670e287e1a1fff64');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '4d7e19deb9ba53c3284e');
52 changes: 26 additions & 26 deletions includes/ECommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function register_settings() {
$option_settings = array(
'show_in_rest' => true,
'type' => 'string',
'description' => __( 'NFD eCommerce Options', 'wp-module-ecommerce' ),
'description' => __( "NFD eCommerce Options", 'wp-module-ecommerce' ),
);
foreach ( $this->options as $option ) {
\register_setting( 'general', $option, $option_settings );
Expand All @@ -230,7 +230,7 @@ public function register_settings() {
array(
'show_in_rest' => true,
'type' => 'boolean',
'description' => __( 'NFD eCommerce Options', 'wp-module-ecommerce' ),
'description' => __( "NFD eCommerce Options", 'wp-module-ecommerce' ),
)
);
\register_setting(
Expand All @@ -239,7 +239,7 @@ public function register_settings() {
array(
'show_in_rest' => true,
'type' => 'boolean',
'description' => __( 'NFD eCommerce Options', 'wp-module-ecommerce' ),
'description' => __( "NFD eCommerce Options", 'wp-module-ecommerce' ),
)
);
\register_setting(
Expand All @@ -248,7 +248,7 @@ public function register_settings() {
array(
'show_in_rest' => true,
'type' => 'boolean',
'description' => __( 'NFD eCommerce Options', 'wp-module-ecommerce' ),
'description' => __( "NFD eCommerce Options", 'wp-module-ecommerce' ),
)
);
$payments = array(
Expand Down Expand Up @@ -277,7 +277,7 @@ public function register_settings() {
),
),
'type' => 'object',
'description' => __( 'NFD eCommerce Options', 'wp-module-ecommerce' ),
'description' => __( "NFD eCommerce Options", 'wp-module-ecommerce' ),
);
foreach ( $payments as $payment ) {
\register_setting( 'general', $payment, $schema_for_offline_payments );
Expand Down Expand Up @@ -379,10 +379,10 @@ public function swap_billing_shipping_fields( $fields ) {
public function update_text( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Billing details' :
$translated_text = __( 'Shipping details', 'wp_module_ecommerce' );
$translated_text = __( "Shipping details", 'wp-module-ecommerce' );
break;
case 'Ship to a different address?' :
$translated_text = __( 'Bill to a different address?', 'wp_module_ecommerce' );
$translated_text = __( "Bill to a different address?", 'wp-module-ecommerce' );
break;
}
return $translated_text;
Expand All @@ -393,13 +393,13 @@ public function update_text( $translated_text, $text, $domain ) {
*/
public function add_phone_number_email_to_shipping_form($fields) {
$fields['shipping_phone'] = array(
'label' => __('Phone Number', 'wp_module_ecommerce'),
'label' => __("Phone Number", 'wp-module-ecommerce'),
'required' => true,
'class' => array('form-row-wide'),
'clear' => true,
);
$fields['shipping_email'] = array(
'label' => __('Email Address', 'wp_module_ecommerce'),
'label' => __("Email Address", 'wp-module-ecommerce'),
'required' => true,
'class' => array('form-row-wide'),
'clear' => true,
Expand Down Expand Up @@ -431,11 +431,11 @@ public function display_custom_shipping_fields_in_admin($order) {
$shipping_email = $order->get_meta('_shipping_email');

if (!empty($shipping_phone)) {
echo '<p><strong>' . __('Phone Number', 'wp_module_ecommerce') . ':</strong> ' . esc_html($shipping_phone) . '</p>';
echo '<p><strong>' . __("Phone Number", 'wp-module-ecommerce') . ':</strong> ' . esc_html($shipping_phone) . '</p>';
}

if (!empty($shipping_email)) {
echo '<p><strong>' . __('Email Address', 'wp_module_ecommerce') . ':</strong> ' . esc_html($shipping_email) . '</p>';
echo '<p><strong>' . __("Email Address", 'wp-module-ecommerce') . ':</strong> ' . esc_html($shipping_email) . '</p>';
}
}

Expand All @@ -446,7 +446,7 @@ function custom_add_promotion_menu_item( $menu_items ) {
add_submenu_page(
'woocommerce-marketing',
'Promotion product Page',
__('Promote','wp_module_ecommerce'),
__('Promotions','wp-module-ecommerce'),
'manage_options',
$this->container->plugin()->id.'#/store/sales_discounts',
'custom_submenu_redirect'
Expand All @@ -463,7 +463,7 @@ function custom_product_general_options() {
wp_enqueue_style ( 'Create_a_Promotion' , NFD_ECOMMERCE_PLUGIN_URL . 'vendor/newfold-labs/wp-module-ecommerce/includes/Promotions.css' , array (), '1.0' , 'all' );
echo '<div class="options_group">
<p class="form-field custom-button-field">
<a id="Create_a_Promotion" href="'.$redirect_url.'" class="promotion">'. __('Create a Promotion', 'wp_module_ecommerce').'</a>
<a id="Create_a_Promotion" href="'.$redirect_url.'" class="promotion">'. __('Create a Promotion', 'wp-module-ecommerce').'</a>
</p>
</div>';
}
Expand All @@ -473,7 +473,7 @@ function custom_product_general_options() {
*/
function custom_product_write_panel_tabs( $tabs ) {
$tabs['custom_tab'] = array(
'label' => __( 'Promotions', 'wp_module_ecommerce' ),
'label' => __( "Promotions", 'wp-module-ecommerce' ),
'target' => 'promotion_product_data',
'priority' => 70,
'class' => array()
Expand All @@ -491,18 +491,18 @@ function promotion_product_data() {
\wp_enqueue_script( 'nfd_promotion_product_data', NFD_ECOMMERCE_PLUGIN_URL . 'vendor/newfold-labs/wp-module-ecommerce/includes/Promotions.js', array('jquery'), '1.0', true);
$Promotion_data = array(
'redirectUrl' => $redirect_url,
'boostYourOnline' => __( 'Boost Your Online Store Sales', 'wp_module_ecommerce' ),
'maximizeYourSales' => __('Maximize your sales by creating effective','wp_module_ecommerce'),
'promotionsAndCampaigns' => __('promotions and campaigns like:','wp_module_ecommerce'),
'createPromotion' => __('Create a Promotion', 'wp_module_ecommerce'),
'free' => __('Free', 'wp_module_ecommerce'),
'shipping' => __('Shipping', 'wp_module_ecommerce'),
'buyOne' => __('Buy One', 'wp_module_ecommerce'),
'getOne' => __('Get One', 'wp_module_ecommerce'),
'freeGift' => __('Free Gift', 'wp_module_ecommerce'),
'inCart' => __('in Cart', 'wp_module_ecommerce'),
'frequently' => __('Frequently', 'wp_module_ecommerce'),
'boughtTogether' => __('Bought Together', 'wp_module_ecommerce'),
'boostYourOnline' => __( "Boost Your Online Store Sales", 'wp-module-ecommerce' ),
'maximizeYourSales' => __("Maximize your sales by creating effective",'wp-module-ecommerce'),
'promotionsAndCampaigns' => __("promotions and campaigns like:",'wp-module-ecommerce'),
'createPromotion' => __("Create a Promotion", 'wp-module-ecommerce'),
'free' => __("Free", 'wp-module-ecommerce'),
'shipping' => __("Shipping", 'wp-module-ecommerce'),
'buyOne' => __("Buy One", 'wp-module-ecommerce'),
'getOne' => __("Get One", 'wp-module-ecommerce'),
'freeGift' => __("Free Gift", 'wp-module-ecommerce'),
'inCart' => __("in Cart", 'wp-module-ecommerce'),
'frequently' => __("Frequently", 'wp-module-ecommerce'),
'boughtTogether' => __("Bought Together", 'wp-module-ecommerce'),

);
wp_localize_script('nfd_promotion_product_data', 'promotionData', $Promotion_data);
Expand Down
2 changes: 1 addition & 1 deletion includes/Partials/CaptiveFlow.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function register_options() {
),
),
'type' => 'object',
'description' => __( 'NFD eCommerce RazorPay Options', 'wp-module-ecommerce' ),
'description' => __( "NFD eCommerce RazorPay Options", 'wp-module-ecommerce' ),
)
);
}
Expand Down
56 changes: 43 additions & 13 deletions languages/wp-module-ecommerce-en_US-nfd-ecommerce-dependency.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"translation-revision-date": "YEAR-MO-DA HO:MI+ZONE",
"generator": "WP-CLI\/2.9.0",
"generator": "WP-CLI\/2.8.1",
"source": "build\/index.js",
"domain": "messages",
"locale_data": {
Expand Down Expand Up @@ -274,9 +274,6 @@
"Would you like to enable sales tax?": [
""
],
"Sales & Discounts": [
""
],
"Add Upsells, Cross-sells, and other Promotions to your store": [
""
],
Expand Down Expand Up @@ -382,9 +379,6 @@
"Import products": [
""
],
"Bookings": [
""
],
"Enable": [
""
],
Expand All @@ -394,9 +388,6 @@
"Create a booking": [
""
],
"Gift Cards": [
""
],
"Manage gift cards": [
""
],
Expand Down Expand Up @@ -556,9 +547,6 @@
"enter your \"%1$s\" key secret here.": [
""
],
"Your \"%1$s\" account have been connected": [
""
],
"Check payments": [
""
],
Expand Down Expand Up @@ -624,6 +612,48 @@
],
"Buy now": [
""
],
"Edit your site": [
""
],
"Stripe": [
""
],
"Stripe provides all the tools that you need to accept payments online around the world, including support for Apple Pay and Google Pay.": [
""
],
"A secure connection is required when running Stripe Payments in Live mode; plugin is currently enabled, but no gateway will be available until you secure connection to your site through a valid SSL certificate. If you already have a valid SSL certificate, please change the url in": [
""
],
"settings": [
""
],
"page": [
""
],
"One-click refunds": [
""
],
"Option to let customers save their credit card info securely": [
""
],
"Support ACH direct debt": [
""
],
" Uses many popular payment methods": [
""
],
"Sales & Promotions": [
""
],
"Create and manage X-sell, Upsell, sales and promotions through campaigns to boost your sales": [
""
],
"eCommerce Features": [
""
],
"New Order Received": [
""
]
}
}
Expand Down
Binary file modified languages/wp-module-ecommerce-en_US.mo
Binary file not shown.
Loading

0 comments on commit def3543

Please sign in to comment.