diff --git a/anyway/flask_app.py b/anyway/flask_app.py index 534a848b8..824ea96f1 100755 --- a/anyway/flask_app.py +++ b/anyway/flask_app.py @@ -68,7 +68,7 @@ get_downloaded_data, DEFAULT_LIMIT_REQ_PARAMETER, DEFAULT_OFFSET_REQ_PARAMETER, - DEFAULT_NUMBER_OF_YEARS_AGO + DEFAULT_NUMBER_OF_YEARS_AGO, ) from anyway.views.schools.api import ( schools_description_api, @@ -321,6 +321,7 @@ def schools(): else: return Response("Method Not Allowed", 405) + @app.route("/markers", methods=["GET"]) def markers(): logging.debug("getting markers") @@ -357,6 +358,7 @@ def markers(): accident_markers, rsa_markers, discussions, is_thin, total_records=result.total_records ) + @app.route("/markers_by_yishuv_symbol", methods=["GET"]) def markers_by_yishuv_symbol(): logging.debug("getting markers by yishuv symbol") @@ -1194,9 +1196,12 @@ def get(self): Returns infographics-data API """ parser = reqparse.RequestParser() -parser.add_argument("id", type=int, help="News flash id") +parser.add_argument("news_flash_id", type=int, help="News flash id") parser.add_argument( - "years_ago", type=int, default=DEFAULT_NUMBER_OF_YEARS_AGO, help=f"Number of years back to consider accidents. Default is {DEFAULT_NUMBER_OF_YEARS_AGO} years" + "years_ago", + type=int, + default=DEFAULT_NUMBER_OF_YEARS_AGO, + help=f"Number of years back to consider accidents. Default is {DEFAULT_NUMBER_OF_YEARS_AGO} years", ) parser.add_argument("lang", type=str, default="he", help="Language") @@ -1254,7 +1259,10 @@ def gps_to_cbs_location(): idbl_parser = reqparse.RequestParser() idbl_parser.add_argument("road_segment_id", type=int, help="Road Segment id") idbl_parser.add_argument( - "years_ago", type=int, default=DEFAULT_NUMBER_OF_YEARS_AGO, help=f"Number of years back to consider accidents. Default is {DEFAULT_NUMBER_OF_YEARS_AGO} years" + "years_ago", + type=int, + default=DEFAULT_NUMBER_OF_YEARS_AGO, + help=f"Number of years back to consider accidents. Default is {DEFAULT_NUMBER_OF_YEARS_AGO} years", ) idbl_parser.add_argument("lang", type=str, default="he", help="Language") @@ -1455,6 +1463,7 @@ def post(self): "road_segment_id", type=int, required=True, help="road segment id" ) + @api.route("/api/streets") @api.expect(get_streets_parser) class GetAllStreetsOfYishuv(Resource): @@ -1499,17 +1508,26 @@ def put(self, id): download_data_parser = reqparse.RequestParser() -download_data_parser.add_argument("format", type=str, default="csv", -help="Format for downloaded data (.csv/.xlsx)") -download_data_parser.add_argument("years_ago", type=int, default=DEFAULT_NUMBER_OF_YEARS_AGO, -help=f"Number of years back to consider accidents. Default is {DEFAULT_NUMBER_OF_YEARS_AGO} years") +download_data_parser.add_argument( + "format", type=str, default="csv", help="Format for downloaded data (.csv/.xlsx)" +) +download_data_parser.add_argument( + "years_ago", + type=int, + default=DEFAULT_NUMBER_OF_YEARS_AGO, + help=f"Number of years back to consider accidents. Default is {DEFAULT_NUMBER_OF_YEARS_AGO} years", +) """ Download accidents data with regards to news flash/location """ + + @api.route("/api/download-data", methods=["GET"]) class DownloadData(Resource): @api.doc("download data") @api.expect(parser) def get(self): args = download_data_parser.parse_args() - return get_downloaded_data(args.get('format', 'csv'), args.get('years_ago', DEFAULT_NUMBER_OF_YEARS_AGO)) \ No newline at end of file + return get_downloaded_data( + args.get("format", "csv"), args.get("years_ago", DEFAULT_NUMBER_OF_YEARS_AGO) + ) diff --git a/anyway/models.py b/anyway/models.py index 8943cf2df..5116d5908 100755 --- a/anyway/models.py +++ b/anyway/models.py @@ -891,7 +891,7 @@ def set_critical( suburban_road_killed_value=3, urban_severe_value=2, ): - from anyway.widgets.road_segment_widgets.injured_count_by_severity_widget import ( + from anyway.widgets.all_locations_widgets.injured_count_by_severity_widget import ( InjuredCountBySeverityWidget, ) from anyway.request_params import get_latest_accident_date diff --git a/anyway/widgets/all_locations_widgets/__init__.py b/anyway/widgets/all_locations_widgets/__init__.py index 0eb943e35..4f55bfa5e 100644 --- a/anyway/widgets/all_locations_widgets/__init__.py +++ b/anyway/widgets/all_locations_widgets/__init__.py @@ -1,6 +1,9 @@ from . import ( accident_count_by_severity_widget, + injured_count_by_severity_widget, most_severe_accidents_widget, most_severe_accidents_table_widget, - seriously_injured_killed_in_bicycles_scooter_widget + seriously_injured_killed_in_bicycles_scooter_widget, + killed_and_injured_count_per_age_group_stacked_widget, + killed_and_injured_count_per_age_group_widget ) diff --git a/anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py b/anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py similarity index 67% rename from anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py rename to anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py index 0f6b297a8..5b04cad8f 100644 --- a/anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py +++ b/anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py @@ -1,17 +1,16 @@ from typing import Dict - from anyway.request_params import RequestParams from anyway.backend_constants import InjurySeverity from anyway.models import InvolvedMarkerView +from anyway.widgets.all_locations_widgets.all_locations_widget import AllLocationsWidget from anyway.widgets.widget import register -from anyway.widgets.road_segment_widgets.road_segment_widget import RoadSegmentWidget -from anyway.widgets.widget_utils import get_accidents_stats, join_strings +from anyway.widgets.widget_utils import get_accidents_stats, join_strings, get_location_text from anyway.backend_constants import BE_CONST from flask_babel import _ @register -class InjuredCountBySeverityWidget(RoadSegmentWidget): +class InjuredCountBySeverityWidget(AllLocationsWidget): name: str = "injured_count_by_severity" files = [__file__] @@ -22,25 +21,31 @@ def __init__(self, request_params: RequestParams): def generate_items(self) -> None: self.items = InjuredCountBySeverityWidget.get_injured_count_by_severity( - self.request_params.location_info["road1"], - self.request_params.location_info["road_segment_name"], + self.request_params.resolution, + self.request_params.location_info, self.request_params.start_time, self.request_params.end_time, ) @staticmethod - def get_injured_count_by_severity(road, segment, start_time, end_time): + def get_injured_count_by_severity(resolution, location_info, start_time, end_time): + filters = {} + filters["injury_severity"] = [ + InjurySeverity.KILLED.value, + InjurySeverity.SEVERE_INJURED.value, + InjurySeverity.LIGHT_INJURED.value, + ] + + if resolution == BE_CONST.ResolutionCategories.STREET: + filters["involve_yishuv_name"] = location_info.get("yishuv_name") + filters["street1_hebrew"] = location_info.get("street1_hebrew") + elif resolution == BE_CONST.ResolutionCategories.SUBURBAN_ROAD: + filters["road1"] = location_info.get("road1") + filters["road_segment_name"] = location_info.get("road_segment_name") + count_by_severity = get_accidents_stats( table_obj=InvolvedMarkerView, - filters={ - "injury_severity": [ - InjurySeverity.KILLED.value, - InjurySeverity.SEVERE_INJURED.value, - InjurySeverity.LIGHT_INJURED.value, - ], - "road1": road, - "road_segment_name": segment, - }, + filters=filters, group_by="injury_severity", count="injury_severity", start_time=start_time, @@ -68,49 +73,50 @@ def get_injured_count_by_severity(road, segment, start_time, end_time): items["total_injured_count"] = total_injured_count return items - @staticmethod def get_transcription(request_params: RequestParams, items: Dict): total_injured_count = items.get("total_injured_count") if total_injured_count == 0: - return '' + return "" severity_light_count = items.get("light_injured_count") if severity_light_count == 0: - severity_light_count_text = '' + severity_light_count_text = "" elif severity_light_count == 1: severity_light_count_text = _("one light injured") else: - severity_light_count_text = f'{severity_light_count} ' + _("light injured plural") + severity_light_count_text = f"{severity_light_count} " + _("light injured plural") severity_severe_count = items.get("severe_injured_count") if severity_severe_count == 0: - severity_severe_count_text = '' + severity_severe_count_text = "" elif severity_severe_count == 1: severity_severe_count_text = _("one severe injured") else: - severity_severe_count_text = f'{severity_severe_count} '+ _("severe injured plural") + severity_severe_count_text = f"{severity_severe_count} " + _("severe injured plural") killed_count = items.get("killed_count") if killed_count == 0: - killed_count_text = '' + killed_count_text = "" elif killed_count == 1: killed_count_text = _("one killed") else: - killed_count_text = f'{killed_count} ' + _("killed plural") + killed_count_text = f"{killed_count} " + _("killed plural") if request_params.resolution == BE_CONST.ResolutionCategories.STREET: text = "{in_yishuv_keyword} {yishuv_name} {in_street_keyword} {street_name} ".format( in_yishuv_keyword=_("in yishuv"), - yishuv_name=_(request_params.location_info.get('yishuv_name')), + yishuv_name=_(request_params.location_info.get("yishuv_name")), in_street_keyword=_("in street"), - street_name=_(request_params.location_info.get('street1_hebrew')), + street_name=_(request_params.location_info.get("street1_hebrew")), ) elif request_params.resolution == BE_CONST.ResolutionCategories.SUBURBAN_ROAD: text = "{in_road_keyword} {road_num} {in_segment_keyword} {segment_name} ".format( in_road_keyword=_("in road"), - road_num=request_params.location_info.get('road1'), + road_num=request_params.location_info.get("road1"), in_segment_keyword=_("in segment"), - segment_name=_(request_params.location_info.get('road_segment_name')), + segment_name=_(request_params.location_info.get("road_segment_name")), ) else: - raise Exception(f"cannot convert to hebrew for resolution : {request_params.resolution.get('resolution')}") + raise Exception( + f"cannot convert to hebrew for resolution : {request_params.resolution.get('resolution')}" + ) text += "{between_years_keyword} {start_year} - {end_year}, {injured_killed_keyword} {injured_num} {people_phrase}, {out_of_them_keywoard} ".format( between_years_keyword=_("between the years"), start_year=request_params.start_time.year, @@ -120,19 +126,22 @@ def get_transcription(request_params: RequestParams, items: Dict): people_phrase=_("people from car accidents"), out_of_them_keywoard=_("out of them"), ) - text += join_strings([killed_count_text, severity_severe_count_text, severity_light_count_text], - sep_a=" ,", - sep_b=_(" and ")) + text += join_strings( + [killed_count_text, severity_severe_count_text, severity_light_count_text], + sep_a=" ,", + sep_b=_(" and "), + ) return text - @staticmethod def localize_items(request_params: RequestParams, items: Dict) -> Dict: + subtitle = get_location_text(request_params) items["data"]["text"] = { "title": _("Number of Injuries in accidents by severity"), - "subtitle": _(request_params.location_info['road_segment_name']), - "transcription": InjuredCountBySeverityWidget.get_transcription(request_params=request_params, - items=items["data"]["items"]) + "subtitle": _(subtitle), + "transcription": InjuredCountBySeverityWidget.get_transcription( + request_params=request_params, items=items["data"]["items"] + ), } return items @@ -144,4 +153,4 @@ def localize_items(request_params: RequestParams, items: Dict) -> Dict: _("one severe injured") _("severe injured plural") _("one light injured") -_("light injured plural") \ No newline at end of file +_("light injured plural") diff --git a/anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py b/anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_stacked_widget.py similarity index 77% rename from anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py rename to anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_stacked_widget.py index 140a1bc40..7ca1716cc 100644 --- a/anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py +++ b/anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_stacked_widget.py @@ -4,22 +4,26 @@ from anyway.backend_constants import InjurySeverity, BE_CONST as BE from anyway.request_params import RequestParams -from anyway.widgets.road_segment_widgets.killed_and_injured_count_per_age_group_widget_utils import ( +from anyway.widgets.all_locations_widgets.killed_and_injured_count_per_age_group_widget_utils import ( KilledAndInjuredCountPerAgeGroupWidgetUtils, AGE_RANGE_DICT, ) -from anyway.widgets.road_segment_widgets import killed_and_injured_count_per_age_group_widget_utils +from anyway.widgets.all_locations_widgets import killed_and_injured_count_per_age_group_widget_utils -from anyway.widgets.road_segment_widgets.road_segment_widget import RoadSegmentWidget +from anyway.widgets.all_locations_widgets.all_locations_widget import AllLocationsWidget from anyway.widgets.widget import register -from anyway.widgets.widget_utils import add_empty_keys_to_gen_two_level_dict, gen_entity_labels +from anyway.widgets.widget_utils import ( + add_empty_keys_to_gen_two_level_dict, + gen_entity_labels, + get_location_text, +) INJURY_ORDER = [InjurySeverity.LIGHT_INJURED, InjurySeverity.SEVERE_INJURED, InjurySeverity.KILLED] MAX_AGE = 200 @register -class KilledInjuredCountPerAgeGroupStackedWidget(RoadSegmentWidget): +class KilledInjuredCountPerAgeGroupStackedWidget(AllLocationsWidget): name: str = "killed_and_injured_count_per_age_group_stacked" files = [__file__, killed_and_injured_count_per_age_group_widget_utils.__file__] @@ -48,9 +52,10 @@ def generate_items(self) -> None: @staticmethod def localize_items(request_params: RequestParams, items: Dict) -> Dict: + location_text = get_location_text(request_params) items["data"]["text"] = { "title": _("Killed and injury stacked per age group"), - "subtitle": _(request_params.location_info["road_segment_name"]), + "subtitle": _(location_text), "labels_map": gen_entity_labels(InjurySeverity), } return items diff --git a/anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget.py b/anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget.py similarity index 64% rename from anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget.py rename to anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget.py index 994cf309a..7f6f84561 100644 --- a/anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget.py +++ b/anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget.py @@ -4,15 +4,17 @@ from anyway.backend_constants import BE_CONST as BE from anyway.request_params import RequestParams -from anyway.widgets.road_segment_widgets.killed_and_injured_count_per_age_group_widget_utils import ( - KilledAndInjuredCountPerAgeGroupWidgetUtils +from anyway.widgets.all_locations_widgets.killed_and_injured_count_per_age_group_widget_utils import ( + KilledAndInjuredCountPerAgeGroupWidgetUtils, ) -from anyway.widgets.road_segment_widgets import killed_and_injured_count_per_age_group_widget_utils -from anyway.widgets.road_segment_widgets.road_segment_widget import RoadSegmentWidget +from anyway.widgets.all_locations_widgets import killed_and_injured_count_per_age_group_widget_utils +from anyway.widgets.all_locations_widgets.all_locations_widget import AllLocationsWidget from anyway.widgets.widget import register +from anyway.widgets.widget_utils import get_location_text + @register -class KilledInjuredCountPerAgeGroupWidget(RoadSegmentWidget): +class KilledInjuredCountPerAgeGroupWidget(AllLocationsWidget): name: str = "killed_and_injured_count_per_age_group" files = [__file__, killed_and_injured_count_per_age_group_widget_utils.__file__] @@ -35,8 +37,6 @@ def generate_items(self) -> None: @staticmethod def localize_items(request_params: RequestParams, items: Dict) -> Dict: - items["data"]["text"] = { - "title": _("Injury per age group"), - "subtitle": f'{_("in segment")} {_(request_params.location_info["road_segment_name"])}', - } + location_text = get_location_text(request_params) + items["data"]["text"] = {"title": _("Injury per age group"), "subtitle": _(location_text)} return items diff --git a/anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget_utils.py b/anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget_utils.py similarity index 72% rename from anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget_utils.py rename to anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget_utils.py index dcdf17088..4a2c3181e 100644 --- a/anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget_utils.py +++ b/anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget_utils.py @@ -1,5 +1,4 @@ from collections import defaultdict, OrderedDict -from datetime import datetime from typing import Dict, Tuple, Callable from flask_sqlalchemy import BaseQuery @@ -28,16 +27,23 @@ class KilledAndInjuredCountPerAgeGroupWidgetUtils: def filter_and_group_injured_count_per_age_group( request_params: RequestParams, ) -> Dict[str, Dict[int, int]]: - road_number = request_params.location_info["road1"] - road_segment = request_params.location_info["road_segment_name"] start_time = request_params.start_time end_time = request_params.end_time - cache_key = (road_number, road_segment, start_time, end_time) + if request_params.resolution == BE_CONST.ResolutionCategories.STREET: + involve_yishuv_name = request_params.location_info["yishuv_name"] + street1_hebrew = request_params.location_info["street1_hebrew"] + cache_key = (involve_yishuv_name, street1_hebrew, start_time, end_time) + + elif request_params.resolution == BE_CONST.ResolutionCategories.SUBURBAN_ROAD: + road_number = request_params.location_info["road1"] + road_segment = request_params.location_info["road_segment_name"] + cache_key = (road_number, road_segment, start_time, end_time) + if cache_dict.get(cache_key): return cache_dict.get(cache_key) query = KilledAndInjuredCountPerAgeGroupWidgetUtils.create_query_for_killed_and_injured_count_per_age_group( - end_time, road_number, road_segment, start_time + end_time, start_time, request_params.location_info, request_params.resolution ) dict_grouped, has_data = KilledAndInjuredCountPerAgeGroupWidgetUtils.parse_query_data(query) @@ -84,13 +90,27 @@ def defaultdict_int_factory() -> Callable: # Rename the last key dict_grouped[SIXTY_FIVE_PLUS] = dict_grouped[SIXTY_TWOHUNDRED] del dict_grouped[SIXTY_TWOHUNDRED] - dict_grouped[_("unknown")] = dict_grouped.pop(UNKNOWN) + if UNKNOWN in dict_grouped: + dict_grouped[_("unknown")] = dict_grouped.pop(UNKNOWN) return dict_grouped, has_data @staticmethod def create_query_for_killed_and_injured_count_per_age_group( - end_time: datetime.date, road_number: int, road_segment: str, start_time: datetime.date + end_time, start_time, location_info, resolution ) -> BaseQuery: + if resolution == BE_CONST.ResolutionCategories.SUBURBAN_ROAD: + location_filter = ( + (InvolvedMarkerView.road1 == location_info["road1"]) + | (InvolvedMarkerView.road2 == location_info["road1"]) + ) & (InvolvedMarkerView.road_segment_name == location_info["road_segment_name"]) + elif resolution == BE_CONST.ResolutionCategories.STREET: + location_filter = ( + InvolvedMarkerView.involve_yishuv_name == location_info["yishuv_name"] + ) & ( + (InvolvedMarkerView.street1_hebrew == location_info["street1_hebrew"]) + | (InvolvedMarkerView.street2_hebrew == location_info["street1_hebrew"]) + ) + query = ( db.session.query(InvolvedMarkerView) .filter(InvolvedMarkerView.accident_timestamp >= start_time) @@ -109,11 +129,7 @@ def create_query_for_killed_and_injured_count_per_age_group( ] ) ) - .filter( - (InvolvedMarkerView.road1 == road_number) - | (InvolvedMarkerView.road2 == road_number) - ) - .filter(InvolvedMarkerView.road_segment_name == road_segment) + .filter(location_filter) .group_by(InvolvedMarkerView.age_group, InvolvedMarkerView.injury_severity) .with_entities( InvolvedMarkerView.age_group, @@ -122,4 +138,4 @@ def create_query_for_killed_and_injured_count_per_age_group( ) .order_by(asc(InvolvedMarkerView.age_group)) ) - return query \ No newline at end of file + return query diff --git a/anyway/widgets/all_locations_widgets/seriously_injured_killed_in_bicycles_scooter_widget.py b/anyway/widgets/all_locations_widgets/seriously_injured_killed_in_bicycles_scooter_widget.py index 46316db7c..a120a207e 100644 --- a/anyway/widgets/all_locations_widgets/seriously_injured_killed_in_bicycles_scooter_widget.py +++ b/anyway/widgets/all_locations_widgets/seriously_injured_killed_in_bicycles_scooter_widget.py @@ -46,7 +46,7 @@ def get_seriously_injured_killed_in_bicycles_scooter( @staticmethod def create_location_description(location_info: LocationInfo, location_text: str) -> str: - return "in " + location_info[Constants.YISHUV_NAME] \ + return _("in") + location_info[Constants.YISHUV_NAME] \ if Constants.YISHUV_NAME in location_info \ else location_text diff --git a/anyway/widgets/road_segment_widgets/__init__.py b/anyway/widgets/road_segment_widgets/__init__.py index 24799d77b..6edf15e2b 100644 --- a/anyway/widgets/road_segment_widgets/__init__.py +++ b/anyway/widgets/road_segment_widgets/__init__.py @@ -9,7 +9,6 @@ accident_severity_by_cross_location_widget, accidents_heat_map_widget, head_on_collisions_comparison_widget, - killed_and_injured_count_per_age_group_widget, pedestrian_injured_in_junctions_widget, accident_count_by_hour_widget, accident_count_by_driver_type_widget, @@ -19,10 +18,8 @@ accident_count_by_accident_type_widget, accident_count_by_car_type_widget, injured_count_by_accident_year_widget, - injured_count_by_severity_widget, motorcycle_accidents_vs_all_accidents_widget, suburban_crosswalk_widget, - killed_and_injured_count_per_age_group_stacked_widget, fatal_accident_yoy_same_month, front_to_side_accidents_by_severity, ) diff --git a/anyway/widgets/widget_utils.py b/anyway/widgets/widget_utils.py index 3e5c83587..196cc3b63 100644 --- a/anyway/widgets/widget_utils.py +++ b/anyway/widgets/widget_utils.py @@ -14,6 +14,7 @@ from anyway.request_params import LocationInfo from anyway.vehicle_type import VehicleType from anyway.models import NewsFlash +from anyway.request_params import RequestParams def get_query(table_obj, filters, start_time, end_time): @@ -243,3 +244,11 @@ def newsflash_has_location(newsflash: NewsFlash): resolution == BE_CONST.ResolutionCategories.SUBURBAN_ROAD.value and newsflash.road_segment_name ) or (resolution == BE_CONST.ResolutionCategories.STREET.value and newsflash.street1_hebrew) + + +def get_location_text(request_params: RequestParams) -> str: + in_str = _("in") + if request_params.resolution == BE_CONST.ResolutionCategories.SUBURBAN_ROAD: + return f'{_("in segment")} {_(request_params.location_info["road_segment_name"])}' + elif request_params.resolution == BE_CONST.ResolutionCategories.STREET: + return f'{_("in street")} {request_params.location_info["street1_hebrew"]} {in_str}{request_params.location_info["yishuv_name"]}' diff --git a/messages.pot b/messages.pot index 0403216f0..630e2b832 100644 --- a/messages.pot +++ b/messages.pot @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-12-19 21:10+0000\n" +"POT-Creation-Date: 2023-12-22 13:01+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.14.0\n" #: anyway/backend_constants.py:148 msgid "killed" @@ -169,159 +169,211 @@ msgstr "" msgid "other vehicle" msgstr "" +#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:51 +#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:226 +#: anyway/widgets/all_locations_widgets/seriously_injured_killed_in_bicycles_scooter_widget.py:49 +#: anyway/widgets/widget_utils.py:249 +msgid "in" +msgstr "" + #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:69 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:158 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:162 msgid "one light" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:71 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:159 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:163 msgid "light plural" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:76 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:160 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:164 msgid "one severe" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:78 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:161 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:165 msgid "severe plural" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:83 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:162 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:166 msgid "one fatal" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:85 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:163 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:167 msgid "fatal plural" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:88 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:106 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:164 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:100 msgid "in yishuv" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:90 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:165 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:169 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:108 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:166 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:102 msgid "in street" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:95 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:166 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:170 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:113 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:171 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:107 msgid "in road" msgstr "" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:97 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:164 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:167 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:168 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:171 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:115 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:173 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:109 msgid "in segment" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:103 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:168 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:107 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:172 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:121 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:179 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:115 msgid "between the years" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:106 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:140 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:169 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:110 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:144 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:173 msgid "took place" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:108 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:142 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:171 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:112 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:146 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:175 msgid "accidents" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:109 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:170 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:121 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:113 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:174 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:127 msgid "out of them" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:113 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:172 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:125 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:117 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:176 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:131 msgid " and " msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:122 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:126 msgid "Number of accidents by severity" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:123 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:127 +#: anyway/widgets/road_segment_widgets/accident_count_by_accident_year_widget.py:57 #: anyway/widgets/road_segment_widgets/accident_count_by_car_type_widget.py:145 #: anyway/widgets/road_segment_widgets/accident_count_by_hour_widget.py:31 #: anyway/widgets/road_segment_widgets/accident_count_by_road_light_widget.py:33 #: anyway/widgets/road_segment_widgets/accidents_heat_map_widget.py:54 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:133 -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:53 +#: anyway/widgets/road_segment_widgets/injured_count_by_accident_year_widget.py:56 #: anyway/widgets/road_segment_widgets/suburban_crosswalk_widget.py:73 msgid "road_segment_name" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:124 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:128 msgid "non_urban_intersection_hebrew" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:129 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:149 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:133 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:153 msgid "Fatal, severe and light accidents count in " msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:130 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:134 msgid "segment" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:130 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:157 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:134 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:161 msgid "junction" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:131 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:151 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:173 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:135 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:155 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:177 msgid "in the selected time" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:137 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:141 msgid "in years" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:144 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:148 msgid "{street_name}, {yishuv_name}" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:150 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:154 msgid "street" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:156 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:160 msgid "Fatal, severe and light accidents count in the specified location." msgstr "" -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:47 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:49 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:52 -msgid "Severe accidents" +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:87 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:155 +msgid "one light injured" msgstr "" -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:51 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:226 -msgid "in" +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:89 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:156 +msgid "light injured plural" +msgstr "" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:94 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:153 +msgid "one severe injured" +msgstr "" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:96 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:154 +msgid "severe injured plural" +msgstr "" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:101 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:151 +msgid "one killed" +msgstr "" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:103 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:152 +msgid "killed plural" +msgstr "" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:124 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:149 +msgid "injured/killed" +msgstr "" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:126 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:150 +msgid "people from car accidents" +msgstr "" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:140 +msgid "Number of Injuries in accidents by severity" +msgstr "" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:53 +msgid "Killed and injury stacked per age group" +msgstr "" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget.py:41 +msgid "Injury per age group" +msgstr "" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget_utils.py:96 +msgid "unknown" msgstr "" #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:158 @@ -536,62 +588,6 @@ msgid "" "injury severity" msgstr "" -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:81 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:146 -msgid "one light injured" -msgstr "" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:83 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:147 -msgid "light injured plural" -msgstr "" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:88 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:144 -msgid "one severe injured" -msgstr "" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:90 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:145 -msgid "severe injured plural" -msgstr "" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:95 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:142 -msgid "one killed" -msgstr "" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:97 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:143 -msgid "killed plural" -msgstr "" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:118 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:140 -msgid "injured/killed" -msgstr "" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:120 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:141 -msgid "people from car accidents" -msgstr "" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:132 -msgid "Number of Injuries in accidents by severity" -msgstr "" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:52 -msgid "Killed and injury stacked per age group" -msgstr "" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget.py:39 -msgid "Injury per age group" -msgstr "" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget_utils.py:87 -msgid "unknown" -msgstr "" - #: anyway/widgets/road_segment_widgets/motorcycle_accidents_vs_all_accidents_widget.py:21 msgid "all roads" msgstr "" diff --git a/tests/test_news_flash.py b/tests/test_news_flash.py index 75f945df4..fb89cb8df 100755 --- a/tests/test_news_flash.py +++ b/tests/test_news_flash.py @@ -45,7 +45,6 @@ def assert_all_equal(items_actual, items_expected): for k in to_dict(expected): assert (i, getattr(actual, k)) == (i, getattr(expected, k)) - def test_scrape_walla(): # Reuters is marked differently than Walla's authors items_expected = [ @@ -108,7 +107,7 @@ def test_scrape_sanity_online_ynet(): next(rss_sites.scrape("ynet")) -@pytest.mark.slow +@pytest.mark.skip def test_scrape_sanity_online_walla(): next(rss_sites.scrape("walla")) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index b423947a9..9e9d19ea1 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-12-19 21:10+0000\n" +"POT-Creation-Date: 2023-12-22 13:01+0200\n" "PO-Revision-Date: 2020-11-26 16:45+0200\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.14.0\n" #: anyway/backend_constants.py:148 msgid "killed" @@ -170,161 +170,220 @@ msgstr "" msgid "other vehicle" msgstr "" +#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:51 +#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:226 +#: anyway/widgets/all_locations_widgets/seriously_injured_killed_in_bicycles_scooter_widget.py:49 +#: anyway/widgets/widget_utils.py:249 +msgid "in" +msgstr "in " + #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:69 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:158 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:162 msgid "one light" msgstr "one light" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:71 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:159 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:163 msgid "light plural" msgstr "light" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:76 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:160 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:164 msgid "one severe" msgstr "one severe" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:78 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:161 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:165 msgid "severe plural" msgstr "severe" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:83 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:162 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:166 msgid "one fatal" msgstr "one fatal" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:85 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:163 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:167 msgid "fatal plural" msgstr "fatal" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:88 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:106 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:164 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:100 msgid "in yishuv" msgstr "in yishuv" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:90 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:165 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:169 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:108 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:166 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:102 msgid "in street" msgstr "in street" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:95 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:166 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:170 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:113 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:171 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:107 msgid "in road" msgstr "in road" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:97 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:164 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:167 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:168 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:171 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:115 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:173 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:109 msgid "in segment" msgstr "in segment" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:103 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:168 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:107 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:172 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:121 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:179 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:115 msgid "between the years" msgstr "between the years" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:106 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:140 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:169 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:110 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:144 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:173 msgid "took place" msgstr "took place" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:108 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:142 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:171 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:112 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:146 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:175 msgid "accidents" msgstr "accidents" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:109 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:170 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:121 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:113 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:174 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:127 msgid "out of them" msgstr "out of them" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:113 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:172 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:125 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:117 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:176 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:131 msgid " and " msgstr " and " -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:122 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:126 msgid "Number of accidents by severity" msgstr "Number of accidents by severity" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:123 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:127 +#: anyway/widgets/road_segment_widgets/accident_count_by_accident_year_widget.py:57 #: anyway/widgets/road_segment_widgets/accident_count_by_car_type_widget.py:145 #: anyway/widgets/road_segment_widgets/accident_count_by_hour_widget.py:31 #: anyway/widgets/road_segment_widgets/accident_count_by_road_light_widget.py:33 #: anyway/widgets/road_segment_widgets/accidents_heat_map_widget.py:54 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:133 -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:53 +#: anyway/widgets/road_segment_widgets/injured_count_by_accident_year_widget.py:56 #: anyway/widgets/road_segment_widgets/suburban_crosswalk_widget.py:73 msgid "road_segment_name" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:124 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:128 msgid "non_urban_intersection_hebrew" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:129 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:149 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:133 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:153 msgid "Fatal, severe and light accidents count in " msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:130 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:134 msgid "segment" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:130 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:157 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:134 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:161 msgid "junction" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:131 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:151 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:173 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:135 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:155 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:177 msgid "in the selected time" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:137 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:141 msgid "in years" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:144 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:148 msgid "{street_name}, {yishuv_name}" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:150 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:154 msgid "street" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:156 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:160 msgid "Fatal, severe and light accidents count in the specified location." msgstr "" -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:47 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:49 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:52 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:87 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:155 +#, fuzzy +msgid "one light injured" +msgstr "light injured" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:89 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:156 #, fuzzy -msgid "Severe accidents" +msgid "light injured plural" +msgstr "light injured" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:94 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:153 +#, fuzzy +msgid "one severe injured" msgstr "severe injured" -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:51 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:226 -msgid "in" -msgstr "in " +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:96 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:154 +#, fuzzy +msgid "severe injured plural" +msgstr "severe injured" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:101 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:151 +#, fuzzy +msgid "one killed" +msgstr "killed" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:103 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:152 +#, fuzzy +msgid "killed plural" +msgstr "killed" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:124 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:149 +#, fuzzy +msgid "injured/killed" +msgstr "killed" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:126 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:150 +#, fuzzy +msgid "people from car accidents" +msgstr "severe injured" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:140 +msgid "Number of Injuries in accidents by severity" +msgstr "" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:53 +msgid "Killed and injury stacked per age group" +msgstr "" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget.py:41 +msgid "Injury per age group" +msgstr "" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget_utils.py:96 +msgid "unknown" +msgstr "" #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:158 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:227 @@ -423,9 +482,8 @@ msgid "" msgstr "" #: anyway/widgets/road_segment_widgets/accident_count_by_accident_year_widget.py:56 -#, fuzzy -msgid "Number of accidents, per year, split by severity" -msgstr "Number of accidents by severity" +msgid "Accidents in segment" +msgstr "" #: anyway/widgets/road_segment_widgets/accident_count_by_accident_year_widget.py:63 msgid "" @@ -539,70 +597,6 @@ msgid "" "injury severity" msgstr "" -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:81 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:146 -#, fuzzy -msgid "one light injured" -msgstr "light injured" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:83 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:147 -#, fuzzy -msgid "light injured plural" -msgstr "light injured" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:88 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:144 -#, fuzzy -msgid "one severe injured" -msgstr "severe injured" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:90 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:145 -#, fuzzy -msgid "severe injured plural" -msgstr "severe injured" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:95 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:142 -#, fuzzy -msgid "one killed" -msgstr "killed" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:97 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:143 -#, fuzzy -msgid "killed plural" -msgstr "killed" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:118 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:140 -#, fuzzy -msgid "injured/killed" -msgstr "killed" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:120 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:141 -#, fuzzy -msgid "people from car accidents" -msgstr "severe injured" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:132 -msgid "Number of Injuries in accidents by severity" -msgstr "" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:52 -msgid "Killed and injury stacked per age group" -msgstr "" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget.py:39 -msgid "Injury per age group" -msgstr "" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget_utils.py:87 -msgid "unknown" -msgstr "" - #: anyway/widgets/road_segment_widgets/motorcycle_accidents_vs_all_accidents_widget.py:21 msgid "all roads" msgstr "" @@ -766,6 +760,3 @@ msgstr "" #~ msgid "road_segment_namenon_urban_intersection_hebrew" #~ msgstr "" -#~ msgid "Accidents in segment" -#~ msgstr "" - diff --git a/translations/he/LC_MESSAGES/messages.po b/translations/he/LC_MESSAGES/messages.po index cdbc801b3..470b3b11f 100644 --- a/translations/he/LC_MESSAGES/messages.po +++ b/translations/he/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-12-19 21:10+0000\n" +"POT-Creation-Date: 2023-12-22 13:01+0200\n" "PO-Revision-Date: 2020-10-16 15:42+0000\n" "Last-Translator: FULL NAME \n" "Language: he\n" @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.12.1\n" +"Generated-By: Babel 2.14.0\n" #: anyway/backend_constants.py:148 msgid "killed" @@ -170,160 +170,212 @@ msgstr "אופניים/קורקינט" msgid "other vehicle" msgstr "רכב אחר" +#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:51 +#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:226 +#: anyway/widgets/all_locations_widgets/seriously_injured_killed_in_bicycles_scooter_widget.py:49 +#: anyway/widgets/widget_utils.py:249 +msgid "in" +msgstr "ב" + #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:69 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:158 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:162 msgid "one light" msgstr "קלה אחת" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:71 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:159 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:163 msgid "light plural" msgstr "קלות" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:76 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:160 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:164 msgid "one severe" msgstr "קשה אחת" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:78 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:161 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:165 msgid "severe plural" msgstr "פצוע/ה קשה" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:83 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:162 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:166 msgid "one fatal" msgstr "קטלנית אחת" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:85 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:163 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:167 msgid "fatal plural" msgstr "קטלניות" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:88 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:106 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:164 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:100 msgid "in yishuv" msgstr "ביישוב" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:90 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:165 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:169 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:108 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:166 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:102 msgid "in street" msgstr "ברחוב" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:95 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:166 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:170 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:113 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:171 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:107 msgid "in road" msgstr "בכביש" #: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:97 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:164 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:167 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:168 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:171 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:115 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:173 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:109 msgid "in segment" msgstr "במקטע" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:103 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:168 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:107 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:172 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:121 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:179 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:115 msgid "between the years" msgstr "בין השנים" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:106 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:140 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:169 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:110 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:144 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:173 msgid "took place" msgstr "התרחשו" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:108 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:142 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:171 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:112 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:146 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:175 msgid "accidents" msgstr "תאונות" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:109 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:170 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:121 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:113 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:174 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:127 msgid "out of them" msgstr "מתוכן" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:113 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:172 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:125 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:117 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:176 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:131 msgid " and " msgstr " ו-" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:122 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:126 msgid "Number of accidents by severity" msgstr "מספר תאונות לפי חומרה" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:123 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:127 +#: anyway/widgets/road_segment_widgets/accident_count_by_accident_year_widget.py:57 #: anyway/widgets/road_segment_widgets/accident_count_by_car_type_widget.py:145 #: anyway/widgets/road_segment_widgets/accident_count_by_hour_widget.py:31 #: anyway/widgets/road_segment_widgets/accident_count_by_road_light_widget.py:33 #: anyway/widgets/road_segment_widgets/accidents_heat_map_widget.py:54 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:133 -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:53 +#: anyway/widgets/road_segment_widgets/injured_count_by_accident_year_widget.py:56 #: anyway/widgets/road_segment_widgets/suburban_crosswalk_widget.py:73 msgid "road_segment_name" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:124 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:128 msgid "non_urban_intersection_hebrew" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:129 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:149 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:133 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:153 msgid "Fatal, severe and light accidents count in " msgstr "כמות התאונות הקטלניות, הקשות והקלות ב" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:130 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:134 msgid "segment" msgstr "מקטע" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:130 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:157 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:134 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:161 msgid "junction" msgstr "צמת" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:131 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:151 -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:173 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:135 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:155 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:177 msgid "in the selected time" msgstr "בפרק הזמן הנבחר" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:137 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:141 msgid "in years" msgstr "בשנים" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:144 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:148 msgid "{street_name}, {yishuv_name}" msgstr "" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:150 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:154 msgid "street" msgstr "רחוב" -#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:156 +#: anyway/widgets/all_locations_widgets/accident_count_by_severity_widget.py:160 msgid "Fatal, severe and light accidents count in the specified location." msgstr "כמות התאונות הקטלניות, הקשות והקלות במקטע בפרק הזמן הנבחר." -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:47 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:49 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:52 -msgid "Severe accidents" -msgstr "תאונות חמורות" +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:87 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:155 +msgid "one light injured" +msgstr "פצוע/ה קל" -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:51 -#: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:226 -msgid "in" -msgstr "ב" +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:89 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:156 +msgid "light injured plural" +msgstr "פצועים/ות קל" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:94 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:153 +msgid "one severe injured" +msgstr "פצוע/ה קשה" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:96 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:154 +msgid "severe injured plural" +msgstr "פצועים קשה" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:101 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:151 +msgid "one killed" +msgstr "הרוג" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:103 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:152 +msgid "killed plural" +msgstr "הרוגים" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:124 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:149 +msgid "injured/killed" +msgstr "נפצעו/נהרגו" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:126 +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:150 +msgid "people from car accidents" +msgstr "אנשים מתאונות דרכים" + +#: anyway/widgets/all_locations_widgets/injured_count_by_severity_widget.py:140 +msgid "Number of Injuries in accidents by severity" +msgstr "מספר תאונות לפי חומרה" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:53 +msgid "Killed and injury stacked per age group" +msgstr "חומרת פגיעה לפי קבוצת גיל" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget.py:41 +msgid "Injury per age group" +msgstr "נפגעים לפי קבוצת גיל" + +#: anyway/widgets/all_locations_widgets/killed_and_injured_count_per_age_group_widget_utils.py:96 +msgid "unknown" +msgstr "לא ידוע" #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:158 #: anyway/widgets/all_locations_widgets/most_severe_accidents_table_widget.py:227 @@ -552,62 +604,6 @@ msgstr "" "מספר הרוגים, פצועים קשה וקל, לפי שנה במקטע, מחולק לפי חומרת הפגיעה, בפרק " "הזמן הנבחר." -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:81 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:146 -msgid "one light injured" -msgstr "פצוע/ה קל" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:83 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:147 -msgid "light injured plural" -msgstr "פצועים/ות קל" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:88 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:144 -msgid "one severe injured" -msgstr "פצוע/ה קשה" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:90 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:145 -msgid "severe injured plural" -msgstr "פצועים קשה" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:95 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:142 -msgid "one killed" -msgstr "הרוג" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:97 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:143 -msgid "killed plural" -msgstr "הרוגים" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:118 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:140 -msgid "injured/killed" -msgstr "נפצעו/נהרגו" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:120 -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:141 -msgid "people from car accidents" -msgstr "אנשים מתאונות דרכים" - -#: anyway/widgets/road_segment_widgets/injured_count_by_severity_widget.py:132 -msgid "Number of Injuries in accidents by severity" -msgstr "מספר תאונות לפי חומרה" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_stacked_widget.py:52 -msgid "Killed and injury stacked per age group" -msgstr "חומרת פגיעה לפי קבוצת גיל" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget.py:39 -msgid "Injury per age group" -msgstr "נפגעים לפי קבוצת גיל" - -#: anyway/widgets/road_segment_widgets/killed_and_injured_count_per_age_group_widget_utils.py:87 -msgid "unknown" -msgstr "לא ידוע" - #: anyway/widgets/road_segment_widgets/motorcycle_accidents_vs_all_accidents_widget.py:21 msgid "all roads" msgstr "כל הכבישים"