NOW translated in FRENCH!
-
Hi,
I just translated the extension into French.
I hope this will encourage you a little bit to continue its development and provide support.Regards.
-
Hello @bonaldi
Thanks for contacting us.
We have added text-domain in the latest version(1.6). So, Please update it and check it.
Please let me know if you have any input.
Thank you.
Hi,
OK, I will help you to make it fully translatable :In settings/epofw-admin-settings.php lines 25, 178, 181, 184, 187
Please useesc_html__
Missing text-domain in includes/class-epofw-field-table.php, lines 250 and 252
Tabs and line breaks break the translation with Poedit.
Replace in settings/epofw-about-info.php, line 23 with
<?php esc_html_e( 'Extra Product options are much easier, more flexible, and faster to use than variable products. Instead of generating thousands of variations, Enable customers to customize products with additional options such as text fields, checkboxes, radio buttons, dropdowns, and more. You can add extra product options to selected Products or selected Categories.', 'extra-product-options-for-woocommerce' ); ?></p>
Delete it as it is already declared in extra-product-options-for-woocommerce.php line 30 and also settings/epofw-constant.php line 19:
if ( ! defined( 'EPOFW_PLUGIN_BASENAME' ) ) { define( 'EPOFW_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); }
Delete this which does not work for translations in settings/epofw-constant.php line 31 to 39
if ( ! defined( 'EPOFW_FIELD_LABEL' ) ) { define( 'EPOFW_FIELD_LABEL', esc_html__( 'Field Title', 'extra-product-options-for-woocommerce' ) ); } if ( ! defined( 'EPOFW_FIELD_SUB_LABEL' ) ) { define( 'EPOFW_FIELD_SUB_LABEL', esc_html__( 'Field Sub Title', 'extra-product-options-for-woocommerce' ) ); } if ( ! defined( 'EPOFW_ADDITIONAL_RULES' ) ) { define( 'EPOFW_ADDITIONAL_RULES', esc_html__( 'Additional Rules', 'extra-product-options-for-woocommerce' ) ); }
settings/epofw-common-function.php line 148:
replace
'title' => esc_html( EPOFW_FIELD_LABEL ),
with
'title' => esc_html__( 'Field Title', 'extra-product-options-for-woocommerce' ),
settings/epofw-common-function.php line 1255:
replace
'title' => esc_html( EPOFW_FIELD_SUB_LABEL ),
with
'title' => esc_html__( 'Field Sub Title', 'extra-product-options-for-woocommerce' ),
settings/epofw-common-function.php line 1176:
replace
'title' => esc_html( EPOFW_FIELD_LABEL ),
with
'title' => esc_html__( 'Field Title', 'extra-product-options-for-woocommerce' ),
settings/epofw-common-function.php line 1255:
replace
'title' => esc_html( EPOFW_FIELD_LABEL ),
with
'title' => esc_html__( 'Field Title', 'extra-product-options-for-woocommerce' ),
settings/epofw-common-function.php line 1802:
replace
$field_title = esc_html( EPOFW_ADDITIONAL_RULES );
with
$field_title = esc_html__( 'Additional Rules', 'extra-product-options-for-woocommerce' );
Regards.
-
This reply was modified 4 years, 2 months ago by
Bonaldi.
Hello @bonaldi
Thanks for sharing feedback.
We have updated the language pot file and now all the strings are displaying there. You can also add the string in this file based on additional keywords using poedit. Please check the screenshot for that. We hope this will helpful for you.
Thanks
OK, thanks.
I suggest you to:replace all
<?php echo esc_html__( 'xxxxxx', 'extra-product-options-for-woocommerce' ); ?>
with
<?php esc_html_e( 'xxxxxx', 'extra-product-options-for-woocommerce' ); ?>
Missing in includes/class-epofw-field-table.php
$status = esc_html__( 'Enable', 'extra-product-options-for-woocommerce' ); $status = esc_html__( 'Disable', 'extra-product-options-for-woocommerce' );
Place currencySymbol before or after depending on the WooCommerce setting.
Integrate timepicker.regional for different languages.
Regards.
Hello @bonaldi
We have added string in pot file with esc_html_e function. Also fixed currencySymbol display based on WooCommerce settings. For the timepicker, We are working on this. We will publish as soon as possible.
Thanks.
Hi,
1. Updated in FRENCH for version 1.9.0.
2. Error in the repo readme: the screenshot descriptions do not match the image.
3. Not solved:
We have added string in pot file with esc_html_e function
./includes/class-epofw-field-setting.php:415: class="page-title-action"><?php echo esc_html( $text ); ?> ./includes/class-epofw-field-setting.php:438: echo esc_html( esc_html__( 'Field Listing', 'extra-product-options-for-woocommerce' ) ); ./includes/class-epofw-field-table.php:167: echo esc_html( $this->error->get_error_message() ); ./settings/epofw-common-function.php:1725: echo esc_html( $field_title ); ./settings/epofw-common-function.php:1769: echo esc_html( $field_title ); ./settings/epofw-common-function.php:1807: echo esc_html( $field_title ); ./settings/epofw-common-function.php:1835: <option value="<?php echo esc_attr( $cnd_key ); ?>" <?php selected( $aadditional_rule_data['condition'], $cnd_key ); ?>><?php echo esc_html( $cnd_name ); ?></option> ./settings/epofw-common-function.php:1856: <option value="<?php echo esc_attr( $cnd_key ); ?>" <?php selected( $aadditional_rule_data['operator'], $cnd_key ); ?>><?php echo esc_html( $cnd_name ); ?></option> ./settings/epofw-common-function.php:1902: <option value="<?php echo esc_attr( $cnd_key ); ?>"><?php echo esc_html( $cnd_name ); ?></option> ./settings/epofw-common-function.php:1916: <option value="<?php echo esc_attr( $cnd_key ); ?>"><?php echo esc_html( $cnd_name ); ?></option> ./settings/epofw-common-function.php:2041: echo esc_html( $field_title ); ./settings/epofw-common-function.php:2064: <?php echo esc_html( $feo_value_title ); ?> ./settings/epofw-common-function.php:2567: <option value="<?php echo esc_attr( $price_t_key ); ?>" <?php selected( $opt_price_type, $price_t_key ); ?>><?php echo esc_html( $price_type_value ); ?></option> ./settings/epofw-common-function.php:2594: <option value="<?php echo esc_attr( $price_t_key ); ?>"><?php echo esc_html( $price_type_value ); ?></option> ./settings/epofw-admin-settings.php:25: <h1 class="wp-heading-inline"><?php echo esc_html( 'Add Product Addon', 'extra-product-options-for-woocommerce' ); ?></h1> ./settings/epofw-admin-settings.php:129: <span><?php echo esc_html( $i ); ?></span> ./settings/epofw-admin-settings.php:132: <span><?php echo esc_html( $field_title ); ?></span> ./settings/epofw-admin-settings.php:135: <span><?php echo esc_html( $field_type ); ?></span> ./settings/epofw-admin-settings.php:138: <span><?php echo esc_html( $field_status ); ?></span> ./settings/epofw-admin-settings.php:141: <span><?php echo esc_html( $field_required ); ?></span> ./settings/epofw-admin-settings.php:178: <span><?php echo esc_html( 'Field 1', 'extra-product-options-for-woocommerce' ); ?></span> ./settings/epofw-admin-settings.php:181: <span><?php echo esc_html( 'text', 'extra-product-options-for-woocommerce' ); ?></span> ./settings/epofw-admin-settings.php:184: <span><?php echo esc_html( 'Disable', 'extra-product-options-for-woocommerce' ); ?></span> ./settings/epofw-admin-settings.php:187: <span><?php echo esc_html( 'False', 'extra-product-options-for-woocommerce' ); ?></span>
Regards.
-
This reply was modified 4 years, 2 months ago by
- The topic ‘NOW translated in FRENCH!’ is closed to new replies.