Skip to content

Commit

Permalink
Merge pull request #2501 from data-for-change/modify-widget-title
Browse files Browse the repository at this point in the history
Modify widget title
  • Loading branch information
atalyaalon authored Dec 13, 2023
2 parents 0069cb3 + b45a33a commit 5ad92a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def generate_items(self) -> None:
def localize_items(request_params: RequestParams, items: Dict) -> Dict:
items["data"]["text"] = {
"title": _("Number of injured in accidents, per year, split by severity"),
"subtitle": _(segment_dictionary[request_params.location_info['road_segment_name']]),
"subtitle": f'{_("in segment")} {_(segment_dictionary[request_params.location_info["road_segment_name"]])}',
"labels_map": gen_entity_labels(InjurySeverity),
}
return items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_transcription(request_params: RequestParams, items: Dict):
def localize_items(request_params: RequestParams, items: Dict) -> Dict:
items["data"]["text"] = {
"title": _("Number of Injuries in accidents by severity"),
"subtitle": f'{_("in segment")} {_(request_params.location_info["road_segment_name"])}',
"subtitle": _(request_params.location_info['road_segment_name']),
"transcription": InjuredCountBySeverityWidget.get_transcription(request_params=request_params,
items=items["data"]["items"])
}
Expand Down

0 comments on commit 5ad92a6

Please sign in to comment.