update
This commit is contained in:
@@ -20,7 +20,7 @@ class Carei_Branches_Widget extends \Elementor\Widget_Base {
|
||||
}
|
||||
|
||||
public function get_title() {
|
||||
return 'Carei Branches';
|
||||
return esc_html__( 'Carei Branches', 'carei-reservation' );
|
||||
}
|
||||
|
||||
public function get_icon() {
|
||||
@@ -92,11 +92,11 @@ class Carei_Branches_Widget extends \Elementor\Widget_Base {
|
||||
if ( $street ) {
|
||||
$street_lower = mb_strtolower( $street, 'UTF-8' );
|
||||
$has_prefix = preg_match( '/^(ul\.|al\.|pl\.|os\.)/u', $street_lower );
|
||||
$street = $has_prefix ? $street : 'ul. ' . $street;
|
||||
$street = $has_prefix ? $street : sprintf( /* translators: %s: street name */ __( 'ul. %s', 'carei-reservation' ), $street );
|
||||
}
|
||||
|
||||
$result[] = array(
|
||||
'name' => 'Oddział ' . $display_city,
|
||||
'name' => sprintf( /* translators: %s: city name */ __( 'Oddział %s', 'carei-reservation' ), $display_city ),
|
||||
'street' => $street,
|
||||
'zipCity' => trim( $zip . ' ' . $api_city_tc ),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user