Improve address labels to help translations

This commit is contained in:
Claudio Sanches 2017-03-21 15:54:23 -03:00
parent 3e7f902e75
commit b528e25759
5 changed files with 20 additions and 20 deletions

View File

@ -53,11 +53,11 @@ class WC_Admin_Profile {
'description' => '',
),
'billing_address_1' => array(
'label' => __( 'Address 1', 'woocommerce' ),
'label' => __( 'Address line 1', 'woocommerce' ),
'description' => '',
),
'billing_address_2' => array(
'label' => __( 'Address 2', 'woocommerce' ),
'label' => __( 'Address line 2', 'woocommerce' ),
'description' => '',
),
'billing_city' => array(
@ -106,11 +106,11 @@ class WC_Admin_Profile {
'description' => '',
),
'shipping_address_1' => array(
'label' => __( 'Address 1', 'woocommerce' ),
'label' => __( 'Address line 1', 'woocommerce' ),
'description' => '',
),
'shipping_address_2' => array(
'label' => __( 'Address 2', 'woocommerce' ),
'label' => __( 'Address line 2', 'woocommerce' ),
'description' => '',
),
'shipping_city' => array(

View File

@ -52,11 +52,11 @@ class WC_Meta_Box_Order_Data {
'show' => false,
),
'address_1' => array(
'label' => __( 'Address 1', 'woocommerce' ),
'label' => __( 'Address line 1', 'woocommerce' ),
'show' => false,
),
'address_2' => array(
'label' => __( 'Address 2', 'woocommerce' ),
'label' => __( 'Address line 2', 'woocommerce' ),
'show' => false,
),
'city' => array(
@ -101,11 +101,11 @@ class WC_Meta_Box_Order_Data {
'show' => false,
),
'address_1' => array(
'label' => __( 'Address 1', 'woocommerce' ),
'label' => __( 'Address line 1', 'woocommerce' ),
'show' => false,
),
'address_2' => array(
'label' => __( 'Address 2', 'woocommerce' ),
'label' => __( 'Address line 2', 'woocommerce' ),
'show' => false,
),
'city' => array(

View File

@ -216,12 +216,12 @@ class WC_REST_Customers_Controller extends WC_REST_Customers_V1_Controller {
'context' => array( 'view', 'edit' ),
),
'address_1' => array(
'description' => __( 'Address 1', 'woocommerce' ),
'description' => __( 'Address line 1', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
'address_2' => array(
'description' => __( 'Address 2', 'woocommerce' ),
'description' => __( 'Address line 2', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
@ -279,12 +279,12 @@ class WC_REST_Customers_Controller extends WC_REST_Customers_V1_Controller {
'context' => array( 'view', 'edit' ),
),
'address_1' => array(
'description' => __( 'Address 1', 'woocommerce' ),
'description' => __( 'Address line 1', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
'address_2' => array(
'description' => __( 'Address 2', 'woocommerce' ),
'description' => __( 'Address line 2', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),

View File

@ -954,12 +954,12 @@ class WC_REST_Orders_Controller extends WC_REST_Legacy_Orders_Controller {
'context' => array( 'view', 'edit' ),
),
'address_1' => array(
'description' => __( 'Address 1', 'woocommerce' ),
'description' => __( 'Address line 1', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
'address_2' => array(
'description' => __( 'Address 2', 'woocommerce' ),
'description' => __( 'Address line 2', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
@ -1017,12 +1017,12 @@ class WC_REST_Orders_Controller extends WC_REST_Legacy_Orders_Controller {
'context' => array( 'view', 'edit' ),
),
'address_1' => array(
'description' => __( 'Address 1', 'woocommerce' ),
'description' => __( 'Address line 1', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
'address_2' => array(
'description' => __( 'Address 2', 'woocommerce' ),
'description' => __( 'Address line 2', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),

View File

@ -1033,12 +1033,12 @@ class WC_REST_Orders_V1_Controller extends WC_REST_Posts_Controller {
'context' => array( 'view', 'edit' ),
),
'address_1' => array(
'description' => __( 'Address 1.', 'woocommerce' ),
'description' => __( 'Address line 1.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
'address_2' => array(
'description' => __( 'Address 2.', 'woocommerce' ),
'description' => __( 'Address line 2.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
@ -1096,12 +1096,12 @@ class WC_REST_Orders_V1_Controller extends WC_REST_Posts_Controller {
'context' => array( 'view', 'edit' ),
),
'address_1' => array(
'description' => __( 'Address 1.', 'woocommerce' ),
'description' => __( 'Address line 1.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
'address_2' => array(
'description' => __( 'Address 2.', 'woocommerce' ),
'description' => __( 'Address line 2.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),