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

@@ -63,7 +63,7 @@ class Carei_Map_Widget extends \Elementor\Widget_Base {
}
public function get_title() {
return 'Carei Map';
return esc_html__( 'Carei Map', 'carei-reservation' );
}
public function get_icon() {
@@ -169,11 +169,11 @@ class Carei_Map_Widget extends \Elementor\Widget_Base {
$api_city = isset( $b['city'] ) ? trim( $b['city'] ) : '';
$api_city_title = mb_convert_case( $api_city, MB_CASE_TITLE, 'UTF-8' );
$address_lines = array( 'Oddział ' . $display_city );
$address_lines = array( sprintf( /* translators: %s: city name */ __( 'Oddział %s', 'carei-reservation' ), $display_city ) );
if ( $street ) {
$street_lower = mb_strtolower( $street, 'UTF-8' );
$has_prefix = preg_match( '/^(ul\.|al\.|pl\.|os\.)/u', $street_lower );
$address_lines[] = $has_prefix ? $street : 'ul. ' . $street;
$address_lines[] = $has_prefix ? $street : sprintf( /* translators: %s: street name */ __( 'ul. %s', 'carei-reservation' ), $street );
}
$zip_city = trim( $zip . ' ' . $api_city_title );
if ( $zip_city ) {