data-for-change / anyway

ANYWAY - Car accidents map
http://www.anyway.co.il
MIT License
77 stars 242 forks source link

Localize Widget - accident_count_by_day_night #2524

Open atalyaalon opened 9 months ago

atalyaalon commented 9 months ago

Widget ID accident_count_by_day_night

Widget Fields Fields in Widget to localize: day_night

Additional context Graph is not localized properly DO NOT LOCALIZE SEGMENT NAME, that's a different issue Screenshot 2023-12-31 at 17 32 24

Example for widget data localizeaion Check out the localize_items code in this widget: most_severe_accidents_table_widget

Flask Babel For updating messages.pot with all strings for translation - use the following commands:

  1. Go to anyway container: docker exec -it anyway bash
  2. Perform the following updates inside anyway container:
atalyaalon commented 9 months ago

Itamar this is blocked by #2532