This commit is contained in:
2026-04-22 22:00:50 +02:00
parent 16be247ce1
commit e979fbe755
46 changed files with 5302 additions and 274 deletions

View File

@@ -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 ),
);